Business.fromMap constructor

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

Implementation

factory Business.fromMap(Map<String, dynamic> json) => Business(
  settings: json["settings"] == null ? null : Settings.fromMap(json["settings"]),
  emailSettings: json["emailSettings"] == null ? null : EmailSettings.fromMap(json["emailSettings"]),
  checkoutSettings: json["checkoutSettings"] == null ? null : CheckoutSettings.fromMap(json["checkoutSettings"]),
  status: json["status"],
  countryCallingCode: json["countryCallingCode"],
  businessTag: json["businessTag"],
  settlementSettings: json["settlementSettings"],
  isKycApproved: json["isKYCApproved"],
  isBlocked: json["isBlocked"],
  id: json["_id"],
  name: json["name"],
  businessType: json["businessType"],
  email: json["email"],
  country: json["country"],
  mobile: json["mobile"],
  businessKey: json["businessKey"],
  createdAt: json["createdAt"] == null ? null : DateTime.parse(json["createdAt"]),
  updatedAt: json["updatedAt"] == null ? null : DateTime.parse(json["updatedAt"]),
);