DashboardInfo.fromJson constructor

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

Implementation

DashboardInfo.fromJson(Map<String, dynamic> json)
    : tenantId = TenantId.fromJson(json['tenantId']),
      customerId = json['customerId'] != null
          ? CustomerId.fromJson(json['customerId'])
          : null,
      title = json['title'],
      image = json['image'],
      assignedCustomers = json['assignedCustomers'] != null
          ? (json['assignedCustomers'] as List<dynamic>)
              .map((e) => ShortCustomerInfo.fromJson(e))
              .toSet()
          : {},
      mobileHide = json['mobileHide'],
      mobileOrder = json['mobileOrder'],
      super.fromJson(json);