User.fromJson constructor
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);