// To parse this JSON data, do
//
//     final responlisthistorycuti = responlisthistorycutiFromJson(jsonString);

import 'dart:convert';

Responlisthistorycuti responlisthistorycutiFromJson(String str) => Responlisthistorycuti.fromJson(json.decode(str));

String responlisthistorycutiToJson(Responlisthistorycuti data) => json.encode(data.toJson());

class Responlisthistorycuti {
    bool? success;
    String? message;
    List<DataHistoryCuti>? data;

    Responlisthistorycuti({
        this.success,
        this.message,
        this.data,
    });

    factory Responlisthistorycuti.fromJson(Map<String, dynamic> json) => Responlisthistorycuti(
        success: json["success"],
        message: json["message"],
        data: json["data"] == null ? null : List<DataHistoryCuti>.from(json["data"].map((x) => DataHistoryCuti.fromJson(x))),
    );

    Map<String, dynamic> toJson() => {
        "success": success,
        "message": message,
        "data": data == null ? null : List<dynamic>.from(data!.map((x) => x.toJson())),
    };
}

class DataHistoryCuti {
    String? tambah;
    String? kurang;
    String? tglTrx;
    String? keterangan;

    DataHistoryCuti({
        this.tambah,
        this.kurang,
        this.tglTrx,
        this.keterangan,
    });

    factory DataHistoryCuti.fromJson(Map<String, dynamic> json) => DataHistoryCuti(
        tambah: json["tambah"],
        kurang: json["kurang"],
        tglTrx: json["tgl_trx"],
        keterangan: json["keterangan"],
    );

    Map<String, dynamic> toJson() => {
        "tambah": tambah,
        "kurang": kurang,
        "tgl_trx": tglTrx,
        "keterangan": keterangan,
    };
}