TenancyUnit.fromJson constructor

TenancyUnit.fromJson(
  1. Map json_
)

Implementation

TenancyUnit.fromJson(core.Map json_)
    : this(
        consumer: json_.containsKey('consumer')
            ? json_['consumer'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        service: json_.containsKey('service')
            ? json_['service'] as core.String
            : null,
        tenantResources: json_.containsKey('tenantResources')
            ? (json_['tenantResources'] as core.List)
                .map((value) => TenantResource.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );