User.fromJson constructor

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

Implementation

User.fromJson(Map<String, dynamic> json)
    : tenantId = json['tenantId'] != null
          ? TenantId.fromJson(json['tenantId'])
          : null,
      customerId = json['customerId'] != null
          ? CustomerId.fromJson(json['customerId'])
          : null,
      email = json['email'],
      authority = authorityFromString(json['authority']),
      firstName = json['firstName'],
      lastName = json['lastName'],
      phone = json['phone'],
      super.fromJson(json);