ZDDepartment.fromJson constructor

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

Implementation

ZDDepartment.fromJson(Map<String, dynamic> json):
    photoURL = json['photoURL'],
    name = json['name'],
    description = json['description'],
    id = json['id'],
    nameInCustomerPortal = json['nameInCustomerPortal'],
    layoutCount = json['layoutCount'] is int ? json['layoutCount'] : int.parse(json['layoutCount']);