ListTenantsResponse.fromJson constructor

ListTenantsResponse.fromJson(
  1. Map json_
)

Implementation

ListTenantsResponse.fromJson(core.Map json_)
    : this(
        metadata: json_.containsKey('metadata')
            ? ResponseMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        tenants: json_.containsKey('tenants')
            ? (json_['tenants'] as core.List)
                .map((value) => Tenant.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );