ProServicesBusiness.fromJson constructor

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

Implementation

ProServicesBusiness.fromJson(Map<String, dynamic> json) {
  businessDescription =
      BusinessDescriptionModel.fromJson(json["businessDescription"] ?? {});
  if (json["services"] is List) {
    services = (json["services"] as List)
        .map<ProServiceModel>((e) => ProServiceModel.fromJson(e))
        .toList();
  } else {
    services = <ProServiceModel>[];
  }
}