AwsMetadata.fromJson constructor

AwsMetadata.fromJson(
  1. Map json_
)

Implementation

AwsMetadata.fromJson(core.Map json_)
    : this(
        account: json_.containsKey('account')
            ? AwsAccount.fromJson(
                json_['account'] as core.Map<core.String, core.dynamic>)
            : null,
        organization: json_.containsKey('organization')
            ? AwsOrganization.fromJson(
                json_['organization'] as core.Map<core.String, core.dynamic>)
            : null,
        organizationalUnits: json_.containsKey('organizationalUnits')
            ? (json_['organizationalUnits'] as core.List)
                .map((value) => AwsOrganizationalUnit.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );