Info.fromJson constructor

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

Implementation

Info.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  createdAt = json['createdAt'];
  name = json['name'];
  officialTitle = json['officialTitle'];
  domain = json['domain'];
  slug = json['slug'];
  address =
      json['address'] != null ? AddressDTO.fromJson(json['address']) : null;
  contact =
      json['contact'] != null ? Contact.fromJson(json['contact']) : null;
  tax = json['tax'] != null ? Tax.fromJson(json['tax']) : null;
  social = json['social'] != null ? Social.fromJson(json['social']) : null;
  logoPhoto =
      json['logoPhoto'] != null ? PhotoDTO.fromJson(json['logoPhoto']) : null;
  bannerPhoto = json['bannerPhoto'] != null
      ? PhotoDTO.fromJson(json['bannerPhoto'])
      : null;
}