AddressModel.fromMap constructor

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

Implementation

factory AddressModel.fromMap(Map<String, dynamic> json) => AddressModel(
  status: json["status"],
  code: json["code"],
  message: json["message"],
  timestamp: json["timestamp"],
  data: json["data"] == null ? [] : List<AddressModelMain>.from(json["data"]!.map((x) => AddressModelMain.fromMap(x))),
);