VgkMapDetailsModel.fromMap constructor

VgkMapDetailsModel.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory VgkMapDetailsModel.fromMap(Map<String, dynamic> json) =>
    VgkMapDetailsModel(
      name: json["name"] ?? "",
      maps: json["maps"] == null
          ? []
          : List<VgkMapElement>.from(
              json["maps"].map((x) => VgkMapElement.fromMap(x))),
      data: json["data"] == null
          ? []
          : List<VgkMapDetail>.from(
              json["data"].map((x) => VgkMapDetail.fromMap(x))),
    );