// To parse this JSON data, do
//
//     final badgepercolumn = badgepercolumnFromJson(jsonString);

import 'dart:convert';

BadgeMonitorAbsen badgeMonitorAbsenFromJson(String str) => BadgeMonitorAbsen.fromJson(json.decode(str));

String badgeMonitorAbsenToJson(BadgeMonitorAbsen data) => json.encode(data.toJson());

class BadgeMonitorAbsen {
    bool? success;
    String? message;
    List<DataBadgeMonitorAbsen>? data;

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

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

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

class DataBadgeMonitorAbsen {
    String? key;
    String? nama;
    int? jumlah;

    DataBadgeMonitorAbsen({
        this.key,
        this.nama,
        this.jumlah,
    });

    factory DataBadgeMonitorAbsen.fromJson(Map<String, dynamic> json) => DataBadgeMonitorAbsen(
        key: json["key"],
        nama: json["nama"],
        jumlah: json["jumlah"],
    );

    Map<String, dynamic> toJson() => {
        "key": key,
        "nama": nama,
        "jumlah": jumlah,
    };
}
