AllMerchantsResponse.fromJson constructor

AllMerchantsResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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