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

import 'dart:convert';

Badgepercolumn badgepercolumnFromJson(String str) => Badgepercolumn.fromJson(json.decode(str));

String badgepercolumnToJson(Badgepercolumn data) => json.encode(data.toJson());

class Badgepercolumn {
    bool? success;
    String? message;
    List<Datum>? data;

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

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

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

class Datum {
    String? value;
    String? nama;
    int? jumlah;

    Datum({
        this.value,
        this.nama,
        this.jumlah,
    });

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

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