Role.fromJson constructor

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

Implementation

Role.fromJson(Map<String, dynamic> json)
    : tenantId = TenantId.fromJson(json['tenantId']),
      customerId = json['customerId'] != null
          ? CustomerId.fromJson(json['customerId'])
          : null,
      name = json['name'],
      type = roleTypeFromString(json['type']),
      permissions = RolePermissions.fromJson(json),
      externalId = json['externalId'] != null
          ? RoleId.fromJson(json['externalId'])
          : null,
      super.fromJson(json);