// To parse this JSON data, do
//
//     final versionRespon = versionResponFromJson(jsonString);

import 'dart:convert';

VersionRespon versionResponFromJson(String str) => VersionRespon.fromJson(json.decode(str));

String versionResponToJson(VersionRespon data) => json.encode(data.toJson());

class VersionRespon {
  VersionRespon({
    this.success,
    this.message,
    this.source,
    this.messageSource,
    this.version,
  });

  bool? success;
  String? message;
  bool? source;
  String? messageSource;
  Version? version;

  factory VersionRespon.fromJson(Map<String, dynamic> json) => VersionRespon(
    success: json["success"] == null ? null : json["success"],
    message: json["message"] == null ? null : json["message"],
    source: json["source"] == null ? null : json["source"],
    messageSource: json["message_source"] == null ? null : json["message_source"],
    version: json["version"] == null ? null : Version.fromJson(json["version"]),
  );

  Map<String, dynamic> toJson() => {
    "success": success == null ? null : success,
    "message": message == null ? null : message,
    "source": source == null ? null : source,
    "message_source": messageSource == null ? null : messageSource,
    "version": version == null ? null : version!.toJson(),
  };
}

class Version {
  Version({
    this.versionCode,
    this.versionName,
    this.keteranganUpdate,
    this.aktif,
    this.forceUpdate,
    this.linkUpdate,
  });

  String? versionCode;
  String? versionName;
  String? keteranganUpdate;
  String? aktif;
  String? forceUpdate;
  String? linkUpdate;

  factory Version.fromJson(Map<String, dynamic> json) => Version(
    versionCode: json["version_code"] == null ? null : json["version_code"],
    versionName: json["version_name"] == null ? null : json["version_name"],
    keteranganUpdate: json["keterangan_update"] == null ? null : json["keterangan_update"],
    aktif: json["aktif"] == null ? null : json["aktif"],
    forceUpdate: json["force_update"] == null ? null : json["force_update"],
    linkUpdate: json["link_update"] == null ? null : json["link_update"],
  );

  Map<String, dynamic> toJson() => {
    "version_code": versionCode == null ? null : versionCode,
    "version_name": versionName == null ? null : versionName,
    "keterangan_update": keteranganUpdate == null ? null : keteranganUpdate,
    "aktif": aktif == null ? null : aktif,
    "force_update": forceUpdate == null ? null : forceUpdate,
    "link_update": linkUpdate == null ? null : linkUpdate,
  };
}

BasicRespon basicResponFromJson(String str) =>
    BasicRespon.fromJson(json.decode(str));

String basicResponToJson(BasicRespon data) => json.encode(data.toJson());

class BasicRespon {
  BasicRespon({
    this.success,
    this.message,
  });

  bool? success;
  String? message;

  factory BasicRespon.fromJson(Map<String, dynamic> json) => BasicRespon(
    success: json["success"],
    message: json["message"],
  );

  Map<String, dynamic> toJson() => {
    "success": success,
    "message": message,
  };
}

BasicSimpleRespon basicSimpleResponFromJson(String str) =>
    BasicSimpleRespon.fromJson(json.decode(str));

String basicSimpleResponToJson(BasicSimpleRespon data) => json.encode(data.toJson());

class BasicSimpleRespon {
  BasicSimpleRespon({
    this.success,
    this.message,
    this.data
  });

  bool? success;
  String? message;
  String? data;

  factory BasicSimpleRespon.fromJson(Map<String, dynamic> json) => BasicSimpleRespon(
    success: json["success"],
    message: json["message"],
    data: json["data"],
  );

  Map<String, dynamic> toJson() => {
    "success": success,
    "message": message,
    "data": data,
  };
}
