CustomerListResponse.fromJson constructor

CustomerListResponse.fromJson(
  1. dynamic json
)

Implementation

CustomerListResponse.fromJson(dynamic json) {
  status = json['status'];
  message = json['message'];
  if (json['data'] != null) {
    data = [];
    json['data'].forEach((v) {
      data?.add(Customer.fromJson(v));
    });
  }
}