AwsSourceDetails.fromJson constructor

AwsSourceDetails.fromJson(
  1. Map json_
)

Implementation

AwsSourceDetails.fromJson(core.Map json_)
    : this(
        accessKeyCreds: json_.containsKey('accessKeyCreds')
            ? AccessKeyCredentials.fromJson(json_['accessKeyCreds']
                as core.Map<core.String, core.dynamic>)
            : null,
        awsRegion: json_.containsKey('awsRegion')
            ? json_['awsRegion'] as core.String
            : null,
        error: json_.containsKey('error')
            ? Status.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        inventorySecurityGroupNames:
            json_.containsKey('inventorySecurityGroupNames')
                ? (json_['inventorySecurityGroupNames'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        inventoryTagList: json_.containsKey('inventoryTagList')
            ? (json_['inventoryTagList'] as core.List)
                .map((value) => Tag.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        migrationResourcesUserTags:
            json_.containsKey('migrationResourcesUserTags')
                ? (json_['migrationResourcesUserTags']
                        as core.Map<core.String, core.dynamic>)
                    .map(
                    (key, value) => core.MapEntry(
                      key,
                      value as core.String,
                    ),
                  )
                : null,
        publicIp: json_.containsKey('publicIp')
            ? json_['publicIp'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );