diff --git a/all_apis/pubspec.yaml b/all_apis/pubspec.yaml index 0e6bde73f..e5f49506d 100644 --- a/all_apis/pubspec.yaml +++ b/all_apis/pubspec.yaml @@ -2,7 +2,7 @@ name: all_apis publish_to: none environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: diff --git a/aws_client/CHANGELOG.md b/aws_client/CHANGELOG.md index deb26503c..290ae9b38 100644 --- a/aws_client/CHANGELOG.md +++ b/aws_client/CHANGELOG.md @@ -3,6 +3,7 @@ ## 0.6.0 - Expose `package:aws_client/credential_providers.dart` for advanced options to resolve the `AwsClientCredentials` +- Remove double-encode of request URI when generating signature for S3 - Internal refactoring of the query protocol - Internal refactor of enums serialization diff --git a/aws_client/lib/src/generated/access_analyzer/v2019_11_01.dart b/aws_client/lib/src/generated/access_analyzer/v2019_11_01.dart index fa6ec8b9a..bd145f5bc 100644 --- a/aws_client/lib/src/generated/access_analyzer/v2019_11_01.dart +++ b/aws_client/lib/src/generated/access_analyzer/v2019_11_01.dart @@ -1609,10 +1609,8 @@ class AccessPreviewFinding { resourceOwnerAccount: json['resourceOwnerAccount'] as String, resourceType: ResourceType.fromString((json['resourceType'] as String)), status: FindingStatus.fromString((json['status'] as String)), - action: (json['action'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + action: + (json['action'] as List?)?.nonNulls.map((e) => e as String).toList(), condition: (json['condition'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), error: json['error'] as String?, @@ -1624,7 +1622,7 @@ class AccessPreviewFinding { ?.map((k, e) => MapEntry(k, e as String)), resource: json['resource'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingSource.fromJson(e as Map)) .toList(), ); @@ -1901,13 +1899,11 @@ class AnalyzedResource { resourceOwnerAccount: json['resourceOwnerAccount'] as String, resourceType: ResourceType.fromString((json['resourceType'] as String)), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), - actions: (json['actions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['actions'] as List?)?.nonNulls.map((e) => e as String).toList(), error: json['error'] as String?, sharedVia: (json['sharedVia'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(FindingStatus.fromString), @@ -2213,7 +2209,7 @@ class CheckAccessNotGrantedResponse { return CheckAccessNotGrantedResponse( message: json['message'] as String?, reasons: (json['reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReasonSummary.fromJson(e as Map)) .toList(), result: (json['result'] as String?) @@ -2270,7 +2266,7 @@ class CheckNoNewAccessResponse { return CheckNoNewAccessResponse( message: json['message'] as String?, reasons: (json['reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReasonSummary.fromJson(e as Map)) .toList(), result: @@ -2374,7 +2370,7 @@ class CloudTrailProperties { endTime: nonNullableTimeStampFromJson(json['endTime'] as Object), startTime: nonNullableTimeStampFromJson(json['startTime'] as Object), trailProperties: (json['trailProperties'] as List) - .whereNotNull() + .nonNulls .map((e) => TrailProperties.fromJson(e as Map)) .toList(), ); @@ -2624,18 +2620,12 @@ class Criterion { factory Criterion.fromJson(Map json) { return Criterion( contains: (json['contains'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - eq: (json['eq'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + eq: (json['eq'] as List?)?.nonNulls.map((e) => e as String).toList(), exists: json['exists'] as bool?, - neq: (json['neq'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + neq: (json['neq'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2817,15 +2807,11 @@ class EbsSnapshotConfiguration { factory EbsSnapshotConfiguration.fromJson(Map json) { return EbsSnapshotConfiguration( - groups: (json['groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['groups'] as List?)?.nonNulls.map((e) => e as String).toList(), kmsKeyId: json['kmsKeyId'] as String?, - userIds: (json['userIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + userIds: + (json['userIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2970,15 +2956,13 @@ class ExternalAccessDetails { return ExternalAccessDetails( condition: (json['condition'] as Map) .map((k, e) => MapEntry(k, e as String)), - action: (json['action'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + action: + (json['action'] as List?)?.nonNulls.map((e) => e as String).toList(), isPublic: json['isPublic'] as bool?, principal: (json['principal'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingSource.fromJson(e as Map)) .toList(), ); @@ -3076,17 +3060,15 @@ class Finding { resourceType: ResourceType.fromString((json['resourceType'] as String)), status: FindingStatus.fromString((json['status'] as String)), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), - action: (json['action'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + action: + (json['action'] as List?)?.nonNulls.map((e) => e as String).toList(), error: json['error'] as String?, isPublic: json['isPublic'] as bool?, principal: (json['principal'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), resource: json['resource'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingSource.fromJson(e as Map)) .toList(), ); @@ -3411,17 +3393,15 @@ class FindingSummary { resourceType: ResourceType.fromString((json['resourceType'] as String)), status: FindingStatus.fromString((json['status'] as String)), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), - action: (json['action'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + action: + (json['action'] as List?)?.nonNulls.map((e) => e as String).toList(), error: json['error'] as String?, isPublic: json['isPublic'] as bool?, principal: (json['principal'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), resource: json['resource'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingSource.fromJson(e as Map)) .toList(), ); @@ -3658,7 +3638,7 @@ class GeneratedPolicyResult { properties: GeneratedPolicyProperties.fromJson( json['properties'] as Map), generatedPolicies: (json['generatedPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GeneratedPolicy.fromJson(e as Map)) .toList(), ); @@ -3858,7 +3838,7 @@ class GetFindingV2Response { analyzedAt: nonNullableTimeStampFromJson(json['analyzedAt'] as Object), createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), findingDetails: (json['findingDetails'] as List) - .whereNotNull() + .nonNulls .map((e) => FindingDetails.fromJson(e as Map)) .toList(), id: json['id'] as String, @@ -4169,7 +4149,7 @@ class KmsGrantConfiguration { granteePrincipal: json['granteePrincipal'] as String, issuingAccount: json['issuingAccount'] as String, operations: (json['operations'] as List) - .whereNotNull() + .nonNulls .map((e) => KmsGrantOperation.fromString((e as String))) .toList(), constraints: json['constraints'] != null @@ -4310,7 +4290,7 @@ class KmsKeyConfiguration { factory KmsKeyConfiguration.fromJson(Map json) { return KmsKeyConfiguration( grants: (json['grants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KmsGrantConfiguration.fromJson(e as Map)) .toList(), keyPolicies: (json['keyPolicies'] as Map?) @@ -4344,7 +4324,7 @@ class ListAccessPreviewFindingsResponse { Map json) { return ListAccessPreviewFindingsResponse( findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => AccessPreviewFinding.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4376,7 +4356,7 @@ class ListAccessPreviewsResponse { factory ListAccessPreviewsResponse.fromJson(Map json) { return ListAccessPreviewsResponse( accessPreviews: (json['accessPreviews'] as List) - .whereNotNull() + .nonNulls .map((e) => AccessPreviewSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4409,7 +4389,7 @@ class ListAnalyzedResourcesResponse { factory ListAnalyzedResourcesResponse.fromJson(Map json) { return ListAnalyzedResourcesResponse( analyzedResources: (json['analyzedResources'] as List) - .whereNotNull() + .nonNulls .map((e) => AnalyzedResourceSummary.fromJson(e as Map)) .toList(), @@ -4443,7 +4423,7 @@ class ListAnalyzersResponse { factory ListAnalyzersResponse.fromJson(Map json) { return ListAnalyzersResponse( analyzers: (json['analyzers'] as List) - .whereNotNull() + .nonNulls .map((e) => AnalyzerSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4476,7 +4456,7 @@ class ListArchiveRulesResponse { factory ListArchiveRulesResponse.fromJson(Map json) { return ListArchiveRulesResponse( archiveRules: (json['archiveRules'] as List) - .whereNotNull() + .nonNulls .map((e) => ArchiveRuleSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4510,7 +4490,7 @@ class ListFindingsResponse { factory ListFindingsResponse.fromJson(Map json) { return ListFindingsResponse( findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => FindingSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4543,7 +4523,7 @@ class ListFindingsV2Response { factory ListFindingsV2Response.fromJson(Map json) { return ListFindingsV2Response( findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => FindingSummaryV2.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4576,7 +4556,7 @@ class ListPolicyGenerationsResponse { factory ListPolicyGenerationsResponse.fromJson(Map json) { return ListPolicyGenerationsResponse( policyGenerations: (json['policyGenerations'] as List) - .whereNotNull() + .nonNulls .map((e) => PolicyGeneration.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4656,7 +4636,7 @@ class Location { factory Location.fromJson(Map json) { return Location( path: (json['path'] as List) - .whereNotNull() + .nonNulls .map((e) => PathElement.fromJson(e as Map)) .toList(), span: Span.fromJson(json['span'] as Map), @@ -4941,7 +4921,7 @@ class RdsDbClusterSnapshotAttributeValue { Map json) { return RdsDbClusterSnapshotAttributeValue( accountIds: (json['accountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5051,7 +5031,7 @@ class RdsDbSnapshotAttributeValue { factory RdsDbSnapshotAttributeValue.fromJson(Map json) { return RdsDbSnapshotAttributeValue( accountIds: (json['accountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5340,7 +5320,7 @@ class S3BucketConfiguration { (k, e) => MapEntry(k, S3AccessPointConfiguration.fromJson(e as Map))), bucketAclGrants: (json['bucketAclGrants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3BucketAclGrantConfiguration.fromJson(e as Map)) .toList(), @@ -5771,10 +5751,8 @@ class TrailProperties { return TrailProperties( cloudTrailArn: json['cloudTrailArn'] as String, allRegions: json['allRegions'] as bool?, - regions: (json['regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['regions'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -5996,7 +5974,7 @@ class UnusedPermissionDetails { return UnusedPermissionDetails( serviceNamespace: json['serviceNamespace'] as String, actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnusedAction.fromJson(e as Map)) .toList(), lastAccessed: timeStampFromJson(json['lastAccessed']), @@ -6064,7 +6042,7 @@ class ValidatePolicyFinding { issueCode: json['issueCode'] as String, learnMoreLink: json['learnMoreLink'] as String, locations: (json['locations'] as List) - .whereNotNull() + .nonNulls .map((e) => Location.fromJson(e as Map)) .toList(), ); @@ -6138,7 +6116,7 @@ class ValidatePolicyResponse { factory ValidatePolicyResponse.fromJson(Map json) { return ValidatePolicyResponse( findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => ValidatePolicyFinding.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/account/v2021_02_01.dart b/aws_client/lib/src/generated/account/v2021_02_01.dart index 796bf45b3..684195d5c 100644 --- a/aws_client/lib/src/generated/account/v2021_02_01.dart +++ b/aws_client/lib/src/generated/account/v2021_02_01.dart @@ -918,7 +918,7 @@ class ListRegionsResponse { return ListRegionsResponse( nextToken: json['NextToken'] as String?, regions: (json['Regions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Region.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/acm/v2015_12_08.dart b/aws_client/lib/src/generated/acm/v2015_12_08.dart index 43f61906f..a8b8cdd97 100644 --- a/aws_client/lib/src/generated/acm/v2015_12_08.dart +++ b/aws_client/lib/src/generated/acm/v2015_12_08.dart @@ -1179,26 +1179,24 @@ class CertificateDetail { createdAt: timeStampFromJson(json['CreatedAt']), domainName: json['DomainName'] as String?, domainValidationOptions: (json['DomainValidationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainValidation.fromJson(e as Map)) .toList(), extendedKeyUsages: (json['ExtendedKeyUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtendedKeyUsage.fromJson(e as Map)) .toList(), failureReason: (json['FailureReason'] as String?)?.let(FailureReason.fromString), importedAt: timeStampFromJson(json['ImportedAt']), - inUseBy: (json['InUseBy'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inUseBy: + (json['InUseBy'] as List?)?.nonNulls.map((e) => e as String).toList(), issuedAt: timeStampFromJson(json['IssuedAt']), issuer: json['Issuer'] as String?, keyAlgorithm: (json['KeyAlgorithm'] as String?)?.let(KeyAlgorithm.fromString), keyUsages: (json['KeyUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyUsage.fromJson(e as Map)) .toList(), notAfter: timeStampFromJson(json['NotAfter']), @@ -1220,7 +1218,7 @@ class CertificateDetail { status: (json['Status'] as String?)?.let(CertificateStatus.fromString), subject: json['Subject'] as String?, subjectAlternativeNames: (json['SubjectAlternativeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['Type'] as String?)?.let(CertificateType.fromString), @@ -1490,7 +1488,7 @@ class CertificateSummary { domainName: json['DomainName'] as String?, exported: json['Exported'] as bool?, extendedKeyUsages: (json['ExtendedKeyUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtendedKeyUsageName.fromString((e as String))) .toList(), hasAdditionalSubjectAlternativeNames: @@ -1501,7 +1499,7 @@ class CertificateSummary { keyAlgorithm: (json['KeyAlgorithm'] as String?)?.let(KeyAlgorithm.fromString), keyUsages: (json['KeyUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyUsageName.fromString((e as String))) .toList(), notAfter: timeStampFromJson(json['NotAfter']), @@ -1512,7 +1510,7 @@ class CertificateSummary { status: (json['Status'] as String?)?.let(CertificateStatus.fromString), subjectAlternativeNameSummaries: (json['SubjectAlternativeNameSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['Type'] as String?)?.let(CertificateType.fromString), @@ -1703,7 +1701,7 @@ class DomainValidation { : null, validationDomain: json['ValidationDomain'] as String?, validationEmails: (json['ValidationEmails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), validationMethod: (json['ValidationMethod'] as String?) @@ -2167,7 +2165,7 @@ class ListCertificatesResponse { factory ListCertificatesResponse.fromJson(Map json) { return ListCertificatesResponse( certificateSummaryList: (json['CertificateSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2196,7 +2194,7 @@ class ListTagsForCertificateResponse { factory ListTagsForCertificateResponse.fromJson(Map json) { return ListTagsForCertificateResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2289,7 +2287,7 @@ class RenewalSummary { factory RenewalSummary.fromJson(Map json) { return RenewalSummary( domainValidationOptions: (json['DomainValidationOptions'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainValidation.fromJson(e as Map)) .toList(), renewalStatus: diff --git a/aws_client/lib/src/generated/acm_pca/v2017_08_22.dart b/aws_client/lib/src/generated/acm_pca/v2017_08_22.dart index 050ef26a5..f2889091c 100644 --- a/aws_client/lib/src/generated/acm_pca/v2017_08_22.dart +++ b/aws_client/lib/src/generated/acm_pca/v2017_08_22.dart @@ -2038,7 +2038,7 @@ class ASN1Subject { commonName: json['CommonName'] as String?, country: json['Country'] as String?, customAttributes: (json['CustomAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomAttribute.fromJson(e as Map)) .toList(), distinguishedNameQualifier: json['DistinguishedNameQualifier'] as String?, @@ -2878,7 +2878,7 @@ class CsrExtensions { ? KeyUsage.fromJson(json['KeyUsage'] as Map) : null, subjectInformationAccess: (json['SubjectInformationAccess'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessDescription.fromJson(e as Map)) .toList(), ); @@ -3548,7 +3548,7 @@ class ListCertificateAuthoritiesResponse { Map json) { return ListCertificateAuthoritiesResponse( certificateAuthorities: (json['CertificateAuthorities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateAuthority.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3585,7 +3585,7 @@ class ListPermissionsResponse { return ListPermissionsResponse( nextToken: json['NextToken'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromJson(e as Map)) .toList(), ); @@ -3618,7 +3618,7 @@ class ListTagsResponse { return ListTagsResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3761,7 +3761,7 @@ class Permission { factory Permission.fromJson(Map json) { return Permission( actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionType.fromString((e as String))) .toList(), certificateAuthorityArn: json['CertificateAuthorityArn'] as String?, diff --git a/aws_client/lib/src/generated/alexa_for_business/v2017_11_09.dart b/aws_client/lib/src/generated/alexa_for_business/v2017_11_09.dart index 227c30b09..a7e09ecf1 100644 --- a/aws_client/lib/src/generated/alexa_for_business/v2017_11_09.dart +++ b/aws_client/lib/src/generated/alexa_for_business/v2017_11_09.dart @@ -4508,11 +4508,11 @@ class Contact { lastName: json['LastName'] as String?, phoneNumber: json['PhoneNumber'] as String?, phoneNumbers: (json['PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumber.fromJson(e as Map)) .toList(), sipAddresses: (json['SipAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipAddress.fromJson(e as Map)) .toList(), ); @@ -4582,11 +4582,11 @@ class ContactData { lastName: json['LastName'] as String?, phoneNumber: json['PhoneNumber'] as String?, phoneNumbers: (json['PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumber.fromJson(e as Map)) .toList(), sipAddresses: (json['SipAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipAddress.fromJson(e as Map)) .toList(), ); @@ -5599,7 +5599,7 @@ class DeviceStatusInfo { connectionStatusUpdatedTime: timeStampFromJson(json['ConnectionStatusUpdatedTime']), deviceStatusDetails: (json['DeviceStatusDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceStatusDetail.fromJson(e as Map)) .toList(), ); @@ -5765,7 +5765,7 @@ class EndOfMeetingReminder { return EndOfMeetingReminder( enabled: json['Enabled'] as bool?, reminderAtMinutes: (json['ReminderAtMinutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), reminderType: (json['ReminderType'] as String?) @@ -6248,7 +6248,7 @@ class GetInvitationConfigurationResponse { contactEmail: json['ContactEmail'] as String?, organizationName: json['OrganizationName'] as String?, privateSkillIds: (json['PrivateSkillIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6468,7 +6468,7 @@ class ListBusinessReportSchedulesResponse { Map json) { return ListBusinessReportSchedulesResponse( businessReportSchedules: (json['BusinessReportSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BusinessReportSchedule.fromJson(e as Map)) .toList(), @@ -6502,7 +6502,7 @@ class ListConferenceProvidersResponse { factory ListConferenceProvidersResponse.fromJson(Map json) { return ListConferenceProvidersResponse( conferenceProviders: (json['ConferenceProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConferenceProvider.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6535,7 +6535,7 @@ class ListDeviceEventsResponse { factory ListDeviceEventsResponse.fromJson(Map json) { return ListDeviceEventsResponse( deviceEvents: (json['DeviceEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceEvent.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6567,7 +6567,7 @@ class ListGatewayGroupsResponse { factory ListGatewayGroupsResponse.fromJson(Map json) { return ListGatewayGroupsResponse( gatewayGroups: (json['GatewayGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GatewayGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6599,7 +6599,7 @@ class ListGatewaysResponse { factory ListGatewaysResponse.fromJson(Map json) { return ListGatewaysResponse( gateways: (json['Gateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GatewaySummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6632,7 +6632,7 @@ class ListSkillsResponse { return ListSkillsResponse( nextToken: json['NextToken'] as String?, skillSummaries: (json['SkillSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SkillSummary.fromJson(e as Map)) .toList(), ); @@ -6664,7 +6664,7 @@ class ListSkillsStoreCategoriesResponse { Map json) { return ListSkillsStoreCategoriesResponse( categoryList: (json['CategoryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Category.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6698,7 +6698,7 @@ class ListSkillsStoreSkillsByCategoryResponse { return ListSkillsStoreSkillsByCategoryResponse( nextToken: json['NextToken'] as String?, skillsStoreSkills: (json['SkillsStoreSkills'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SkillsStoreSkill.fromJson(e as Map)) .toList(), ); @@ -6730,7 +6730,7 @@ class ListSmartHomeAppliancesResponse { return ListSmartHomeAppliancesResponse( nextToken: json['NextToken'] as String?, smartHomeAppliances: (json['SmartHomeAppliances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SmartHomeAppliance.fromJson(e as Map)) .toList(), ); @@ -6763,7 +6763,7 @@ class ListTagsResponse { return ListTagsResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6972,7 +6972,7 @@ class NetworkProfile { ?.let(NetworkSecurityType.fromString), ssid: json['Ssid'] as String?, trustAnchors: (json['TrustAnchors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7552,7 +7552,7 @@ class ResolveRoomResponse { roomArn: json['RoomArn'] as String?, roomName: json['RoomName'] as String?, roomSkillParameters: (json['RoomSkillParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoomSkillParameter.fromJson(e as Map)) .toList(), ); @@ -7743,7 +7743,7 @@ class SearchAddressBooksResponse { factory SearchAddressBooksResponse.fromJson(Map json) { return SearchAddressBooksResponse( addressBooks: (json['AddressBooks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddressBookData.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7782,7 +7782,7 @@ class SearchContactsResponse { factory SearchContactsResponse.fromJson(Map json) { return SearchContactsResponse( contacts: (json['Contacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactData.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7821,7 +7821,7 @@ class SearchDevicesResponse { factory SearchDevicesResponse.fromJson(Map json) { return SearchDevicesResponse( devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceData.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7864,7 +7864,7 @@ class SearchNetworkProfilesResponse { factory SearchNetworkProfilesResponse.fromJson(Map json) { return SearchNetworkProfilesResponse( networkProfiles: (json['NetworkProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkProfileData.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7904,7 +7904,7 @@ class SearchProfilesResponse { return SearchProfilesResponse( nextToken: json['NextToken'] as String?, profiles: (json['Profiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileData.fromJson(e as Map)) .toList(), totalCount: json['TotalCount'] as int?, @@ -7943,7 +7943,7 @@ class SearchRoomsResponse { return SearchRoomsResponse( nextToken: json['NextToken'] as String?, rooms: (json['Rooms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoomData.fromJson(e as Map)) .toList(), totalCount: json['TotalCount'] as int?, @@ -7982,7 +7982,7 @@ class SearchSkillGroupsResponse { return SearchSkillGroupsResponse( nextToken: json['NextToken'] as String?, skillGroups: (json['SkillGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SkillGroupData.fromJson(e as Map)) .toList(), totalCount: json['TotalCount'] as int?, @@ -8022,7 +8022,7 @@ class SearchUsersResponse { nextToken: json['NextToken'] as String?, totalCount: json['TotalCount'] as int?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserData.fromJson(e as Map)) .toList(), ); @@ -8168,7 +8168,7 @@ class SkillDetails { factory SkillDetails.fromJson(Map json) { return SkillDetails( bulletPoints: (json['BulletPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), developerInfo: json['DeveloperInfo'] != null @@ -8177,13 +8177,13 @@ class SkillDetails { : null, endUserLicenseAgreement: json['EndUserLicenseAgreement'] as String?, genericKeywords: (json['GenericKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), invocationPhrase: json['InvocationPhrase'] as String?, newInThisVersionBulletPoints: (json['NewInThisVersionBulletPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), productDescription: json['ProductDescription'] as String?, @@ -8191,7 +8191,7 @@ class SkillDetails { reviews: (json['Reviews'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), skillTypes: (json['SkillTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8419,7 +8419,7 @@ class SkillsStoreSkill { return SkillsStoreSkill( iconUrl: json['IconUrl'] as String?, sampleUtterances: (json['SampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), shortDescription: json['ShortDescription'] as String?, diff --git a/aws_client/lib/src/generated/amp/v2020_08_01.dart b/aws_client/lib/src/generated/amp/v2020_08_01.dart index 5e822cedc..5721b477c 100644 --- a/aws_client/lib/src/generated/amp/v2020_08_01.dart +++ b/aws_client/lib/src/generated/amp/v2020_08_01.dart @@ -1634,12 +1634,10 @@ class EksConfiguration { factory EksConfiguration.fromJson(Map json) { return EksConfiguration( clusterArn: json['clusterArn'] as String, - subnetIds: (json['subnetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1703,7 +1701,7 @@ class ListRuleGroupsNamespacesResponse { factory ListRuleGroupsNamespacesResponse.fromJson(Map json) { return ListRuleGroupsNamespacesResponse( ruleGroupsNamespaces: (json['ruleGroupsNamespaces'] as List) - .whereNotNull() + .nonNulls .map((e) => RuleGroupsNamespaceSummary.fromJson(e as Map)) .toList(), @@ -1740,7 +1738,7 @@ class ListScrapersResponse { factory ListScrapersResponse.fromJson(Map json) { return ListScrapersResponse( scrapers: (json['scrapers'] as List) - .whereNotNull() + .nonNulls .map((e) => ScraperSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1799,7 +1797,7 @@ class ListWorkspacesResponse { factory ListWorkspacesResponse.fromJson(Map json) { return ListWorkspacesResponse( workspaces: (json['workspaces'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkspaceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/amplify/v2017_07_25.dart b/aws_client/lib/src/generated/amplify/v2017_07_25.dart index b6a0fab12..98e5ab528 100644 --- a/aws_client/lib/src/generated/amplify/v2017_07_25.dart +++ b/aws_client/lib/src/generated/amplify/v2017_07_25.dart @@ -1989,14 +1989,14 @@ class App { json['autoBranchCreationConfig'] as Map) : null, autoBranchCreationPatterns: (json['autoBranchCreationPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), basicAuthCredentials: json['basicAuthCredentials'] as String?, buildSpec: json['buildSpec'] as String?, customHeaders: json['customHeaders'] as String?, customRules: (json['customRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRule.fromJson(e as Map)) .toList(), enableAutoBranchCreation: json['enableAutoBranchCreation'] as bool?, @@ -2428,7 +2428,7 @@ class Branch { branchName: json['branchName'] as String, createTime: nonNullableTimeStampFromJson(json['createTime'] as Object), customDomains: (json['customDomains'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), description: json['description'] as String, @@ -2446,7 +2446,7 @@ class Branch { ttl: json['ttl'] as String, updateTime: nonNullableTimeStampFromJson(json['updateTime'] as Object), associatedResources: (json['associatedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), backend: json['backend'] != null @@ -3087,12 +3087,12 @@ class DomainAssociation { enableAutoSubDomain: json['enableAutoSubDomain'] as bool, statusReason: json['statusReason'] as String, subDomains: (json['subDomains'] as List) - .whereNotNull() + .nonNulls .map((e) => SubDomain.fromJson(e as Map)) .toList(), autoSubDomainCreationPatterns: (json['autoSubDomainCreationPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), autoSubDomainIAMRole: json['autoSubDomainIAMRole'] as String?, @@ -3365,7 +3365,7 @@ class Job { factory Job.fromJson(Map json) { return Job( steps: (json['steps'] as List) - .whereNotNull() + .nonNulls .map((e) => Step.fromJson(e as Map)) .toList(), summary: JobSummary.fromJson(json['summary'] as Map), @@ -3518,7 +3518,7 @@ class ListAppsResult { factory ListAppsResult.fromJson(Map json) { return ListAppsResult( apps: (json['apps'] as List) - .whereNotNull() + .nonNulls .map((e) => App.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3552,7 +3552,7 @@ class ListArtifactsResult { factory ListArtifactsResult.fromJson(Map json) { return ListArtifactsResult( artifacts: (json['artifacts'] as List) - .whereNotNull() + .nonNulls .map((e) => Artifact.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3586,7 +3586,7 @@ class ListBackendEnvironmentsResult { factory ListBackendEnvironmentsResult.fromJson(Map json) { return ListBackendEnvironmentsResult( backendEnvironments: (json['backendEnvironments'] as List) - .whereNotNull() + .nonNulls .map((e) => BackendEnvironment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3620,7 +3620,7 @@ class ListBranchesResult { factory ListBranchesResult.fromJson(Map json) { return ListBranchesResult( branches: (json['branches'] as List) - .whereNotNull() + .nonNulls .map((e) => Branch.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3654,7 +3654,7 @@ class ListDomainAssociationsResult { factory ListDomainAssociationsResult.fromJson(Map json) { return ListDomainAssociationsResult( domainAssociations: (json['domainAssociations'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainAssociation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3688,7 +3688,7 @@ class ListJobsResult { factory ListJobsResult.fromJson(Map json) { return ListJobsResult( jobSummaries: (json['jobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => JobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3746,7 +3746,7 @@ class ListWebhooksResult { factory ListWebhooksResult.fromJson(Map json) { return ListWebhooksResult( webhooks: (json['webhooks'] as List) - .whereNotNull() + .nonNulls .map((e) => Webhook.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/amplify_backend/v2020_08_11.dart b/aws_client/lib/src/generated/amplify_backend/v2020_08_11.dart index 78d2ae4a8..5d046c51f 100644 --- a/aws_client/lib/src/generated/amplify_backend/v2020_08_11.dart +++ b/aws_client/lib/src/generated/amplify_backend/v2020_08_11.dart @@ -1307,7 +1307,7 @@ class BackendAPIResourceConfig { factory BackendAPIResourceConfig.fromJson(Map json) { return BackendAPIResourceConfig( additionalAuthTypes: (json['additionalAuthTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackendAPIAuthType.fromJson(e as Map)) .toList(), apiName: json['apiName'] as String?, @@ -1512,11 +1512,11 @@ class BackendStoragePermissions { factory BackendStoragePermissions.fromJson(Map json) { return BackendStoragePermissions( authenticated: (json['authenticated'] as List) - .whereNotNull() + .nonNulls .map((e) => AuthenticatedElement.fromString((e as String))) .toList(), unAuthenticated: (json['unAuthenticated'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnAuthenticatedElement.fromString((e as String))) .toList(), ); @@ -1801,15 +1801,15 @@ class CreateBackendAuthOAuthConfig { oAuthGrantType: OAuthGrantType.fromString((json['oAuthGrantType'] as String)), oAuthScopes: (json['oAuthScopes'] as List) - .whereNotNull() + .nonNulls .map((e) => OAuthScopesElement.fromString((e as String))) .toList(), redirectSignInURIs: (json['redirectSignInURIs'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), redirectSignOutURIs: (json['redirectSignOutURIs'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), domainPrefix: json['domainPrefix'] as String?, @@ -1859,7 +1859,7 @@ class CreateBackendAuthPasswordPolicyConfig { return CreateBackendAuthPasswordPolicyConfig( minimumLength: json['minimumLength'] as double, additionalConstraints: (json['additionalConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalConstraintsElement.fromString((e as String))) .toList(), ); @@ -2038,7 +2038,7 @@ class CreateBackendAuthUserPoolConfig { factory CreateBackendAuthUserPoolConfig.fromJson(Map json) { return CreateBackendAuthUserPoolConfig( requiredSignUpAttributes: (json['requiredSignUpAttributes'] as List) - .whereNotNull() + .nonNulls .map((e) => RequiredSignUpAttributesElement.fromString((e as String))) .toList(), signInMethod: SignInMethod.fromString((json['signInMethod'] as String)), @@ -2956,7 +2956,7 @@ class GetBackendResponse { appId: json['appId'] as String?, appName: json['appName'] as String?, backendEnvironmentList: (json['backendEnvironmentList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), backendEnvironmentName: json['backendEnvironmentName'] as String?, @@ -3241,7 +3241,7 @@ class ListBackendJobsResponse { factory ListBackendJobsResponse.fromJson(Map json) { return ListBackendJobsResponse( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackendJobRespObj.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3273,7 +3273,7 @@ class ListS3BucketsResponse { factory ListS3BucketsResponse.fromJson(Map json) { return ListS3BucketsResponse( buckets: (json['buckets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3BucketInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3556,7 +3556,7 @@ class Settings { factory Settings.fromJson(Map json) { return Settings( mfaTypes: (json['mfaTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MfaTypesElement.fromString((e as String))) .toList(), smsMessage: json['smsMessage'] as String?, diff --git a/aws_client/lib/src/generated/amplify_ui_builder/v2021_08_11.dart b/aws_client/lib/src/generated/amplify_ui_builder/v2021_08_11.dart index 94d524289..82e5cf2a8 100644 --- a/aws_client/lib/src/generated/amplify_ui_builder/v2021_08_11.dart +++ b/aws_client/lib/src/generated/amplify_ui_builder/v2021_08_11.dart @@ -1280,10 +1280,8 @@ class CodegenGenericDataEnum { factory CodegenGenericDataEnum.fromJson(Map json) { return CodegenGenericDataEnum( - values: (json['values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -1409,7 +1407,7 @@ class CodegenGenericDataModel { fields: (json['fields'] as Map).map((k, e) => MapEntry( k, CodegenGenericDataField.fromJson(e as Map))), primaryKeys: (json['primaryKeys'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), isJoinTable: json['isJoinTable'] as bool?, @@ -1500,7 +1498,7 @@ class CodegenGenericDataRelationshipType { relatedModelName: json['relatedModelName'] as String, type: GenericDataRelationshipType.fromString((json['type'] as String)), associatedFields: (json['associatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), belongsToFieldOnRelatedModel: @@ -1510,7 +1508,7 @@ class CodegenGenericDataRelationshipType { relatedJoinFieldName: json['relatedJoinFieldName'] as String?, relatedJoinTableName: json['relatedJoinTableName'] as String?, relatedModelFields: (json['relatedModelFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1612,7 +1610,7 @@ class CodegenJob { autoGenerateForms: json['autoGenerateForms'] as bool?, createdAt: timeStampFromJson(json['createdAt']), dependencies: (json['dependencies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodegenDependency.fromJson(e as Map)) .toList(), features: json['features'] != null @@ -1960,11 +1958,11 @@ class Component { properties: (json['properties'] as Map).map((k, e) => MapEntry(k, ComponentProperty.fromJson(e as Map))), variants: (json['variants'] as List) - .whereNotNull() + .nonNulls .map((e) => ComponentVariant.fromJson(e as Map)) .toList(), children: (json['children'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentChild.fromJson(e as Map)) .toList(), collectionProperties: (json['collectionProperties'] @@ -2114,7 +2112,7 @@ class ComponentBindingPropertiesValueProperties { key: json['key'] as String?, model: json['model'] as String?, predicates: (json['predicates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Predicate.fromJson(e as Map)) .toList(), slotName: json['slotName'] as String?, @@ -2184,7 +2182,7 @@ class ComponentChild { properties: (json['properties'] as Map).map((k, e) => MapEntry(k, ComponentProperty.fromJson(e as Map))), children: (json['children'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentChild.fromJson(e as Map)) .toList(), events: (json['events'] as Map?)?.map((k, e) => @@ -2310,14 +2308,14 @@ class ComponentDataConfiguration { return ComponentDataConfiguration( model: json['model'] as String, identifiers: (json['identifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), predicate: json['predicate'] != null ? Predicate.fromJson(json['predicate'] as Map) : null, sort: (json['sort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SortProperty.fromJson(e as Map)) .toList(), ); @@ -2467,7 +2465,7 @@ class ComponentProperty { : null, componentName: json['componentName'] as String?, concat: (json['concat'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentProperty.fromJson(e as Map)) .toList(), condition: json['condition'] != null @@ -2986,7 +2984,7 @@ class ExportComponentsResponse { factory ExportComponentsResponse.fromJson(Map json) { return ExportComponentsResponse( entities: (json['entities'] as List) - .whereNotNull() + .nonNulls .map((e) => Component.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3018,7 +3016,7 @@ class ExportFormsResponse { factory ExportFormsResponse.fromJson(Map json) { return ExportFormsResponse( entities: (json['entities'] as List) - .whereNotNull() + .nonNulls .map((e) => Form.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3050,7 +3048,7 @@ class ExportThemesResponse { factory ExportThemesResponse.fromJson(Map json) { return ExportThemesResponse( entities: (json['entities'] as List) - .whereNotNull() + .nonNulls .map((e) => Theme.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3104,7 +3102,7 @@ class FieldConfig { ? FieldPosition.fromJson(json['position'] as Map) : null, validations: (json['validations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldValidationConfiguration.fromJson(e as Map)) .toList(), @@ -3324,12 +3322,10 @@ class FieldValidationConfiguration { factory FieldValidationConfiguration.fromJson(Map json) { return FieldValidationConfiguration( type: json['type'] as String, - numValues: (json['numValues'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + numValues: + (json['numValues'] as List?)?.nonNulls.map((e) => e as int).toList(), strValues: (json['strValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), validationMessage: json['validationMessage'] as String?, @@ -3400,7 +3396,7 @@ class FileUploaderFieldConfig { factory FileUploaderFieldConfig.fromJson(Map json) { return FileUploaderFieldConfig( acceptedFileTypes: (json['acceptedFileTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), accessLevel: @@ -3854,7 +3850,7 @@ class FormInputValueProperty { json['bindingProperties'] as Map) : null, concat: (json['concat'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FormInputValueProperty.fromJson(e as Map)) .toList(), @@ -4277,7 +4273,7 @@ class ListCodegenJobsResponse { factory ListCodegenJobsResponse.fromJson(Map json) { return ListCodegenJobsResponse( entities: (json['entities'] as List) - .whereNotNull() + .nonNulls .map((e) => CodegenJobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4309,7 +4305,7 @@ class ListComponentsResponse { factory ListComponentsResponse.fromJson(Map json) { return ListComponentsResponse( entities: (json['entities'] as List) - .whereNotNull() + .nonNulls .map((e) => ComponentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4341,7 +4337,7 @@ class ListFormsResponse { factory ListFormsResponse.fromJson(Map json) { return ListFormsResponse( entities: (json['entities'] as List) - .whereNotNull() + .nonNulls .map((e) => FormSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4396,7 +4392,7 @@ class ListThemesResponse { factory ListThemesResponse.fromJson(Map json) { return ListThemesResponse( entities: (json['entities'] as List) - .whereNotNull() + .nonNulls .map((e) => ThemeSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4497,7 +4493,7 @@ class Predicate { factory Predicate.fromJson(Map json) { return Predicate( and: (json['and'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Predicate.fromJson(e as Map)) .toList(), field: json['field'] as String?, @@ -4505,7 +4501,7 @@ class Predicate { operandType: json['operandType'] as String?, operator: json['operator'] as String?, or: (json['or'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Predicate.fromJson(e as Map)) .toList(), ); @@ -4920,12 +4916,12 @@ class Theme { id: json['id'] as String, name: json['name'] as String, values: (json['values'] as List) - .whereNotNull() + .nonNulls .map((e) => ThemeValues.fromJson(e as Map)) .toList(), modifiedAt: timeStampFromJson(json['modifiedAt']), overrides: (json['overrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThemeValues.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -5017,7 +5013,7 @@ class ThemeValue { factory ThemeValue.fromJson(Map json) { return ThemeValue( children: (json['children'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThemeValues.fromJson(e as Map)) .toList(), value: json['value'] as String?, @@ -5382,7 +5378,7 @@ class ValueMappings { factory ValueMappings.fromJson(Map json) { return ValueMappings( values: (json['values'] as List) - .whereNotNull() + .nonNulls .map((e) => ValueMapping.fromJson(e as Map)) .toList(), bindingProperties: (json['bindingProperties'] as Map?) diff --git a/aws_client/lib/src/generated/api_gateway/v2015_07_09.dart b/aws_client/lib/src/generated/api_gateway/v2015_07_09.dart index ab7ed5798..c69f0a367 100644 --- a/aws_client/lib/src/generated/api_gateway/v2015_07_09.dart +++ b/aws_client/lib/src/generated/api_gateway/v2015_07_09.dart @@ -4912,7 +4912,7 @@ class Account { apiKeyVersion: json['apiKeyVersion'] as String?, cloudwatchRoleArn: json['cloudwatchRoleArn'] as String?, features: (json['features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), throttleSettings: json['throttleSettings'] != null @@ -4996,7 +4996,7 @@ class ApiKey { lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, stageKeys: (json['stageKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -5047,12 +5047,9 @@ class ApiKeyIds { factory ApiKeyIds.fromJson(Map json) { return ApiKeyIds( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5102,12 +5099,12 @@ class ApiKeys { factory ApiKeys.fromJson(Map json) { return ApiKeys( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiKey.fromJson(e as Map)) .toList(), position: json['position'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5288,7 +5285,7 @@ class Authorizer { json['identityValidationExpression'] as String?, name: json['name'] as String?, providerARNs: (json['providerARNs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(AuthorizerType.fromString), @@ -5359,7 +5356,7 @@ class Authorizers { factory Authorizers.fromJson(Map json) { return Authorizers( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Authorizer.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -5429,7 +5426,7 @@ class BasePathMappings { factory BasePathMappings.fromJson(Map json) { return BasePathMappings( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BasePathMapping.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -5617,7 +5614,7 @@ class ClientCertificates { factory ClientCertificates.fromJson(Map json) { return ClientCertificates( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClientCertificate.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -5766,7 +5763,7 @@ class Deployments { factory Deployments.fromJson(Map json) { return Deployments( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Deployment.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -5849,12 +5846,9 @@ class DocumentationPartIds { factory DocumentationPartIds.fromJson(Map json) { return DocumentationPartIds( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5997,7 +5991,7 @@ class DocumentationParts { factory DocumentationParts.fromJson(Map json) { return DocumentationParts( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentationPart.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -6065,7 +6059,7 @@ class DocumentationVersions { factory DocumentationVersions.fromJson(Map json) { return DocumentationVersions( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentationVersion.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -6306,7 +6300,7 @@ class DomainNames { factory DomainNames.fromJson(Map json) { return DomainNames( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainName.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -6345,11 +6339,11 @@ class EndpointConfiguration { factory EndpointConfiguration.fromJson(Map json) { return EndpointConfiguration( types: (json['types'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointType.fromString((e as String))) .toList(), vpcEndpointIds: (json['vpcEndpointIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6523,7 +6517,7 @@ class GatewayResponses { factory GatewayResponses.fromJson(Map json) { return GatewayResponses( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GatewayResponse.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -6694,7 +6688,7 @@ class Integration { factory Integration.fromJson(Map json) { return Integration( cacheKeyParameters: (json['cacheKeyParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cacheNamespace: json['cacheNamespace'] as String?, @@ -6971,7 +6965,7 @@ class Method { return Method( apiKeyRequired: json['apiKeyRequired'] as bool?, authorizationScopes: (json['authorizationScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authorizationType: json['authorizationType'] as String?, @@ -7293,7 +7287,7 @@ class Models { factory Models.fromJson(Map json) { return Models( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Model.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -7345,7 +7339,7 @@ class MutualTlsAuthentication { truststoreUri: json['truststoreUri'] as String?, truststoreVersion: json['truststoreVersion'] as String?, truststoreWarnings: (json['truststoreWarnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7601,7 +7595,7 @@ class RequestValidators { factory RequestValidators.fromJson(Map json) { return RequestValidators( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RequestValidator.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -7684,7 +7678,7 @@ class Resources { factory Resources.fromJson(Map json) { return Resources( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -7786,7 +7780,7 @@ class RestApi { apiKeySource: (json['apiKeySource'] as String?)?.let(ApiKeySourceType.fromString), binaryMediaTypes: (json['binaryMediaTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdDate: timeStampFromJson(json['createdDate']), @@ -7805,7 +7799,7 @@ class RestApi { ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7863,7 +7857,7 @@ class RestApis { factory RestApis.fromJson(Map json) { return RestApis( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RestApi.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -7984,7 +7978,7 @@ class SdkType { factory SdkType.fromJson(Map json) { return SdkType( configurationProperties: (json['configurationProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SdkConfigurationProperty.fromJson(e as Map)) .toList(), @@ -8023,7 +8017,7 @@ class SdkTypes { factory SdkTypes.fromJson(Map json) { return SdkTypes( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SdkType.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -8259,7 +8253,7 @@ class Stages { factory Stages.fromJson(Map json) { return Stages( item: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Stage.fromJson(e as Map)) .toList(), ); @@ -8360,9 +8354,9 @@ class TestInvokeAuthorizerResponse { factory TestInvokeAuthorizerResponse.fromJson(Map json) { return TestInvokeAuthorizerResponse( - authorization: (json['authorization'] as Map?)?.map( - (k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + authorization: (json['authorization'] as Map?)?.map((k, + e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), claims: (json['claims'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), clientStatus: json['clientStatus'] as int?, @@ -8431,7 +8425,7 @@ class TestInvokeMethodResponse { log: json['log'] as String?, multiValueHeaders: (json['multiValueHeaders'] as Map?) ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + k, (e as List).nonNulls.map((e) => e as String).toList())), status: json['status'] as int?, ); } @@ -8572,9 +8566,8 @@ class Usage { items: (json['values'] as Map?)?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as int).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as int).toList()) .toList())), position: json['position'] as String?, startDate: json['startDate'] as String?, @@ -8649,7 +8642,7 @@ class UsagePlan { factory UsagePlan.fromJson(Map json) { return UsagePlan( apiStages: (json['apiStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiStage.fromJson(e as Map)) .toList(), description: json['description'] as String?, @@ -8749,7 +8742,7 @@ class UsagePlanKeys { factory UsagePlanKeys.fromJson(Map json) { return UsagePlanKeys( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsagePlanKey.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -8780,7 +8773,7 @@ class UsagePlans { factory UsagePlans.fromJson(Map json) { return UsagePlans( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsagePlan.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -8848,7 +8841,7 @@ class VpcLink { tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), targetArns: (json['targetArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8905,7 +8898,7 @@ class VpcLinks { factory VpcLinks.fromJson(Map json) { return VpcLinks( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcLink.fromJson(e as Map)) .toList(), position: json['position'] as String?, diff --git a/aws_client/lib/src/generated/api_gateway_v2/v2018_11_29.dart b/aws_client/lib/src/generated/api_gateway_v2/v2018_11_29.dart index fc561fb1d..6cd35e196 100644 --- a/aws_client/lib/src/generated/api_gateway_v2/v2018_11_29.dart +++ b/aws_client/lib/src/generated/api_gateway_v2/v2018_11_29.dart @@ -3500,14 +3500,14 @@ class Api { disableExecuteApiEndpoint: json['disableExecuteApiEndpoint'] as bool?, disableSchemaValidation: json['disableSchemaValidation'] as bool?, importInfo: (json['importInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3734,7 +3734,7 @@ class Authorizer { authorizerUri: json['authorizerUri'] as String?, enableSimpleResponses: json['enableSimpleResponses'] as bool?, identitySource: (json['identitySource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identityValidationExpression: @@ -3868,19 +3868,19 @@ class Cors { return Cors( allowCredentials: json['allowCredentials'] as bool?, allowHeaders: (json['allowHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allowMethods: (json['allowMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allowOrigins: (json['allowOrigins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), exposeHeaders: (json['exposeHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxAge: json['maxAge'] as int?, @@ -4047,7 +4047,7 @@ class CreateApiResponse { disableExecuteApiEndpoint: json['disableExecuteApiEndpoint'] as bool?, disableSchemaValidation: json['disableSchemaValidation'] as bool?, importInfo: (json['importInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -4058,7 +4058,7 @@ class CreateApiResponse { ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4218,7 +4218,7 @@ class CreateAuthorizerResponse { authorizerUri: json['authorizerUri'] as String?, enableSimpleResponses: json['enableSimpleResponses'] as bool?, identitySource: (json['identitySource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identityValidationExpression: @@ -4353,7 +4353,7 @@ class CreateDomainNameResponse { json['apiMappingSelectionExpression'] as String?, domainName: json['domainName'] as String?, domainNameConfigurations: (json['domainNameConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainNameConfiguration.fromJson(e as Map)) .toList(), @@ -4907,7 +4907,7 @@ class CreateRouteResult { apiGatewayManaged: json['apiGatewayManaged'] as bool?, apiKeyRequired: json['apiKeyRequired'] as bool?, authorizationScopes: (json['authorizationScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authorizationType: (json['authorizationType'] as String?) @@ -5202,11 +5202,11 @@ class CreateVpcLinkResponse { createdDate: timeStampFromJson(json['createdDate']), name: json['name'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -5367,7 +5367,7 @@ class DomainName { apiMappingSelectionExpression: json['apiMappingSelectionExpression'] as String?, domainNameConfigurations: (json['domainNameConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainNameConfiguration.fromJson(e as Map)) .toList(), @@ -5618,7 +5618,7 @@ class GetApiMappingsResponse { factory GetApiMappingsResponse.fromJson(Map json) { return GetApiMappingsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiMapping.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5734,7 +5734,7 @@ class GetApiResponse { disableExecuteApiEndpoint: json['disableExecuteApiEndpoint'] as bool?, disableSchemaValidation: json['disableSchemaValidation'] as bool?, importInfo: (json['importInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -5745,7 +5745,7 @@ class GetApiResponse { ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5809,7 +5809,7 @@ class GetApisResponse { factory GetApisResponse.fromJson(Map json) { return GetApisResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Api.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5938,7 +5938,7 @@ class GetAuthorizerResponse { authorizerUri: json['authorizerUri'] as String?, enableSimpleResponses: json['enableSimpleResponses'] as bool?, identitySource: (json['identitySource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identityValidationExpression: @@ -6000,7 +6000,7 @@ class GetAuthorizersResponse { factory GetAuthorizersResponse.fromJson(Map json) { return GetAuthorizersResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Authorizer.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6092,7 +6092,7 @@ class GetDeploymentsResponse { factory GetDeploymentsResponse.fromJson(Map json) { return GetDeploymentsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Deployment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6139,7 +6139,7 @@ class GetDomainNameResponse { json['apiMappingSelectionExpression'] as String?, domainName: json['domainName'] as String?, domainNameConfigurations: (json['domainNameConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainNameConfiguration.fromJson(e as Map)) .toList(), @@ -6187,7 +6187,7 @@ class GetDomainNamesResponse { factory GetDomainNamesResponse.fromJson(Map json) { return GetDomainNamesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainName.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6611,7 +6611,7 @@ class GetIntegrationResponsesResponse { factory GetIntegrationResponsesResponse.fromJson(Map json) { return GetIntegrationResponsesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegrationResponse.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6644,7 +6644,7 @@ class GetIntegrationsResponse { factory GetIntegrationsResponse.fromJson(Map json) { return GetIntegrationsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Integration.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6750,7 +6750,7 @@ class GetModelsResponse { factory GetModelsResponse.fromJson(Map json) { return GetModelsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Model.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6846,7 +6846,7 @@ class GetRouteResult { apiGatewayManaged: json['apiGatewayManaged'] as bool?, apiKeyRequired: json['apiKeyRequired'] as bool?, authorizationScopes: (json['authorizationScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authorizationType: (json['authorizationType'] as String?) @@ -6975,7 +6975,7 @@ class GetRouteResponsesResponse { factory GetRouteResponsesResponse.fromJson(Map json) { return GetRouteResponsesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteResponse.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7008,7 +7008,7 @@ class GetRoutesResponse { factory GetRoutesResponse.fromJson(Map json) { return GetRoutesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7178,7 +7178,7 @@ class GetStagesResponse { factory GetStagesResponse.fromJson(Map json) { return GetStagesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Stage.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7262,11 +7262,11 @@ class GetVpcLinkResponse { createdDate: timeStampFromJson(json['createdDate']), name: json['name'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -7321,7 +7321,7 @@ class GetVpcLinksResponse { factory GetVpcLinksResponse.fromJson(Map json) { return GetVpcLinksResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcLink.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7437,7 +7437,7 @@ class ImportApiResponse { disableExecuteApiEndpoint: json['disableExecuteApiEndpoint'] as bool?, disableSchemaValidation: json['disableSchemaValidation'] as bool?, importInfo: (json['importInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -7448,7 +7448,7 @@ class ImportApiResponse { ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7930,7 +7930,7 @@ class JWTConfiguration { factory JWTConfiguration.fromJson(Map json) { return JWTConfiguration( audience: (json['audience'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), issuer: json['issuer'] as String?, @@ -8051,7 +8051,7 @@ class MutualTlsAuthentication { truststoreUri: json['truststoreUri'] as String?, truststoreVersion: json['truststoreVersion'] as String?, truststoreWarnings: (json['truststoreWarnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8255,7 +8255,7 @@ class ReimportApiResponse { disableExecuteApiEndpoint: json['disableExecuteApiEndpoint'] as bool?, disableSchemaValidation: json['disableSchemaValidation'] as bool?, importInfo: (json['importInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -8266,7 +8266,7 @@ class ReimportApiResponse { ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8395,7 +8395,7 @@ class Route { apiGatewayManaged: json['apiGatewayManaged'] as bool?, apiKeyRequired: json['apiKeyRequired'] as bool?, authorizationScopes: (json['authorizationScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authorizationType: (json['authorizationType'] as String?) @@ -8924,7 +8924,7 @@ class UpdateApiResponse { disableExecuteApiEndpoint: json['disableExecuteApiEndpoint'] as bool?, disableSchemaValidation: json['disableSchemaValidation'] as bool?, importInfo: (json['importInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -8935,7 +8935,7 @@ class UpdateApiResponse { ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9095,7 +9095,7 @@ class UpdateAuthorizerResponse { authorizerUri: json['authorizerUri'] as String?, enableSimpleResponses: json['enableSimpleResponses'] as bool?, identitySource: (json['identitySource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identityValidationExpression: @@ -9230,7 +9230,7 @@ class UpdateDomainNameResponse { json['apiMappingSelectionExpression'] as String?, domainName: json['domainName'] as String?, domainNameConfigurations: (json['domainNameConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainNameConfiguration.fromJson(e as Map)) .toList(), @@ -9784,7 +9784,7 @@ class UpdateRouteResult { apiGatewayManaged: json['apiGatewayManaged'] as bool?, apiKeyRequired: json['apiKeyRequired'] as bool?, authorizationScopes: (json['authorizationScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authorizationType: (json['authorizationType'] as String?) @@ -10079,11 +10079,11 @@ class UpdateVpcLinkResponse { createdDate: timeStampFromJson(json['createdDate']), name: json['name'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -10167,13 +10167,11 @@ class VpcLink { return VpcLink( name: json['name'] as String, securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcLinkId: json['vpcLinkId'] as String, createdDate: timeStampFromJson(json['createdDate']), tags: (json['tags'] as Map?) diff --git a/aws_client/lib/src/generated/app_config/v2019_10_09.dart b/aws_client/lib/src/generated/app_config/v2019_10_09.dart index 0c309b730..d30b35f2c 100644 --- a/aws_client/lib/src/generated/app_config/v2019_10_09.dart +++ b/aws_client/lib/src/generated/app_config/v2019_10_09.dart @@ -2419,7 +2419,7 @@ class Applications { factory Applications.fromJson(Map json) { return Applications( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2588,7 +2588,7 @@ class ConfigurationProfile { retrievalRoleArn: json['RetrievalRoleArn'] as String?, type: json['Type'] as String?, validators: (json['Validators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Validator.fromJson(e as Map)) .toList(), ); @@ -2666,7 +2666,7 @@ class ConfigurationProfileSummary { name: json['Name'] as String?, type: json['Type'] as String?, validatorTypes: (json['ValidatorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidatorType.fromString((e as String))) .toList(), ); @@ -2707,7 +2707,7 @@ class ConfigurationProfiles { factory ConfigurationProfiles.fromJson(Map json) { return ConfigurationProfiles( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationProfileSummary.fromJson(e as Map)) .toList(), @@ -2832,7 +2832,7 @@ class Deployment { return Deployment( applicationId: json['ApplicationId'] as String?, appliedExtensions: (json['AppliedExtensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppliedExtension.fromJson(e as Map)) .toList(), completedAt: timeStampFromJson(json['CompletedAt']), @@ -2846,7 +2846,7 @@ class Deployment { description: json['Description'] as String?, environmentId: json['EnvironmentId'] as String?, eventLog: (json['EventLog'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentEvent.fromJson(e as Map)) .toList(), finalBakeTimeInMinutes: json['FinalBakeTimeInMinutes'] as int?, @@ -2963,7 +2963,7 @@ class DeploymentEvent { factory DeploymentEvent.fromJson(Map json) { return DeploymentEvent( actionInvocations: (json['ActionInvocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionInvocation.fromJson(e as Map)) .toList(), description: json['Description'] as String?, @@ -3045,7 +3045,7 @@ class DeploymentStrategies { factory DeploymentStrategies.fromJson(Map json) { return DeploymentStrategies( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentStrategy.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3259,7 +3259,7 @@ class Deployments { factory Deployments.fromJson(Map json) { return Deployments( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3312,7 +3312,7 @@ class Environment { description: json['Description'] as String?, id: json['Id'] as String?, monitors: (json['Monitors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Monitor.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -3371,7 +3371,7 @@ class Environments { factory Environments.fromJson(Map json) { return Environments( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Environment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3429,7 +3429,7 @@ class Extension { MapEntry( ActionPoint.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => Action.fromJson(e as Map)) .toList())), arn: json['Arn'] as String?, @@ -3584,7 +3584,7 @@ class ExtensionAssociations { factory ExtensionAssociations.fromJson(Map json) { return ExtensionAssociations( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtensionAssociationSummary.fromJson(e as Map)) .toList(), @@ -3671,7 +3671,7 @@ class Extensions { factory Extensions.fromJson(Map json) { return Extensions( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtensionSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3844,7 +3844,7 @@ class HostedConfigurationVersions { factory HostedConfigurationVersions.fromJson(Map json) { return HostedConfigurationVersions( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HostedConfigurationVersionSummary.fromJson( e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/app_fabric/v2023_05_19.dart b/aws_client/lib/src/generated/app_fabric/v2023_05_19.dart index f54456f5c..e05a42ace 100644 --- a/aws_client/lib/src/generated/app_fabric/v2023_05_19.dart +++ b/aws_client/lib/src/generated/app_fabric/v2023_05_19.dart @@ -1585,7 +1585,7 @@ class BatchGetUserAccessTasksResponse { factory BatchGetUserAccessTasksResponse.fromJson(Map json) { return BatchGetUserAccessTasksResponse( userAccessResultsList: (json['userAccessResultsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserAccessResultItem.fromJson(e as Map)) .toList(), ); @@ -2269,7 +2269,7 @@ class ListAppAuthorizationsResponse { factory ListAppAuthorizationsResponse.fromJson(Map json) { return ListAppAuthorizationsResponse( appAuthorizationSummaryList: (json['appAuthorizationSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => AppAuthorizationSummary.fromJson(e as Map)) .toList(), @@ -2307,7 +2307,7 @@ class ListAppBundlesResponse { factory ListAppBundlesResponse.fromJson(Map json) { return ListAppBundlesResponse( appBundleSummaryList: (json['appBundleSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => AppBundleSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2345,7 +2345,7 @@ class ListIngestionDestinationsResponse { Map json) { return ListIngestionDestinationsResponse( ingestionDestinations: (json['ingestionDestinations'] as List) - .whereNotNull() + .nonNulls .map((e) => IngestionDestinationSummary.fromJson(e as Map)) .toList(), @@ -2383,7 +2383,7 @@ class ListIngestionsResponse { factory ListIngestionsResponse.fromJson(Map json) { return ListIngestionsResponse( ingestions: (json['ingestions'] as List) - .whereNotNull() + .nonNulls .map((e) => IngestionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2412,7 +2412,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2573,7 +2573,7 @@ class StartUserAccessTasksResponse { factory StartUserAccessTasksResponse.fromJson(Map json) { return StartUserAccessTasksResponse( userAccessTasksList: (json['userAccessTasksList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserAccessTaskItem.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/app_integrations/v2020_07_29.dart b/aws_client/lib/src/generated/app_integrations/v2020_07_29.dart index 48d46511e..1a57ca576 100644 --- a/aws_client/lib/src/generated/app_integrations/v2020_07_29.dart +++ b/aws_client/lib/src/generated/app_integrations/v2020_07_29.dart @@ -1101,16 +1101,12 @@ class CreateDataIntegrationResponse { id: json['Id'] as String?, kmsKey: json['KmsKey'] as String?, name: json['Name'] as String?, - objectConfiguration: - (json['ObjectConfiguration'] as Map?)?.map((k, e) => - MapEntry( - k, - (e as Map).map((k, e) => MapEntry( - k, - (e as List) - .whereNotNull() - .map((e) => e as String) - .toList())))), + objectConfiguration: (json['ObjectConfiguration'] + as Map?) + ?.map((k, e) => MapEntry( + k, + (e as Map).map((k, e) => MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())))), scheduleConfiguration: json['ScheduleConfiguration'] != null ? ScheduleConfiguration.fromJson( json['ScheduleConfiguration'] as Map) @@ -1458,7 +1454,7 @@ class ExternalUrlConfig { return ExternalUrlConfig( accessUrl: json['AccessUrl'] as String, approvedOrigins: (json['ApprovedOrigins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1489,13 +1485,10 @@ class FileConfiguration { factory FileConfiguration.fromJson(Map json) { return FileConfiguration( - folders: (json['Folders'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + folders: + (json['Folders'] as List).nonNulls.map((e) => e as String).toList(), filters: (json['Filters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -1576,15 +1569,15 @@ class GetApplicationResponse { name: json['Name'] as String?, namespace: json['Namespace'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), publications: (json['Publications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Publication.fromJson(e as Map)) .toList(), subscriptions: (json['Subscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subscription.fromJson(e as Map)) .toList(), tags: (json['Tags'] as Map?) @@ -1680,16 +1673,12 @@ class GetDataIntegrationResponse { id: json['Id'] as String?, kmsKey: json['KmsKey'] as String?, name: json['Name'] as String?, - objectConfiguration: - (json['ObjectConfiguration'] as Map?)?.map((k, e) => - MapEntry( - k, - (e as Map).map((k, e) => MapEntry( - k, - (e as List) - .whereNotNull() - .map((e) => e as String) - .toList())))), + objectConfiguration: (json['ObjectConfiguration'] + as Map?) + ?.map((k, e) => MapEntry( + k, + (e as Map).map((k, e) => MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())))), scheduleConfiguration: json['ScheduleConfiguration'] != null ? ScheduleConfiguration.fromJson( json['ScheduleConfiguration'] as Map) @@ -1807,7 +1796,7 @@ class ListApplicationAssociationsResponse { Map json) { return ListApplicationAssociationsResponse( applicationAssociations: (json['ApplicationAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationAssociationSummary.fromJson(e as Map)) .toList(), @@ -1842,7 +1831,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1878,7 +1867,7 @@ class ListDataIntegrationAssociationsResponse { return ListDataIntegrationAssociationsResponse( dataIntegrationAssociations: (json['DataIntegrationAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataIntegrationAssociationSummary.fromJson( e as Map)) .toList(), @@ -1913,7 +1902,7 @@ class ListDataIntegrationsResponse { factory ListDataIntegrationsResponse.fromJson(Map json) { return ListDataIntegrationsResponse( dataIntegrations: (json['DataIntegrations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DataIntegrationSummary.fromJson(e as Map)) .toList(), @@ -1949,7 +1938,7 @@ class ListEventIntegrationAssociationsResponse { return ListEventIntegrationAssociationsResponse( eventIntegrationAssociations: (json['EventIntegrationAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventIntegrationAssociation.fromJson(e as Map)) .toList(), @@ -1984,7 +1973,7 @@ class ListEventIntegrationsResponse { factory ListEventIntegrationsResponse.fromJson(Map json) { return ListEventIntegrationsResponse( eventIntegrations: (json['EventIntegrations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventIntegration.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/app_mesh/v2018_10_01.dart b/aws_client/lib/src/generated/app_mesh/v2018_10_01.dart index aed322325..a744fbd28 100644 --- a/aws_client/lib/src/generated/app_mesh/v2018_10_01.dart +++ b/aws_client/lib/src/generated/app_mesh/v2018_10_01.dart @@ -1278,11 +1278,11 @@ class VirtualNodeSpec { factory VirtualNodeSpec.fromJson(Map json) { return VirtualNodeSpec( backends: (json['backends'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), listeners: (json['listeners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Listener.fromJson(e as Map)) .toList(), serviceDiscovery: json['serviceDiscovery'] != null @@ -1383,7 +1383,7 @@ class HttpRouteAction { factory HttpRouteAction.fromJson(Map json) { return HttpRouteAction( weightedTargets: (json['weightedTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WeightedTarget.fromJson(e as Map)) .toList(), ); @@ -1480,7 +1480,7 @@ class ListMeshesOutput { factory ListMeshesOutput.fromJson(Map json) { return ListMeshesOutput( meshes: (json['meshes'] as List) - .whereNotNull() + .nonNulls .map((e) => MeshRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1648,7 +1648,7 @@ class ListRoutesOutput { factory ListRoutesOutput.fromJson(Map json) { return ListRoutesOutput( routes: (json['routes'] as List) - .whereNotNull() + .nonNulls .map((e) => RouteRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1763,7 +1763,7 @@ class ListVirtualNodesOutput { factory ListVirtualNodesOutput.fromJson(Map json) { return ListVirtualNodesOutput( virtualNodes: (json['virtualNodes'] as List) - .whereNotNull() + .nonNulls .map((e) => VirtualNodeRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1817,7 +1817,7 @@ class ListVirtualRoutersOutput { factory ListVirtualRoutersOutput.fromJson(Map json) { return ListVirtualRoutersOutput( virtualRouters: (json['virtualRouters'] as List) - .whereNotNull() + .nonNulls .map((e) => VirtualRouterRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2013,7 +2013,7 @@ class VirtualRouterSpec { factory VirtualRouterSpec.fromJson(Map json) { return VirtualRouterSpec( serviceNames: (json['serviceNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/app_mesh/v2019_01_25.dart b/aws_client/lib/src/generated/app_mesh/v2019_01_25.dart index c1ab90a07..332229ee9 100644 --- a/aws_client/lib/src/generated/app_mesh/v2019_01_25.dart +++ b/aws_client/lib/src/generated/app_mesh/v2019_01_25.dart @@ -2362,7 +2362,7 @@ class AwsCloudMapServiceDiscovery { namespaceName: json['namespaceName'] as String, serviceName: json['serviceName'] as String, attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCloudMapInstanceAttribute.fromJson(e as Map)) .toList(), @@ -2495,10 +2495,7 @@ class ClientPolicyTls { json['certificate'] as Map) : null, enforce: json['enforce'] as bool?, - ports: (json['ports'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + ports: (json['ports'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } @@ -3552,7 +3549,7 @@ class GrpcGatewayRouteMatch { json['hostname'] as Map) : null, metadata: (json['metadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrpcGatewayRouteMetadata.fromJson(e as Map)) .toList(), @@ -3749,15 +3746,15 @@ class GrpcRetryPolicy { perRetryTimeout: Duration.fromJson(json['perRetryTimeout'] as Map), grpcRetryEvents: (json['grpcRetryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrpcRetryPolicyEvent.fromString((e as String))) .toList(), httpRetryEvents: (json['httpRetryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tcpRetryEvents: (json['tcpRetryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TcpRetryPolicyEvent.fromString((e as String))) .toList(), ); @@ -3861,7 +3858,7 @@ class GrpcRouteAction { factory GrpcRouteAction.fromJson(Map json) { return GrpcRouteAction( weightedTargets: (json['weightedTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => WeightedTarget.fromJson(e as Map)) .toList(), ); @@ -3900,7 +3897,7 @@ class GrpcRouteMatch { factory GrpcRouteMatch.fromJson(Map json) { return GrpcRouteMatch( metadata: (json['metadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrpcRouteMetadata.fromJson(e as Map)) .toList(), methodName: json['methodName'] as String?, @@ -4336,7 +4333,7 @@ class HttpGatewayRouteMatch { factory HttpGatewayRouteMatch.fromJson(Map json) { return HttpGatewayRouteMatch( headers: (json['headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => HttpGatewayRouteHeader.fromJson(e as Map)) .toList(), @@ -4351,7 +4348,7 @@ class HttpGatewayRouteMatch { port: json['port'] as int?, prefix: json['prefix'] as String?, queryParameters: (json['queryParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpQueryParameter.fromJson(e as Map)) .toList(), ); @@ -4612,11 +4609,11 @@ class HttpRetryPolicy { perRetryTimeout: Duration.fromJson(json['perRetryTimeout'] as Map), httpRetryEvents: (json['httpRetryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tcpRetryEvents: (json['tcpRetryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TcpRetryPolicyEvent.fromString((e as String))) .toList(), ); @@ -4699,7 +4696,7 @@ class HttpRouteAction { factory HttpRouteAction.fromJson(Map json) { return HttpRouteAction( weightedTargets: (json['weightedTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => WeightedTarget.fromJson(e as Map)) .toList(), ); @@ -4797,7 +4794,7 @@ class HttpRouteMatch { factory HttpRouteMatch.fromJson(Map json) { return HttpRouteMatch( headers: (json['headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpRouteHeader.fromJson(e as Map)) .toList(), method: (json['method'] as String?)?.let(HttpMethod.fromString), @@ -4807,7 +4804,7 @@ class HttpRouteMatch { port: json['port'] as int?, prefix: json['prefix'] as String?, queryParameters: (json['queryParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpQueryParameter.fromJson(e as Map)) .toList(), scheme: (json['scheme'] as String?)?.let(HttpScheme.fromString), @@ -4955,7 +4952,7 @@ class ListGatewayRoutesOutput { factory ListGatewayRoutesOutput.fromJson(Map json) { return ListGatewayRoutesOutput( gatewayRoutes: (json['gatewayRoutes'] as List) - .whereNotNull() + .nonNulls .map((e) => GatewayRouteRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4992,7 +4989,7 @@ class ListMeshesOutput { factory ListMeshesOutput.fromJson(Map json) { return ListMeshesOutput( meshes: (json['meshes'] as List) - .whereNotNull() + .nonNulls .map((e) => MeshRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5030,7 +5027,7 @@ class ListRoutesOutput { factory ListRoutesOutput.fromJson(Map json) { return ListRoutesOutput( routes: (json['routes'] as List) - .whereNotNull() + .nonNulls .map((e) => RouteRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5067,7 +5064,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['tags'] as List) - .whereNotNull() + .nonNulls .map((e) => TagRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5103,7 +5100,7 @@ class ListVirtualGatewaysOutput { factory ListVirtualGatewaysOutput.fromJson(Map json) { return ListVirtualGatewaysOutput( virtualGateways: (json['virtualGateways'] as List) - .whereNotNull() + .nonNulls .map((e) => VirtualGatewayRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5140,7 +5137,7 @@ class ListVirtualNodesOutput { factory ListVirtualNodesOutput.fromJson(Map json) { return ListVirtualNodesOutput( virtualNodes: (json['virtualNodes'] as List) - .whereNotNull() + .nonNulls .map((e) => VirtualNodeRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5177,7 +5174,7 @@ class ListVirtualRoutersOutput { factory ListVirtualRoutersOutput.fromJson(Map json) { return ListVirtualRoutersOutput( virtualRouters: (json['virtualRouters'] as List) - .whereNotNull() + .nonNulls .map((e) => VirtualRouterRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5214,7 +5211,7 @@ class ListVirtualServicesOutput { factory ListVirtualServicesOutput.fromJson(Map json) { return ListVirtualServicesOutput( virtualServices: (json['virtualServices'] as List) - .whereNotNull() + .nonNulls .map((e) => VirtualServiceRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5686,7 +5683,7 @@ class LoggingFormat { factory LoggingFormat.fromJson(Map json) { return LoggingFormat( json: (json['json'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JsonFormatRef.fromJson(e as Map)) .toList(), text: json['text'] as String?, @@ -6443,10 +6440,7 @@ class SubjectAlternativeNameMatchers { factory SubjectAlternativeNameMatchers.fromJson(Map json) { return SubjectAlternativeNameMatchers( - exact: (json['exact'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + exact: (json['exact'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -6599,7 +6593,7 @@ class TcpRouteAction { factory TcpRouteAction.fromJson(Map json) { return TcpRouteAction( weightedTargets: (json['weightedTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => WeightedTarget.fromJson(e as Map)) .toList(), ); @@ -6720,7 +6714,7 @@ class TlsValidationContextAcmTrust { factory TlsValidationContextAcmTrust.fromJson(Map json) { return TlsValidationContextAcmTrust( certificateAuthorityArns: (json['certificateAuthorityArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -7079,10 +7073,7 @@ class VirtualGatewayClientPolicyTls { json['certificate'] as Map) : null, enforce: json['enforce'] as bool?, - ports: (json['ports'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + ports: (json['ports'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } @@ -7965,7 +7956,7 @@ class VirtualGatewaySpec { factory VirtualGatewaySpec.fromJson(Map json) { return VirtualGatewaySpec( listeners: (json['listeners'] as List) - .whereNotNull() + .nonNulls .map( (e) => VirtualGatewayListener.fromJson(e as Map)) .toList(), @@ -8084,7 +8075,7 @@ class VirtualGatewayTlsValidationContextAcmTrust { Map json) { return VirtualGatewayTlsValidationContextAcmTrust( certificateAuthorityArns: (json['certificateAuthorityArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -8544,11 +8535,11 @@ class VirtualNodeSpec { json['backendDefaults'] as Map) : null, backends: (json['backends'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Backend.fromJson(e as Map)) .toList(), listeners: (json['listeners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Listener.fromJson(e as Map)) .toList(), logging: json['logging'] != null @@ -8835,7 +8826,7 @@ class VirtualRouterSpec { factory VirtualRouterSpec.fromJson(Map json) { return VirtualRouterSpec( listeners: (json['listeners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VirtualRouterListener.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/app_runner/v2020_05_15.dart b/aws_client/lib/src/generated/app_runner/v2020_05_15.dart index b29e5a2e0..05fd9e755 100644 --- a/aws_client/lib/src/generated/app_runner/v2020_05_15.dart +++ b/aws_client/lib/src/generated/app_runner/v2020_05_15.dart @@ -2003,7 +2003,7 @@ class AssociateCustomDomainResponse { dNSTarget: json['DNSTarget'] as String, serviceArn: json['ServiceArn'] as String, vpcDNSTargets: (json['VpcDNSTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcDNSTarget.fromJson(e as Map)) .toList(), ); @@ -2910,7 +2910,7 @@ class CustomDomain { CustomDomainAssociationStatus.fromString((json['Status'] as String)), certificateValidationRecords: (json['CertificateValidationRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateValidationRecord.fromJson(e as Map)) .toList(), @@ -3163,13 +3163,13 @@ class DescribeCustomDomainsResponse { factory DescribeCustomDomainsResponse.fromJson(Map json) { return DescribeCustomDomainsResponse( customDomains: (json['CustomDomains'] as List) - .whereNotNull() + .nonNulls .map((e) => CustomDomain.fromJson(e as Map)) .toList(), dNSTarget: json['DNSTarget'] as String, serviceArn: json['ServiceArn'] as String, vpcDNSTargets: (json['VpcDNSTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcDNSTarget.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3318,7 +3318,7 @@ class DisassociateCustomDomainResponse { dNSTarget: json['DNSTarget'] as String, serviceArn: json['ServiceArn'] as String, vpcDNSTargets: (json['VpcDNSTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcDNSTarget.fromJson(e as Map)) .toList(), ); @@ -3788,7 +3788,7 @@ class ListAutoScalingConfigurationsResponse { return ListAutoScalingConfigurationsResponse( autoScalingConfigurationSummaryList: (json['AutoScalingConfigurationSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoScalingConfigurationSummary.fromJson( e as Map)) .toList(), @@ -3826,7 +3826,7 @@ class ListConnectionsResponse { factory ListConnectionsResponse.fromJson(Map json) { return ListConnectionsResponse( connectionSummaryList: (json['ConnectionSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => ConnectionSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3864,7 +3864,7 @@ class ListObservabilityConfigurationsResponse { return ListObservabilityConfigurationsResponse( observabilityConfigurationSummaryList: (json['ObservabilityConfigurationSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => ObservabilityConfigurationSummary.fromJson( e as Map)) .toList(), @@ -3902,7 +3902,7 @@ class ListOperationsResponse { return ListOperationsResponse( nextToken: json['NextToken'] as String?, operationSummaryList: (json['OperationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OperationSummary.fromJson(e as Map)) .toList(), ); @@ -3937,7 +3937,7 @@ class ListServicesForAutoScalingConfigurationResponse { Map json) { return ListServicesForAutoScalingConfigurationResponse( serviceArnList: (json['ServiceArnList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -3971,7 +3971,7 @@ class ListServicesResponse { factory ListServicesResponse.fromJson(Map json) { return ListServicesResponse( serviceSummaryList: (json['ServiceSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => ServiceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3999,7 +3999,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4030,7 +4030,7 @@ class ListVpcConnectorsResponse { factory ListVpcConnectorsResponse.fromJson(Map json) { return ListVpcConnectorsResponse( vpcConnectors: (json['VpcConnectors'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcConnector.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4092,7 +4092,7 @@ class ListVpcIngressConnectionsResponse { return ListVpcIngressConnectionsResponse( vpcIngressConnectionSummaryList: (json['VpcIngressConnectionSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcIngressConnectionSummary.fromJson(e as Map)) .toList(), @@ -5283,14 +5283,12 @@ class VpcConnector { createdAt: timeStampFromJson(json['CreatedAt']), deletedAt: timeStampFromJson(json['DeletedAt']), securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['Status'] as String?)?.let(VpcConnectorStatus.fromString), - subnets: (json['Subnets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['Subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), vpcConnectorArn: json['VpcConnectorArn'] as String?, vpcConnectorName: json['VpcConnectorName'] as String?, vpcConnectorRevision: json['VpcConnectorRevision'] as int?, diff --git a/aws_client/lib/src/generated/app_stream/v2016_12_01.dart b/aws_client/lib/src/generated/app_stream/v2016_12_01.dart index b70d8bcae..c2c7b7a12 100644 --- a/aws_client/lib/src/generated/app_stream/v2016_12_01.dart +++ b/aws_client/lib/src/generated/app_stream/v2016_12_01.dart @@ -4498,7 +4498,7 @@ class AppBlock { arn: json['Arn'] as String, name: json['Name'] as String, appBlockErrors: (json['AppBlockErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetails.fromJson(e as Map)) .toList(), createdTime: timeStampFromJson(json['CreatedTime']), @@ -4627,11 +4627,11 @@ class AppBlockBuilder { state: AppBlockBuilderState.fromString((json['State'] as String)), vpcConfig: VpcConfig.fromJson(json['VpcConfig'] as Map), accessEndpoints: (json['AccessEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessEndpoint.fromJson(e as Map)) .toList(), appBlockBuilderErrors: (json['AppBlockBuilderErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceError.fromJson(e as Map)) .toList(), createdTime: timeStampFromJson(json['CreatedTime']), @@ -4913,7 +4913,7 @@ class Application { : null, iconURL: json['IconURL'] as String?, instanceFamilies: (json['InstanceFamilies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), launchParameters: json['LaunchParameters'] as String?, @@ -4922,7 +4922,7 @@ class Application { ?.map((k, e) => MapEntry(k, e as String)), name: json['Name'] as String?, platforms: (json['Platforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformType.fromString((e as String))) .toList(), workingDirectory: json['WorkingDirectory'] as String?, @@ -5192,7 +5192,7 @@ class BatchAssociateUserStackResult { factory BatchAssociateUserStackResult.fromJson(Map json) { return BatchAssociateUserStackResult( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserStackAssociationError.fromJson(e as Map)) .toList(), @@ -5218,7 +5218,7 @@ class BatchDisassociateUserStackResult { factory BatchDisassociateUserStackResult.fromJson(Map json) { return BatchDisassociateUserStackResult( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserStackAssociationError.fromJson(e as Map)) .toList(), @@ -5982,7 +5982,7 @@ class DescribeAppBlockBuilderAppBlockAssociationsResult { return DescribeAppBlockBuilderAppBlockAssociationsResult( appBlockBuilderAppBlockAssociations: (json['AppBlockBuilderAppBlockAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppBlockBuilderAppBlockAssociation.fromJson( e as Map)) .toList(), @@ -6019,7 +6019,7 @@ class DescribeAppBlockBuildersResult { factory DescribeAppBlockBuildersResult.fromJson(Map json) { return DescribeAppBlockBuildersResult( appBlockBuilders: (json['AppBlockBuilders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppBlockBuilder.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6052,7 +6052,7 @@ class DescribeAppBlocksResult { factory DescribeAppBlocksResult.fromJson(Map json) { return DescribeAppBlocksResult( appBlocks: (json['AppBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppBlock.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6087,7 +6087,7 @@ class DescribeApplicationFleetAssociationsResult { return DescribeApplicationFleetAssociationsResult( applicationFleetAssociations: (json['ApplicationFleetAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationFleetAssociation.fromJson(e as Map)) .toList(), @@ -6122,7 +6122,7 @@ class DescribeApplicationsResult { factory DescribeApplicationsResult.fromJson(Map json) { return DescribeApplicationsResult( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6157,7 +6157,7 @@ class DescribeDirectoryConfigsResult { factory DescribeDirectoryConfigsResult.fromJson(Map json) { return DescribeDirectoryConfigsResult( directoryConfigs: (json['DirectoryConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectoryConfig.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6190,7 +6190,7 @@ class DescribeEntitlementsResult { factory DescribeEntitlementsResult.fromJson(Map json) { return DescribeEntitlementsResult( entitlements: (json['Entitlements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entitlement.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6223,7 +6223,7 @@ class DescribeFleetsResult { factory DescribeFleetsResult.fromJson(Map json) { return DescribeFleetsResult( fleets: (json['Fleets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Fleet.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6256,7 +6256,7 @@ class DescribeImageBuildersResult { factory DescribeImageBuildersResult.fromJson(Map json) { return DescribeImageBuildersResult( imageBuilders: (json['ImageBuilders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageBuilder.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6295,7 +6295,7 @@ class DescribeImagePermissionsResult { name: json['Name'] as String?, nextToken: json['NextToken'] as String?, sharedImagePermissionsList: (json['SharedImagePermissionsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SharedImagePermissions.fromJson(e as Map)) .toList(), @@ -6331,7 +6331,7 @@ class DescribeImagesResult { factory DescribeImagesResult.fromJson(Map json) { return DescribeImagesResult( images: (json['Images'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Image.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6365,7 +6365,7 @@ class DescribeSessionsResult { return DescribeSessionsResult( nextToken: json['NextToken'] as String?, sessions: (json['Sessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Session.fromJson(e as Map)) .toList(), ); @@ -6398,7 +6398,7 @@ class DescribeStacksResult { return DescribeStacksResult( nextToken: json['NextToken'] as String?, stacks: (json['Stacks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Stack.fromJson(e as Map)) .toList(), ); @@ -6432,7 +6432,7 @@ class DescribeUsageReportSubscriptionsResult { return DescribeUsageReportSubscriptionsResult( nextToken: json['NextToken'] as String?, usageReportSubscriptions: (json['UsageReportSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageReportSubscription.fromJson(e as Map)) .toList(), @@ -6468,7 +6468,7 @@ class DescribeUserStackAssociationsResult { return DescribeUserStackAssociationsResult( nextToken: json['NextToken'] as String?, userStackAssociations: (json['UserStackAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserStackAssociation.fromJson(e as Map)) .toList(), ); @@ -6502,7 +6502,7 @@ class DescribeUsersResult { return DescribeUsersResult( nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -6564,7 +6564,7 @@ class DirectoryConfig { createdTime: timeStampFromJson(json['CreatedTime']), organizationalUnitDistinguishedNames: (json['OrganizationalUnitDistinguishedNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serviceAccountCredentials: json['ServiceAccountCredentials'] != null @@ -6772,7 +6772,7 @@ class Entitlement { appVisibility: AppVisibility.fromString((json['AppVisibility'] as String)), attributes: (json['Attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => EntitlementAttribute.fromJson(e as Map)) .toList(), name: json['Name'] as String, @@ -7197,7 +7197,7 @@ class Fleet { : null, enableDefaultInternetAccess: json['EnableDefaultInternetAccess'] as bool?, fleetErrors: (json['FleetErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetError.fromJson(e as Map)) .toList(), fleetType: (json['FleetType'] as String?)?.let(FleetType.fromString), @@ -7216,7 +7216,7 @@ class Fleet { : null, streamView: (json['StreamView'] as String?)?.let(StreamView.fromString), usbDeviceFilterStrings: (json['UsbDeviceFilterStrings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcConfig: json['VpcConfig'] != null @@ -7504,7 +7504,7 @@ class Image { return Image( name: json['Name'] as String, applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), appstreamAgentVersion: json['AppstreamAgentVersion'] as String?, @@ -7516,7 +7516,7 @@ class Image { imageBuilderName: json['ImageBuilderName'] as String?, imageBuilderSupported: json['ImageBuilderSupported'] as bool?, imageErrors: (json['ImageErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceError.fromJson(e as Map)) .toList(), imagePermissions: json['ImagePermissions'] != null @@ -7777,7 +7777,7 @@ class ImageBuilder { return ImageBuilder( name: json['Name'] as String, accessEndpoints: (json['AccessEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessEndpoint.fromJson(e as Map)) .toList(), appstreamAgentVersion: json['AppstreamAgentVersion'] as String?, @@ -7793,7 +7793,7 @@ class ImageBuilder { iamRoleArn: json['IamRoleArn'] as String?, imageArn: json['ImageArn'] as String?, imageBuilderErrors: (json['ImageBuilderErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceError.fromJson(e as Map)) .toList(), instanceType: json['InstanceType'] as String?, @@ -8073,10 +8073,8 @@ class ListAssociatedFleetsResult { factory ListAssociatedFleetsResult.fromJson(Map json) { return ListAssociatedFleetsResult( - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -8106,10 +8104,8 @@ class ListAssociatedStacksResult { factory ListAssociatedStacksResult.fromJson(Map json) { return ListAssociatedStacksResult( - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -8140,7 +8136,7 @@ class ListEntitledApplicationsResult { factory ListEntitledApplicationsResult.fromJson(Map json) { return ListEntitledApplicationsResult( entitledApplications: (json['EntitledApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitledApplication.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8710,7 +8706,7 @@ class Stack { return Stack( name: json['Name'] as String, accessEndpoints: (json['AccessEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessEndpoint.fromJson(e as Map)) .toList(), applicationSettings: json['ApplicationSettings'] != null @@ -8722,17 +8718,17 @@ class Stack { description: json['Description'] as String?, displayName: json['DisplayName'] as String?, embedHostDomains: (json['EmbedHostDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), feedbackURL: json['FeedbackURL'] as String?, redirectURL: json['RedirectURL'] as String?, stackErrors: (json['StackErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StackError.fromJson(e as Map)) .toList(), storageConnectors: (json['StorageConnectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageConnector.fromJson(e as Map)) .toList(), streamingExperienceSettings: json['StreamingExperienceSettings'] != null @@ -8740,7 +8736,7 @@ class Stack { json['StreamingExperienceSettings'] as Map) : null, userSettings: (json['UserSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserSetting.fromJson(e as Map)) .toList(), ); @@ -8993,10 +8989,8 @@ class StorageConnector { return StorageConnector( connectorType: StorageConnectorType.fromString((json['ConnectorType'] as String)), - domains: (json['Domains'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + domains: + (json['Domains'] as List?)?.nonNulls.map((e) => e as String).toList(), resourceIdentifier: json['ResourceIdentifier'] as String?, ); } @@ -9318,7 +9312,7 @@ class UsageReportSubscription { schedule: (json['Schedule'] as String?)?.let(UsageReportSchedule.fromString), subscriptionErrors: (json['SubscriptionErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LastReportGenerationExecutionError.fromJson( e as Map)) .toList(), @@ -9634,11 +9628,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/app_sync/v2017_07_25.dart b/aws_client/lib/src/generated/app_sync/v2017_07_25.dart index cabd44958..aa19c2c1a 100644 --- a/aws_client/lib/src/generated/app_sync/v2017_07_25.dart +++ b/aws_client/lib/src/generated/app_sync/v2017_07_25.dart @@ -3886,7 +3886,7 @@ class CachingConfig { return CachingConfig( ttl: json['ttl'] as int, cachingKeys: (json['cachingKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4459,12 +4459,12 @@ class DataSourceIntrospectionModel { factory DataSourceIntrospectionModel.fromJson(Map json) { return DataSourceIntrospectionModel( fields: (json['fields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceIntrospectionModelField.fromJson( e as Map)) .toList(), indexes: (json['indexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceIntrospectionModelIndex.fromJson( e as Map)) .toList(), @@ -4592,10 +4592,8 @@ class DataSourceIntrospectionModelFieldType { ? DataSourceIntrospectionModelFieldType.fromJson( json['type'] as Map) : null, - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4629,10 +4627,8 @@ class DataSourceIntrospectionModelIndex { factory DataSourceIntrospectionModelIndex.fromJson( Map json) { return DataSourceIntrospectionModelIndex( - fields: (json['fields'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + fields: + (json['fields'] as List?)?.nonNulls.map((e) => e as String).toList(), name: json['name'] as String?, ); } @@ -4667,7 +4663,7 @@ class DataSourceIntrospectionResult { factory DataSourceIntrospectionResult.fromJson(Map json) { return DataSourceIntrospectionResult( models: (json['models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceIntrospectionModel.fromJson(e as Map)) .toList(), @@ -5359,7 +5355,7 @@ class EvaluateCodeErrorDetail { factory EvaluateCodeErrorDetail.fromJson(Map json) { return EvaluateCodeErrorDetail( codeErrors: (json['codeErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeError.fromJson(e as Map)) .toList(), message: json['message'] as String?, @@ -5400,10 +5396,7 @@ class EvaluateCodeResponse { json['error'] as Map) : null, evaluationResult: json['evaluationResult'] as String?, - logs: (json['logs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + logs: (json['logs'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -5442,10 +5435,7 @@ class EvaluateMappingTemplateResponse { ? ErrorDetail.fromJson(json['error'] as Map) : null, evaluationResult: json['evaluationResult'] as String?, - logs: (json['logs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + logs: (json['logs'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6160,7 +6150,7 @@ class GraphqlApi { return GraphqlApi( additionalAuthenticationProviders: (json['additionalAuthenticationProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalAuthenticationProvider.fromJson( e as Map)) .toList(), @@ -6432,7 +6422,7 @@ class ListApiKeysResponse { factory ListApiKeysResponse.fromJson(Map json) { return ListApiKeysResponse( apiKeys: (json['apiKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiKey.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6465,7 +6455,7 @@ class ListDataSourcesResponse { factory ListDataSourcesResponse.fromJson(Map json) { return ListDataSourcesResponse( dataSources: (json['dataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6498,7 +6488,7 @@ class ListDomainNamesResponse { factory ListDomainNamesResponse.fromJson(Map json) { return ListDomainNamesResponse( domainNameConfigs: (json['domainNameConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainNameConfig.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6531,7 +6521,7 @@ class ListFunctionsResponse { factory ListFunctionsResponse.fromJson(Map json) { return ListFunctionsResponse( functions: (json['functions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionConfiguration.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6564,7 +6554,7 @@ class ListGraphqlApisResponse { factory ListGraphqlApisResponse.fromJson(Map json) { return ListGraphqlApisResponse( graphqlApis: (json['graphqlApis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GraphqlApi.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6597,7 +6587,7 @@ class ListResolversByFunctionResponse { return ListResolversByFunctionResponse( nextToken: json['nextToken'] as String?, resolvers: (json['resolvers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resolver.fromJson(e as Map)) .toList(), ); @@ -6630,7 +6620,7 @@ class ListResolversResponse { return ListResolversResponse( nextToken: json['nextToken'] as String?, resolvers: (json['resolvers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resolver.fromJson(e as Map)) .toList(), ); @@ -6665,7 +6655,7 @@ class ListSourceApiAssociationsResponse { nextToken: json['nextToken'] as String?, sourceApiAssociationSummaries: (json['sourceApiAssociationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceApiAssociationSummary.fromJson(e as Map)) .toList(), @@ -6723,7 +6713,7 @@ class ListTypesByAssociationResponse { return ListTypesByAssociationResponse( nextToken: json['nextToken'] as String?, types: (json['types'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Type.fromJson(e as Map)) .toList(), ); @@ -6756,7 +6746,7 @@ class ListTypesResponse { return ListTypesResponse( nextToken: json['nextToken'] as String?, types: (json['types'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Type.fromJson(e as Map)) .toList(), ); @@ -6994,7 +6984,7 @@ class PipelineConfig { factory PipelineConfig.fromJson(Map json) { return PipelineConfig( functions: (json['functions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/appflow/v2020_08_23.dart b/aws_client/lib/src/generated/appflow/v2020_08_23.dart index 33434f5f1..822c3462d 100644 --- a/aws_client/lib/src/generated/appflow/v2020_08_23.dart +++ b/aws_client/lib/src/generated/appflow/v2020_08_23.dart @@ -1532,7 +1532,7 @@ class AuthParameter { factory AuthParameter.fromJson(Map json) { return AuthParameter( connectorSuppliedValues: (json['connectorSuppliedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -1595,7 +1595,7 @@ class AuthenticationConfig { factory AuthenticationConfig.fromJson(Map json) { return AuthenticationConfig( customAuthConfigs: (json['customAuthConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomAuthConfig.fromJson(e as Map)) .toList(), isApiKeyAuthSupported: json['isApiKeyAuthSupported'] as bool?, @@ -1683,7 +1683,7 @@ class CancelFlowExecutionsResponse { factory CancelFlowExecutionsResponse.fromJson(Map json) { return CancelFlowExecutionsResponse( invalidExecutions: (json['invalidExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1866,7 +1866,7 @@ class ConnectorConfiguration { json['connectorMetadata'] as Map) : null, connectorModes: (json['connectorModes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), connectorName: json['connectorName'] as String?, @@ -1878,7 +1878,7 @@ class ConnectorConfiguration { connectorProvisioningType: (json['connectorProvisioningType'] as String?) ?.let(ConnectorProvisioningType.fromString), connectorRuntimeSettings: (json['connectorRuntimeSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectorRuntimeSetting.fromJson(e as Map)) .toList(), @@ -1892,37 +1892,37 @@ class ConnectorConfiguration { registeredAt: timeStampFromJson(json['registeredAt']), registeredBy: json['registeredBy'] as String?, supportedApiVersions: (json['supportedApiVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedDataTransferApis: (json['supportedDataTransferApis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataTransferApi.fromJson(e as Map)) .toList(), supportedDataTransferTypes: (json['supportedDataTransferTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedDataTransferType.fromString((e as String))) .toList(), supportedDestinationConnectors: (json['supportedDestinationConnectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectorType.fromString((e as String))) .toList(), supportedOperators: (json['supportedOperators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operators.fromString((e as String))) .toList(), supportedSchedulingFrequencies: (json['supportedSchedulingFrequencies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduleFrequencyType.fromString((e as String))) .toList(), supportedTriggerTypes: (json['supportedTriggerTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TriggerType.fromString((e as String))) .toList(), supportedWriteOperations: (json['supportedWriteOperations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WriteOperationType.fromString((e as String))) .toList(), ); @@ -2077,7 +2077,7 @@ class ConnectorDetail { connectorDescription: json['connectorDescription'] as String?, connectorLabel: json['connectorLabel'] as String?, connectorModes: (json['connectorModes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), connectorName: json['connectorName'] as String?, @@ -2090,7 +2090,7 @@ class ConnectorDetail { registeredAt: timeStampFromJson(json['registeredAt']), registeredBy: json['registeredBy'] as String?, supportedDataTransferTypes: (json['supportedDataTransferTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedDataTransferType.fromString((e as String))) .toList(), ); @@ -3230,7 +3230,7 @@ class ConnectorRuntimeSetting { return ConnectorRuntimeSetting( connectorSuppliedValueOptions: (json['connectorSuppliedValueOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dataType: json['dataType'] as String?, @@ -3368,7 +3368,7 @@ class CustomAuthConfig { factory CustomAuthConfig.fromJson(Map json) { return CustomAuthConfig( authParameters: (json['authParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthParameter.fromJson(e as Map)) .toList(), customAuthenticationType: json['customAuthenticationType'] as String?, @@ -3450,7 +3450,7 @@ class CustomConnectorDestinationProperties { json['errorHandlingConfig'] as Map) : null, idFieldNames: (json['idFieldNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), writeOperationType: (json['writeOperationType'] as String?) @@ -3867,7 +3867,7 @@ class DescribeConnectorEntityResponse { factory DescribeConnectorEntityResponse.fromJson(Map json) { return DescribeConnectorEntityResponse( connectorEntityFields: (json['connectorEntityFields'] as List) - .whereNotNull() + .nonNulls .map((e) => ConnectorEntityField.fromJson(e as Map)) .toList(), ); @@ -3898,7 +3898,7 @@ class DescribeConnectorProfilesResponse { Map json) { return DescribeConnectorProfilesResponse( connectorProfileDetails: (json['connectorProfileDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectorProfile.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3965,7 +3965,7 @@ class DescribeConnectorsResponse { (k, e) => MapEntry(ConnectorType.fromString(k), ConnectorConfiguration.fromJson(e as Map))), connectors: (json['connectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectorDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4002,7 +4002,7 @@ class DescribeFlowExecutionRecordsResponse { Map json) { return DescribeFlowExecutionRecordsResponse( flowExecutions: (json['flowExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExecutionRecord.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4131,7 +4131,7 @@ class DescribeFlowResponse { createdBy: json['createdBy'] as String?, description: json['description'] as String?, destinationFlowConfigList: (json['destinationFlowConfigList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DestinationFlowConfig.fromJson(e as Map)) .toList(), flowArn: json['flowArn'] as String?, @@ -4145,7 +4145,7 @@ class DescribeFlowResponse { : null, lastRunMetadataCatalogDetails: (json['lastRunMetadataCatalogDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetadataCatalogDetail.fromJson(e as Map)) .toList(), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), @@ -4162,7 +4162,7 @@ class DescribeFlowResponse { tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Task.fromJson(e as Map)) .toList(), triggerConfig: json['triggerConfig'] != null @@ -4410,7 +4410,7 @@ class DestinationFieldProperties { isUpdatable: json['isUpdatable'] as bool?, isUpsertable: json['isUpsertable'] as bool?, supportedWriteOperations: (json['supportedWriteOperations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WriteOperationType.fromString((e as String))) .toList(), ); @@ -4810,7 +4810,7 @@ class ExecutionRecord { (json['executionStatus'] as String?)?.let(ExecutionStatus.fromString), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), metadataCatalogDetails: (json['metadataCatalogDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetadataCatalogDetail.fromJson(e as Map)) .toList(), startedAt: timeStampFromJson(json['startedAt']), @@ -4963,7 +4963,7 @@ class FieldTypeDetails { return FieldTypeDetails( fieldType: json['fieldType'] as String, filterOperators: (json['filterOperators'] as List) - .whereNotNull() + .nonNulls .map((e) => Operator.fromString((e as String))) .toList(), fieldLengthRange: json['fieldLengthRange'] != null @@ -4974,7 +4974,7 @@ class FieldTypeDetails { : null, supportedDateFormat: json['supportedDateFormat'] as String?, supportedValues: (json['supportedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), valueRegexPattern: json['valueRegexPattern'] as String?, @@ -5318,7 +5318,7 @@ class GoogleAnalyticsMetadata { factory GoogleAnalyticsMetadata.fromJson(Map json) { return GoogleAnalyticsMetadata( oAuthScopes: (json['oAuthScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5441,7 +5441,7 @@ class HoneycodeMetadata { factory HoneycodeMetadata.fromJson(Map json) { return HoneycodeMetadata( oAuthScopes: (json['oAuthScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5652,7 +5652,7 @@ class ListConnectorEntitiesResponse { .map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ConnectorEntity.fromJson(e as Map)) .toList())), @@ -5686,7 +5686,7 @@ class ListConnectorsResponse { factory ListConnectorsResponse.fromJson(Map json) { return ListConnectorsResponse( connectors: (json['connectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectorDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5718,7 +5718,7 @@ class ListFlowsResponse { factory ListFlowsResponse.fromJson(Map json) { return ListFlowsResponse( flows: (json['flows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlowDefinition.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6105,7 +6105,7 @@ class OAuth2CustomParameter { factory OAuth2CustomParameter.fromJson(Map json) { return OAuth2CustomParameter( connectorSuppliedValues: (json['connectorSuppliedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -6181,23 +6181,23 @@ class OAuth2Defaults { factory OAuth2Defaults.fromJson(Map json) { return OAuth2Defaults( authCodeUrls: (json['authCodeUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), oauth2CustomProperties: (json['oauth2CustomProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OAuth2CustomParameter.fromJson(e as Map)) .toList(), oauth2GrantTypesSupported: (json['oauth2GrantTypesSupported'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OAuth2GrantType.fromString((e as String))) .toList(), oauthScopes: (json['oauthScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tokenUrls: (json['tokenUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6347,7 +6347,7 @@ class OAuthProperties { return OAuthProperties( authCodeUrl: json['authCodeUrl'] as String, oAuthScopes: (json['oAuthScopes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), tokenUrl: json['tokenUrl'] as String, @@ -6658,7 +6658,7 @@ class PrefixConfig { factory PrefixConfig.fromJson(Map json) { return PrefixConfig( pathPrefixHierarchy: (json['pathPrefixHierarchy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PathPrefix.fromString((e as String))) .toList(), prefixFormat: @@ -7494,7 +7494,7 @@ class SAPODataDestinationProperties { json['errorHandlingConfig'] as Map) : null, idFieldNames: (json['idFieldNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), successResponseHandlingConfig: @@ -7929,7 +7929,7 @@ class SalesforceDestinationProperties { json['errorHandlingConfig'] as Map) : null, idFieldNames: (json['idFieldNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), writeOperationType: (json['writeOperationType'] as String?) @@ -7995,15 +7995,15 @@ class SalesforceMetadata { factory SalesforceMetadata.fromJson(Map json) { return SalesforceMetadata( dataTransferApis: (json['dataTransferApis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SalesforceDataTransferApi.fromString((e as String))) .toList(), oAuthScopes: (json['oAuthScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), oauth2GrantTypesSupported: (json['oauth2GrantTypesSupported'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OAuth2GrantType.fromString((e as String))) .toList(), ); @@ -8544,7 +8544,7 @@ class SlackMetadata { factory SlackMetadata.fromJson(Map json) { return SlackMetadata( oAuthScopes: (json['oAuthScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8743,7 +8743,7 @@ class SnowflakeMetadata { factory SnowflakeMetadata.fromJson(Map json) { return SnowflakeMetadata( supportedRegions: (json['supportedRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9227,7 +9227,7 @@ class Task { factory Task.fromJson(Map json) { return Task( sourceFields: (json['sourceFields'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), taskType: TaskType.fromString((json['taskType'] as String)), @@ -9917,7 +9917,7 @@ class ZendeskDestinationProperties { json['errorHandlingConfig'] as Map) : null, idFieldNames: (json['idFieldNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), writeOperationType: (json['writeOperationType'] as String?) @@ -9953,7 +9953,7 @@ class ZendeskMetadata { factory ZendeskMetadata.fromJson(Map json) { return ZendeskMetadata( oAuthScopes: (json['oAuthScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/application_auto_scaling/v2016_02_06.dart b/aws_client/lib/src/generated/application_auto_scaling/v2016_02_06.dart index 581187f6d..cf9ef6515 100644 --- a/aws_client/lib/src/generated/application_auto_scaling/v2016_02_06.dart +++ b/aws_client/lib/src/generated/application_auto_scaling/v2016_02_06.dart @@ -3277,12 +3277,12 @@ class CustomizedMetricSpecification { factory CustomizedMetricSpecification.fromJson(Map json) { return CustomizedMetricSpecification( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDimension.fromJson(e as Map)) .toList(), metricName: json['MetricName'] as String?, metrics: (json['Metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetTrackingMetricDataQuery.fromJson(e as Map)) .toList(), @@ -3364,7 +3364,7 @@ class DescribeScalableTargetsResponse { return DescribeScalableTargetsResponse( nextToken: json['NextToken'] as String?, scalableTargets: (json['ScalableTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalableTarget.fromJson(e as Map)) .toList(), ); @@ -3398,7 +3398,7 @@ class DescribeScalingActivitiesResponse { return DescribeScalingActivitiesResponse( nextToken: json['NextToken'] as String?, scalingActivities: (json['ScalingActivities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingActivity.fromJson(e as Map)) .toList(), ); @@ -3431,7 +3431,7 @@ class DescribeScalingPoliciesResponse { return DescribeScalingPoliciesResponse( nextToken: json['NextToken'] as String?, scalingPolicies: (json['ScalingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingPolicy.fromJson(e as Map)) .toList(), ); @@ -3464,7 +3464,7 @@ class DescribeScheduledActionsResponse { return DescribeScheduledActionsResponse( nextToken: json['NextToken'] as String?, scheduledActions: (json['ScheduledActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduledAction.fromJson(e as Map)) .toList(), ); @@ -3779,7 +3779,7 @@ class PutScalingPolicyResponse { return PutScalingPolicyResponse( policyARN: json['PolicyARN'] as String, alarms: (json['Alarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alarm.fromJson(e as Map)) .toList(), ); @@ -4458,7 +4458,7 @@ class ScalingActivity { details: json['Details'] as String?, endTime: timeStampFromJson(json['EndTime']), notScaledReasons: (json['NotScaledReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotScaledReason.fromJson(e as Map)) .toList(), statusMessage: json['StatusMessage'] as String?, @@ -4777,7 +4777,7 @@ class ScalingPolicy { serviceNamespace: ServiceNamespace.fromString((json['ServiceNamespace'] as String)), alarms: (json['Alarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alarm.fromJson(e as Map)) .toList(), stepScalingPolicyConfiguration: json['StepScalingPolicyConfiguration'] != @@ -5335,7 +5335,7 @@ class StepScalingPolicyConfiguration { ?.let(MetricAggregationType.fromString), minAdjustmentMagnitude: json['MinAdjustmentMagnitude'] as int?, stepAdjustments: (json['StepAdjustments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StepAdjustment.fromJson(e as Map)) .toList(), ); @@ -5452,7 +5452,7 @@ class TargetTrackingMetric { factory TargetTrackingMetric.fromJson(Map json) { return TargetTrackingMetric( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetTrackingMetricDimension.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/application_cost_profiler/v2020_09_10.dart b/aws_client/lib/src/generated/application_cost_profiler/v2020_09_10.dart index e59d6aa9c..b736dabbe 100644 --- a/aws_client/lib/src/generated/application_cost_profiler/v2020_09_10.dart +++ b/aws_client/lib/src/generated/application_cost_profiler/v2020_09_10.dart @@ -404,7 +404,7 @@ class ListReportDefinitionsResult { return ListReportDefinitionsResult( nextToken: json['nextToken'] as String?, reportDefinitions: (json['reportDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportDefinition.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/application_discovery_service/v2015_11_01.dart b/aws_client/lib/src/generated/application_discovery_service/v2015_11_01.dart index f9ba2a5c5..91ce2ce97 100644 --- a/aws_client/lib/src/generated/application_discovery_service/v2015_11_01.dart +++ b/aws_client/lib/src/generated/application_discovery_service/v2015_11_01.dart @@ -1473,7 +1473,7 @@ class AgentInfo { return AgentInfo( agentId: json['agentId'] as String?, agentNetworkInfoList: (json['agentNetworkInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentNetworkInfo.fromJson(e as Map)) .toList(), agentType: json['agentType'] as String?, @@ -1626,7 +1626,7 @@ class BatchDeleteAgentsResponse { factory BatchDeleteAgentsResponse.fromJson(Map json) { return BatchDeleteAgentsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchDeleteAgentError.fromJson(e as Map)) .toList(), ); @@ -1692,20 +1692,20 @@ class BatchDeleteConfigurationTask { configurationType: (json['configurationType'] as String?) ?.let(DeletionConfigurationItemType.fromString), deletedConfigurations: (json['deletedConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deletionWarnings: (json['deletionWarnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeletionWarning.fromJson(e as Map)) .toList(), endTime: timeStampFromJson(json['endTime']), failedConfigurations: (json['failedConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedConfiguration.fromJson(e as Map)) .toList(), requestedConfigurations: (json['requestedConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), startTime: timeStampFromJson(json['startTime']), @@ -1828,7 +1828,7 @@ class BatchDeleteImportDataResponse { factory BatchDeleteImportDataResponse.fromJson(Map json) { return BatchDeleteImportDataResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchDeleteImportDataError.fromJson(e as Map)) .toList(), @@ -2595,7 +2595,7 @@ class DescribeAgentsResponse { factory DescribeAgentsResponse.fromJson(Map json) { return DescribeAgentsResponse( agentsInfo: (json['agentsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2650,7 +2650,7 @@ class DescribeConfigurationsResponse { factory DescribeConfigurationsResponse.fromJson(Map json) { return DescribeConfigurationsResponse( configurations: (json['configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -2681,7 +2681,7 @@ class DescribeContinuousExportsResponse { Map json) { return DescribeContinuousExportsResponse( descriptions: (json['descriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContinuousExportDescription.fromJson(e as Map)) .toList(), @@ -2715,7 +2715,7 @@ class DescribeExportConfigurationsResponse { Map json) { return DescribeExportConfigurationsResponse( exportsInfo: (json['exportsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2753,7 +2753,7 @@ class DescribeExportTasksResponse { factory DescribeExportTasksResponse.fromJson(Map json) { return DescribeExportTasksResponse( exportsInfo: (json['exportsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2787,7 +2787,7 @@ class DescribeImportTasksResponse { return DescribeImportTasksResponse( nextToken: json['nextToken'] as String?, tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportTask.fromJson(e as Map)) .toList(), ); @@ -2820,7 +2820,7 @@ class DescribeTagsResponse { return DescribeTagsResponse( nextToken: json['nextToken'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationTag.fromJson(e as Map)) .toList(), ); @@ -3517,7 +3517,7 @@ class ListConfigurationsResponse { factory ListConfigurationsResponse.fromJson(Map json) { return ListConfigurationsResponse( configurations: (json['configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -3558,7 +3558,7 @@ class ListServerNeighborsResponse { factory ListServerNeighborsResponse.fromJson(Map json) { return ListServerNeighborsResponse( neighbors: (json['neighbors'] as List) - .whereNotNull() + .nonNulls .map((e) => NeighborConnectionDetail.fromJson(e as Map)) .toList(), @@ -3813,7 +3813,7 @@ class StartDataCollectionByAgentIdsResponse { Map json) { return StartDataCollectionByAgentIdsResponse( agentsConfigurationStatus: (json['agentsConfigurationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentConfigurationStatus.fromJson(e as Map)) .toList(), @@ -3921,7 +3921,7 @@ class StopDataCollectionByAgentIdsResponse { Map json) { return StopDataCollectionByAgentIdsResponse( agentsConfigurationStatus: (json['agentsConfigurationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentConfigurationStatus.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/application_insights/v2018_11_25.dart b/aws_client/lib/src/generated/application_insights/v2018_11_25.dart index be0c9f1dd..c1af1636f 100644 --- a/aws_client/lib/src/generated/application_insights/v2018_11_25.dart +++ b/aws_client/lib/src/generated/application_insights/v2018_11_25.dart @@ -2212,7 +2212,7 @@ class DescribeComponentResponse { json['ApplicationComponent'] as Map) : null, resourceList: (json['ResourceList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2458,7 +2458,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applicationInfoList: (json['ApplicationInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2491,7 +2491,7 @@ class ListComponentsResponse { factory ListComponentsResponse.fromJson(Map json) { return ListComponentsResponse( applicationComponentList: (json['ApplicationComponentList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationComponent.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2529,7 +2529,7 @@ class ListConfigurationHistoryResponse { factory ListConfigurationHistoryResponse.fromJson(Map json) { return ListConfigurationHistoryResponse( eventList: (json['EventList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationEvent.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2571,7 +2571,7 @@ class ListLogPatternSetsResponse { return ListLogPatternSetsResponse( accountId: json['AccountId'] as String?, logPatternSets: (json['LogPatternSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -2618,7 +2618,7 @@ class ListLogPatternsResponse { return ListLogPatternsResponse( accountId: json['AccountId'] as String?, logPatterns: (json['LogPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogPattern.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2666,7 +2666,7 @@ class ListProblemsResponse { accountId: json['AccountId'] as String?, nextToken: json['NextToken'] as String?, problemList: (json['ProblemList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Problem.fromJson(e as Map)) .toList(), resourceGroupName: json['ResourceGroupName'] as String?, @@ -2700,7 +2700,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2730,7 +2730,7 @@ class ListWorkloadsResponse { return ListWorkloadsResponse( nextToken: json['NextToken'] as String?, workloadList: (json['WorkloadList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Workload.fromJson(e as Map)) .toList(), ); @@ -3352,7 +3352,7 @@ class RelatedObservations { factory RelatedObservations.fromJson(Map json) { return RelatedObservations( observationList: (json['ObservationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Observation.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/arc_zonal_shift/v2022_10_30.dart b/aws_client/lib/src/generated/arc_zonal_shift/v2022_10_30.dart index 6882dbb6e..e9f53c9af 100644 --- a/aws_client/lib/src/generated/arc_zonal_shift/v2022_10_30.dart +++ b/aws_client/lib/src/generated/arc_zonal_shift/v2022_10_30.dart @@ -1075,12 +1075,12 @@ class GetManagedResourceResponse { appliedWeights: (json['appliedWeights'] as Map) .map((k, e) => MapEntry(k, e as double)), zonalShifts: (json['zonalShifts'] as List) - .whereNotNull() + .nonNulls .map((e) => ZonalShiftInResource.fromJson(e as Map)) .toList(), arn: json['arn'] as String?, autoshifts: (json['autoshifts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoshiftInResource.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -1134,7 +1134,7 @@ class ListAutoshiftsResponse { factory ListAutoshiftsResponse.fromJson(Map json) { return ListAutoshiftsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoshiftSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1170,7 +1170,7 @@ class ListManagedResourcesResponse { factory ListManagedResourcesResponse.fromJson(Map json) { return ListManagedResourcesResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map( (e) => ManagedResourceSummary.fromJson(e as Map)) .toList(), @@ -1207,7 +1207,7 @@ class ListZonalShiftsResponse { factory ListZonalShiftsResponse.fromJson(Map json) { return ListZonalShiftsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ZonalShiftSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1287,14 +1287,14 @@ class ManagedResourceSummary { factory ManagedResourceSummary.fromJson(Map json) { return ManagedResourceSummary( availabilityZones: (json['availabilityZones'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), appliedWeights: (json['appliedWeights'] as Map?) ?.map((k, e) => MapEntry(k, e as double)), arn: json['arn'] as String?, autoshifts: (json['autoshifts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoshiftInResource.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -1303,7 +1303,7 @@ class ManagedResourceSummary { zonalAutoshiftStatus: (json['zonalAutoshiftStatus'] as String?) ?.let(ZonalAutoshiftStatus.fromString), zonalShifts: (json['zonalShifts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ZonalShiftInResource.fromJson(e as Map)) .toList(), ); @@ -1376,19 +1376,19 @@ class PracticeRunConfiguration { factory PracticeRunConfiguration.fromJson(Map json) { return PracticeRunConfiguration( outcomeAlarms: (json['outcomeAlarms'] as List) - .whereNotNull() + .nonNulls .map((e) => ControlCondition.fromJson(e as Map)) .toList(), blockedDates: (json['blockedDates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), blockedWindows: (json['blockedWindows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), blockingAlarms: (json['blockingAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ControlCondition.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/artifact/v2018_05_10.dart b/aws_client/lib/src/generated/artifact/v2018_05_10.dart index 929c4c2e5..ed128dbf7 100644 --- a/aws_client/lib/src/generated/artifact/v2018_05_10.dart +++ b/aws_client/lib/src/generated/artifact/v2018_05_10.dart @@ -415,7 +415,7 @@ class ListReportsResponse { return ListReportsResponse( nextToken: json['nextToken'] as String?, reports: (json['reports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportSummary.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/athena/v2017_05_18.dart b/aws_client/lib/src/generated/athena/v2017_05_18.dart index 34de5edc7..c7891f55d 100644 --- a/aws_client/lib/src/generated/athena/v2017_05_18.dart +++ b/aws_client/lib/src/generated/athena/v2017_05_18.dart @@ -3167,7 +3167,7 @@ class ApplicationDPUSizes { return ApplicationDPUSizes( applicationRuntimeId: json['ApplicationRuntimeId'] as String?, supportedDPUSizes: (json['SupportedDPUSizes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -3272,11 +3272,11 @@ class BatchGetNamedQueryOutput { factory BatchGetNamedQueryOutput.fromJson(Map json) { return BatchGetNamedQueryOutput( namedQueries: (json['NamedQueries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NamedQuery.fromJson(e as Map)) .toList(), unprocessedNamedQueryIds: (json['UnprocessedNamedQueryIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedNamedQueryId.fromJson(e as Map)) .toList(), @@ -3311,12 +3311,12 @@ class BatchGetPreparedStatementOutput { factory BatchGetPreparedStatementOutput.fromJson(Map json) { return BatchGetPreparedStatementOutput( preparedStatements: (json['PreparedStatements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PreparedStatement.fromJson(e as Map)) .toList(), unprocessedPreparedStatementNames: (json['UnprocessedPreparedStatementNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedPreparedStatementName.fromJson( e as Map)) .toList(), @@ -3350,12 +3350,12 @@ class BatchGetQueryExecutionOutput { factory BatchGetQueryExecutionOutput.fromJson(Map json) { return BatchGetQueryExecutionOutput( queryExecutions: (json['QueryExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryExecution.fromJson(e as Map)) .toList(), unprocessedQueryExecutionIds: (json['UnprocessedQueryExecutionIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedQueryExecutionId.fromJson(e as Map)) .toList(), @@ -3679,7 +3679,7 @@ class CapacityAssignment { factory CapacityAssignment.fromJson(Map json) { return CapacityAssignment( workGroupNames: (json['WorkGroupNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3715,7 +3715,7 @@ class CapacityAssignmentConfiguration { factory CapacityAssignmentConfiguration.fromJson(Map json) { return CapacityAssignmentConfiguration( capacityAssignments: (json['CapacityAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityAssignment.fromJson(e as Map)) .toList(), capacityReservationName: json['CapacityReservationName'] as String?, @@ -5374,7 +5374,7 @@ class ListApplicationDPUSizesOutput { factory ListApplicationDPUSizesOutput.fromJson(Map json) { return ListApplicationDPUSizesOutput( applicationDPUSizes: (json['ApplicationDPUSizes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationDPUSizes.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5411,7 +5411,7 @@ class ListCalculationExecutionsResponse { Map json) { return ListCalculationExecutionsResponse( calculations: (json['Calculations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CalculationSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5446,7 +5446,7 @@ class ListCapacityReservationsOutput { factory ListCapacityReservationsOutput.fromJson(Map json) { return ListCapacityReservationsOutput( capacityReservations: (json['CapacityReservations'] as List) - .whereNotNull() + .nonNulls .map((e) => CapacityReservation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5481,7 +5481,7 @@ class ListDataCatalogsOutput { factory ListDataCatalogsOutput.fromJson(Map json) { return ListDataCatalogsOutput( dataCatalogsSummary: (json['DataCatalogsSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataCatalogSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5517,7 +5517,7 @@ class ListDatabasesOutput { factory ListDatabasesOutput.fromJson(Map json) { return ListDatabasesOutput( databaseList: (json['DatabaseList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Database.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5552,7 +5552,7 @@ class ListEngineVersionsOutput { factory ListEngineVersionsOutput.fromJson(Map json) { return ListEngineVersionsOutput( engineVersions: (json['EngineVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngineVersion.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5592,7 +5592,7 @@ class ListExecutorsResponse { return ListExecutorsResponse( sessionId: json['SessionId'] as String, executorsSummary: (json['ExecutorsSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExecutorsSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5629,7 +5629,7 @@ class ListNamedQueriesOutput { factory ListNamedQueriesOutput.fromJson(Map json) { return ListNamedQueriesOutput( namedQueryIds: (json['NamedQueryIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -5665,7 +5665,7 @@ class ListNotebookMetadataOutput { return ListNotebookMetadataOutput( nextToken: json['NextToken'] as String?, notebookMetadataList: (json['NotebookMetadataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookMetadata.fromJson(e as Map)) .toList(), ); @@ -5700,7 +5700,7 @@ class ListNotebookSessionsResponse { factory ListNotebookSessionsResponse.fromJson(Map json) { return ListNotebookSessionsResponse( notebookSessionsList: (json['NotebookSessionsList'] as List) - .whereNotNull() + .nonNulls .map( (e) => NotebookSessionSummary.fromJson(e as Map)) .toList(), @@ -5737,7 +5737,7 @@ class ListPreparedStatementsOutput { return ListPreparedStatementsOutput( nextToken: json['NextToken'] as String?, preparedStatements: (json['PreparedStatements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PreparedStatementSummary.fromJson(e as Map)) .toList(), @@ -5770,7 +5770,7 @@ class ListQueryExecutionsOutput { return ListQueryExecutionsOutput( nextToken: json['NextToken'] as String?, queryExecutionIds: (json['QueryExecutionIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5805,7 +5805,7 @@ class ListSessionsResponse { return ListSessionsResponse( nextToken: json['NextToken'] as String?, sessions: (json['Sessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SessionSummary.fromJson(e as Map)) .toList(), ); @@ -5840,7 +5840,7 @@ class ListTableMetadataOutput { return ListTableMetadataOutput( nextToken: json['NextToken'] as String?, tableMetadataList: (json['TableMetadataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableMetadata.fromJson(e as Map)) .toList(), ); @@ -5872,7 +5872,7 @@ class ListTagsForResourceOutput { return ListTagsForResourceOutput( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5908,7 +5908,7 @@ class ListWorkGroupsOutput { return ListWorkGroupsOutput( nextToken: json['NextToken'] as String?, workGroups: (json['WorkGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkGroupSummary.fromJson(e as Map)) .toList(), ); @@ -6263,7 +6263,7 @@ class QueryExecution { json['EngineVersion'] as Map) : null, executionParameters: (json['ExecutionParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), query: json['Query'] as String?, @@ -6830,7 +6830,7 @@ class QueryStage { stageId: json['StageId'] as int?, state: json['State'] as String?, subStages: (json['SubStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryStage.fromJson(e as Map)) .toList(), ); @@ -6887,13 +6887,13 @@ class QueryStagePlanNode { factory QueryStagePlanNode.fromJson(Map json) { return QueryStagePlanNode( children: (json['Children'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryStagePlanNode.fromJson(e as Map)) .toList(), identifier: json['Identifier'] as String?, name: json['Name'] as String?, remoteSources: (json['RemoteSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7238,7 +7238,7 @@ class ResultSet { json['ResultSetMetadata'] as Map) : null, rows: (json['Rows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Row.fromJson(e as Map)) .toList(), ); @@ -7268,7 +7268,7 @@ class ResultSetMetadata { factory ResultSetMetadata.fromJson(Map json) { return ResultSetMetadata( columnInfo: (json['ColumnInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnInfo.fromJson(e as Map)) .toList(), ); @@ -7294,7 +7294,7 @@ class Row { factory Row.fromJson(Map json) { return Row( data: (json['Data'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Datum.fromJson(e as Map)) .toList(), ); @@ -7778,7 +7778,7 @@ class TableMetadata { return TableMetadata( name: json['Name'] as String, columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), createTime: timeStampFromJson(json['CreateTime']), @@ -7786,7 +7786,7 @@ class TableMetadata { parameters: (json['Parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), tableType: json['TableType'] as String?, diff --git a/aws_client/lib/src/generated/audit_manager/v2017_07_25.dart b/aws_client/lib/src/generated/audit_manager/v2017_07_25.dart index 7518cd995..e74ca9c85 100644 --- a/aws_client/lib/src/generated/audit_manager/v2017_07_25.dart +++ b/aws_client/lib/src/generated/audit_manager/v2017_07_25.dart @@ -2701,13 +2701,13 @@ class AssessmentControl { assessmentReportEvidenceCount: json['assessmentReportEvidenceCount'] as int?, comments: (json['comments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ControlComment.fromJson(e as Map)) .toList(), description: json['description'] as String?, evidenceCount: json['evidenceCount'] as int?, evidenceSources: (json['evidenceSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), id: json['id'] as String?, @@ -2785,18 +2785,18 @@ class AssessmentControlSet { factory AssessmentControlSet.fromJson(Map json) { return AssessmentControlSet( controls: (json['controls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssessmentControl.fromJson(e as Map)) .toList(), delegations: (json['delegations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Delegation.fromJson(e as Map)) .toList(), description: json['description'] as String?, id: json['id'] as String?, manualEvidenceCount: json['manualEvidenceCount'] as int?, roles: (json['roles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Role.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(ControlSetStatus.fromString), @@ -3023,7 +3023,7 @@ class AssessmentFramework { return AssessmentFramework( arn: json['arn'] as String?, controlSets: (json['controlSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssessmentControlSet.fromJson(e as Map)) .toList(), id: json['id'] as String?, @@ -3331,7 +3331,7 @@ class AssessmentMetadata { complianceType: json['complianceType'] as String?, creationTime: timeStampFromJson(json['creationTime']), delegations: (json['delegations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Delegation.fromJson(e as Map)) .toList(), description: json['description'] as String?, @@ -3339,7 +3339,7 @@ class AssessmentMetadata { lastUpdated: timeStampFromJson(json['lastUpdated']), name: json['name'] as String?, roles: (json['roles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Role.fromJson(e as Map)) .toList(), scope: json['scope'] != null @@ -3422,14 +3422,14 @@ class AssessmentMetadataItem { complianceType: json['complianceType'] as String?, creationTime: timeStampFromJson(json['creationTime']), delegations: (json['delegations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Delegation.fromJson(e as Map)) .toList(), id: json['id'] as String?, lastUpdated: timeStampFromJson(json['lastUpdated']), name: json['name'] as String?, roles: (json['roles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Role.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(AssessmentStatus.fromString), @@ -3764,12 +3764,12 @@ class BatchAssociateAssessmentReportEvidenceResponse { Map json) { return BatchAssociateAssessmentReportEvidenceResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssessmentReportEvidenceError.fromJson(e as Map)) .toList(), evidenceIds: (json['evidenceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3847,11 +3847,11 @@ class BatchCreateDelegationByAssessmentResponse { Map json) { return BatchCreateDelegationByAssessmentResponse( delegations: (json['delegations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Delegation.fromJson(e as Map)) .toList(), errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchCreateDelegationByAssessmentError.fromJson( e as Map)) .toList(), @@ -3922,7 +3922,7 @@ class BatchDeleteDelegationByAssessmentResponse { Map json) { return BatchDeleteDelegationByAssessmentResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchDeleteDelegationByAssessmentError.fromJson( e as Map)) .toList(), @@ -3954,12 +3954,12 @@ class BatchDisassociateAssessmentReportEvidenceResponse { Map json) { return BatchDisassociateAssessmentReportEvidenceResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssessmentReportEvidenceError.fromJson(e as Map)) .toList(), evidenceIds: (json['evidenceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4033,7 +4033,7 @@ class BatchImportEvidenceToAssessmentControlResponse { Map json) { return BatchImportEvidenceToAssessmentControlResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchImportEvidenceToAssessmentControlError.fromJson( e as Map)) .toList(), @@ -4175,7 +4175,7 @@ class Control { actionPlanTitle: json['actionPlanTitle'] as String?, arn: json['arn'] as String?, controlMappingSources: (json['controlMappingSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ControlMappingSource.fromJson(e as Map)) .toList(), controlSources: json['controlSources'] as String?, @@ -4629,7 +4629,7 @@ class ControlSet { factory ControlSet.fromJson(Map json) { return ControlSet( controls: (json['controls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Control.fromJson(e as Map)) .toList(), id: json['id'] as String?, @@ -5458,7 +5458,7 @@ class Evidence { iamId: json['iamId'] as String?, id: json['id'] as String?, resourcesIncluded: (json['resourcesIncluded'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), time: timeStampFromJson(json['time']), @@ -5769,7 +5769,7 @@ class Framework { arn: json['arn'] as String?, complianceType: json['complianceType'] as String?, controlSets: (json['controlSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ControlSet.fromJson(e as Map)) .toList(), controlSources: json['controlSources'] as String?, @@ -5996,7 +5996,7 @@ class GetChangeLogsResponse { factory GetChangeLogsResponse.fromJson(Map json) { return GetChangeLogsResponse( changeLogs: (json['changeLogs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeLog.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6052,7 +6052,7 @@ class GetDelegationsResponse { factory GetDelegationsResponse.fromJson(Map json) { return GetDelegationsResponse( delegations: (json['delegations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DelegationMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6086,7 +6086,7 @@ class GetEvidenceByEvidenceFolderResponse { Map json) { return GetEvidenceByEvidenceFolderResponse( evidence: (json['evidence'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Evidence.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6175,7 +6175,7 @@ class GetEvidenceFoldersByAssessmentControlResponse { Map json) { return GetEvidenceFoldersByAssessmentControlResponse( evidenceFolders: (json['evidenceFolders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssessmentEvidenceFolder.fromJson(e as Map)) .toList(), @@ -6210,7 +6210,7 @@ class GetEvidenceFoldersByAssessmentResponse { Map json) { return GetEvidenceFoldersByAssessmentResponse( evidenceFolders: (json['evidenceFolders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssessmentEvidenceFolder.fromJson(e as Map)) .toList(), @@ -6343,7 +6343,7 @@ class GetServicesInScopeResponse { factory GetServicesInScopeResponse.fromJson(Map json) { return GetServicesInScopeResponse( serviceMetadata: (json['serviceMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceMetadata.fromJson(e as Map)) .toList(), ); @@ -6644,7 +6644,7 @@ class ListAssessmentControlInsightsByControlDomainResponse { return ListAssessmentControlInsightsByControlDomainResponse( controlInsightsByAssessment: (json['controlInsightsByAssessment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ControlInsightsMetadataByAssessmentItem.fromJson( e as Map)) .toList(), @@ -6681,7 +6681,7 @@ class ListAssessmentFrameworkShareRequestsResponse { return ListAssessmentFrameworkShareRequestsResponse( assessmentFrameworkShareRequests: (json['assessmentFrameworkShareRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssessmentFrameworkShareRequest.fromJson( e as Map)) .toList(), @@ -6717,7 +6717,7 @@ class ListAssessmentFrameworksResponse { factory ListAssessmentFrameworksResponse.fromJson(Map json) { return ListAssessmentFrameworksResponse( frameworkMetadataList: (json['frameworkMetadataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssessmentFrameworkMetadata.fromJson(e as Map)) .toList(), @@ -6752,7 +6752,7 @@ class ListAssessmentReportsResponse { factory ListAssessmentReportsResponse.fromJson(Map json) { return ListAssessmentReportsResponse( assessmentReports: (json['assessmentReports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssessmentReportMetadata.fromJson(e as Map)) .toList(), @@ -6786,7 +6786,7 @@ class ListAssessmentsResponse { factory ListAssessmentsResponse.fromJson(Map json) { return ListAssessmentsResponse( assessmentMetadata: (json['assessmentMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AssessmentMetadataItem.fromJson(e as Map)) .toList(), @@ -6821,7 +6821,7 @@ class ListControlDomainInsightsByAssessmentResponse { Map json) { return ListControlDomainInsightsByAssessmentResponse( controlDomainInsights: (json['controlDomainInsights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ControlDomainInsights.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6856,7 +6856,7 @@ class ListControlDomainInsightsResponse { Map json) { return ListControlDomainInsightsResponse( controlDomainInsights: (json['controlDomainInsights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ControlDomainInsights.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6891,7 +6891,7 @@ class ListControlInsightsByControlDomainResponse { Map json) { return ListControlInsightsByControlDomainResponse( controlInsightsMetadata: (json['controlInsightsMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ControlInsightsMetadataItem.fromJson(e as Map)) .toList(), @@ -6926,7 +6926,7 @@ class ListControlsResponse { factory ListControlsResponse.fromJson(Map json) { return ListControlsResponse( controlMetadataList: (json['controlMetadataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ControlMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6960,7 +6960,7 @@ class ListKeywordsForDataSourceResponse { Map json) { return ListKeywordsForDataSourceResponse( keywords: (json['keywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -6993,7 +6993,7 @@ class ListNotificationsResponse { return ListNotificationsResponse( nextToken: json['nextToken'] as String?, notifications: (json['notifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Notification.fromJson(e as Map)) .toList(), ); @@ -7351,11 +7351,11 @@ class Scope { factory Scope.fromJson(Map json) { return Scope( awsAccounts: (json['awsAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AWSAccount.fromJson(e as Map)) .toList(), awsServices: (json['awsServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AWSService.fromJson(e as Map)) .toList(), ); @@ -7489,7 +7489,7 @@ class Settings { json['defaultExportDestination'] as Map) : null, defaultProcessOwners: (json['defaultProcessOwners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Role.fromJson(e as Map)) .toList(), deregistrationPolicy: json['deregistrationPolicy'] != null @@ -8205,7 +8205,7 @@ class ValidateAssessmentReportIntegrityResponse { signatureKeyId: json['signatureKeyId'] as String?, signatureValid: json['signatureValid'] as bool?, validationErrors: (json['validationErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/auto_scaling/v2011_01_01.dart b/aws_client/lib/src/generated/auto_scaling/v2011_01_01.dart index ffc972c92..f831bd03b 100644 --- a/aws_client/lib/src/generated/auto_scaling/v2011_01_01.dart +++ b/aws_client/lib/src/generated/auto_scaling/v2011_01_01.dart @@ -4958,8 +4958,9 @@ class Activity { _s.extractXmlStringValue(elem, 'AutoScalingGroupName')!, cause: _s.extractXmlStringValue(elem, 'Cause')!, startTime: _s.extractXmlDateTimeValue(elem, 'StartTime')!, - statusCode: _s.extractXmlStringValue(elem, 'StatusCode')!.let( - ScalingActivityStatusCode.fromString) /* Nullability(true, false) */, + statusCode: _s + .extractXmlStringValue(elem, 'StatusCode')! + .let(ScalingActivityStatusCode.fromString), autoScalingGroupARN: _s.extractXmlStringValue(elem, 'AutoScalingGroupARN'), autoScalingGroupState: @@ -6024,7 +6025,7 @@ class CustomizedMetricSpecification { namespace: _s.extractXmlStringValue(elem, 'Namespace'), statistic: _s .extractXmlStringValue(elem, 'Statistic') - ?.let(MetricStatistic.fromString) /* Nullability(true, true) */, + ?.let(MetricStatistic.fromString), unit: _s.extractXmlStringValue(elem, 'Unit'), ); } @@ -7185,7 +7186,7 @@ class Instance { instanceId: _s.extractXmlStringValue(elem, 'InstanceId')!, lifecycleState: _s .extractXmlStringValue(elem, 'LifecycleState')! - .let(LifecycleState.fromString) /* Nullability(true, false) */, + .let(LifecycleState.fromString), protectedFromScaleIn: _s.extractXmlBoolValue(elem, 'ProtectedFromScaleIn')!, instanceType: _s.extractXmlStringValue(elem, 'InstanceType'), @@ -7371,14 +7372,14 @@ class InstanceMetadataOptions { }); factory InstanceMetadataOptions.fromXml(_s.XmlElement elem) { return InstanceMetadataOptions( - httpEndpoint: _s.extractXmlStringValue(elem, 'HttpEndpoint')?.let( - InstanceMetadataEndpointState - .fromString) /* Nullability(true, true) */, + httpEndpoint: _s + .extractXmlStringValue(elem, 'HttpEndpoint') + ?.let(InstanceMetadataEndpointState.fromString), httpPutResponseHopLimit: _s.extractXmlIntValue(elem, 'HttpPutResponseHopLimit'), - httpTokens: _s.extractXmlStringValue(elem, 'HttpTokens')?.let( - InstanceMetadataHttpTokensState - .fromString) /* Nullability(true, true) */, + httpTokens: _s + .extractXmlStringValue(elem, 'HttpTokens') + ?.let(InstanceMetadataHttpTokensState.fromString), ); } @@ -7562,7 +7563,7 @@ class InstanceRefresh { startTime: _s.extractXmlDateTimeValue(elem, 'StartTime'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(InstanceRefreshStatus.fromString) /* Nullability(true, true) */, + ?.let(InstanceRefreshStatus.fromString), statusReason: _s.extractXmlStringValue(elem, 'StatusReason'), ); } @@ -8143,13 +8144,13 @@ class InstanceRequirements { ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), bareMetal: _s .extractXmlStringValue(elem, 'BareMetal') - ?.let(BareMetal.fromString) /* Nullability(true, true) */, + ?.let(BareMetal.fromString), baselineEbsBandwidthMbps: _s .extractXmlChild(elem, 'BaselineEbsBandwidthMbps') ?.let(BaselineEbsBandwidthMbpsRequest.fromXml), burstablePerformance: _s .extractXmlStringValue(elem, 'BurstablePerformance') - ?.let(BurstablePerformance.fromString) /* Nullability(true, true) */, + ?.let(BurstablePerformance.fromString), cpuManufacturers: _s.extractXmlChild(elem, 'CpuManufacturers')?.let( (elem) => _s .extractXmlStringListValues(elem, 'member') @@ -8165,7 +8166,7 @@ class InstanceRequirements { .toList()), localStorage: _s .extractXmlStringValue(elem, 'LocalStorage') - ?.let(LocalStorage.fromString) /* Nullability(true, true) */, + ?.let(LocalStorage.fromString), localStorageTypes: _s.extractXmlChild(elem, 'LocalStorageTypes')?.let( (elem) => _s .extractXmlStringListValues(elem, 'member') @@ -10436,7 +10437,7 @@ class PredefinedMetricSpecification { return PredefinedMetricSpecification( predefinedMetricType: _s .extractXmlStringValue(elem, 'PredefinedMetricType')! - .let(MetricType.fromString) /* Nullability(true, false) */, + .let(MetricType.fromString), resourceLabel: _s.extractXmlStringValue(elem, 'ResourceLabel'), ); } @@ -10554,12 +10555,11 @@ class PredictiveScalingConfiguration { .toList(), maxCapacityBreachBehavior: _s .extractXmlStringValue(elem, 'MaxCapacityBreachBehavior') - ?.let(PredictiveScalingMaxCapacityBreachBehavior - .fromString) /* Nullability(true, true) */, + ?.let(PredictiveScalingMaxCapacityBreachBehavior.fromString), maxCapacityBuffer: _s.extractXmlIntValue(elem, 'MaxCapacityBuffer'), mode: _s .extractXmlStringValue(elem, 'Mode') - ?.let(PredictiveScalingMode.fromString) /* Nullability(true, true) */, + ?.let(PredictiveScalingMode.fromString), schedulingBufferTime: _s.extractXmlIntValue(elem, 'SchedulingBufferTime'), ); } @@ -10997,8 +10997,7 @@ class PredictiveScalingPredefinedLoadMetric { return PredictiveScalingPredefinedLoadMetric( predefinedMetricType: _s .extractXmlStringValue(elem, 'PredefinedMetricType')! - .let(PredefinedLoadMetricType - .fromString) /* Nullability(true, false) */, + .let(PredefinedLoadMetricType.fromString), resourceLabel: _s.extractXmlStringValue(elem, 'ResourceLabel'), ); } @@ -11070,8 +11069,7 @@ class PredictiveScalingPredefinedMetricPair { return PredictiveScalingPredefinedMetricPair( predefinedMetricType: _s .extractXmlStringValue(elem, 'PredefinedMetricType')! - .let(PredefinedMetricPairType - .fromString) /* Nullability(true, false) */, + .let(PredefinedMetricPairType.fromString), resourceLabel: _s.extractXmlStringValue(elem, 'ResourceLabel'), ); } @@ -11143,8 +11141,7 @@ class PredictiveScalingPredefinedScalingMetric { return PredictiveScalingPredefinedScalingMetric( predefinedMetricType: _s .extractXmlStringValue(elem, 'PredefinedMetricType')! - .let(PredefinedScalingMetricType - .fromString) /* Nullability(true, false) */, + .let(PredefinedScalingMetricType.fromString), resourceLabel: _s.extractXmlStringValue(elem, 'ResourceLabel'), ); } @@ -11448,12 +11445,11 @@ class RefreshPreferences { minHealthyPercentage: _s.extractXmlIntValue(elem, 'MinHealthyPercentage'), scaleInProtectedInstances: _s .extractXmlStringValue(elem, 'ScaleInProtectedInstances') - ?.let(ScaleInProtectedInstances - .fromString) /* Nullability(true, true) */, + ?.let(ScaleInProtectedInstances.fromString), skipMatching: _s.extractXmlBoolValue(elem, 'SkipMatching'), standbyInstances: _s .extractXmlStringValue(elem, 'StandbyInstances') - ?.let(StandbyInstances.fromString) /* Nullability(true, true) */, + ?.let(StandbyInstances.fromString), ); } @@ -12956,10 +12952,10 @@ class WarmPoolConfiguration { minSize: _s.extractXmlIntValue(elem, 'MinSize'), poolState: _s .extractXmlStringValue(elem, 'PoolState') - ?.let(WarmPoolState.fromString) /* Nullability(true, true) */, + ?.let(WarmPoolState.fromString), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(WarmPoolStatus.fromString) /* Nullability(true, true) */, + ?.let(WarmPoolStatus.fromString), ); } diff --git a/aws_client/lib/src/generated/auto_scaling_plans/v2018_01_06.dart b/aws_client/lib/src/generated/auto_scaling_plans/v2018_01_06.dart index 9d8e7a009..42d156d7f 100644 --- a/aws_client/lib/src/generated/auto_scaling_plans/v2018_01_06.dart +++ b/aws_client/lib/src/generated/auto_scaling_plans/v2018_01_06.dart @@ -426,7 +426,7 @@ class ApplicationSource { return ApplicationSource( cloudFormationStackARN: json['CloudFormationStackARN'] as String?, tagFilters: (json['TagFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagFilter.fromJson(e as Map)) .toList(), ); @@ -536,7 +536,7 @@ class CustomizedLoadMetricSpecification { namespace: json['Namespace'] as String, statistic: MetricStatistic.fromString((json['Statistic'] as String)), dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDimension.fromJson(e as Map)) .toList(), unit: json['Unit'] as String?, @@ -618,7 +618,7 @@ class CustomizedScalingMetricSpecification { namespace: json['Namespace'] as String, statistic: MetricStatistic.fromString((json['Statistic'] as String)), dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDimension.fromJson(e as Map)) .toList(), unit: json['Unit'] as String?, @@ -701,7 +701,7 @@ class DescribeScalingPlanResourcesResponse { return DescribeScalingPlanResourcesResponse( nextToken: json['NextToken'] as String?, scalingPlanResources: (json['ScalingPlanResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingPlanResource.fromJson(e as Map)) .toList(), ); @@ -735,7 +735,7 @@ class DescribeScalingPlansResponse { return DescribeScalingPlansResponse( nextToken: json['NextToken'] as String?, scalingPlans: (json['ScalingPlans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingPlan.fromJson(e as Map)) .toList(), ); @@ -780,7 +780,7 @@ class GetScalingPlanResourceForecastDataResponse { Map json) { return GetScalingPlanResourceForecastDataResponse( datapoints: (json['Datapoints'] as List) - .whereNotNull() + .nonNulls .map((e) => Datapoint.fromJson(e as Map)) .toList(), ); @@ -1292,7 +1292,7 @@ class ScalingInstruction { ServiceNamespace.fromString((json['ServiceNamespace'] as String)), targetTrackingConfigurations: (json['TargetTrackingConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => TargetTrackingConfiguration.fromJson(e as Map)) .toList(), @@ -1469,7 +1469,7 @@ class ScalingPlan { applicationSource: ApplicationSource.fromJson( json['ApplicationSource'] as Map), scalingInstructions: (json['ScalingInstructions'] as List) - .whereNotNull() + .nonNulls .map((e) => ScalingInstruction.fromJson(e as Map)) .toList(), scalingPlanName: json['ScalingPlanName'] as String, @@ -1640,7 +1640,7 @@ class ScalingPlanResource { serviceNamespace: ServiceNamespace.fromString((json['ServiceNamespace'] as String)), scalingPolicies: (json['ScalingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingPolicy.fromJson(e as Map)) .toList(), scalingStatusMessage: json['ScalingStatusMessage'] as String?, @@ -1798,10 +1798,8 @@ class TagFilter { factory TagFilter.fromJson(Map json) { return TagFilter( key: json['Key'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/b2_bi/v2022_06_23.dart b/aws_client/lib/src/generated/b2_bi/v2022_06_23.dart index 82e8e41b2..9538e3cd6 100644 --- a/aws_client/lib/src/generated/b2_bi/v2022_06_23.dart +++ b/aws_client/lib/src/generated/b2_bi/v2022_06_23.dart @@ -1437,7 +1437,7 @@ class CreateCapabilityResponse { name: json['name'] as String, type: CapabilityType.fromString((json['type'] as String)), instructionsDocuments: (json['instructionsDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Location.fromJson(e as Map)) .toList(), ); @@ -1513,7 +1513,7 @@ class CreatePartnershipResponse { partnershipId: json['partnershipId'] as String, profileId: json['profileId'] as String, capabilities: (json['capabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), email: json['email'] as String?, @@ -1854,7 +1854,7 @@ class GetCapabilityResponse { name: json['name'] as String, type: CapabilityType.fromString((json['type'] as String)), instructionsDocuments: (json['instructionsDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Location.fromJson(e as Map)) .toList(), modifiedAt: timeStampFromJson(json['modifiedAt']), @@ -1938,7 +1938,7 @@ class GetPartnershipResponse { partnershipId: json['partnershipId'] as String, profileId: json['profileId'] as String, capabilities: (json['capabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), email: json['email'] as String?, @@ -2086,7 +2086,7 @@ class GetTransformerJobResponse { status: TransformerJobStatus.fromString((json['status'] as String)), message: json['message'] as String?, outputFiles: (json['outputFiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Location.fromJson(e as Map)) .toList(), ); @@ -2215,7 +2215,7 @@ class ListCapabilitiesResponse { factory ListCapabilitiesResponse.fromJson(Map json) { return ListCapabilitiesResponse( capabilities: (json['capabilities'] as List) - .whereNotNull() + .nonNulls .map((e) => CapabilitySummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2250,7 +2250,7 @@ class ListPartnershipsResponse { factory ListPartnershipsResponse.fromJson(Map json) { return ListPartnershipsResponse( partnerships: (json['partnerships'] as List) - .whereNotNull() + .nonNulls .map((e) => PartnershipSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2285,7 +2285,7 @@ class ListProfilesResponse { factory ListProfilesResponse.fromJson(Map json) { return ListProfilesResponse( profiles: (json['profiles'] as List) - .whereNotNull() + .nonNulls .map((e) => ProfileSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2315,7 +2315,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2351,7 +2351,7 @@ class ListTransformersResponse { factory ListTransformersResponse.fromJson(Map json) { return ListTransformersResponse( transformers: (json['transformers'] as List) - .whereNotNull() + .nonNulls .map((e) => TransformerSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2425,7 +2425,7 @@ class PartnershipSummary { partnershipId: json['partnershipId'] as String, profileId: json['profileId'] as String, capabilities: (json['capabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), modifiedAt: timeStampFromJson(json['modifiedAt']), @@ -2829,7 +2829,7 @@ class UpdateCapabilityResponse { name: json['name'] as String, type: CapabilityType.fromString((json['type'] as String)), instructionsDocuments: (json['instructionsDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Location.fromJson(e as Map)) .toList(), modifiedAt: timeStampFromJson(json['modifiedAt']), @@ -2914,7 +2914,7 @@ class UpdatePartnershipResponse { partnershipId: json['partnershipId'] as String, profileId: json['profileId'] as String, capabilities: (json['capabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), email: json['email'] as String?, diff --git a/aws_client/lib/src/generated/backup/v2018_11_15.dart b/aws_client/lib/src/generated/backup/v2018_11_15.dart index 65e702ef5..d018c8453 100644 --- a/aws_client/lib/src/generated/backup/v2018_11_15.dart +++ b/aws_client/lib/src/generated/backup/v2018_11_15.dart @@ -5032,11 +5032,11 @@ class BackupPlan { return BackupPlan( backupPlanName: json['BackupPlanName'] as String, rules: (json['Rules'] as List) - .whereNotNull() + .nonNulls .map((e) => BackupRule.fromJson(e as Map)) .toList(), advancedBackupSettings: (json['AdvancedBackupSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedBackupSetting.fromJson(e as Map)) .toList(), ); @@ -5184,7 +5184,7 @@ class BackupPlansListMember { factory BackupPlansListMember.fromJson(Map json) { return BackupPlansListMember( advancedBackupSettings: (json['AdvancedBackupSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedBackupSetting.fromJson(e as Map)) .toList(), backupPlanArn: json['BackupPlanArn'] as String?, @@ -5324,7 +5324,7 @@ class BackupRule { targetBackupVaultName: json['TargetBackupVaultName'] as String, completionWindowMinutes: json['CompletionWindowMinutes'] as int?, copyActions: (json['CopyActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CopyAction.fromJson(e as Map)) .toList(), enableContinuousBackup: json['EnableContinuousBackup'] as bool?, @@ -5575,15 +5575,15 @@ class BackupSelection { ? Conditions.fromJson(json['Conditions'] as Map) : null, listOfTags: (json['ListOfTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Condition.fromJson(e as Map)) .toList(), notResources: (json['NotResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6034,19 +6034,19 @@ class Conditions { factory Conditions.fromJson(Map json) { return Conditions( stringEquals: (json['StringEquals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConditionParameter.fromJson(e as Map)) .toList(), stringLike: (json['StringLike'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConditionParameter.fromJson(e as Map)) .toList(), stringNotEquals: (json['StringNotEquals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConditionParameter.fromJson(e as Map)) .toList(), stringNotLike: (json['StringNotLike'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConditionParameter.fromJson(e as Map)) .toList(), ); @@ -6136,11 +6136,11 @@ class ControlScope { factory ControlScope.fromJson(Map json) { return ControlScope( complianceResourceIds: (json['ComplianceResourceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), complianceResourceTypes: (json['ComplianceResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as Map?) @@ -6583,7 +6583,7 @@ class CreateBackupPlanOutput { factory CreateBackupPlanOutput.fromJson(Map json) { return CreateBackupPlanOutput( advancedBackupSettings: (json['AdvancedBackupSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedBackupSetting.fromJson(e as Map)) .toList(), backupPlanArn: json['BackupPlanArn'] as String?, @@ -7577,7 +7577,7 @@ class DescribeFrameworkOutput { deploymentStatus: json['DeploymentStatus'] as String?, frameworkArn: json['FrameworkArn'] as String?, frameworkControls: (json['FrameworkControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FrameworkControl.fromJson(e as Map)) .toList(), frameworkDescription: json['FrameworkDescription'] as String?, @@ -8433,7 +8433,7 @@ class FrameworkControl { return FrameworkControl( controlName: json['ControlName'] as String, controlInputParameters: (json['ControlInputParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ControlInputParameter.fromJson(e as Map)) .toList(), controlScope: json['ControlScope'] != null @@ -8565,7 +8565,7 @@ class GetBackupPlanOutput { factory GetBackupPlanOutput.fromJson(Map json) { return GetBackupPlanOutput( advancedBackupSettings: (json['AdvancedBackupSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedBackupSetting.fromJson(e as Map)) .toList(), backupPlan: json['BackupPlan'] != null @@ -8743,7 +8743,7 @@ class GetBackupVaultNotificationsOutput { return GetBackupVaultNotificationsOutput( backupVaultArn: json['BackupVaultArn'] as String?, backupVaultEvents: (json['BackupVaultEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupVaultEvent.fromString((e as String))) .toList(), backupVaultName: json['BackupVaultName'] as String?, @@ -9057,7 +9057,7 @@ class GetSupportedResourceTypesOutput { factory GetSupportedResourceTypesOutput.fromJson(Map json) { return GetSupportedResourceTypesOutput( resourceTypes: (json['ResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9302,7 +9302,7 @@ class ListBackupJobSummariesOutput { return ListBackupJobSummariesOutput( aggregationPeriod: json['AggregationPeriod'] as String?, backupJobSummaries: (json['BackupJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9340,7 +9340,7 @@ class ListBackupJobsOutput { factory ListBackupJobsOutput.fromJson(Map json) { return ListBackupJobsOutput( backupJobs: (json['BackupJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupJob.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9376,7 +9376,7 @@ class ListBackupPlanTemplatesOutput { factory ListBackupPlanTemplatesOutput.fromJson(Map json) { return ListBackupPlanTemplatesOutput( backupPlanTemplatesList: (json['BackupPlanTemplatesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupPlanTemplatesListMember.fromJson(e as Map)) .toList(), @@ -9413,7 +9413,7 @@ class ListBackupPlanVersionsOutput { factory ListBackupPlanVersionsOutput.fromJson(Map json) { return ListBackupPlanVersionsOutput( backupPlanVersionsList: (json['BackupPlanVersionsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupPlansListMember.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9450,7 +9450,7 @@ class ListBackupPlansOutput { factory ListBackupPlansOutput.fromJson(Map json) { return ListBackupPlansOutput( backupPlansList: (json['BackupPlansList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupPlansListMember.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9486,7 +9486,7 @@ class ListBackupSelectionsOutput { factory ListBackupSelectionsOutput.fromJson(Map json) { return ListBackupSelectionsOutput( backupSelectionsList: (json['BackupSelectionsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupSelectionsListMember.fromJson(e as Map)) .toList(), @@ -9526,7 +9526,7 @@ class ListBackupVaultsOutput { factory ListBackupVaultsOutput.fromJson(Map json) { return ListBackupVaultsOutput( backupVaultList: (json['BackupVaultList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupVaultListMember.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9580,7 +9580,7 @@ class ListCopyJobSummariesOutput { return ListCopyJobSummariesOutput( aggregationPeriod: json['AggregationPeriod'] as String?, copyJobSummaries: (json['CopyJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CopyJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9618,7 +9618,7 @@ class ListCopyJobsOutput { factory ListCopyJobsOutput.fromJson(Map json) { return ListCopyJobsOutput( copyJobs: (json['CopyJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CopyJob.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9653,7 +9653,7 @@ class ListFrameworksOutput { factory ListFrameworksOutput.fromJson(Map json) { return ListFrameworksOutput( frameworks: (json['Frameworks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Framework.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9688,7 +9688,7 @@ class ListLegalHoldsOutput { factory ListLegalHoldsOutput.fromJson(Map json) { return ListLegalHoldsOutput( legalHolds: (json['LegalHolds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LegalHold.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9726,7 +9726,7 @@ class ListProtectedResourcesByBackupVaultOutput { return ListProtectedResourcesByBackupVaultOutput( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectedResource.fromJson(e as Map)) .toList(), ); @@ -9763,7 +9763,7 @@ class ListProtectedResourcesOutput { return ListProtectedResourcesOutput( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectedResource.fromJson(e as Map)) .toList(), ); @@ -9800,7 +9800,7 @@ class ListRecoveryPointsByBackupVaultOutput { return ListRecoveryPointsByBackupVaultOutput( nextToken: json['NextToken'] as String?, recoveryPoints: (json['RecoveryPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryPointByBackupVault.fromJson(e as Map)) .toList(), @@ -9835,7 +9835,7 @@ class ListRecoveryPointsByLegalHoldOutput { return ListRecoveryPointsByLegalHoldOutput( nextToken: json['NextToken'] as String?, recoveryPoints: (json['RecoveryPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryPointMember.fromJson(e as Map)) .toList(), ); @@ -9875,7 +9875,7 @@ class ListRecoveryPointsByResourceOutput { return ListRecoveryPointsByResourceOutput( nextToken: json['NextToken'] as String?, recoveryPoints: (json['RecoveryPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryPointByResource.fromJson(e as Map)) .toList(), @@ -9909,7 +9909,7 @@ class ListReportJobsOutput { return ListReportJobsOutput( nextToken: json['NextToken'] as String?, reportJobs: (json['ReportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportJob.fromJson(e as Map)) .toList(), ); @@ -9945,7 +9945,7 @@ class ListReportPlansOutput { return ListReportPlansOutput( nextToken: json['NextToken'] as String?, reportPlans: (json['ReportPlans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportPlan.fromJson(e as Map)) .toList(), ); @@ -9999,7 +9999,7 @@ class ListRestoreJobSummariesOutput { aggregationPeriod: json['AggregationPeriod'] as String?, nextToken: json['NextToken'] as String?, restoreJobSummaries: (json['RestoreJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RestoreJobSummary.fromJson(e as Map)) .toList(), ); @@ -10039,7 +10039,7 @@ class ListRestoreJobsByProtectedResourceOutput { return ListRestoreJobsByProtectedResourceOutput( nextToken: json['NextToken'] as String?, restoreJobs: (json['RestoreJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RestoreJobsListMember.fromJson(e as Map)) .toList(), ); @@ -10075,7 +10075,7 @@ class ListRestoreJobsOutput { return ListRestoreJobsOutput( nextToken: json['NextToken'] as String?, restoreJobs: (json['RestoreJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RestoreJobsListMember.fromJson(e as Map)) .toList(), ); @@ -10109,7 +10109,7 @@ class ListRestoreTestingPlansOutput { factory ListRestoreTestingPlansOutput.fromJson(Map json) { return ListRestoreTestingPlansOutput( restoreTestingPlans: (json['RestoreTestingPlans'] as List) - .whereNotNull() + .nonNulls .map((e) => RestoreTestingPlanForList.fromJson(e as Map)) .toList(), @@ -10147,7 +10147,7 @@ class ListRestoreTestingSelectionsOutput { Map json) { return ListRestoreTestingSelectionsOutput( restoreTestingSelections: (json['RestoreTestingSelections'] as List) - .whereNotNull() + .nonNulls .map((e) => RestoreTestingSelectionForList.fromJson( e as Map)) .toList(), @@ -10290,11 +10290,11 @@ class ProtectedResourceConditions { factory ProtectedResourceConditions.fromJson(Map json) { return ProtectedResourceConditions( stringEquals: (json['StringEquals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValue.fromJson(e as Map)) .toList(), stringNotEquals: (json['StringNotEquals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValue.fromJson(e as Map)) .toList(), ); @@ -10787,11 +10787,11 @@ class RecoveryPointSelection { ? DateRange.fromJson(json['DateRange'] as Map) : null, resourceIdentifiers: (json['ResourceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vaultNames: (json['VaultNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -10853,10 +10853,8 @@ class ReportDeliveryChannel { factory ReportDeliveryChannel.fromJson(Map json) { return ReportDeliveryChannel( s3BucketName: json['S3BucketName'] as String, - formats: (json['Formats'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + formats: + (json['Formats'] as List?)?.nonNulls.map((e) => e as String).toList(), s3KeyPrefix: json['S3KeyPrefix'] as String?, ); } @@ -10889,10 +10887,8 @@ class ReportDestination { factory ReportDestination.fromJson(Map json) { return ReportDestination( s3BucketName: json['S3BucketName'] as String?, - s3Keys: (json['S3Keys'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + s3Keys: + (json['S3Keys'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -11162,22 +11158,20 @@ class ReportSetting { return ReportSetting( reportTemplate: json['ReportTemplate'] as String, accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), frameworkArns: (json['FrameworkArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), numberOfFrameworks: json['NumberOfFrameworks'] as int?, organizationUnits: (json['OrganizationUnits'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - regions: (json['Regions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + regions: + (json['Regions'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -11892,15 +11886,15 @@ class RestoreTestingRecoveryPointSelection { algorithm: (json['Algorithm'] as String?) ?.let(RestoreTestingRecoveryPointSelectionAlgorithm.fromString), excludeVaults: (json['ExcludeVaults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includeVaults: (json['IncludeVaults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), recoveryPointTypes: (json['RecoveryPointTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RestoreTestingRecoveryPointType.fromString((e as String))) .toList(), selectionWindowDays: json['SelectionWindowDays'] as int?, @@ -12170,7 +12164,7 @@ class RestoreTestingSelectionForGet { json['RestoreTestingSelectionName'] as String, creatorRequestId: json['CreatorRequestId'] as String?, protectedResourceArns: (json['ProtectedResourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), protectedResourceConditions: json['ProtectedResourceConditions'] != null @@ -12557,7 +12551,7 @@ class UpdateBackupPlanOutput { factory UpdateBackupPlanOutput.fromJson(Map json) { return UpdateBackupPlanOutput( advancedBackupSettings: (json['AdvancedBackupSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedBackupSetting.fromJson(e as Map)) .toList(), backupPlanArn: json['BackupPlanArn'] as String?, diff --git a/aws_client/lib/src/generated/backup_gateway/v2021_01_01.dart b/aws_client/lib/src/generated/backup_gateway/v2021_01_01.dart index 3b7c236f3..2d889530c 100644 --- a/aws_client/lib/src/generated/backup_gateway/v2021_01_01.dart +++ b/aws_client/lib/src/generated/backup_gateway/v2021_01_01.dart @@ -1144,10 +1144,8 @@ class BandwidthRateLimitInterval { factory BandwidthRateLimitInterval.fromJson(Map json) { return BandwidthRateLimitInterval( - daysOfWeek: (json['DaysOfWeek'] as List) - .whereNotNull() - .map((e) => e as int) - .toList(), + daysOfWeek: + (json['DaysOfWeek'] as List).nonNulls.map((e) => e as int).toList(), endHourOfDay: json['EndHourOfDay'] as int, endMinuteOfHour: json['EndMinuteOfHour'] as int, startHourOfDay: json['StartHourOfDay'] as int, @@ -1447,7 +1445,7 @@ class GetBandwidthRateLimitScheduleOutput { return GetBandwidthRateLimitScheduleOutput( bandwidthRateLimitIntervals: (json['BandwidthRateLimitIntervals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BandwidthRateLimitInterval.fromJson(e as Map)) .toList(), @@ -1538,7 +1536,7 @@ class GetHypervisorPropertyMappingsOutput { hypervisorArn: json['HypervisorArn'] as String?, iamRoleArn: json['IamRoleArn'] as String?, vmwareToAwsTagMappings: (json['VmwareToAwsTagMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VmwareToAwsTagMapping.fromJson(e as Map)) .toList(), ); @@ -1791,7 +1789,7 @@ class ListGatewaysOutput { factory ListGatewaysOutput.fromJson(Map json) { return ListGatewaysOutput( gateways: (json['Gateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Gateway.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1827,7 +1825,7 @@ class ListHypervisorsOutput { factory ListHypervisorsOutput.fromJson(Map json) { return ListHypervisorsOutput( hypervisors: (json['Hypervisors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Hypervisor.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1860,7 +1858,7 @@ class ListTagsForResourceOutput { return ListTagsForResourceOutput( resourceArn: json['ResourceArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1896,7 +1894,7 @@ class ListVirtualMachinesOutput { return ListVirtualMachinesOutput( nextToken: json['NextToken'] as String?, virtualMachines: (json['VirtualMachines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VirtualMachine.fromJson(e as Map)) .toList(), ); @@ -2341,7 +2339,7 @@ class VirtualMachineDetails { path: json['Path'] as String?, resourceArn: json['ResourceArn'] as String?, vmwareTags: (json['VmwareTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VmwareTag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/backup_storage/v2018_04_10.dart b/aws_client/lib/src/generated/backup_storage/v2018_04_10.dart index 9849abd25..6cb43eddf 100644 --- a/aws_client/lib/src/generated/backup_storage/v2018_04_10.dart +++ b/aws_client/lib/src/generated/backup_storage/v2018_04_10.dart @@ -724,7 +724,7 @@ class ListChunksOutput { factory ListChunksOutput.fromJson(Map json) { return ListChunksOutput( chunkList: (json['ChunkList'] as List) - .whereNotNull() + .nonNulls .map((e) => Chunk.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -756,7 +756,7 @@ class ListObjectsOutput { factory ListObjectsOutput.fromJson(Map json) { return ListObjectsOutput( objectList: (json['ObjectList'] as List) - .whereNotNull() + .nonNulls .map((e) => BackupObject.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/batch/v2016_08_10.dart b/aws_client/lib/src/generated/batch/v2016_08_10.dart index 9a4d97675..ab0145cb9 100644 --- a/aws_client/lib/src/generated/batch/v2016_08_10.dart +++ b/aws_client/lib/src/generated/batch/v2016_08_10.dart @@ -1887,7 +1887,7 @@ class AttemptContainerDetail { exitCode: json['exitCode'] as int?, logStreamName: json['logStreamName'] as String?, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), reason: json['reason'] as String?, @@ -1955,7 +1955,7 @@ class AttemptDetail { statusReason: json['statusReason'] as String?, stoppedAt: json['stoppedAt'] as int?, taskProperties: (json['taskProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttemptEcsTaskDetails.fromJson(e as Map)) .toList(), ); @@ -2000,7 +2000,7 @@ class AttemptEcsTaskDetails { return AttemptEcsTaskDetails( containerInstanceArn: json['containerInstanceArn'] as String?, containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttemptTaskContainerDetails.fromJson(e as Map)) .toList(), @@ -2058,7 +2058,7 @@ class AttemptTaskContainerDetails { logStreamName: json['logStreamName'] as String?, name: json['name'] as String?, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), reason: json['reason'] as String?, @@ -2716,24 +2716,22 @@ class ComputeResource { factory ComputeResource.fromJson(Map json) { return ComputeResource( maxvCpus: json['maxvCpus'] as int, - subnets: (json['subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['subnets'] as List).nonNulls.map((e) => e as String).toList(), type: CRType.fromString((json['type'] as String)), allocationStrategy: (json['allocationStrategy'] as String?) ?.let(CRAllocationStrategy.fromString), bidPercentage: json['bidPercentage'] as int?, desiredvCpus: json['desiredvCpus'] as int?, ec2Configuration: (json['ec2Configuration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ec2Configuration.fromJson(e as Map)) .toList(), ec2KeyPair: json['ec2KeyPair'] as String?, imageId: json['imageId'] as String?, instanceRole: json['instanceRole'] as String?, instanceTypes: (json['instanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), launchTemplate: json['launchTemplate'] != null @@ -2743,7 +2741,7 @@ class ComputeResource { minvCpus: json['minvCpus'] as int?, placementGroup: json['placementGroup'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), spotIamFleetRole: json['spotIamFleetRole'] as String?, @@ -3457,13 +3455,11 @@ class ContainerDetail { factory ContainerDetail.fromJson(Map json) { return ContainerDetail( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), containerInstanceArn: json['containerInstanceArn'] as String?, environment: (json['environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), ephemeralStorage: json['ephemeralStorage'] != null @@ -3490,7 +3486,7 @@ class ContainerDetail { logStreamName: json['logStreamName'] as String?, memory: json['memory'] as int?, mountPoints: (json['mountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MountPoint.fromJson(e as Map)) .toList(), networkConfiguration: json['networkConfiguration'] != null @@ -3498,7 +3494,7 @@ class ContainerDetail { json['networkConfiguration'] as Map) : null, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), privileged: json['privileged'] as bool?, @@ -3509,7 +3505,7 @@ class ContainerDetail { json['repositoryCredentials'] as Map) : null, resourceRequirements: (json['resourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceRequirement.fromJson(e as Map)) .toList(), runtimePlatform: json['runtimePlatform'] != null @@ -3517,18 +3513,18 @@ class ContainerDetail { json['runtimePlatform'] as Map) : null, secrets: (json['secrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), taskArn: json['taskArn'] as String?, ulimits: (json['ulimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ulimit.fromJson(e as Map)) .toList(), user: json['user'] as String?, vcpus: json['vcpus'] as int?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -3985,12 +3981,10 @@ class ContainerProperties { factory ContainerProperties.fromJson(Map json) { return ContainerProperties( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), environment: (json['environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), ephemeralStorage: json['ephemeralStorage'] != null @@ -4015,7 +4009,7 @@ class ContainerProperties { : null, memory: json['memory'] as int?, mountPoints: (json['mountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MountPoint.fromJson(e as Map)) .toList(), networkConfiguration: json['networkConfiguration'] != null @@ -4029,7 +4023,7 @@ class ContainerProperties { json['repositoryCredentials'] as Map) : null, resourceRequirements: (json['resourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceRequirement.fromJson(e as Map)) .toList(), runtimePlatform: json['runtimePlatform'] != null @@ -4037,17 +4031,17 @@ class ContainerProperties { json['runtimePlatform'] as Map) : null, secrets: (json['secrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), ulimits: (json['ulimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ulimit.fromJson(e as Map)) .toList(), user: json['user'] as String?, vcpus: json['vcpus'] as int?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -4304,7 +4298,7 @@ class DescribeComputeEnvironmentsResponse { Map json) { return DescribeComputeEnvironmentsResponse( computeEnvironments: (json['computeEnvironments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComputeEnvironmentDetail.fromJson(e as Map)) .toList(), @@ -4342,7 +4336,7 @@ class DescribeJobDefinitionsResponse { factory DescribeJobDefinitionsResponse.fromJson(Map json) { return DescribeJobDefinitionsResponse( jobDefinitions: (json['jobDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobDefinition.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4378,7 +4372,7 @@ class DescribeJobQueuesResponse { factory DescribeJobQueuesResponse.fromJson(Map json) { return DescribeJobQueuesResponse( jobQueues: (json['jobQueues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobQueueDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4406,7 +4400,7 @@ class DescribeJobsResponse { factory DescribeJobsResponse.fromJson(Map json) { return DescribeJobsResponse( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobDetail.fromJson(e as Map)) .toList(), ); @@ -4432,7 +4426,7 @@ class DescribeSchedulingPoliciesResponse { Map json) { return DescribeSchedulingPoliciesResponse( schedulingPolicies: (json['schedulingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SchedulingPolicyDetail.fromJson(e as Map)) .toList(), @@ -4476,7 +4470,7 @@ class Device { hostPath: json['hostPath'] as String, containerPath: json['containerPath'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceCgroupPermission.fromString((e as String))) .toList(), ); @@ -4795,7 +4789,7 @@ class EcsProperties { factory EcsProperties.fromJson(Map json) { return EcsProperties( taskProperties: (json['taskProperties'] as List) - .whereNotNull() + .nonNulls .map((e) => EcsTaskProperties.fromJson(e as Map)) .toList(), ); @@ -4821,7 +4815,7 @@ class EcsPropertiesDetail { factory EcsPropertiesDetail.fromJson(Map json) { return EcsPropertiesDetail( taskProperties: (json['taskProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EcsTaskDetails.fromJson(e as Map)) .toList(), ); @@ -4930,7 +4924,7 @@ class EcsTaskDetails { return EcsTaskDetails( containerInstanceArn: json['containerInstanceArn'] as String?, containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskContainerDetails.fromJson(e as Map)) .toList(), ephemeralStorage: json['ephemeralStorage'] != null @@ -4952,7 +4946,7 @@ class EcsTaskDetails { taskArn: json['taskArn'] as String?, taskRoleArn: json['taskRoleArn'] as String?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -5094,7 +5088,7 @@ class EcsTaskProperties { factory EcsTaskProperties.fromJson(Map json) { return EcsTaskProperties( containers: (json['containers'] as List) - .whereNotNull() + .nonNulls .map((e) => TaskContainerProperties.fromJson(e as Map)) .toList(), @@ -5116,7 +5110,7 @@ class EcsTaskProperties { : null, taskRoleArn: json['taskRoleArn'] as String?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -5231,12 +5225,12 @@ class EksAttemptDetail { factory EksAttemptDetail.fromJson(Map json) { return EksAttemptDetail( containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksAttemptContainerDetail.fromJson(e as Map)) .toList(), initContainers: (json['initContainers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksAttemptContainerDetail.fromJson(e as Map)) .toList(), @@ -5419,16 +5413,11 @@ class EksContainer { factory EksContainer.fromJson(Map json) { return EksContainer( image: json['image'] as String, - args: (json['args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['args'] as List?)?.nonNulls.map((e) => e as String).toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), env: (json['env'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainerEnvironmentVariable.fromJson( e as Map)) .toList(), @@ -5443,7 +5432,7 @@ class EksContainer { json['securityContext'] as Map) : null, volumeMounts: (json['volumeMounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainerVolumeMount.fromJson(e as Map)) .toList(), @@ -5574,16 +5563,11 @@ class EksContainerDetail { factory EksContainerDetail.fromJson(Map json) { return EksContainerDetail( - args: (json['args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['args'] as List?)?.nonNulls.map((e) => e as String).toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), env: (json['env'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainerEnvironmentVariable.fromJson( e as Map)) .toList(), @@ -5601,7 +5585,7 @@ class EksContainerDetail { json['securityContext'] as Map) : null, volumeMounts: (json['volumeMounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainerVolumeMount.fromJson(e as Map)) .toList(), @@ -6164,17 +6148,17 @@ class EksPodProperties { factory EksPodProperties.fromJson(Map json) { return EksPodProperties( containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainer.fromJson(e as Map)) .toList(), dnsPolicy: json['dnsPolicy'] as String?, hostNetwork: json['hostNetwork'] as bool?, imagePullSecrets: (json['imagePullSecrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImagePullSecret.fromJson(e as Map)) .toList(), initContainers: (json['initContainers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainer.fromJson(e as Map)) .toList(), metadata: json['metadata'] != null @@ -6183,7 +6167,7 @@ class EksPodProperties { serviceAccountName: json['serviceAccountName'] as String?, shareProcessNamespace: json['shareProcessNamespace'] as bool?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksVolume.fromJson(e as Map)) .toList(), ); @@ -6311,17 +6295,17 @@ class EksPodPropertiesDetail { factory EksPodPropertiesDetail.fromJson(Map json) { return EksPodPropertiesDetail( containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainerDetail.fromJson(e as Map)) .toList(), dnsPolicy: json['dnsPolicy'] as String?, hostNetwork: json['hostNetwork'] as bool?, imagePullSecrets: (json['imagePullSecrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImagePullSecret.fromJson(e as Map)) .toList(), initContainers: (json['initContainers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainerDetail.fromJson(e as Map)) .toList(), metadata: json['metadata'] != null @@ -6332,7 +6316,7 @@ class EksPodPropertiesDetail { serviceAccountName: json['serviceAccountName'] as String?, shareProcessNamespace: json['shareProcessNamespace'] as bool?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksVolume.fromJson(e as Map)) .toList(), ); @@ -6710,7 +6694,7 @@ class FairsharePolicy { computeReservation: json['computeReservation'] as int?, shareDecaySeconds: json['shareDecaySeconds'] as int?, shareDistribution: (json['shareDistribution'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ShareAttributes.fromJson(e as Map)) .toList(), ); @@ -6780,7 +6764,7 @@ class FrontOfQueueDetail { factory FrontOfQueueDetail.fromJson(Map json) { return FrontOfQueueDetail( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FrontOfQueueJobSummary.fromJson(e as Map)) .toList(), @@ -7096,7 +7080,7 @@ class JobDefinition { parameters: (json['parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), platformCapabilities: (json['platformCapabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformCapability.fromString((e as String))) .toList(), propagateTags: json['propagateTags'] as bool?, @@ -7393,7 +7377,7 @@ class JobDetail { json['arrayProperties'] as Map) : null, attempts: (json['attempts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttemptDetail.fromJson(e as Map)) .toList(), container: json['container'] != null @@ -7401,7 +7385,7 @@ class JobDetail { : null, createdAt: json['createdAt'] as int?, dependsOn: (json['dependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobDependency.fromJson(e as Map)) .toList(), ecsProperties: json['ecsProperties'] != null @@ -7409,7 +7393,7 @@ class JobDetail { json['ecsProperties'] as Map) : null, eksAttempts: (json['eksAttempts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksAttemptDetail.fromJson(e as Map)) .toList(), eksProperties: json['eksProperties'] != null @@ -7429,7 +7413,7 @@ class JobDetail { parameters: (json['parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), platformCapabilities: (json['platformCapabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformCapability.fromString((e as String))) .toList(), propagateTags: json['propagateTags'] as bool?, @@ -7585,7 +7569,7 @@ class JobQueueDetail { factory JobQueueDetail.fromJson(Map json) { return JobQueueDetail( computeEnvironmentOrder: (json['computeEnvironmentOrder'] as List) - .whereNotNull() + .nonNulls .map((e) => ComputeEnvironmentOrder.fromJson(e as Map)) .toList(), @@ -7594,7 +7578,7 @@ class JobQueueDetail { priority: json['priority'] as int, state: JQState.fromString((json['state'] as String)), jobStateTimeLimitActions: (json['jobStateTimeLimitActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobStateTimeLimitAction.fromJson(e as Map)) .toList(), @@ -8135,7 +8119,7 @@ class LinuxParameters { factory LinuxParameters.fromJson(Map json) { return LinuxParameters( devices: (json['devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Device.fromJson(e as Map)) .toList(), initProcessEnabled: json['initProcessEnabled'] as bool?, @@ -8143,7 +8127,7 @@ class LinuxParameters { sharedMemorySize: json['sharedMemorySize'] as int?, swappiness: json['swappiness'] as int?, tmpfs: (json['tmpfs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tmpfs.fromJson(e as Map)) .toList(), ); @@ -8186,7 +8170,7 @@ class ListJobsResponse { factory ListJobsResponse.fromJson(Map json) { return ListJobsResponse( jobSummaryList: (json['jobSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => JobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8223,7 +8207,7 @@ class ListSchedulingPoliciesResponse { return ListSchedulingPoliciesResponse( nextToken: json['nextToken'] as String?, schedulingPolicies: (json['schedulingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchedulingPolicyListingDetail.fromJson(e as Map)) .toList(), @@ -8351,7 +8335,7 @@ class LogConfiguration { options: (json['options'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), secretOptions: (json['secretOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), ); @@ -8610,7 +8594,7 @@ class NodeProperties { return NodeProperties( mainNode: json['mainNode'] as int, nodeRangeProperties: (json['nodeRangeProperties'] as List) - .whereNotNull() + .nonNulls .map((e) => NodeRangeProperty.fromJson(e as Map)) .toList(), numNodes: json['numNodes'] as int, @@ -8766,7 +8750,7 @@ class NodeRangeProperty { json['ecsProperties'] as Map) : null, instanceTypes: (json['instanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9074,7 +9058,7 @@ class RetryStrategy { return RetryStrategy( attempts: json['attempts'] as int?, evaluateOnExit: (json['evaluateOnExit'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluateOnExit.fromJson(e as Map)) .toList(), ); @@ -9713,17 +9697,15 @@ class TaskContainerDetails { factory TaskContainerDetails.fromJson(Map json) { return TaskContainerDetails( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), dependsOn: (json['dependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskContainerDependency.fromJson(e as Map)) .toList(), environment: (json['environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), essential: json['essential'] as bool?, @@ -9739,12 +9721,12 @@ class TaskContainerDetails { : null, logStreamName: json['logStreamName'] as String?, mountPoints: (json['mountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MountPoint.fromJson(e as Map)) .toList(), name: json['name'] as String?, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), privileged: json['privileged'] as bool?, @@ -9755,15 +9737,15 @@ class TaskContainerDetails { json['repositoryCredentials'] as Map) : null, resourceRequirements: (json['resourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceRequirement.fromJson(e as Map)) .toList(), secrets: (json['secrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), ulimits: (json['ulimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ulimit.fromJson(e as Map)) .toList(), user: json['user'] as String?, @@ -10129,17 +10111,15 @@ class TaskContainerProperties { factory TaskContainerProperties.fromJson(Map json) { return TaskContainerProperties( image: json['image'] as String, - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), dependsOn: (json['dependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskContainerDependency.fromJson(e as Map)) .toList(), environment: (json['environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), essential: json['essential'] as bool?, @@ -10152,7 +10132,7 @@ class TaskContainerProperties { json['logConfiguration'] as Map) : null, mountPoints: (json['mountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MountPoint.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -10163,15 +10143,15 @@ class TaskContainerProperties { json['repositoryCredentials'] as Map) : null, resourceRequirements: (json['resourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceRequirement.fromJson(e as Map)) .toList(), secrets: (json['secrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), ulimits: (json['ulimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ulimit.fromJson(e as Map)) .toList(), user: json['user'] as String?, @@ -10288,7 +10268,7 @@ class Tmpfs { containerPath: json['containerPath'] as String, size: json['size'] as int, mountOptions: (json['mountOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/bcm_data_exports/v2023_11_26.dart b/aws_client/lib/src/generated/bcm_data_exports/v2023_11_26.dart index e86ae5294..63ccb6f4e 100644 --- a/aws_client/lib/src/generated/bcm_data_exports/v2023_11_26.dart +++ b/aws_client/lib/src/generated/bcm_data_exports/v2023_11_26.dart @@ -1114,7 +1114,7 @@ class GetTableResponse { return GetTableResponse( description: json['Description'] as String?, schema: (json['Schema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), tableName: json['TableName'] as String?, @@ -1152,7 +1152,7 @@ class ListExecutionsResponse { factory ListExecutionsResponse.fromJson(Map json) { return ListExecutionsResponse( executions: (json['Executions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExecutionReference.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1184,7 +1184,7 @@ class ListExportsResponse { factory ListExportsResponse.fromJson(Map json) { return ListExportsResponse( exports: (json['Exports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportReference.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1217,7 +1217,7 @@ class ListTablesResponse { return ListTablesResponse( nextToken: json['NextToken'] as String?, tables: (json['Tables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Table.fromJson(e as Map)) .toList(), ); @@ -1250,7 +1250,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), ); @@ -1469,7 +1469,7 @@ class Table { description: json['Description'] as String?, tableName: json['TableName'] as String?, tableProperties: (json['TableProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TablePropertyDescription.fromJson(e as Map)) .toList(), @@ -1515,7 +1515,7 @@ class TablePropertyDescription { description: json['Description'] as String?, name: json['Name'] as String?, validValues: (json['ValidValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/bedrock/v2023_04_20.dart b/aws_client/lib/src/generated/bedrock/v2023_04_20.dart index 6fb3464da..c51a4c730 100644 --- a/aws_client/lib/src/generated/bedrock/v2023_04_20.dart +++ b/aws_client/lib/src/generated/bedrock/v2023_04_20.dart @@ -1627,7 +1627,7 @@ class AutomatedEvaluationConfig { factory AutomatedEvaluationConfig.fromJson(Map json) { return AutomatedEvaluationConfig( datasetMetricConfigs: (json['datasetMetricConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationDatasetMetricConfig.fromJson(e as Map)) .toList(), @@ -2140,7 +2140,7 @@ class EvaluationDatasetMetricConfig { dataset: EvaluationDataset.fromJson(json['dataset'] as Map), metricNames: (json['metricNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), taskType: EvaluationTaskType.fromString((json['taskType'] as String)), @@ -2174,7 +2174,7 @@ class EvaluationInferenceConfig { factory EvaluationInferenceConfig.fromJson(Map json) { return EvaluationInferenceConfig( models: (json['models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationModelConfig.fromJson(e as Map)) .toList(), ); @@ -2310,14 +2310,14 @@ class EvaluationSummary { creationTime: nonNullableTimeStampFromJson(json['creationTime'] as Object), evaluationTaskTypes: (json['evaluationTaskTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationTaskType.fromString((e as String))) .toList(), jobArn: json['jobArn'] as String, jobName: json['jobName'] as String, jobType: EvaluationJobType.fromString((json['jobType'] as String)), modelIdentifiers: (json['modelIdentifiers'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), status: EvaluationJobStatus.fromString((json['status'] as String)), @@ -2430,15 +2430,15 @@ class FoundationModelDetails { modelArn: json['modelArn'] as String, modelId: json['modelId'] as String, customizationsSupported: (json['customizationsSupported'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelCustomization.fromString((e as String))) .toList(), inferenceTypesSupported: (json['inferenceTypesSupported'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceType.fromString((e as String))) .toList(), inputModalities: (json['inputModalities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelModality.fromString((e as String))) .toList(), modelLifecycle: json['modelLifecycle'] != null @@ -2447,7 +2447,7 @@ class FoundationModelDetails { : null, modelName: json['modelName'] as String?, outputModalities: (json['outputModalities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelModality.fromString((e as String))) .toList(), providerName: json['providerName'] as String?, @@ -2578,15 +2578,15 @@ class FoundationModelSummary { modelArn: json['modelArn'] as String, modelId: json['modelId'] as String, customizationsSupported: (json['customizationsSupported'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelCustomization.fromString((e as String))) .toList(), inferenceTypesSupported: (json['inferenceTypesSupported'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceType.fromString((e as String))) .toList(), inputModalities: (json['inputModalities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelModality.fromString((e as String))) .toList(), modelLifecycle: json['modelLifecycle'] != null @@ -2595,7 +2595,7 @@ class FoundationModelSummary { : null, modelName: json['modelName'] as String?, outputModalities: (json['outputModalities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelModality.fromString((e as String))) .toList(), providerName: json['providerName'] as String?, @@ -2726,7 +2726,7 @@ class GetCustomModelResponse { json['validationDataConfig'] as Map) : null, validationMetrics: (json['validationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidatorMetric.fromJson(e as Map)) .toList(), ); @@ -2845,7 +2845,7 @@ class GetEvaluationJobResponse { status: EvaluationJobStatus.fromString((json['status'] as String)), customerEncryptionKeyId: json['customerEncryptionKeyId'] as String?, failureMessages: (json['failureMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), jobDescription: json['jobDescription'] as String?, @@ -3003,7 +3003,7 @@ class GetGuardrailResponse { : null, description: json['description'] as String?, failureRecommendations: (json['failureRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), kmsKeyArn: json['kmsKeyArn'] as String?, @@ -3012,7 +3012,7 @@ class GetGuardrailResponse { json['sensitiveInformationPolicy'] as Map) : null, statusReasons: (json['statusReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), topicPolicy: json['topicPolicy'] != null @@ -3195,7 +3195,7 @@ class GetModelCustomizationJobResponse { json['trainingMetrics'] as Map) : null, validationMetrics: (json['validationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidatorMetric.fromJson(e as Map)) .toList(), vpcConfig: json['vpcConfig'] != null @@ -3628,7 +3628,7 @@ class GuardrailContentPolicy { factory GuardrailContentPolicy.fromJson(Map json) { return GuardrailContentPolicy( filters: (json['filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GuardrailContentFilter.fromJson(e as Map)) .toList(), @@ -3962,11 +3962,11 @@ class GuardrailSensitiveInformationPolicy { Map json) { return GuardrailSensitiveInformationPolicy( piiEntities: (json['piiEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GuardrailPiiEntity.fromJson(e as Map)) .toList(), regexes: (json['regexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GuardrailRegex.fromJson(e as Map)) .toList(), ); @@ -4144,7 +4144,7 @@ class GuardrailTopic { definition: json['definition'] as String, name: json['name'] as String, examples: (json['examples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(GuardrailTopicType.fromString), @@ -4238,7 +4238,7 @@ class GuardrailTopicPolicy { factory GuardrailTopicPolicy.fromJson(Map json) { return GuardrailTopicPolicy( topics: (json['topics'] as List) - .whereNotNull() + .nonNulls .map((e) => GuardrailTopic.fromJson(e as Map)) .toList(), ); @@ -4354,11 +4354,11 @@ class GuardrailWordPolicy { factory GuardrailWordPolicy.fromJson(Map json) { return GuardrailWordPolicy( managedWordLists: (json['managedWordLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GuardrailManagedWords.fromJson(e as Map)) .toList(), words: (json['words'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GuardrailWord.fromJson(e as Map)) .toList(), ); @@ -4436,12 +4436,12 @@ class HumanEvaluationConfig { factory HumanEvaluationConfig.fromJson(Map json) { return HumanEvaluationConfig( datasetMetricConfigs: (json['datasetMetricConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationDatasetMetricConfig.fromJson(e as Map)) .toList(), customMetrics: (json['customMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HumanEvaluationCustomMetric.fromJson(e as Map)) .toList(), @@ -4570,7 +4570,7 @@ class ListCustomModelsResponse { factory ListCustomModelsResponse.fromJson(Map json) { return ListCustomModelsResponse( modelSummaries: (json['modelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomModelSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4603,7 +4603,7 @@ class ListEvaluationJobsResponse { factory ListEvaluationJobsResponse.fromJson(Map json) { return ListEvaluationJobsResponse( jobSummaries: (json['jobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4631,7 +4631,7 @@ class ListFoundationModelsResponse { factory ListFoundationModelsResponse.fromJson(Map json) { return ListFoundationModelsResponse( modelSummaries: (json['modelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FoundationModelSummary.fromJson(e as Map)) .toList(), @@ -4663,7 +4663,7 @@ class ListGuardrailsResponse { factory ListGuardrailsResponse.fromJson(Map json) { return ListGuardrailsResponse( guardrails: (json['guardrails'] as List) - .whereNotNull() + .nonNulls .map((e) => GuardrailSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4697,7 +4697,7 @@ class ListModelCustomizationJobsResponse { return ListModelCustomizationJobsResponse( modelCustomizationJobSummaries: (json['modelCustomizationJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelCustomizationJobSummary.fromJson(e as Map)) .toList(), @@ -4736,7 +4736,7 @@ class ListProvisionedModelThroughputsResponse { return ListProvisionedModelThroughputsResponse( nextToken: json['nextToken'] as String?, provisionedModelSummaries: (json['provisionedModelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisionedModelSummary.fromJson(e as Map)) .toList(), @@ -4765,7 +4765,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5435,7 +5435,7 @@ class ValidationDataConfig { factory ValidationDataConfig.fromJson(Map json) { return ValidationDataConfig( validators: (json['validators'] as List) - .whereNotNull() + .nonNulls .map((e) => Validator.fromJson(e as Map)) .toList(), ); @@ -5511,13 +5511,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/bedrock_agent/v2023_06_05.dart b/aws_client/lib/src/generated/bedrock_agent/v2023_06_05.dart index 2b8d12a21..3cd248651 100644 --- a/aws_client/lib/src/generated/bedrock_agent/v2023_06_05.dart +++ b/aws_client/lib/src/generated/bedrock_agent/v2023_06_05.dart @@ -2341,7 +2341,7 @@ class Agent { customerEncryptionKeyArn: json['customerEncryptionKeyArn'] as String?, description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), foundationModel: json['foundationModel'] as String?, @@ -2356,7 +2356,7 @@ class Agent { json['promptOverrideConfiguration'] as Map) : null, recommendedActions: (json['recommendedActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2641,20 +2641,20 @@ class AgentAlias { agentId: json['agentId'] as String, createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), routingConfiguration: (json['routingConfiguration'] as List) - .whereNotNull() + .nonNulls .map((e) => AgentAliasRoutingConfigurationListItem.fromJson( e as Map)) .toList(), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), agentAliasHistoryEvents: (json['agentAliasHistoryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AgentAliasHistoryEvent.fromJson(e as Map)) .toList(), clientToken: json['clientToken'] as String?, description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2715,7 +2715,7 @@ class AgentAliasHistoryEvent { return AgentAliasHistoryEvent( endDate: timeStampFromJson(json['endDate']), routingConfiguration: (json['routingConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentAliasRoutingConfigurationListItem.fromJson( e as Map)) .toList(), @@ -2830,7 +2830,7 @@ class AgentAliasSummary { updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), description: json['description'] as String?, routingConfiguration: (json['routingConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentAliasRoutingConfigurationListItem.fromJson( e as Map)) .toList(), @@ -3165,7 +3165,7 @@ class AgentVersion { customerEncryptionKeyArn: json['customerEncryptionKeyArn'] as String?, description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), foundationModel: json['foundationModel'] as String?, @@ -3179,7 +3179,7 @@ class AgentVersion { json['promptOverrideConfiguration'] as Map) : null, recommendedActions: (json['recommendedActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3655,7 +3655,7 @@ class DataSource { ?.let(DataDeletionPolicy.fromString), description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serverSideEncryptionConfiguration: @@ -4196,7 +4196,7 @@ class FunctionSchema { factory FunctionSchema.fromJson(Map json) { return FunctionSchema( functions: (json['functions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => $Function.fromJson(e as Map)) .toList(), ); @@ -4471,7 +4471,7 @@ class InferenceConfiguration { return InferenceConfiguration( maximumLength: json['maximumLength'] as int?, stopSequences: (json['stopSequences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), temperature: json['temperature'] as double?, @@ -4569,7 +4569,7 @@ class IngestionJob { updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statistics: json['statistics'] != null @@ -4956,7 +4956,7 @@ class KnowledgeBase { updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5163,7 +5163,7 @@ class ListAgentActionGroupsResponse { factory ListAgentActionGroupsResponse.fromJson(Map json) { return ListAgentActionGroupsResponse( actionGroupSummaries: (json['actionGroupSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ActionGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5198,7 +5198,7 @@ class ListAgentAliasesResponse { factory ListAgentAliasesResponse.fromJson(Map json) { return ListAgentAliasesResponse( agentAliasSummaries: (json['agentAliasSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AgentAliasSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5233,7 +5233,7 @@ class ListAgentKnowledgeBasesResponse { factory ListAgentKnowledgeBasesResponse.fromJson(Map json) { return ListAgentKnowledgeBasesResponse( agentKnowledgeBaseSummaries: (json['agentKnowledgeBaseSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AgentKnowledgeBaseSummary.fromJson(e as Map)) .toList(), @@ -5269,7 +5269,7 @@ class ListAgentVersionsResponse { factory ListAgentVersionsResponse.fromJson(Map json) { return ListAgentVersionsResponse( agentVersionSummaries: (json['agentVersionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AgentVersionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5303,7 +5303,7 @@ class ListAgentsResponse { factory ListAgentsResponse.fromJson(Map json) { return ListAgentsResponse( agentSummaries: (json['agentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AgentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5337,7 +5337,7 @@ class ListDataSourcesResponse { factory ListDataSourcesResponse.fromJson(Map json) { return ListDataSourcesResponse( dataSourceSummaries: (json['dataSourceSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSourceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5372,7 +5372,7 @@ class ListIngestionJobsResponse { factory ListIngestionJobsResponse.fromJson(Map json) { return ListIngestionJobsResponse( ingestionJobSummaries: (json['ingestionJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => IngestionJobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5407,7 +5407,7 @@ class ListKnowledgeBasesResponse { factory ListKnowledgeBasesResponse.fromJson(Map json) { return ListKnowledgeBasesResponse( knowledgeBaseSummaries: (json['knowledgeBaseSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => KnowledgeBaseSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5973,7 +5973,7 @@ class PromptOverrideConfiguration { factory PromptOverrideConfiguration.fromJson(Map json) { return PromptOverrideConfiguration( promptConfigurations: (json['promptConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => PromptConfiguration.fromJson(e as Map)) .toList(), overrideLambda: json['overrideLambda'] as String?, @@ -6242,7 +6242,7 @@ class S3DataSourceConfiguration { bucketArn: json['bucketArn'] as String, bucketOwnerAccountId: json['bucketOwnerAccountId'] as String?, inclusionPrefixes: (json['inclusionPrefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/bedrock_agent_runtime/v2023_07_26.dart b/aws_client/lib/src/generated/bedrock_agent_runtime/v2023_07_26.dart index c26d72201..af1fa27c5 100644 --- a/aws_client/lib/src/generated/bedrock_agent_runtime/v2023_07_26.dart +++ b/aws_client/lib/src/generated/bedrock_agent_runtime/v2023_07_26.dart @@ -344,7 +344,7 @@ class ActionGroupInvocationInput { apiPath: json['apiPath'] as String?, function: json['function'] as String?, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), requestBody: json['requestBody'] != null @@ -448,7 +448,7 @@ class ApiInvocationInput { apiPath: json['apiPath'] as String?, httpMethod: json['httpMethod'] as String?, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiParameter.fromJson(e as Map)) .toList(), requestBody: json['requestBody'] != null @@ -631,7 +631,7 @@ class Attribution { factory Attribution.fromJson(Map json) { return Attribution( citations: (json['citations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Citation.fromJson(e as Map)) .toList(), ); @@ -741,7 +741,7 @@ class Citation { json['generatedResponsePart'] as Map) : null, retrievedReferences: (json['retrievedReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RetrievedReference.fromJson(e as Map)) .toList(), ); @@ -1106,7 +1106,7 @@ class FunctionInvocationInput { actionGroup: json['actionGroup'] as String, function: json['function'] as String?, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionParameter.fromJson(e as Map)) .toList(), ); @@ -1532,7 +1532,7 @@ class GuardrailContentPolicyAssessment { factory GuardrailContentPolicyAssessment.fromJson(Map json) { return GuardrailContentPolicyAssessment( filters: (json['filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GuardrailContentFilter.fromJson(e as Map)) .toList(), @@ -1793,12 +1793,12 @@ class GuardrailSensitiveInformationPolicyAssessment { Map json) { return GuardrailSensitiveInformationPolicyAssessment( piiEntities: (json['piiEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GuardrailPiiEntityFilter.fromJson(e as Map)) .toList(), regexes: (json['regexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GuardrailRegexFilter.fromJson(e as Map)) .toList(), ); @@ -1878,7 +1878,7 @@ class GuardrailTopicPolicyAssessment { factory GuardrailTopicPolicyAssessment.fromJson(Map json) { return GuardrailTopicPolicyAssessment( topics: (json['topics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GuardrailTopic.fromJson(e as Map)) .toList(), ); @@ -1931,11 +1931,11 @@ class GuardrailTrace { return GuardrailTrace( action: (json['action'] as String?)?.let(GuardrailAction.fromString), inputAssessments: (json['inputAssessments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GuardrailAssessment.fromJson(e as Map)) .toList(), outputAssessments: (json['outputAssessments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GuardrailAssessment.fromJson(e as Map)) .toList(), traceId: json['traceId'] as String?, @@ -1986,11 +1986,11 @@ class GuardrailWordPolicyAssessment { factory GuardrailWordPolicyAssessment.fromJson(Map json) { return GuardrailWordPolicyAssessment( customWords: (json['customWords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GuardrailCustomWord.fromJson(e as Map)) .toList(), managedWordLists: (json['managedWordLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GuardrailManagedWord.fromJson(e as Map)) .toList(), ); @@ -2075,7 +2075,7 @@ class InferenceConfiguration { return InferenceConfiguration( maximumLength: json['maximumLength'] as int?, stopSequences: (json['stopSequences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), temperature: json['temperature'] as double?, @@ -2350,7 +2350,7 @@ class KnowledgeBaseLookupOutput { factory KnowledgeBaseLookupOutput.fromJson(Map json) { return KnowledgeBaseLookupOutput( retrievedReferences: (json['retrievedReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RetrievedReference.fromJson(e as Map)) .toList(), ); @@ -3259,7 +3259,7 @@ class PropertyParameters { factory PropertyParameters.fromJson(Map json) { return PropertyParameters( properties: (json['properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), ); @@ -3349,7 +3349,7 @@ class RequestBody { MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList())), ); @@ -4060,7 +4060,7 @@ class RetrieveAndGenerateResponse { json['output'] as Map), sessionId: json['sessionId'] as String, citations: (json['citations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Citation.fromJson(e as Map)) .toList(), guardrailAction: @@ -4141,7 +4141,7 @@ class RetrieveResponse { factory RetrieveResponse.fromJson(Map json) { return RetrieveResponse( retrievalResults: (json['retrievalResults'] as List) - .whereNotNull() + .nonNulls .map((e) => KnowledgeBaseRetrievalResult.fromJson(e as Map)) .toList(), @@ -4254,7 +4254,7 @@ class ReturnControlPayload { return ReturnControlPayload( invocationId: json['invocationId'] as String?, invocationInputs: (json['invocationInputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InvocationInputMember.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/bedrock_runtime/v2023_09_30.dart b/aws_client/lib/src/generated/bedrock_runtime/v2023_09_30.dart index d7592aeaa..3abb84664 100644 --- a/aws_client/lib/src/generated/bedrock_runtime/v2023_09_30.dart +++ b/aws_client/lib/src/generated/bedrock_runtime/v2023_09_30.dart @@ -1349,7 +1349,7 @@ class Message { factory Message.fromJson(Map json) { return Message( content: (json['content'] as List) - .whereNotNull() + .nonNulls .map((e) => ContentBlock.fromJson(e as Map)) .toList(), role: ConversationRole.fromString((json['role'] as String)), @@ -1820,7 +1820,7 @@ class ToolResultBlock { factory ToolResultBlock.fromJson(Map json) { return ToolResultBlock( content: (json['content'] as List) - .whereNotNull() + .nonNulls .map( (e) => ToolResultContentBlock.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/billingconductor/v2021_07_30.dart b/aws_client/lib/src/generated/billingconductor/v2021_07_30.dart index d69e7cbd5..5e975bc68 100644 --- a/aws_client/lib/src/generated/billingconductor/v2021_07_30.dart +++ b/aws_client/lib/src/generated/billingconductor/v2021_07_30.dart @@ -1763,13 +1763,13 @@ class BatchAssociateResourcesToCustomLineItemOutput { Map json) { return BatchAssociateResourcesToCustomLineItemOutput( failedAssociatedResources: (json['FailedAssociatedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociateResourceResponseElement.fromJson( e as Map)) .toList(), successfullyAssociatedResources: (json['SuccessfullyAssociatedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociateResourceResponseElement.fromJson( e as Map)) .toList(), @@ -1809,13 +1809,13 @@ class BatchDisassociateResourcesFromCustomLineItemOutput { return BatchDisassociateResourcesFromCustomLineItemOutput( failedDisassociatedResources: (json['FailedDisassociatedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DisassociateResourceResponseElement.fromJson( e as Map)) .toList(), successfullyDisassociatedResources: (json['SuccessfullyDisassociatedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DisassociateResourceResponseElement.fromJson( e as Map)) .toList(), @@ -1944,7 +1944,7 @@ class BillingGroupCostReportResultElement { awsCost: json['AWSCost'] as String?, arn: json['Arn'] as String?, attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), currency: json['Currency'] as String?, @@ -2848,7 +2848,7 @@ class GetBillingGroupCostReportOutput { return GetBillingGroupCostReportOutput( billingGroupCostReportResults: (json['BillingGroupCostReportResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BillingGroupCostReportResultElement.fromJson( e as Map)) .toList(), @@ -2912,7 +2912,7 @@ class LineItemFilter { LineItemFilterAttributeName.fromString((json['Attribute'] as String)), matchOption: MatchOption.fromString((json['MatchOption'] as String)), values: (json['Values'] as List) - .whereNotNull() + .nonNulls .map((e) => LineItemFilterValue.fromString((e as String))) .toList(), ); @@ -3019,7 +3019,7 @@ class ListAccountAssociationsOutput { factory ListAccountAssociationsOutput.fromJson(Map json) { return ListAccountAssociationsOutput( linkedAccounts: (json['LinkedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAssociationsListElement.fromJson( e as Map)) .toList(), @@ -3096,7 +3096,7 @@ class ListBillingGroupCostReportsOutput { Map json) { return ListBillingGroupCostReportsOutput( billingGroupCostReports: (json['BillingGroupCostReports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BillingGroupCostReportElement.fromJson(e as Map)) .toList(), @@ -3169,7 +3169,7 @@ class ListBillingGroupsOutput { factory ListBillingGroupsOutput.fromJson(Map json) { return ListBillingGroupsOutput( billingGroups: (json['BillingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BillingGroupListElement.fromJson(e as Map)) .toList(), @@ -3219,7 +3219,7 @@ class ListCustomLineItemChargeDetails { json['Flat'] as Map) : null, lineItemFilters: (json['LineItemFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineItemFilter.fromJson(e as Map)) .toList(), percentage: json['Percentage'] != null @@ -3354,7 +3354,7 @@ class ListCustomLineItemVersionsOutput { factory ListCustomLineItemVersionsOutput.fromJson(Map json) { return ListCustomLineItemVersionsOutput( customLineItemVersions: (json['CustomLineItemVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomLineItemVersionListElement.fromJson( e as Map)) .toList(), @@ -3426,7 +3426,7 @@ class ListCustomLineItemsOutput { factory ListCustomLineItemsOutput.fromJson(Map json) { return ListCustomLineItemsOutput( customLineItems: (json['CustomLineItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomLineItemListElement.fromJson(e as Map)) .toList(), @@ -3472,7 +3472,7 @@ class ListPricingPlansAssociatedWithPricingRuleOutput { billingPeriod: json['BillingPeriod'] as String?, nextToken: json['NextToken'] as String?, pricingPlanArns: (json['PricingPlanArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), pricingRuleArn: json['PricingRuleArn'] as String?, @@ -3532,7 +3532,7 @@ class ListPricingPlansOutput { billingPeriod: json['BillingPeriod'] as String?, nextToken: json['NextToken'] as String?, pricingPlans: (json['PricingPlans'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => PricingPlanListElement.fromJson(e as Map)) .toList(), @@ -3580,7 +3580,7 @@ class ListPricingRulesAssociatedToPricingPlanOutput { nextToken: json['NextToken'] as String?, pricingPlanArn: json['PricingPlanArn'] as String?, pricingRuleArns: (json['PricingRuleArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3640,7 +3640,7 @@ class ListPricingRulesOutput { billingPeriod: json['BillingPeriod'] as String?, nextToken: json['NextToken'] as String?, pricingRules: (json['PricingRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => PricingRuleListElement.fromJson(e as Map)) .toList(), @@ -3703,7 +3703,7 @@ class ListResourcesAssociatedToCustomLineItemOutput { return ListResourcesAssociatedToCustomLineItemOutput( arn: json['Arn'] as String?, associatedResources: (json['AssociatedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListResourcesAssociatedToCustomLineItemResponseElement.fromJson( e as Map)) diff --git a/aws_client/lib/src/generated/braket/v2019_09_01.dart b/aws_client/lib/src/generated/braket/v2019_09_01.dart index 9f2031dfa..99adf0e58 100644 --- a/aws_client/lib/src/generated/braket/v2019_09_01.dart +++ b/aws_client/lib/src/generated/braket/v2019_09_01.dart @@ -1046,7 +1046,7 @@ class GetDeviceResponse { deviceType: DeviceType.fromString((json['deviceType'] as String)), providerName: json['providerName'] as String, deviceQueueInfo: (json['deviceQueueInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceQueueInfo.fromJson(e as Map)) .toList(), ); @@ -1190,7 +1190,7 @@ class GetJobResponse { roleArn: json['roleArn'] as String, status: JobPrimaryStatus.fromString((json['status'] as String)), associations: (json['associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Association.fromJson(e as Map)) .toList(), billableDuration: json['billableDuration'] as int?, @@ -1203,14 +1203,14 @@ class GetJobResponse { : null, endedAt: timeStampFromJson(json['endedAt']), events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobEventDetails.fromJson(e as Map)) .toList(), failureReason: json['failureReason'] as String?, hyperParameters: (json['hyperParameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), inputDataConfig: (json['inputDataConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputFileConfig.fromJson(e as Map)) .toList(), queueInfo: json['queueInfo'] != null @@ -1350,7 +1350,7 @@ class GetQuantumTaskResponse { shots: json['shots'] as int, status: QuantumTaskStatus.fromString((json['status'] as String)), associations: (json['associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Association.fromJson(e as Map)) .toList(), endedAt: timeStampFromJson(json['endedAt']), @@ -2152,7 +2152,7 @@ class SearchDevicesResponse { factory SearchDevicesResponse.fromJson(Map json) { return SearchDevicesResponse( devices: (json['devices'] as List) - .whereNotNull() + .nonNulls .map((e) => DeviceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2236,7 +2236,7 @@ class SearchJobsResponse { factory SearchJobsResponse.fromJson(Map json) { return SearchJobsResponse( jobs: (json['jobs'] as List) - .whereNotNull() + .nonNulls .map((e) => JobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2319,7 +2319,7 @@ class SearchQuantumTasksResponse { factory SearchQuantumTasksResponse.fromJson(Map json) { return SearchQuantumTasksResponse( quantumTasks: (json['quantumTasks'] as List) - .whereNotNull() + .nonNulls .map((e) => QuantumTaskSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/budgets/v2016_10_20.dart b/aws_client/lib/src/generated/budgets/v2016_10_20.dart index 8ca5503b1..8a53d89da 100644 --- a/aws_client/lib/src/generated/budgets/v2016_10_20.dart +++ b/aws_client/lib/src/generated/budgets/v2016_10_20.dart @@ -1385,7 +1385,7 @@ class Action { NotificationType.fromString((json['NotificationType'] as String)), status: ActionStatus.fromString((json['Status'] as String)), subscribers: (json['Subscribers'] as List) - .whereNotNull() + .nonNulls .map((e) => Subscriber.fromJson(e as Map)) .toList(), ); @@ -1813,8 +1813,7 @@ class Budget { json['CalculatedSpend'] as Map) : null, costFilters: (json['CostFilters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), costTypes: json['CostTypes'] != null ? CostTypes.fromJson(json['CostTypes'] as Map) : null, @@ -1872,7 +1871,7 @@ class BudgetNotificationsForAccount { return BudgetNotificationsForAccount( budgetName: json['BudgetName'] as String?, notifications: (json['Notifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Notification.fromJson(e as Map)) .toList(), ); @@ -1921,13 +1920,12 @@ class BudgetPerformanceHistory { budgetType: (json['BudgetType'] as String?)?.let(BudgetType.fromString), budgetedAndActualAmountsList: (json['BudgetedAndActualAmountsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BudgetedAndActualAmounts.fromJson(e as Map)) .toList(), costFilters: (json['CostFilters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), costTypes: json['CostTypes'] != null ? CostTypes.fromJson(json['CostTypes'] as Map) : null, @@ -2410,7 +2408,7 @@ class DescribeBudgetActionHistoriesResponse { Map json) { return DescribeBudgetActionHistoriesResponse( actionHistories: (json['ActionHistories'] as List) - .whereNotNull() + .nonNulls .map((e) => ActionHistory.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2474,7 +2472,7 @@ class DescribeBudgetActionsForAccountResponse { Map json) { return DescribeBudgetActionsForAccountResponse( actions: (json['Actions'] as List) - .whereNotNull() + .nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2505,7 +2503,7 @@ class DescribeBudgetActionsForBudgetResponse { Map json) { return DescribeBudgetActionsForBudgetResponse( actions: (json['Actions'] as List) - .whereNotNull() + .nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2537,7 +2535,7 @@ class DescribeBudgetNotificationsForAccountResponse { return DescribeBudgetNotificationsForAccountResponse( budgetNotificationsForAccount: (json['BudgetNotificationsForAccount'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BudgetNotificationsForAccount.fromJson(e as Map)) .toList(), @@ -2637,7 +2635,7 @@ class DescribeBudgetsResponse { factory DescribeBudgetsResponse.fromJson(Map json) { return DescribeBudgetsResponse( budgets: (json['Budgets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Budget.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2673,7 +2671,7 @@ class DescribeNotificationsForBudgetResponse { return DescribeNotificationsForBudgetResponse( nextToken: json['NextToken'] as String?, notifications: (json['Notifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Notification.fromJson(e as Map)) .toList(), ); @@ -2708,7 +2706,7 @@ class DescribeSubscribersForNotificationResponse { return DescribeSubscribersForNotificationResponse( nextToken: json['NextToken'] as String?, subscribers: (json['Subscribers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subscriber.fromJson(e as Map)) .toList(), ); @@ -2890,18 +2888,12 @@ class IamActionDefinition { factory IamActionDefinition.fromJson(Map json) { return IamActionDefinition( policyArn: json['PolicyArn'] as String, - groups: (json['Groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - roles: (json['Roles'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - users: (json['Users'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['Groups'] as List?)?.nonNulls.map((e) => e as String).toList(), + roles: + (json['Roles'] as List?)?.nonNulls.map((e) => e as String).toList(), + users: + (json['Users'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2930,7 +2922,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), ); @@ -3139,10 +3131,8 @@ class ScpActionDefinition { factory ScpActionDefinition.fromJson(Map json) { return ScpActionDefinition( policyId: json['PolicyId'] as String, - targetIds: (json['TargetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + targetIds: + (json['TargetIds'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -3233,7 +3223,7 @@ class SsmActionDefinition { actionSubType: ActionSubType.fromString((json['ActionSubType'] as String)), instanceIds: (json['InstanceIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), region: json['Region'] as String, diff --git a/aws_client/lib/src/generated/chatbot/v2017_10_11.dart b/aws_client/lib/src/generated/chatbot/v2017_10_11.dart index f29c7deac..77579895d 100644 --- a/aws_client/lib/src/generated/chatbot/v2017_10_11.dart +++ b/aws_client/lib/src/generated/chatbot/v2017_10_11.dart @@ -1206,14 +1206,14 @@ class ChimeWebhookConfiguration { chatConfigurationArn: json['ChatConfigurationArn'] as String, iamRoleArn: json['IamRoleArn'] as String, snsTopicArns: (json['SnsTopicArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), webhookDescription: json['WebhookDescription'] as String, configurationName: json['ConfigurationName'] as String?, loggingLevel: json['LoggingLevel'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1470,7 +1470,7 @@ class DescribeChimeWebhookConfigurationsResult { return DescribeChimeWebhookConfigurationsResult( nextToken: json['NextToken'] as String?, webhookConfigurations: (json['WebhookConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChimeWebhookConfiguration.fromJson(e as Map)) .toList(), @@ -1508,7 +1508,7 @@ class DescribeSlackChannelConfigurationsResult { return DescribeSlackChannelConfigurationsResult( nextToken: json['NextToken'] as String?, slackChannelConfigurations: (json['SlackChannelConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlackChannelConfiguration.fromJson(e as Map)) .toList(), @@ -1546,7 +1546,7 @@ class DescribeSlackUserIdentitiesResult { return DescribeSlackUserIdentitiesResult( nextToken: json['NextToken'] as String?, slackUserIdentities: (json['SlackUserIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlackUserIdentity.fromJson(e as Map)) .toList(), ); @@ -1582,7 +1582,7 @@ class DescribeSlackWorkspacesResult { return DescribeSlackWorkspacesResult( nextToken: json['NextToken'] as String?, slackWorkspaces: (json['SlackWorkspaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlackWorkspace.fromJson(e as Map)) .toList(), ); @@ -1670,7 +1670,7 @@ class ListMicrosoftTeamsConfiguredTeamsResult { Map json) { return ListMicrosoftTeamsConfiguredTeamsResult( configuredTeams: (json['ConfiguredTeams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfiguredTeam.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1707,7 +1707,7 @@ class ListMicrosoftTeamsUserIdentitiesResult { return ListMicrosoftTeamsUserIdentitiesResult( nextToken: json['NextToken'] as String?, teamsUserIdentities: (json['TeamsUserIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TeamsUserIdentity.fromJson(e as Map)) .toList(), ); @@ -1735,7 +1735,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1769,7 +1769,7 @@ class ListTeamsChannelConfigurationsResult { return ListTeamsChannelConfigurationsResult( nextToken: json['NextToken'] as String?, teamChannelConfigurations: (json['TeamChannelConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TeamsChannelConfiguration.fromJson(e as Map)) .toList(), @@ -1855,17 +1855,17 @@ class SlackChannelConfiguration { slackTeamId: json['SlackTeamId'] as String, slackTeamName: json['SlackTeamName'] as String, snsTopicArns: (json['SnsTopicArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), configurationName: json['ConfigurationName'] as String?, guardrailPolicyArns: (json['GuardrailPolicyArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), loggingLevel: json['LoggingLevel'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), userAuthorizationRequired: json['UserAuthorizationRequired'] as bool?, @@ -2101,7 +2101,7 @@ class TeamsChannelConfiguration { chatConfigurationArn: json['ChatConfigurationArn'] as String, iamRoleArn: json['IamRoleArn'] as String, snsTopicArns: (json['SnsTopicArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), teamId: json['TeamId'] as String, @@ -2109,12 +2109,12 @@ class TeamsChannelConfiguration { channelName: json['ChannelName'] as String?, configurationName: json['ConfigurationName'] as String?, guardrailPolicyArns: (json['GuardrailPolicyArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), loggingLevel: json['LoggingLevel'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), teamName: json['TeamName'] as String?, diff --git a/aws_client/lib/src/generated/chime/v2018_05_01.dart b/aws_client/lib/src/generated/chime/v2018_05_01.dart index 39c854482..725f5c45c 100644 --- a/aws_client/lib/src/generated/chime/v2018_05_01.dart +++ b/aws_client/lib/src/generated/chime/v2018_05_01.dart @@ -9267,11 +9267,11 @@ class Account { defaultLicense: (json['DefaultLicense'] as String?)?.let(License.fromString), signinDelegateGroups: (json['SigninDelegateGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SigninDelegateGroup.fromJson(e as Map)) .toList(), supportedLicenses: (json['SupportedLicenses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => License.fromString((e as String))) .toList(), ); @@ -9932,7 +9932,7 @@ class AssociatePhoneNumbersWithVoiceConnectorGroupResponse { Map json) { return AssociatePhoneNumbersWithVoiceConnectorGroupResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -9960,7 +9960,7 @@ class AssociatePhoneNumbersWithVoiceConnectorResponse { Map json) { return AssociatePhoneNumbersWithVoiceConnectorResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -10101,7 +10101,7 @@ class BatchChannelMemberships { ? Identity.fromJson(json['InvitedBy'] as Map) : null, members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Identity.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(ChannelMembershipType.fromString), @@ -10138,11 +10138,11 @@ class BatchCreateAttendeeResponse { factory BatchCreateAttendeeResponse.fromJson(Map json) { return BatchCreateAttendeeResponse( attendees: (json['Attendees'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attendee.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CreateAttendeeError.fromJson(e as Map)) .toList(), ); @@ -10218,7 +10218,7 @@ class BatchCreateChannelMembershipResponse { json['BatchChannelMemberships'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchCreateChannelMembershipError.fromJson( e as Map)) .toList(), @@ -10249,7 +10249,7 @@ class BatchCreateRoomMembershipResponse { Map json) { return BatchCreateRoomMembershipResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberError.fromJson(e as Map)) .toList(), ); @@ -10276,7 +10276,7 @@ class BatchDeletePhoneNumberResponse { factory BatchDeletePhoneNumberResponse.fromJson(Map json) { return BatchDeletePhoneNumberResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -10303,7 +10303,7 @@ class BatchSuspendUserResponse { factory BatchSuspendUserResponse.fromJson(Map json) { return BatchSuspendUserResponse( userErrors: (json['UserErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserError.fromJson(e as Map)) .toList(), ); @@ -10330,7 +10330,7 @@ class BatchUnsuspendUserResponse { factory BatchUnsuspendUserResponse.fromJson(Map json) { return BatchUnsuspendUserResponse( userErrors: (json['UserErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserError.fromJson(e as Map)) .toList(), ); @@ -10357,7 +10357,7 @@ class BatchUpdatePhoneNumberResponse { factory BatchUpdatePhoneNumberResponse.fromJson(Map json) { return BatchUpdatePhoneNumberResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -10384,7 +10384,7 @@ class BatchUpdateUserResponse { factory BatchUpdateUserResponse.fromJson(Map json) { return BatchUpdateUserResponse( userErrors: (json['UserErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserError.fromJson(e as Map)) .toList(), ); @@ -11876,11 +11876,11 @@ class CreateMeetingWithAttendeesResponse { Map json) { return CreateMeetingWithAttendeesResponse( attendees: (json['Attendees'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attendee.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CreateAttendeeError.fromJson(e as Map)) .toList(), meeting: json['Meeting'] != null @@ -12488,7 +12488,7 @@ class DisassociatePhoneNumbersFromVoiceConnectorGroupResponse { Map json) { return DisassociatePhoneNumbersFromVoiceConnectorGroupResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -12516,7 +12516,7 @@ class DisassociatePhoneNumbersFromVoiceConnectorResponse { Map json) { return DisassociatePhoneNumbersFromVoiceConnectorResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -12572,7 +12572,7 @@ class EmergencyCallingConfiguration { factory EmergencyCallingConfiguration.fromJson(Map json) { return EmergencyCallingConfiguration( dnis: (json['DNIS'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DNISEmergencyCallingConfiguration.fromJson( e as Map)) .toList(), @@ -13102,7 +13102,7 @@ class GetAppInstanceStreamingConfigurationsResponse { return GetAppInstanceStreamingConfigurationsResponse( appInstanceStreamingConfigurations: (json['AppInstanceStreamingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppInstanceStreamingConfiguration.fromJson( e as Map)) .toList(), @@ -13960,7 +13960,7 @@ class InviteUsersResponse { factory InviteUsersResponse.fromJson(Map json) { return InviteUsersResponse( invites: (json['Invites'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Invite.fromJson(e as Map)) .toList(), ); @@ -14005,7 +14005,7 @@ class ListAccountsResponse { factory ListAccountsResponse.fromJson(Map json) { return ListAccountsResponse( accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Account.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14042,7 +14042,7 @@ class ListAppInstanceAdminsResponse { factory ListAppInstanceAdminsResponse.fromJson(Map json) { return ListAppInstanceAdminsResponse( appInstanceAdmins: (json['AppInstanceAdmins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppInstanceAdminSummary.fromJson(e as Map)) .toList(), @@ -14084,7 +14084,7 @@ class ListAppInstanceUsersResponse { return ListAppInstanceUsersResponse( appInstanceArn: json['AppInstanceArn'] as String?, appInstanceUsers: (json['AppInstanceUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AppInstanceUserSummary.fromJson(e as Map)) .toList(), @@ -14120,7 +14120,7 @@ class ListAppInstancesResponse { factory ListAppInstancesResponse.fromJson(Map json) { return ListAppInstancesResponse( appInstances: (json['AppInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppInstanceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14148,7 +14148,7 @@ class ListAttendeeTagsResponse { factory ListAttendeeTagsResponse.fromJson(Map json) { return ListAttendeeTagsResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -14177,7 +14177,7 @@ class ListAttendeesResponse { factory ListAttendeesResponse.fromJson(Map json) { return ListAttendeesResponse( attendees: (json['Attendees'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attendee.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14209,7 +14209,7 @@ class ListBotsResponse { factory ListBotsResponse.fromJson(Map json) { return ListBotsResponse( bots: (json['Bots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Bot.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14247,7 +14247,7 @@ class ListChannelBansResponse { return ListChannelBansResponse( channelArn: json['ChannelArn'] as String?, channelBans: (json['ChannelBans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelBanSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14283,7 +14283,7 @@ class ListChannelMembershipsForAppInstanceUserResponse { Map json) { return ListChannelMembershipsForAppInstanceUserResponse( channelMemberships: (json['ChannelMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelMembershipForAppInstanceUserSummary.fromJson( e as Map)) .toList(), @@ -14322,7 +14322,7 @@ class ListChannelMembershipsResponse { return ListChannelMembershipsResponse( channelArn: json['ChannelArn'] as String?, channelMemberships: (json['ChannelMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelMembershipSummary.fromJson(e as Map)) .toList(), @@ -14363,7 +14363,7 @@ class ListChannelMessagesResponse { return ListChannelMessagesResponse( channelArn: json['ChannelArn'] as String?, channelMessages: (json['ChannelMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelMessageSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14403,7 +14403,7 @@ class ListChannelModeratorsResponse { return ListChannelModeratorsResponse( channelArn: json['ChannelArn'] as String?, channelModerators: (json['ChannelModerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelModeratorSummary.fromJson(e as Map)) .toList(), @@ -14440,7 +14440,7 @@ class ListChannelsModeratedByAppInstanceUserResponse { Map json) { return ListChannelsModeratedByAppInstanceUserResponse( channels: (json['Channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelModeratedByAppInstanceUserSummary.fromJson( e as Map)) .toList(), @@ -14474,7 +14474,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( channels: (json['Channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14507,7 +14507,7 @@ class ListMediaCapturePipelinesResponse { Map json) { return ListMediaCapturePipelinesResponse( mediaCapturePipelines: (json['MediaCapturePipelines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaCapturePipeline.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14536,7 +14536,7 @@ class ListMeetingTagsResponse { factory ListMeetingTagsResponse.fromJson(Map json) { return ListMeetingTagsResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -14565,7 +14565,7 @@ class ListMeetingsResponse { factory ListMeetingsResponse.fromJson(Map json) { return ListMeetingsResponse( meetings: (json['Meetings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Meeting.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14598,7 +14598,7 @@ class ListPhoneNumberOrdersResponse { return ListPhoneNumberOrdersResponse( nextToken: json['NextToken'] as String?, phoneNumberOrders: (json['PhoneNumberOrders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberOrder.fromJson(e as Map)) .toList(), ); @@ -14630,7 +14630,7 @@ class ListPhoneNumbersResponse { return ListPhoneNumbersResponse( nextToken: json['NextToken'] as String?, phoneNumbers: (json['PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumber.fromJson(e as Map)) .toList(), ); @@ -14662,7 +14662,7 @@ class ListProxySessionsResponse { return ListProxySessionsResponse( nextToken: json['NextToken'] as String?, proxySessions: (json['ProxySessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProxySession.fromJson(e as Map)) .toList(), ); @@ -14694,7 +14694,7 @@ class ListRoomMembershipsResponse { return ListRoomMembershipsResponse( nextToken: json['NextToken'] as String?, roomMemberships: (json['RoomMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoomMembership.fromJson(e as Map)) .toList(), ); @@ -14726,7 +14726,7 @@ class ListRoomsResponse { return ListRoomsResponse( nextToken: json['NextToken'] as String?, rooms: (json['Rooms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Room.fromJson(e as Map)) .toList(), ); @@ -14758,7 +14758,7 @@ class ListSipMediaApplicationsResponse { return ListSipMediaApplicationsResponse( nextToken: json['NextToken'] as String?, sipMediaApplications: (json['SipMediaApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipMediaApplication.fromJson(e as Map)) .toList(), ); @@ -14791,7 +14791,7 @@ class ListSipRulesResponse { return ListSipRulesResponse( nextToken: json['NextToken'] as String?, sipRules: (json['SipRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipRule.fromJson(e as Map)) .toList(), ); @@ -14819,7 +14819,7 @@ class ListSupportedPhoneNumberCountriesResponse { Map json) { return ListSupportedPhoneNumberCountriesResponse( phoneNumberCountries: (json['PhoneNumberCountries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberCountry.fromJson(e as Map)) .toList(), ); @@ -14845,7 +14845,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -14875,7 +14875,7 @@ class ListUsersResponse { return ListUsersResponse( nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -14907,7 +14907,7 @@ class ListVoiceConnectorGroupsResponse { return ListVoiceConnectorGroupsResponse( nextToken: json['NextToken'] as String?, voiceConnectorGroups: (json['VoiceConnectorGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoiceConnectorGroup.fromJson(e as Map)) .toList(), ); @@ -14936,7 +14936,7 @@ class ListVoiceConnectorTerminationCredentialsResponse { Map json) { return ListVoiceConnectorTerminationCredentialsResponse( usernames: (json['Usernames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -14966,7 +14966,7 @@ class ListVoiceConnectorsResponse { return ListVoiceConnectorsResponse( nextToken: json['NextToken'] as String?, voiceConnectors: (json['VoiceConnectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoiceConnector.fromJson(e as Map)) .toList(), ); @@ -15587,7 +15587,7 @@ class Origination { return Origination( disabled: json['Disabled'] as bool?, routes: (json['Routes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OriginationRoute.fromJson(e as Map)) .toList(), ); @@ -15770,7 +15770,7 @@ class PhoneNumber { factory PhoneNumber.fromJson(Map json) { return PhoneNumber( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => PhoneNumberAssociation.fromJson(e as Map)) .toList(), @@ -15966,7 +15966,7 @@ class PhoneNumberCountry { return PhoneNumberCountry( countryCode: json['CountryCode'] as String?, supportedPhoneNumberTypes: (json['SupportedPhoneNumberTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberType.fromString((e as String))) .toList(), ); @@ -16057,7 +16057,7 @@ class PhoneNumberOrder { return PhoneNumberOrder( createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), orderedPhoneNumbers: (json['OrderedPhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrderedPhoneNumber.fromJson(e as Map)) .toList(), phoneNumberOrderId: json['PhoneNumberOrderId'] as String?, @@ -16187,7 +16187,7 @@ class Proxy { disabled: json['Disabled'] as bool?, fallBackPhoneNumber: json['FallBackPhoneNumber'] as String?, phoneNumberCountries: (json['PhoneNumberCountries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -16272,7 +16272,7 @@ class ProxySession { factory ProxySession.fromJson(Map json) { return ProxySession( capabilities: (json['Capabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Capability.fromString((e as String))) .toList(), createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), @@ -16288,7 +16288,7 @@ class ProxySession { numberSelectionBehavior: (json['NumberSelectionBehavior'] as String?) ?.let(NumberSelectionBehavior.fromString), participants: (json['Participants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Participant.fromJson(e as Map)) .toList(), proxySessionId: json['ProxySessionId'] as String?, @@ -16402,7 +16402,7 @@ class PutAppInstanceStreamingConfigurationsResponse { return PutAppInstanceStreamingConfigurationsResponse( appInstanceStreamingConfigurations: (json['AppInstanceStreamingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppInstanceStreamingConfiguration.fromJson( e as Map)) .toList(), @@ -17022,7 +17022,7 @@ class SearchAvailablePhoneNumbersResponse { Map json) { return SearchAvailablePhoneNumbersResponse( e164PhoneNumbers: (json['E164PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -17056,11 +17056,11 @@ class SelectedVideoStreams { factory SelectedVideoStreams.fromJson(Map json) { return SelectedVideoStreams( attendeeIds: (json['AttendeeIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), externalUserIds: (json['ExternalUserIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -17165,7 +17165,7 @@ class SipMediaApplication { awsRegion: json['AwsRegion'] as String?, createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipMediaApplicationEndpoint.fromJson(e as Map)) .toList(), @@ -17326,7 +17326,7 @@ class SipRule { name: json['Name'] as String?, sipRuleId: json['SipRuleId'] as String?, targetApplications: (json['TargetApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipRuleTargetApplication.fromJson(e as Map)) .toList(), @@ -17507,7 +17507,7 @@ class StreamingConfiguration { disabled: json['Disabled'] as bool?, streamingNotificationTargets: (json['StreamingNotificationTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamingNotificationTarget.fromJson(e as Map)) .toList(), @@ -17650,11 +17650,11 @@ class Termination { factory Termination.fromJson(Map json) { return Termination( callingRegions: (json['CallingRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cidrAllowedList: (json['CidrAllowedList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cpsLimit: json['CpsLimit'] as int?, @@ -18655,7 +18655,7 @@ class ValidateE911AddressResponse { : null, addressExternalId: json['AddressExternalId'] as String?, candidateAddressList: (json['CandidateAddressList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CandidateAddress.fromJson(e as Map)) .toList(), validationResult: json['ValidationResult'] as int?, @@ -18856,7 +18856,7 @@ class VoiceConnectorGroup { voiceConnectorGroupArn: json['VoiceConnectorGroupArn'] as String?, voiceConnectorGroupId: json['VoiceConnectorGroupId'] as String?, voiceConnectorItems: (json['VoiceConnectorItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoiceConnectorItem.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/chime_sdk_identity/v2021_04_20.dart b/aws_client/lib/src/generated/chime_sdk_identity/v2021_04_20.dart index 491d7d5d5..0a2e5838a 100644 --- a/aws_client/lib/src/generated/chime_sdk_identity/v2021_04_20.dart +++ b/aws_client/lib/src/generated/chime_sdk_identity/v2021_04_20.dart @@ -2450,7 +2450,7 @@ class ListAppInstanceAdminsResponse { factory ListAppInstanceAdminsResponse.fromJson(Map json) { return ListAppInstanceAdminsResponse( appInstanceAdmins: (json['AppInstanceAdmins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppInstanceAdminSummary.fromJson(e as Map)) .toList(), @@ -2492,7 +2492,7 @@ class ListAppInstanceBotsResponse { return ListAppInstanceBotsResponse( appInstanceArn: json['AppInstanceArn'] as String?, appInstanceBots: (json['AppInstanceBots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppInstanceBotSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2528,7 +2528,7 @@ class ListAppInstanceUserEndpointsResponse { Map json) { return ListAppInstanceUserEndpointsResponse( appInstanceUserEndpoints: (json['AppInstanceUserEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppInstanceUserEndpointSummary.fromJson( e as Map)) .toList(), @@ -2568,7 +2568,7 @@ class ListAppInstanceUsersResponse { return ListAppInstanceUsersResponse( appInstanceArn: json['AppInstanceArn'] as String?, appInstanceUsers: (json['AppInstanceUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AppInstanceUserSummary.fromJson(e as Map)) .toList(), @@ -2604,7 +2604,7 @@ class ListAppInstancesResponse { factory ListAppInstancesResponse.fromJson(Map json) { return ListAppInstancesResponse( appInstances: (json['AppInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppInstanceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2632,7 +2632,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/chime_sdk_media_pipelines/v2021_07_15.dart b/aws_client/lib/src/generated/chime_sdk_media_pipelines/v2021_07_15.dart index b90c1a255..6e67d06d1 100644 --- a/aws_client/lib/src/generated/chime_sdk_media_pipelines/v2021_07_15.dart +++ b/aws_client/lib/src/generated/chime_sdk_media_pipelines/v2021_07_15.dart @@ -1439,7 +1439,7 @@ class AmazonTranscribeCallAnalyticsProcessorConfiguration { (json['LanguageCode'] as String)), callAnalyticsStreamCategories: (json['CallAnalyticsStreamCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), contentIdentificationType: (json['ContentIdentificationType'] as String?) @@ -3149,10 +3149,8 @@ class KeywordMatchConfiguration { factory KeywordMatchConfiguration.fromJson(Map json) { return KeywordMatchConfiguration( - keywords: (json['Keywords'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + keywords: + (json['Keywords'] as List).nonNulls.map((e) => e as String).toList(), ruleName: json['RuleName'] as String, negate: json['Negate'] as bool?, ); @@ -3400,7 +3398,7 @@ class KinesisVideoStreamRecordingSourceRuntimeConfiguration { fragmentSelector: FragmentSelector.fromJson( json['FragmentSelector'] as Map), streams: (json['Streams'] as List) - .whereNotNull() + .nonNulls .map((e) => RecordingStreamConfiguration.fromJson(e as Map)) .toList(), @@ -3451,7 +3449,7 @@ class KinesisVideoStreamSourceRuntimeConfiguration { MediaEncoding.fromString((json['MediaEncoding'] as String)), mediaSampleRate: json['MediaSampleRate'] as int, streams: (json['Streams'] as List) - .whereNotNull() + .nonNulls .map((e) => StreamConfiguration.fromJson(e as Map)) .toList(), ); @@ -3552,7 +3550,7 @@ class ListMediaCapturePipelinesResponse { Map json) { return ListMediaCapturePipelinesResponse( mediaCapturePipelines: (json['MediaCapturePipelines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaCapturePipelineSummary.fromJson(e as Map)) .toList(), @@ -3589,7 +3587,7 @@ class ListMediaInsightsPipelineConfigurationsResponse { return ListMediaInsightsPipelineConfigurationsResponse( mediaInsightsPipelineConfigurations: (json['MediaInsightsPipelineConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaInsightsPipelineConfigurationSummary.fromJson( e as Map)) .toList(), @@ -3626,7 +3624,7 @@ class ListMediaPipelineKinesisVideoStreamPoolsResponse { Map json) { return ListMediaPipelineKinesisVideoStreamPoolsResponse( kinesisVideoStreamPools: (json['KinesisVideoStreamPools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KinesisVideoStreamPoolSummary.fromJson(e as Map)) .toList(), @@ -3660,7 +3658,7 @@ class ListMediaPipelinesResponse { factory ListMediaPipelinesResponse.fromJson(Map json) { return ListMediaPipelinesResponse( mediaPipelines: (json['MediaPipelines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaPipelineSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3688,7 +3686,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4054,11 +4052,11 @@ class MediaConcatenationPipeline { mediaPipelineArn: json['MediaPipelineArn'] as String?, mediaPipelineId: json['MediaPipelineId'] as String?, sinks: (json['Sinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConcatenationSink.fromJson(e as Map)) .toList(), sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConcatenationSource.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(MediaPipelineStatus.fromString), @@ -4158,7 +4156,7 @@ class MediaInsightsPipeline { return MediaInsightsPipeline( createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), elementStatuses: (json['ElementStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaInsightsPipelineElementStatus.fromJson( e as Map)) .toList(), @@ -4275,7 +4273,7 @@ class MediaInsightsPipelineConfiguration { return MediaInsightsPipelineConfiguration( createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), elements: (json['Elements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaInsightsPipelineConfigurationElement.fromJson( e as Map)) .toList(), @@ -4633,12 +4631,12 @@ class MediaLiveConnectorPipeline { mediaPipelineArn: json['MediaPipelineArn'] as String?, mediaPipelineId: json['MediaPipelineId'] as String?, sinks: (json['Sinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LiveConnectorSinkConfiguration.fromJson( e as Map)) .toList(), sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LiveConnectorSourceConfiguration.fromJson( e as Map)) .toList(), @@ -4913,11 +4911,11 @@ class MediaStreamPipeline { mediaPipelineArn: json['MediaPipelineArn'] as String?, mediaPipelineId: json['MediaPipelineId'] as String?, sinks: (json['Sinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaStreamSink.fromJson(e as Map)) .toList(), sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaStreamSource.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(MediaPipelineStatus.fromString), @@ -5231,7 +5229,7 @@ class RealTimeAlertConfiguration { return RealTimeAlertConfiguration( disabled: json['Disabled'] as bool?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RealTimeAlertRule.fromJson(e as Map)) .toList(), ); @@ -5480,11 +5478,11 @@ class SelectedVideoStreams { factory SelectedVideoStreams.fromJson(Map json) { return SelectedVideoStreams( attendeeIds: (json['AttendeeIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), externalUserIds: (json['ExternalUserIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5747,7 +5745,7 @@ class StreamChannelDefinition { return StreamChannelDefinition( numberOfChannels: json['NumberOfChannels'] as int, channelDefinitions: (json['ChannelDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelDefinition.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/chime_sdk_meetings/v2021_07_15.dart b/aws_client/lib/src/generated/chime_sdk_meetings/v2021_07_15.dart index f58923337..8d40782d1 100644 --- a/aws_client/lib/src/generated/chime_sdk_meetings/v2021_07_15.dart +++ b/aws_client/lib/src/generated/chime_sdk_meetings/v2021_07_15.dart @@ -1276,11 +1276,11 @@ class BatchCreateAttendeeResponse { factory BatchCreateAttendeeResponse.fromJson(Map json) { return BatchCreateAttendeeResponse( attendees: (json['Attendees'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attendee.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CreateAttendeeError.fromJson(e as Map)) .toList(), ); @@ -1495,11 +1495,11 @@ class CreateMeetingWithAttendeesResponse { Map json) { return CreateMeetingWithAttendeesResponse( attendees: (json['Attendees'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attendee.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CreateAttendeeError.fromJson(e as Map)) .toList(), meeting: json['Meeting'] != null @@ -1883,7 +1883,7 @@ class ListAttendeesResponse { factory ListAttendeesResponse.fromJson(Map json) { return ListAttendeesResponse( attendees: (json['Attendees'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attendee.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1911,7 +1911,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2106,7 +2106,7 @@ class Meeting { meetingId: json['MeetingId'] as String?, primaryMeetingId: json['PrimaryMeetingId'] as String?, tenantIds: (json['TenantIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/chime_sdk_messaging/v2021_05_15.dart b/aws_client/lib/src/generated/chime_sdk_messaging/v2021_05_15.dart index c414aa12d..02bdb3769 100644 --- a/aws_client/lib/src/generated/chime_sdk_messaging/v2021_05_15.dart +++ b/aws_client/lib/src/generated/chime_sdk_messaging/v2021_05_15.dart @@ -2856,7 +2856,7 @@ class BatchChannelMemberships { ? Identity.fromJson(json['InvitedBy'] as Map) : null, members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Identity.fromJson(e as Map)) .toList(), subChannelId: json['SubChannelId'] as String?, @@ -2941,7 +2941,7 @@ class BatchCreateChannelMembershipResponse { json['BatchChannelMemberships'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchCreateChannelMembershipError.fromJson( e as Map)) .toList(), @@ -3229,7 +3229,7 @@ class ChannelFlow { lastUpdatedTimestamp: timeStampFromJson(json['LastUpdatedTimestamp']), name: json['Name'] as String?, processors: (json['Processors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Processor.fromJson(e as Map)) .toList(), ); @@ -3304,7 +3304,7 @@ class ChannelFlowSummary { channelFlowArn: json['ChannelFlowArn'] as String?, name: json['Name'] as String?, processors: (json['Processors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Processor.fromJson(e as Map)) .toList(), ); @@ -3614,7 +3614,7 @@ class ChannelMessage { : null, subChannelId: json['SubChannelId'] as String?, target: (json['Target'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(ChannelMessageType.fromString), @@ -3892,7 +3892,7 @@ class ChannelMessageSummary { json['Status'] as Map) : null, target: (json['Target'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(ChannelMessageType.fromString), @@ -4719,7 +4719,7 @@ class GetMessagingStreamingConfigurationsResponse { Map json) { return GetMessagingStreamingConfigurationsResponse( streamingConfigurations: (json['StreamingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => StreamingConfiguration.fromJson(e as Map)) .toList(), @@ -4831,7 +4831,7 @@ class ListChannelBansResponse { return ListChannelBansResponse( channelArn: json['ChannelArn'] as String?, channelBans: (json['ChannelBans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelBanSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4866,7 +4866,7 @@ class ListChannelFlowsResponse { factory ListChannelFlowsResponse.fromJson(Map json) { return ListChannelFlowsResponse( channelFlows: (json['ChannelFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelFlowSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4900,7 +4900,7 @@ class ListChannelMembershipsForAppInstanceUserResponse { Map json) { return ListChannelMembershipsForAppInstanceUserResponse( channelMemberships: (json['ChannelMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelMembershipForAppInstanceUserSummary.fromJson( e as Map)) .toList(), @@ -4939,7 +4939,7 @@ class ListChannelMembershipsResponse { return ListChannelMembershipsResponse( channelArn: json['ChannelArn'] as String?, channelMemberships: (json['ChannelMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelMembershipSummary.fromJson(e as Map)) .toList(), @@ -4984,7 +4984,7 @@ class ListChannelMessagesResponse { return ListChannelMessagesResponse( channelArn: json['ChannelArn'] as String?, channelMessages: (json['ChannelMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelMessageSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5027,7 +5027,7 @@ class ListChannelModeratorsResponse { return ListChannelModeratorsResponse( channelArn: json['ChannelArn'] as String?, channelModerators: (json['ChannelModerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelModeratorSummary.fromJson(e as Map)) .toList(), @@ -5064,7 +5064,7 @@ class ListChannelsAssociatedWithChannelFlowResponse { Map json) { return ListChannelsAssociatedWithChannelFlowResponse( channels: (json['Channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelAssociatedWithFlowSummary.fromJson( e as Map)) .toList(), @@ -5099,7 +5099,7 @@ class ListChannelsModeratedByAppInstanceUserResponse { Map json) { return ListChannelsModeratedByAppInstanceUserResponse( channels: (json['Channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelModeratedByAppInstanceUserSummary.fromJson( e as Map)) .toList(), @@ -5133,7 +5133,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( channels: (json['Channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5172,7 +5172,7 @@ class ListSubChannelsResponse { channelArn: json['ChannelArn'] as String?, nextToken: json['NextToken'] as String?, subChannels: (json['SubChannels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubChannelSummary.fromJson(e as Map)) .toList(), ); @@ -5201,7 +5201,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5227,7 +5227,7 @@ class MessageAttributeValue { factory MessageAttributeValue.fromJson(Map json) { return MessageAttributeValue( stringValues: (json['StringValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5527,7 +5527,7 @@ class PutMessagingStreamingConfigurationsResponse { Map json) { return PutMessagingStreamingConfigurationsResponse( streamingConfigurations: (json['StreamingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => StreamingConfiguration.fromJson(e as Map)) .toList(), @@ -5599,7 +5599,7 @@ class SearchChannelsResponse { factory SearchChannelsResponse.fromJson(Map json) { return SearchChannelsResponse( channels: (json['Channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/chime_sdk_voice/v2022_08_03.dart b/aws_client/lib/src/generated/chime_sdk_voice/v2022_08_03.dart index 989a8390d..33f959d66 100644 --- a/aws_client/lib/src/generated/chime_sdk_voice/v2022_08_03.dart +++ b/aws_client/lib/src/generated/chime_sdk_voice/v2022_08_03.dart @@ -3507,7 +3507,7 @@ class AssociatePhoneNumbersWithVoiceConnectorGroupResponse { Map json) { return AssociatePhoneNumbersWithVoiceConnectorGroupResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -3535,7 +3535,7 @@ class AssociatePhoneNumbersWithVoiceConnectorResponse { Map json) { return AssociatePhoneNumbersWithVoiceConnectorResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -3562,7 +3562,7 @@ class BatchDeletePhoneNumberResponse { factory BatchDeletePhoneNumberResponse.fromJson(Map json) { return BatchDeletePhoneNumberResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -3587,7 +3587,7 @@ class BatchUpdatePhoneNumberResponse { factory BatchUpdatePhoneNumberResponse.fromJson(Map json) { return BatchUpdatePhoneNumberResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -4058,7 +4058,7 @@ class DisassociatePhoneNumbersFromVoiceConnectorGroupResponse { Map json) { return DisassociatePhoneNumbersFromVoiceConnectorGroupResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -4086,7 +4086,7 @@ class DisassociatePhoneNumbersFromVoiceConnectorResponse { Map json) { return DisassociatePhoneNumbersFromVoiceConnectorResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -4114,7 +4114,7 @@ class EmergencyCallingConfiguration { factory EmergencyCallingConfiguration.fromJson(Map json) { return EmergencyCallingConfiguration( dnis: (json['DNIS'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DNISEmergencyCallingConfiguration.fromJson( e as Map)) .toList(), @@ -4805,7 +4805,7 @@ class ListAvailableVoiceConnectorRegionsResponse { Map json) { return ListAvailableVoiceConnectorRegionsResponse( voiceConnectorRegions: (json['VoiceConnectorRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoiceConnectorAwsRegion.fromString((e as String))) .toList(), ); @@ -4837,7 +4837,7 @@ class ListPhoneNumberOrdersResponse { return ListPhoneNumberOrdersResponse( nextToken: json['NextToken'] as String?, phoneNumberOrders: (json['PhoneNumberOrders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberOrder.fromJson(e as Map)) .toList(), ); @@ -4869,7 +4869,7 @@ class ListPhoneNumbersResponse { return ListPhoneNumbersResponse( nextToken: json['NextToken'] as String?, phoneNumbers: (json['PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumber.fromJson(e as Map)) .toList(), ); @@ -4901,7 +4901,7 @@ class ListProxySessionsResponse { return ListProxySessionsResponse( nextToken: json['NextToken'] as String?, proxySessions: (json['ProxySessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProxySession.fromJson(e as Map)) .toList(), ); @@ -4933,7 +4933,7 @@ class ListSipMediaApplicationsResponse { return ListSipMediaApplicationsResponse( nextToken: json['NextToken'] as String?, sipMediaApplications: (json['SipMediaApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipMediaApplication.fromJson(e as Map)) .toList(), ); @@ -4966,7 +4966,7 @@ class ListSipRulesResponse { return ListSipRulesResponse( nextToken: json['NextToken'] as String?, sipRules: (json['SipRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipRule.fromJson(e as Map)) .toList(), ); @@ -4994,7 +4994,7 @@ class ListSupportedPhoneNumberCountriesResponse { Map json) { return ListSupportedPhoneNumberCountriesResponse( phoneNumberCountries: (json['PhoneNumberCountries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberCountry.fromJson(e as Map)) .toList(), ); @@ -5020,7 +5020,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5050,7 +5050,7 @@ class ListVoiceConnectorGroupsResponse { return ListVoiceConnectorGroupsResponse( nextToken: json['NextToken'] as String?, voiceConnectorGroups: (json['VoiceConnectorGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoiceConnectorGroup.fromJson(e as Map)) .toList(), ); @@ -5079,7 +5079,7 @@ class ListVoiceConnectorTerminationCredentialsResponse { Map json) { return ListVoiceConnectorTerminationCredentialsResponse( usernames: (json['Usernames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5109,7 +5109,7 @@ class ListVoiceConnectorsResponse { return ListVoiceConnectorsResponse( nextToken: json['NextToken'] as String?, voiceConnectors: (json['VoiceConnectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoiceConnector.fromJson(e as Map)) .toList(), ); @@ -5141,7 +5141,7 @@ class ListVoiceProfileDomainsResponse { return ListVoiceProfileDomainsResponse( nextToken: json['NextToken'] as String?, voiceProfileDomains: (json['VoiceProfileDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoiceProfileDomainSummary.fromJson(e as Map)) .toList(), @@ -5175,7 +5175,7 @@ class ListVoiceProfilesResponse { return ListVoiceProfilesResponse( nextToken: json['NextToken'] as String?, voiceProfiles: (json['VoiceProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoiceProfileSummary.fromJson(e as Map)) .toList(), ); @@ -5357,7 +5357,7 @@ class Origination { return Origination( disabled: json['Disabled'] as bool?, routes: (json['Routes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OriginationRoute.fromJson(e as Map)) .toList(), ); @@ -5547,7 +5547,7 @@ class PhoneNumber { factory PhoneNumber.fromJson(Map json) { return PhoneNumber( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => PhoneNumberAssociation.fromJson(e as Map)) .toList(), @@ -5746,7 +5746,7 @@ class PhoneNumberCountry { return PhoneNumberCountry( countryCode: json['CountryCode'] as String?, supportedPhoneNumberTypes: (json['SupportedPhoneNumberTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberType.fromString((e as String))) .toList(), ); @@ -5843,7 +5843,7 @@ class PhoneNumberOrder { orderType: (json['OrderType'] as String?)?.let(PhoneNumberOrderType.fromString), orderedPhoneNumbers: (json['OrderedPhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrderedPhoneNumber.fromJson(e as Map)) .toList(), phoneNumberOrderId: json['PhoneNumberOrderId'] as String?, @@ -5999,7 +5999,7 @@ class Proxy { disabled: json['Disabled'] as bool?, fallBackPhoneNumber: json['FallBackPhoneNumber'] as String?, phoneNumberCountries: (json['PhoneNumberCountries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6084,7 +6084,7 @@ class ProxySession { factory ProxySession.fromJson(Map json) { return ProxySession( capabilities: (json['Capabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Capability.fromString((e as String))) .toList(), createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), @@ -6100,7 +6100,7 @@ class ProxySession { numberSelectionBehavior: (json['NumberSelectionBehavior'] as String?) ?.let(NumberSelectionBehavior.fromString), participants: (json['Participants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Participant.fromJson(e as Map)) .toList(), proxySessionId: json['ProxySessionId'] as String?, @@ -6423,7 +6423,7 @@ class SearchAvailablePhoneNumbersResponse { Map json) { return SearchAvailablePhoneNumbersResponse( e164PhoneNumbers: (json['E164PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -6510,7 +6510,7 @@ class SipMediaApplication { awsRegion: json['AwsRegion'] as String?, createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipMediaApplicationEndpoint.fromJson(e as Map)) .toList(), @@ -6568,7 +6568,7 @@ class SipMediaApplicationAlexaSkillConfiguration { Map json) { return SipMediaApplicationAlexaSkillConfiguration( alexaSkillIds: (json['AlexaSkillIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), alexaSkillStatus: @@ -6712,7 +6712,7 @@ class SipRule { name: json['Name'] as String?, sipRuleId: json['SipRuleId'] as String?, targetApplications: (json['TargetApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipRuleTargetApplication.fromJson(e as Map)) .toList(), @@ -6820,7 +6820,7 @@ class SpeakerSearchDetails { factory SpeakerSearchDetails.fromJson(Map json) { return SpeakerSearchDetails( results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SpeakerSearchResult.fromJson(e as Map)) .toList(), voiceprintGenerationStatus: json['VoiceprintGenerationStatus'] as String?, @@ -7040,7 +7040,7 @@ class StreamingConfiguration { : null, streamingNotificationTargets: (json['StreamingNotificationTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamingNotificationTarget.fromJson(e as Map)) .toList(), @@ -7149,11 +7149,11 @@ class Termination { factory Termination.fromJson(Map json) { return Termination( callingRegions: (json['CallingRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cidrAllowedList: (json['CidrAllowedList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cpsLimit: json['CpsLimit'] as int?, @@ -7503,7 +7503,7 @@ class ValidateE911AddressResponse { : null, addressExternalId: json['AddressExternalId'] as String?, candidateAddressList: (json['CandidateAddressList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CandidateAddress.fromJson(e as Map)) .toList(), validationResult: json['ValidationResult'] as int?, @@ -7664,7 +7664,7 @@ class VoiceConnectorGroup { voiceConnectorGroupArn: json['VoiceConnectorGroupArn'] as String?, voiceConnectorGroupId: json['VoiceConnectorGroupId'] as String?, voiceConnectorItems: (json['VoiceConnectorItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoiceConnectorItem.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/clean_rooms/v2022_02_17.dart b/aws_client/lib/src/generated/clean_rooms/v2022_02_17.dart index 463144e6f..08073d1f5 100644 --- a/aws_client/lib/src/generated/clean_rooms/v2022_02_17.dart +++ b/aws_client/lib/src/generated/clean_rooms/v2022_02_17.dart @@ -2494,7 +2494,7 @@ class AggregateColumn { factory AggregateColumn.fromJson(Map json) { return AggregateColumn( columnNames: (json['columnNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), function: AggregateFunctionName.fromString((json['function'] as String)), @@ -2756,27 +2756,27 @@ class AnalysisRuleAggregation { factory AnalysisRuleAggregation.fromJson(Map json) { return AnalysisRuleAggregation( aggregateColumns: (json['aggregateColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => AggregateColumn.fromJson(e as Map)) .toList(), dimensionColumns: (json['dimensionColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), joinColumns: (json['joinColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), outputConstraints: (json['outputConstraints'] as List) - .whereNotNull() + .nonNulls .map((e) => AggregationConstraint.fromJson(e as Map)) .toList(), scalarFunctions: (json['scalarFunctions'] as List) - .whereNotNull() + .nonNulls .map((e) => ScalarFunctions.fromString((e as String))) .toList(), allowedJoinOperators: (json['allowedJoinOperators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JoinOperator.fromString((e as String))) .toList(), joinRequired: @@ -2830,11 +2830,11 @@ class AnalysisRuleCustom { factory AnalysisRuleCustom.fromJson(Map json) { return AnalysisRuleCustom( allowedAnalyses: (json['allowedAnalyses'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowedAnalysisProviders: (json['allowedAnalysisProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), differentialPrivacy: json['differentialPrivacy'] != null @@ -2880,15 +2880,15 @@ class AnalysisRuleList { factory AnalysisRuleList.fromJson(Map json) { return AnalysisRuleList( joinColumns: (json['joinColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), listColumns: (json['listColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowedJoinOperators: (json['allowedJoinOperators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JoinOperator.fromString((e as String))) .toList(), ); @@ -3006,7 +3006,7 @@ class AnalysisSchema { factory AnalysisSchema.fromJson(Map json) { return AnalysisSchema( referencedTables: (json['referencedTables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3124,12 +3124,12 @@ class AnalysisTemplate { source: AnalysisSource.fromJson(json['source'] as Map), updateTime: nonNullableTimeStampFromJson(json['updateTime'] as Object), analysisParameters: (json['analysisParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisParameter.fromJson(e as Map)) .toList(), description: json['description'] as String?, validations: (json['validations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisTemplateValidationStatusDetail.fromJson( e as Map)) .toList(), @@ -3310,7 +3310,7 @@ class AnalysisTemplateValidationStatusDetail { (json['status'] as String)), type: AnalysisTemplateValidationType.fromString((json['type'] as String)), reasons: (json['reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisTemplateValidationStatusReason.fromJson( e as Map)) .toList(), @@ -3425,12 +3425,12 @@ class BatchGetCollaborationAnalysisTemplateOutput { return BatchGetCollaborationAnalysisTemplateOutput( collaborationAnalysisTemplates: (json['collaborationAnalysisTemplates'] as List) - .whereNotNull() + .nonNulls .map((e) => CollaborationAnalysisTemplate.fromJson(e as Map)) .toList(), errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetCollaborationAnalysisTemplateError.fromJson( e as Map)) .toList(), @@ -3507,11 +3507,11 @@ class BatchGetSchemaAnalysisRuleOutput { factory BatchGetSchemaAnalysisRuleOutput.fromJson(Map json) { return BatchGetSchemaAnalysisRuleOutput( analysisRules: (json['analysisRules'] as List) - .whereNotNull() + .nonNulls .map((e) => AnalysisRule.fromJson(e as Map)) .toList(), errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetSchemaAnalysisRuleError.fromJson( e as Map)) .toList(), @@ -3581,11 +3581,11 @@ class BatchGetSchemaOutput { factory BatchGetSchemaOutput.fromJson(Map json) { return BatchGetSchemaOutput( errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetSchemaError.fromJson(e as Map)) .toList(), schemas: (json['schemas'] as List) - .whereNotNull() + .nonNulls .map((e) => Schema.fromJson(e as Map)) .toList(), ); @@ -3794,12 +3794,12 @@ class CollaborationAnalysisTemplate { source: AnalysisSource.fromJson(json['source'] as Map), updateTime: nonNullableTimeStampFromJson(json['updateTime'] as Object), analysisParameters: (json['analysisParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisParameter.fromJson(e as Map)) .toList(), description: json['description'] as String?, validations: (json['validations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisTemplateValidationStatusDetail.fromJson( e as Map)) .toList(), @@ -4765,13 +4765,13 @@ class ConfiguredTable { factory ConfiguredTable.fromJson(Map json) { return ConfiguredTable( allowedColumns: (json['allowedColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), analysisMethod: AnalysisMethod.fromString((json['analysisMethod'] as String)), analysisRuleTypes: (json['analysisRuleTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => ConfiguredTableAnalysisRuleType.fromString((e as String))) .toList(), arn: json['arn'] as String, @@ -5174,7 +5174,7 @@ class ConfiguredTableSummary { analysisMethod: AnalysisMethod.fromString((json['analysisMethod'] as String)), analysisRuleTypes: (json['analysisRuleTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => ConfiguredTableAnalysisRuleType.fromString((e as String))) .toList(), arn: json['arn'] as String, @@ -5625,7 +5625,7 @@ class DifferentialPrivacyConfiguration { factory DifferentialPrivacyConfiguration.fromJson(Map json) { return DifferentialPrivacyConfiguration( columns: (json['columns'] as List) - .whereNotNull() + .nonNulls .map((e) => DifferentialPrivacyColumn.fromJson(e as Map)) .toList(), @@ -5653,7 +5653,7 @@ class DifferentialPrivacyParameters { factory DifferentialPrivacyParameters.fromJson(Map json) { return DifferentialPrivacyParameters( sensitivityParameters: (json['sensitivityParameters'] as List) - .whereNotNull() + .nonNulls .map((e) => DifferentialPrivacySensitivityParameters.fromJson( e as Map)) .toList(), @@ -5745,7 +5745,7 @@ class DifferentialPrivacyPrivacyBudget { factory DifferentialPrivacyPrivacyBudget.fromJson(Map json) { return DifferentialPrivacyPrivacyBudget( aggregations: (json['aggregations'] as List) - .whereNotNull() + .nonNulls .map((e) => DifferentialPrivacyPrivacyBudgetAggregation.fromJson( e as Map)) .toList(), @@ -5818,7 +5818,7 @@ class DifferentialPrivacyPrivacyImpact { factory DifferentialPrivacyPrivacyImpact.fromJson(Map json) { return DifferentialPrivacyPrivacyImpact( aggregations: (json['aggregations'] as List) - .whereNotNull() + .nonNulls .map((e) => DifferentialPrivacyPreviewAggregation.fromJson( e as Map)) .toList(), @@ -6401,7 +6401,7 @@ class ListAnalysisTemplatesOutput { factory ListAnalysisTemplatesOutput.fromJson(Map json) { return ListAnalysisTemplatesOutput( analysisTemplateSummaries: (json['analysisTemplateSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AnalysisTemplateSummary.fromJson(e as Map)) .toList(), @@ -6438,7 +6438,7 @@ class ListCollaborationAnalysisTemplatesOutput { return ListCollaborationAnalysisTemplatesOutput( collaborationAnalysisTemplateSummaries: (json['collaborationAnalysisTemplateSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => CollaborationAnalysisTemplateSummary.fromJson( e as Map)) .toList(), @@ -6479,7 +6479,7 @@ class ListCollaborationConfiguredAudienceModelAssociationsOutput { collaborationConfiguredAudienceModelAssociationSummaries: (json['collaborationConfiguredAudienceModelAssociationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => CollaborationConfiguredAudienceModelAssociationSummary .fromJson(e as Map)) .toList(), @@ -6520,7 +6520,7 @@ class ListCollaborationPrivacyBudgetTemplatesOutput { return ListCollaborationPrivacyBudgetTemplatesOutput( collaborationPrivacyBudgetTemplateSummaries: (json['collaborationPrivacyBudgetTemplateSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => CollaborationPrivacyBudgetTemplateSummary.fromJson( e as Map)) .toList(), @@ -6559,7 +6559,7 @@ class ListCollaborationPrivacyBudgetsOutput { return ListCollaborationPrivacyBudgetsOutput( collaborationPrivacyBudgetSummaries: (json['collaborationPrivacyBudgetSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => CollaborationPrivacyBudgetSummary.fromJson( e as Map)) .toList(), @@ -6595,7 +6595,7 @@ class ListCollaborationsOutput { factory ListCollaborationsOutput.fromJson(Map json) { return ListCollaborationsOutput( collaborationList: (json['collaborationList'] as List) - .whereNotNull() + .nonNulls .map((e) => CollaborationSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6630,7 +6630,7 @@ class ListConfiguredAudienceModelAssociationsOutput { return ListConfiguredAudienceModelAssociationsOutput( configuredAudienceModelAssociationSummaries: (json['configuredAudienceModelAssociationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ConfiguredAudienceModelAssociationSummary.fromJson( e as Map)) .toList(), @@ -6669,7 +6669,7 @@ class ListConfiguredTableAssociationsOutput { return ListConfiguredTableAssociationsOutput( configuredTableAssociationSummaries: (json['configuredTableAssociationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ConfiguredTableAssociationSummary.fromJson( e as Map)) .toList(), @@ -6705,7 +6705,7 @@ class ListConfiguredTablesOutput { factory ListConfiguredTablesOutput.fromJson(Map json) { return ListConfiguredTablesOutput( configuredTableSummaries: (json['configuredTableSummaries'] as List) - .whereNotNull() + .nonNulls .map( (e) => ConfiguredTableSummary.fromJson(e as Map)) .toList(), @@ -6739,7 +6739,7 @@ class ListMembersOutput { factory ListMembersOutput.fromJson(Map json) { return ListMembersOutput( memberSummaries: (json['memberSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MemberSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6772,7 +6772,7 @@ class ListMembershipsOutput { factory ListMembershipsOutput.fromJson(Map json) { return ListMembershipsOutput( membershipSummaries: (json['membershipSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MembershipSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6807,7 +6807,7 @@ class ListPrivacyBudgetTemplatesOutput { return ListPrivacyBudgetTemplatesOutput( privacyBudgetTemplateSummaries: (json['privacyBudgetTemplateSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => PrivacyBudgetTemplateSummary.fromJson(e as Map)) .toList(), @@ -6843,7 +6843,7 @@ class ListPrivacyBudgetsOutput { factory ListPrivacyBudgetsOutput.fromJson(Map json) { return ListPrivacyBudgetsOutput( privacyBudgetSummaries: (json['privacyBudgetSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => PrivacyBudgetSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6876,7 +6876,7 @@ class ListProtectedQueriesOutput { factory ListProtectedQueriesOutput.fromJson(Map json) { return ListProtectedQueriesOutput( protectedQueries: (json['protectedQueries'] as List) - .whereNotNull() + .nonNulls .map((e) => ProtectedQuerySummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6909,7 +6909,7 @@ class ListSchemasOutput { factory ListSchemasOutput.fromJson(Map json) { return ListSchemasOutput( schemaSummaries: (json['schemaSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => SchemaSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7068,7 +7068,7 @@ class MemberSummary { factory MemberSummary.fromJson(Map json) { return MemberSummary( abilities: (json['abilities'] as List) - .whereNotNull() + .nonNulls .map((e) => MemberAbility.fromString((e as String))) .toList(), accountId: json['accountId'] as String, @@ -7184,7 +7184,7 @@ class Membership { createTime: nonNullableTimeStampFromJson(json['createTime'] as Object), id: json['id'] as String, memberAbilities: (json['memberAbilities'] as List) - .whereNotNull() + .nonNulls .map((e) => MemberAbility.fromString((e as String))) .toList(), paymentConfiguration: MembershipPaymentConfiguration.fromJson( @@ -7463,7 +7463,7 @@ class MembershipSummary { createTime: nonNullableTimeStampFromJson(json['createTime'] as Object), id: json['id'] as String, memberAbilities: (json['memberAbilities'] as List) - .whereNotNull() + .nonNulls .map((e) => MemberAbility.fromString((e as String))) .toList(), paymentConfiguration: MembershipPaymentConfiguration.fromJson( @@ -8204,7 +8204,7 @@ class ProtectedQueryOutput { factory ProtectedQueryOutput.fromJson(Map json) { return ProtectedQueryOutput( memberList: (json['memberList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectedQuerySingleMemberOutput.fromJson( e as Map)) .toList(), @@ -8688,13 +8688,13 @@ class Schema { factory Schema.fromJson(Map json) { return Schema( analysisRuleTypes: (json['analysisRuleTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => AnalysisRuleType.fromString((e as String))) .toList(), collaborationArn: json['collaborationArn'] as String, collaborationId: json['collaborationId'] as String, columns: (json['columns'] as List) - .whereNotNull() + .nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), createTime: nonNullableTimeStampFromJson(json['createTime'] as Object), @@ -8702,11 +8702,11 @@ class Schema { description: json['description'] as String, name: json['name'] as String, partitionKeys: (json['partitionKeys'] as List) - .whereNotNull() + .nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), schemaStatusDetails: (json['schemaStatusDetails'] as List) - .whereNotNull() + .nonNulls .map((e) => SchemaStatusDetail.fromJson(e as Map)) .toList(), type: SchemaType.fromString((json['type'] as String)), @@ -8833,11 +8833,11 @@ class SchemaStatusDetail { analysisRuleType: (json['analysisRuleType'] as String?) ?.let(AnalysisRuleType.fromString), configurations: (json['configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConfiguration.fromString((e as String))) .toList(), reasons: (json['reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaStatusReason.fromJson(e as Map)) .toList(), ); @@ -8952,7 +8952,7 @@ class SchemaSummary { factory SchemaSummary.fromJson(Map json) { return SchemaSummary( analysisRuleTypes: (json['analysisRuleTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => AnalysisRuleType.fromString((e as String))) .toList(), collaborationArn: json['collaborationArn'] as String, diff --git a/aws_client/lib/src/generated/clean_rooms_ml/v2023_09_06.dart b/aws_client/lib/src/generated/clean_rooms_ml/v2023_09_06.dart index 02b2e1c90..b4c66fb52 100644 --- a/aws_client/lib/src/generated/clean_rooms_ml/v2023_09_06.dart +++ b/aws_client/lib/src/generated/clean_rooms_ml/v2023_09_06.dart @@ -1548,7 +1548,7 @@ class AudienceQualityMetrics { factory AudienceQualityMetrics.fromJson(Map json) { return AudienceQualityMetrics( relevanceMetrics: (json['relevanceMetrics'] as List) - .whereNotNull() + .nonNulls .map((e) => RelevanceMetric.fromJson(e as Map)) .toList(), recallMetric: json['recallMetric'] as double?, @@ -1623,7 +1623,7 @@ class AudienceSizeConfig { factory AudienceSizeConfig.fromJson(Map json) { return AudienceSizeConfig( audienceSizeBins: (json['audienceSizeBins'] as List) - .whereNotNull() + .nonNulls .map((e) => e as int) .toList(), audienceSizeType: @@ -1673,7 +1673,7 @@ class ColumnSchema { return ColumnSchema( columnName: json['columnName'] as String, columnTypes: (json['columnTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnType.fromString((e as String))) .toList(), ); @@ -1971,7 +1971,7 @@ class DatasetInputConfig { dataSource: DataSource.fromJson(json['dataSource'] as Map), schema: (json['schema'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnSchema.fromJson(e as Map)) .toList(), ); @@ -2356,7 +2356,7 @@ class GetConfiguredAudienceModelResponse { outputConfig: ConfiguredAudienceModelOutputConfig.fromJson( json['outputConfig'] as Map), sharedAudienceMetrics: (json['sharedAudienceMetrics'] as List) - .whereNotNull() + .nonNulls .map((e) => SharedAudienceMetrics.fromString((e as String))) .toList(), status: @@ -2458,7 +2458,7 @@ class GetTrainingDatasetResponse { roleArn: json['roleArn'] as String, status: TrainingDatasetStatus.fromString((json['status'] as String)), trainingData: (json['trainingData'] as List) - .whereNotNull() + .nonNulls .map((e) => Dataset.fromJson(e as Map)) .toList(), trainingDatasetArn: json['trainingDatasetArn'] as String, @@ -2546,7 +2546,7 @@ class ListAudienceExportJobsResponse { factory ListAudienceExportJobsResponse.fromJson(Map json) { return ListAudienceExportJobsResponse( audienceExportJobs: (json['audienceExportJobs'] as List) - .whereNotNull() + .nonNulls .map((e) => AudienceExportJobSummary.fromJson(e as Map)) .toList(), @@ -2581,7 +2581,7 @@ class ListAudienceGenerationJobsResponse { Map json) { return ListAudienceGenerationJobsResponse( audienceGenerationJobs: (json['audienceGenerationJobs'] as List) - .whereNotNull() + .nonNulls .map((e) => AudienceGenerationJobSummary.fromJson(e as Map)) .toList(), @@ -2615,7 +2615,7 @@ class ListAudienceModelsResponse { factory ListAudienceModelsResponse.fromJson(Map json) { return ListAudienceModelsResponse( audienceModels: (json['audienceModels'] as List) - .whereNotNull() + .nonNulls .map((e) => AudienceModelSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2649,7 +2649,7 @@ class ListConfiguredAudienceModelsResponse { Map json) { return ListConfiguredAudienceModelsResponse( configuredAudienceModels: (json['configuredAudienceModels'] as List) - .whereNotNull() + .nonNulls .map((e) => ConfiguredAudienceModelSummary.fromJson( e as Map)) .toList(), @@ -2706,7 +2706,7 @@ class ListTrainingDatasetsResponse { factory ListTrainingDatasetsResponse.fromJson(Map json) { return ListTrainingDatasetsResponse( trainingDatasets: (json['trainingDatasets'] as List) - .whereNotNull() + .nonNulls .map( (e) => TrainingDatasetSummary.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/cloud9/v2017_09_23.dart b/aws_client/lib/src/generated/cloud9/v2017_09_23.dart index aa01a3fef..6b4087654 100644 --- a/aws_client/lib/src/generated/cloud9/v2017_09_23.dart +++ b/aws_client/lib/src/generated/cloud9/v2017_09_23.dart @@ -872,7 +872,7 @@ class DescribeEnvironmentMembershipsResult { Map json) { return DescribeEnvironmentMembershipsResult( memberships: (json['memberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentMember.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -953,7 +953,7 @@ class DescribeEnvironmentsResult { factory DescribeEnvironmentsResult.fromJson(Map json) { return DescribeEnvironmentsResult( environments: (json['environments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Environment.fromJson(e as Map)) .toList(), ); @@ -1293,7 +1293,7 @@ class ListEnvironmentsResult { factory ListEnvironmentsResult.fromJson(Map json) { return ListEnvironmentsResult( environmentIds: (json['environmentIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -1321,7 +1321,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/cloud_control/v2021_09_30.dart b/aws_client/lib/src/generated/cloud_control/v2021_09_30.dart index 65c05f9d1..995844fe1 100644 --- a/aws_client/lib/src/generated/cloud_control/v2021_09_30.dart +++ b/aws_client/lib/src/generated/cloud_control/v2021_09_30.dart @@ -974,7 +974,7 @@ class ListResourceRequestsOutput { nextToken: json['NextToken'] as String?, resourceRequestStatusSummaries: (json['ResourceRequestStatusSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProgressEvent.fromJson(e as Map)) .toList(), ); @@ -1016,7 +1016,7 @@ class ListResourcesOutput { return ListResourcesOutput( nextToken: json['NextToken'] as String?, resourceDescriptions: (json['ResourceDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceDescription.fromJson(e as Map)) .toList(), typeName: json['TypeName'] as String?, diff --git a/aws_client/lib/src/generated/cloud_directory/v2016_05_10.dart b/aws_client/lib/src/generated/cloud_directory/v2016_05_10.dart index 49e813cbe..ba13fe6b8 100644 --- a/aws_client/lib/src/generated/cloud_directory/v2016_05_10.dart +++ b/aws_client/lib/src/generated/cloud_directory/v2016_05_10.dart @@ -4104,7 +4104,7 @@ class BatchGetLinkAttributesResponse { factory BatchGetLinkAttributesResponse.fromJson(Map json) { return BatchGetLinkAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -4162,7 +4162,7 @@ class BatchGetObjectAttributesResponse { factory BatchGetObjectAttributesResponse.fromJson(Map json) { return BatchGetObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -4213,7 +4213,7 @@ class BatchGetObjectInformationResponse { return BatchGetObjectInformationResponse( objectIdentifier: json['ObjectIdentifier'] as String?, schemaFacets: (json['SchemaFacets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaFacet.fromJson(e as Map)) .toList(), ); @@ -4276,7 +4276,7 @@ class BatchListAttachedIndicesResponse { factory BatchListAttachedIndicesResponse.fromJson(Map json) { return BatchListAttachedIndicesResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4359,7 +4359,7 @@ class BatchListIncomingTypedLinksResponse { Map json) { return BatchListIncomingTypedLinksResponse( linkSpecifiers: (json['LinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4430,7 +4430,7 @@ class BatchListIndexResponse { factory BatchListIndexResponse.fromJson(Map json) { return BatchListIndexResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4502,7 +4502,7 @@ class BatchListObjectAttributesResponse { Map json) { return BatchListObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4633,7 +4633,7 @@ class BatchListObjectParentPathsResponse { nextToken: json['NextToken'] as String?, pathToObjectIdentifiersList: (json['PathToObjectIdentifiersList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PathToObjectIdentifiers.fromJson(e as Map)) .toList(), @@ -4699,7 +4699,7 @@ class BatchListObjectPoliciesResponse { factory BatchListObjectPoliciesResponse.fromJson(Map json) { return BatchListObjectPoliciesResponse( attachedPolicyIds: (json['AttachedPolicyIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -4783,7 +4783,7 @@ class BatchListOutgoingTypedLinksResponse { return BatchListOutgoingTypedLinksResponse( nextToken: json['NextToken'] as String?, typedLinkSpecifiers: (json['TypedLinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), ); @@ -4849,7 +4849,7 @@ class BatchListPolicyAttachmentsResponse { return BatchListPolicyAttachmentsResponse( nextToken: json['NextToken'] as String?, objectIdentifiers: (json['ObjectIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4916,7 +4916,7 @@ class BatchLookupPolicyResponse { return BatchLookupPolicyResponse( nextToken: json['NextToken'] as String?, policyToPathList: (json['PolicyToPathList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyToPath.fromJson(e as Map)) .toList(), ); @@ -5154,7 +5154,7 @@ class BatchReadResponse { factory BatchReadResponse.fromJson(Map json) { return BatchReadResponse( responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchReadOperationResponse.fromJson(e as Map)) .toList(), @@ -5832,7 +5832,7 @@ class BatchWriteResponse { factory BatchWriteResponse.fromJson(Map json) { return BatchWriteResponse( responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchWriteOperationResponse.fromJson(e as Map)) .toList(), @@ -6747,7 +6747,7 @@ class GetLinkAttributesResponse { factory GetLinkAttributesResponse.fromJson(Map json) { return GetLinkAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -6772,7 +6772,7 @@ class GetObjectAttributesResponse { factory GetObjectAttributesResponse.fromJson(Map json) { return GetObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -6804,7 +6804,7 @@ class GetObjectInformationResponse { return GetObjectInformationResponse( objectIdentifier: json['ObjectIdentifier'] as String?, schemaFacets: (json['SchemaFacets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaFacet.fromJson(e as Map)) .toList(), ); @@ -6870,7 +6870,7 @@ class GetTypedLinkFacetInformationResponse { Map json) { return GetTypedLinkFacetInformationResponse( identityAttributeOrder: (json['IdentityAttributeOrder'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6929,7 +6929,7 @@ class IndexAttachment { factory IndexAttachment.fromJson(Map json) { return IndexAttachment( indexedAttributes: (json['IndexedAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), objectIdentifier: json['ObjectIdentifier'] as String?, @@ -7266,7 +7266,7 @@ class ListAppliedSchemaArnsResponse { return ListAppliedSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7297,7 +7297,7 @@ class ListAttachedIndicesResponse { factory ListAttachedIndicesResponse.fromJson(Map json) { return ListAttachedIndicesResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7331,7 +7331,7 @@ class ListDevelopmentSchemaArnsResponse { return ListDevelopmentSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7363,7 +7363,7 @@ class ListDirectoriesResponse { factory ListDirectoriesResponse.fromJson(Map json) { return ListDirectoriesResponse( directories: (json['Directories'] as List) - .whereNotNull() + .nonNulls .map((e) => Directory.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7395,7 +7395,7 @@ class ListFacetAttributesResponse { factory ListFacetAttributesResponse.fromJson(Map json) { return ListFacetAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FacetAttribute.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7427,7 +7427,7 @@ class ListFacetNamesResponse { factory ListFacetNamesResponse.fromJson(Map json) { return ListFacetNamesResponse( facetNames: (json['FacetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7459,7 +7459,7 @@ class ListIncomingTypedLinksResponse { factory ListIncomingTypedLinksResponse.fromJson(Map json) { return ListIncomingTypedLinksResponse( linkSpecifiers: (json['LinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7491,7 +7491,7 @@ class ListIndexResponse { factory ListIndexResponse.fromJson(Map json) { return ListIndexResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7524,7 +7524,7 @@ class ListObjectAttributesResponse { factory ListObjectAttributesResponse.fromJson(Map json) { return ListObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7590,7 +7590,7 @@ class ListObjectParentPathsResponse { nextToken: json['NextToken'] as String?, pathToObjectIdentifiersList: (json['PathToObjectIdentifiersList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PathToObjectIdentifiers.fromJson(e as Map)) .toList(), @@ -7655,7 +7655,7 @@ class ListObjectPoliciesResponse { factory ListObjectPoliciesResponse.fromJson(Map json) { return ListObjectPoliciesResponse( attachedPolicyIds: (json['AttachedPolicyIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7688,7 +7688,7 @@ class ListOutgoingTypedLinksResponse { return ListOutgoingTypedLinksResponse( nextToken: json['NextToken'] as String?, typedLinkSpecifiers: (json['TypedLinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), ); @@ -7721,7 +7721,7 @@ class ListPolicyAttachmentsResponse { return ListPolicyAttachmentsResponse( nextToken: json['NextToken'] as String?, objectIdentifiers: (json['ObjectIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7753,7 +7753,7 @@ class ListPublishedSchemaArnsResponse { return ListPublishedSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7786,7 +7786,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7818,7 +7818,7 @@ class ListTypedLinkFacetAttributesResponse { Map json) { return ListTypedLinkFacetAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkAttributeDefinition.fromJson(e as Map)) .toList(), @@ -7851,7 +7851,7 @@ class ListTypedLinkFacetNamesResponse { factory ListTypedLinkFacetNamesResponse.fromJson(Map json) { return ListTypedLinkFacetNamesResponse( facetNames: (json['FacetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7887,7 +7887,7 @@ class LookupPolicyResponse { return LookupPolicyResponse( nextToken: json['NextToken'] as String?, policyToPathList: (json['PolicyToPathList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyToPath.fromJson(e as Map)) .toList(), ); @@ -8166,7 +8166,7 @@ class PathToObjectIdentifiers { factory PathToObjectIdentifiers.fromJson(Map json) { return PathToObjectIdentifiers( objectIdentifiers: (json['ObjectIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), path: json['Path'] as String?, @@ -8244,7 +8244,7 @@ class PolicyToPath { return PolicyToPath( path: json['Path'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyAttachment.fromJson(e as Map)) .toList(), ); @@ -8888,7 +8888,7 @@ class TypedLinkSpecifier { factory TypedLinkSpecifier.fromJson(Map json) { return TypedLinkSpecifier( identityAttributeValues: (json['IdentityAttributeValues'] as List) - .whereNotNull() + .nonNulls .map((e) => AttributeNameAndValue.fromJson(e as Map)) .toList(), sourceObjectReference: ObjectReference.fromJson( diff --git a/aws_client/lib/src/generated/cloud_directory/v2017_01_11.dart b/aws_client/lib/src/generated/cloud_directory/v2017_01_11.dart index aaf39f736..0eba24d34 100644 --- a/aws_client/lib/src/generated/cloud_directory/v2017_01_11.dart +++ b/aws_client/lib/src/generated/cloud_directory/v2017_01_11.dart @@ -4155,7 +4155,7 @@ class BatchGetLinkAttributesResponse { factory BatchGetLinkAttributesResponse.fromJson(Map json) { return BatchGetLinkAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -4213,7 +4213,7 @@ class BatchGetObjectAttributesResponse { factory BatchGetObjectAttributesResponse.fromJson(Map json) { return BatchGetObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -4264,7 +4264,7 @@ class BatchGetObjectInformationResponse { return BatchGetObjectInformationResponse( objectIdentifier: json['ObjectIdentifier'] as String?, schemaFacets: (json['SchemaFacets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaFacet.fromJson(e as Map)) .toList(), ); @@ -4327,7 +4327,7 @@ class BatchListAttachedIndicesResponse { factory BatchListAttachedIndicesResponse.fromJson(Map json) { return BatchListAttachedIndicesResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4410,7 +4410,7 @@ class BatchListIncomingTypedLinksResponse { Map json) { return BatchListIncomingTypedLinksResponse( linkSpecifiers: (json['LinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4481,7 +4481,7 @@ class BatchListIndexResponse { factory BatchListIndexResponse.fromJson(Map json) { return BatchListIndexResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4553,7 +4553,7 @@ class BatchListObjectAttributesResponse { Map json) { return BatchListObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4684,7 +4684,7 @@ class BatchListObjectParentPathsResponse { nextToken: json['NextToken'] as String?, pathToObjectIdentifiersList: (json['PathToObjectIdentifiersList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PathToObjectIdentifiers.fromJson(e as Map)) .toList(), @@ -4749,7 +4749,7 @@ class BatchListObjectParentsResponse { return BatchListObjectParentsResponse( nextToken: json['NextToken'] as String?, parentLinks: (json['ParentLinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ObjectIdentifierAndLinkNameTuple.fromJson( e as Map)) .toList(), @@ -4814,7 +4814,7 @@ class BatchListObjectPoliciesResponse { factory BatchListObjectPoliciesResponse.fromJson(Map json) { return BatchListObjectPoliciesResponse( attachedPolicyIds: (json['AttachedPolicyIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -4898,7 +4898,7 @@ class BatchListOutgoingTypedLinksResponse { return BatchListOutgoingTypedLinksResponse( nextToken: json['NextToken'] as String?, typedLinkSpecifiers: (json['TypedLinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), ); @@ -4964,7 +4964,7 @@ class BatchListPolicyAttachmentsResponse { return BatchListPolicyAttachmentsResponse( nextToken: json['NextToken'] as String?, objectIdentifiers: (json['ObjectIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5031,7 +5031,7 @@ class BatchLookupPolicyResponse { return BatchLookupPolicyResponse( nextToken: json['NextToken'] as String?, policyToPathList: (json['PolicyToPathList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyToPath.fromJson(e as Map)) .toList(), ); @@ -5276,7 +5276,7 @@ class BatchReadResponse { factory BatchReadResponse.fromJson(Map json) { return BatchReadResponse( responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchReadOperationResponse.fromJson(e as Map)) .toList(), @@ -5901,7 +5901,7 @@ class BatchWriteResponse { factory BatchWriteResponse.fromJson(Map json) { return BatchWriteResponse( responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchWriteOperationResponse.fromJson(e as Map)) .toList(), @@ -6639,7 +6639,7 @@ class GetLinkAttributesResponse { factory GetLinkAttributesResponse.fromJson(Map json) { return GetLinkAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -6664,7 +6664,7 @@ class GetObjectAttributesResponse { factory GetObjectAttributesResponse.fromJson(Map json) { return GetObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -6696,7 +6696,7 @@ class GetObjectInformationResponse { return GetObjectInformationResponse( objectIdentifier: json['ObjectIdentifier'] as String?, schemaFacets: (json['SchemaFacets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaFacet.fromJson(e as Map)) .toList(), ); @@ -6762,7 +6762,7 @@ class GetTypedLinkFacetInformationResponse { Map json) { return GetTypedLinkFacetInformationResponse( identityAttributeOrder: (json['IdentityAttributeOrder'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6797,7 +6797,7 @@ class IndexAttachment { factory IndexAttachment.fromJson(Map json) { return IndexAttachment( indexedAttributes: (json['IndexedAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), objectIdentifier: json['ObjectIdentifier'] as String?, @@ -6880,7 +6880,7 @@ class ListAppliedSchemaArnsResponse { return ListAppliedSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6911,7 +6911,7 @@ class ListAttachedIndicesResponse { factory ListAttachedIndicesResponse.fromJson(Map json) { return ListAttachedIndicesResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6945,7 +6945,7 @@ class ListDevelopmentSchemaArnsResponse { return ListDevelopmentSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6977,7 +6977,7 @@ class ListDirectoriesResponse { factory ListDirectoriesResponse.fromJson(Map json) { return ListDirectoriesResponse( directories: (json['Directories'] as List) - .whereNotNull() + .nonNulls .map((e) => Directory.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7009,7 +7009,7 @@ class ListFacetAttributesResponse { factory ListFacetAttributesResponse.fromJson(Map json) { return ListFacetAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FacetAttribute.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7041,7 +7041,7 @@ class ListFacetNamesResponse { factory ListFacetNamesResponse.fromJson(Map json) { return ListFacetNamesResponse( facetNames: (json['FacetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7073,7 +7073,7 @@ class ListIncomingTypedLinksResponse { factory ListIncomingTypedLinksResponse.fromJson(Map json) { return ListIncomingTypedLinksResponse( linkSpecifiers: (json['LinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7105,7 +7105,7 @@ class ListIndexResponse { factory ListIndexResponse.fromJson(Map json) { return ListIndexResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7138,7 +7138,7 @@ class ListManagedSchemaArnsResponse { return ListManagedSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7170,7 +7170,7 @@ class ListObjectAttributesResponse { factory ListObjectAttributesResponse.fromJson(Map json) { return ListObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7236,7 +7236,7 @@ class ListObjectParentPathsResponse { nextToken: json['NextToken'] as String?, pathToObjectIdentifiersList: (json['PathToObjectIdentifiersList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PathToObjectIdentifiers.fromJson(e as Map)) .toList(), @@ -7275,7 +7275,7 @@ class ListObjectParentsResponse { return ListObjectParentsResponse( nextToken: json['NextToken'] as String?, parentLinks: (json['ParentLinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ObjectIdentifierAndLinkNameTuple.fromJson( e as Map)) .toList(), @@ -7312,7 +7312,7 @@ class ListObjectPoliciesResponse { factory ListObjectPoliciesResponse.fromJson(Map json) { return ListObjectPoliciesResponse( attachedPolicyIds: (json['AttachedPolicyIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7345,7 +7345,7 @@ class ListOutgoingTypedLinksResponse { return ListOutgoingTypedLinksResponse( nextToken: json['NextToken'] as String?, typedLinkSpecifiers: (json['TypedLinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), ); @@ -7378,7 +7378,7 @@ class ListPolicyAttachmentsResponse { return ListPolicyAttachmentsResponse( nextToken: json['NextToken'] as String?, objectIdentifiers: (json['ObjectIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7410,7 +7410,7 @@ class ListPublishedSchemaArnsResponse { return ListPublishedSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7443,7 +7443,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7475,7 +7475,7 @@ class ListTypedLinkFacetAttributesResponse { Map json) { return ListTypedLinkFacetAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkAttributeDefinition.fromJson(e as Map)) .toList(), @@ -7508,7 +7508,7 @@ class ListTypedLinkFacetNamesResponse { factory ListTypedLinkFacetNamesResponse.fromJson(Map json) { return ListTypedLinkFacetNamesResponse( facetNames: (json['FacetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7544,7 +7544,7 @@ class LookupPolicyResponse { return LookupPolicyResponse( nextToken: json['NextToken'] as String?, policyToPathList: (json['PolicyToPathList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyToPath.fromJson(e as Map)) .toList(), ); @@ -7742,7 +7742,7 @@ class PathToObjectIdentifiers { factory PathToObjectIdentifiers.fromJson(Map json) { return PathToObjectIdentifiers( objectIdentifiers: (json['ObjectIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), path: json['Path'] as String?, @@ -7820,7 +7820,7 @@ class PolicyToPath { return PolicyToPath( path: json['Path'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyAttachment.fromJson(e as Map)) .toList(), ); @@ -8348,7 +8348,7 @@ class TypedLinkSpecifier { factory TypedLinkSpecifier.fromJson(Map json) { return TypedLinkSpecifier( identityAttributeValues: (json['IdentityAttributeValues'] as List) - .whereNotNull() + .nonNulls .map((e) => AttributeNameAndValue.fromJson(e as Map)) .toList(), sourceObjectReference: ObjectReference.fromJson( diff --git a/aws_client/lib/src/generated/cloud_formation/v2010_05_15.dart b/aws_client/lib/src/generated/cloud_formation/v2010_05_15.dart index 3972bb77a..86202b198 100644 --- a/aws_client/lib/src/generated/cloud_formation/v2010_05_15.dart +++ b/aws_client/lib/src/generated/cloud_formation/v2010_05_15.dart @@ -7169,7 +7169,7 @@ class AccountGateResult { return AccountGateResult( status: _s .extractXmlStringValue(elem, 'Status') - ?.let(AccountGateStatus.fromString) /* Nullability(true, true) */, + ?.let(AccountGateStatus.fromString), statusReason: _s.extractXmlStringValue(elem, 'StatusReason'), ); } @@ -7518,9 +7518,7 @@ class Change { resourceChange: _s .extractXmlChild(elem, 'ResourceChange') ?.let(ResourceChange.fromXml), - type: _s - .extractXmlStringValue(elem, 'Type') - ?.let(ChangeType.fromString) /* Nullability(true, true) */, + type: _s.extractXmlStringValue(elem, 'Type')?.let(ChangeType.fromString), ); } @@ -7626,10 +7624,10 @@ class ChangeSetHook { return ChangeSetHook( failureMode: _s .extractXmlStringValue(elem, 'FailureMode') - ?.let(HookFailureMode.fromString) /* Nullability(true, true) */, + ?.let(HookFailureMode.fromString), invocationPoint: _s .extractXmlStringValue(elem, 'InvocationPoint') - ?.let(HookInvocationPoint.fromString) /* Nullability(true, true) */, + ?.let(HookInvocationPoint.fromString), targetDetails: _s .extractXmlChild(elem, 'TargetDetails') ?.let(ChangeSetHookTargetDetails.fromXml), @@ -7680,7 +7678,7 @@ class ChangeSetHookResourceTargetDetails { logicalResourceId: _s.extractXmlStringValue(elem, 'LogicalResourceId'), resourceAction: _s .extractXmlStringValue(elem, 'ResourceAction') - ?.let(ChangeAction.fromString) /* Nullability(true, true) */, + ?.let(ChangeAction.fromString), resourceType: _s.extractXmlStringValue(elem, 'ResourceType'), ); } @@ -7716,7 +7714,7 @@ class ChangeSetHookTargetDetails { ?.let(ChangeSetHookResourceTargetDetails.fromXml), targetType: _s .extractXmlStringValue(elem, 'TargetType') - ?.let(HookTargetType.fromString) /* Nullability(true, true) */, + ?.let(HookTargetType.fromString), ); } @@ -7840,7 +7838,7 @@ class ChangeSetSummary { description: _s.extractXmlStringValue(elem, 'Description'), executionStatus: _s .extractXmlStringValue(elem, 'ExecutionStatus') - ?.let(ExecutionStatus.fromString) /* Nullability(true, true) */, + ?.let(ExecutionStatus.fromString), importExistingResources: _s.extractXmlBoolValue(elem, 'ImportExistingResources'), includeNestedStacks: _s.extractXmlBoolValue(elem, 'IncludeNestedStacks'), @@ -7850,7 +7848,7 @@ class ChangeSetSummary { stackName: _s.extractXmlStringValue(elem, 'StackName'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(ChangeSetStatus.fromString) /* Nullability(true, true) */, + ?.let(ChangeSetStatus.fromString), statusReason: _s.extractXmlStringValue(elem, 'StatusReason'), ); } @@ -8231,7 +8229,7 @@ class DeploymentTargets { return DeploymentTargets( accountFilterType: _s .extractXmlStringValue(elem, 'AccountFilterType') - ?.let(AccountFilterType.fromString) /* Nullability(true, true) */, + ?.let(AccountFilterType.fromString), accounts: _s .extractXmlChild(elem, 'Accounts') ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), @@ -8384,7 +8382,7 @@ class DescribeChangeSetHooksOutput { stackName: _s.extractXmlStringValue(elem, 'StackName'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(ChangeSetHooksStatus.fromString) /* Nullability(true, true) */, + ?.let(ChangeSetHooksStatus.fromString), ); } @@ -8564,7 +8562,7 @@ class DescribeChangeSetOutput { description: _s.extractXmlStringValue(elem, 'Description'), executionStatus: _s .extractXmlStringValue(elem, 'ExecutionStatus') - ?.let(ExecutionStatus.fromString) /* Nullability(true, true) */, + ?.let(ExecutionStatus.fromString), importExistingResources: _s.extractXmlBoolValue(elem, 'ImportExistingResources'), includeNestedStacks: _s.extractXmlBoolValue(elem, 'IncludeNestedStacks'), @@ -8574,7 +8572,7 @@ class DescribeChangeSetOutput { ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), onStackFailure: _s .extractXmlStringValue(elem, 'OnStackFailure') - ?.let(OnStackFailure.fromString) /* Nullability(true, true) */, + ?.let(OnStackFailure.fromString), parameters: _s.extractXmlChild(elem, 'Parameters')?.let((elem) => elem.findElements('member').map(Parameter.fromXml).toList()), parentChangeSetId: _s.extractXmlStringValue(elem, 'ParentChangeSetId'), @@ -8586,7 +8584,7 @@ class DescribeChangeSetOutput { stackName: _s.extractXmlStringValue(elem, 'StackName'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(ChangeSetStatus.fromString) /* Nullability(true, true) */, + ?.let(ChangeSetStatus.fromString), statusReason: _s.extractXmlStringValue(elem, 'StatusReason'), tags: _s.extractXmlChild(elem, 'Tags')?.let( (elem) => elem.findElements('member').map(Tag.fromXml).toList()), @@ -8741,8 +8739,9 @@ class DescribeGeneratedTemplateOutput { resources: _s.extractXmlChild(elem, 'Resources')?.let((elem) => elem.findElements('member').map(ResourceDetail.fromXml).toList()), stackId: _s.extractXmlStringValue(elem, 'StackId'), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - GeneratedTemplateStatus.fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(GeneratedTemplateStatus.fromString), statusReason: _s.extractXmlStringValue(elem, 'StatusReason'), templateConfiguration: _s .extractXmlChild(elem, 'TemplateConfiguration') @@ -8794,7 +8793,7 @@ class DescribeOrganizationsAccessOutput { return DescribeOrganizationsAccessOutput( status: _s .extractXmlStringValue(elem, 'Status') - ?.let(OrganizationStatus.fromString) /* Nullability(true, true) */, + ?.let(OrganizationStatus.fromString), ); } @@ -8831,12 +8830,12 @@ class DescribePublisherOutput { return DescribePublisherOutput( identityProvider: _s .extractXmlStringValue(elem, 'IdentityProvider') - ?.let(IdentityProvider.fromString) /* Nullability(true, true) */, + ?.let(IdentityProvider.fromString), publisherId: _s.extractXmlStringValue(elem, 'PublisherId'), publisherProfile: _s.extractXmlStringValue(elem, 'PublisherProfile'), publisherStatus: _s .extractXmlStringValue(elem, 'PublisherStatus') - ?.let(PublisherStatus.fromString) /* Nullability(true, true) */, + ?.let(PublisherStatus.fromString), ); } @@ -8931,7 +8930,7 @@ class DescribeResourceScanOutput { startTime: _s.extractXmlDateTimeValue(elem, 'StartTime'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(ResourceScanStatus.fromString) /* Nullability(true, true) */, + ?.let(ResourceScanStatus.fromString), statusReason: _s.extractXmlStringValue(elem, 'StatusReason'), ); } @@ -9043,8 +9042,9 @@ class DescribeStackDriftDetectionStatusOutput { }); factory DescribeStackDriftDetectionStatusOutput.fromXml(_s.XmlElement elem) { return DescribeStackDriftDetectionStatusOutput( - detectionStatus: _s.extractXmlStringValue(elem, 'DetectionStatus')!.let( - StackDriftDetectionStatus.fromString) /* Nullability(true, false) */, + detectionStatus: _s + .extractXmlStringValue(elem, 'DetectionStatus')! + .let(StackDriftDetectionStatus.fromString), stackDriftDetectionId: _s.extractXmlStringValue(elem, 'StackDriftDetectionId')!, stackId: _s.extractXmlStringValue(elem, 'StackId')!, @@ -9055,7 +9055,7 @@ class DescribeStackDriftDetectionStatusOutput { _s.extractXmlIntValue(elem, 'DriftedStackResourceCount'), stackDriftStatus: _s .extractXmlStringValue(elem, 'StackDriftStatus') - ?.let(StackDriftStatus.fromString) /* Nullability(true, true) */, + ?.let(StackDriftStatus.fromString), ); } @@ -9611,7 +9611,7 @@ class DescribeTypeOutput { defaultVersionId: _s.extractXmlStringValue(elem, 'DefaultVersionId'), deprecatedStatus: _s .extractXmlStringValue(elem, 'DeprecatedStatus') - ?.let(DeprecatedStatus.fromString) /* Nullability(true, true) */, + ?.let(DeprecatedStatus.fromString), description: _s.extractXmlStringValue(elem, 'Description'), documentationUrl: _s.extractXmlStringValue(elem, 'DocumentationUrl'), executionRoleArn: _s.extractXmlStringValue(elem, 'ExecutionRoleArn'), @@ -9626,7 +9626,7 @@ class DescribeTypeOutput { originalTypeName: _s.extractXmlStringValue(elem, 'OriginalTypeName'), provisioningType: _s .extractXmlStringValue(elem, 'ProvisioningType') - ?.let(ProvisioningType.fromString) /* Nullability(true, true) */, + ?.let(ProvisioningType.fromString), publicVersionNumber: _s.extractXmlStringValue(elem, 'PublicVersionNumber'), publisherId: _s.extractXmlStringValue(elem, 'PublisherId'), @@ -9639,18 +9639,17 @@ class DescribeTypeOutput { schema: _s.extractXmlStringValue(elem, 'Schema'), sourceUrl: _s.extractXmlStringValue(elem, 'SourceUrl'), timeCreated: _s.extractXmlDateTimeValue(elem, 'TimeCreated'), - type: _s - .extractXmlStringValue(elem, 'Type') - ?.let(RegistryType.fromString) /* Nullability(true, true) */, + type: + _s.extractXmlStringValue(elem, 'Type')?.let(RegistryType.fromString), typeName: _s.extractXmlStringValue(elem, 'TypeName'), typeTestsStatus: _s .extractXmlStringValue(elem, 'TypeTestsStatus') - ?.let(TypeTestsStatus.fromString) /* Nullability(true, true) */, + ?.let(TypeTestsStatus.fromString), typeTestsStatusDescription: _s.extractXmlStringValue(elem, 'TypeTestsStatusDescription'), visibility: _s .extractXmlStringValue(elem, 'Visibility') - ?.let(Visibility.fromString) /* Nullability(true, true) */, + ?.let(Visibility.fromString), ); } @@ -9750,7 +9749,7 @@ class DescribeTypeRegistrationOutput { description: _s.extractXmlStringValue(elem, 'Description'), progressStatus: _s .extractXmlStringValue(elem, 'ProgressStatus') - ?.let(RegistrationStatus.fromString) /* Nullability(true, true) */, + ?.let(RegistrationStatus.fromString), typeArn: _s.extractXmlStringValue(elem, 'TypeArn'), typeVersionArn: _s.extractXmlStringValue(elem, 'TypeVersionArn'), ); @@ -10097,8 +10096,9 @@ class GetGeneratedTemplateOutput { }); factory GetGeneratedTemplateOutput.fromXml(_s.XmlElement elem) { return GetGeneratedTemplateOutput( - status: _s.extractXmlStringValue(elem, 'Status')?.let( - GeneratedTemplateStatus.fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(GeneratedTemplateStatus.fromString), templateBody: _s.extractXmlStringValue(elem, 'TemplateBody'), ); } @@ -11618,7 +11618,7 @@ class PropertyDifference { actualValue: _s.extractXmlStringValue(elem, 'ActualValue')!, differenceType: _s .extractXmlStringValue(elem, 'DifferenceType')! - .let(DifferenceType.fromString) /* Nullability(true, false) */, + .let(DifferenceType.fromString), expectedValue: _s.extractXmlStringValue(elem, 'ExpectedValue')!, propertyPath: _s.extractXmlStringValue(elem, 'PropertyPath')!, ); @@ -12021,7 +12021,7 @@ class ResourceChange { return ResourceChange( action: _s .extractXmlStringValue(elem, 'Action') - ?.let(ChangeAction.fromString) /* Nullability(true, true) */, + ?.let(ChangeAction.fromString), afterContext: _s.extractXmlStringValue(elem, 'AfterContext'), beforeContext: _s.extractXmlStringValue(elem, 'BeforeContext'), changeSetId: _s.extractXmlStringValue(elem, 'ChangeSetId'), @@ -12035,10 +12035,10 @@ class ResourceChange { physicalResourceId: _s.extractXmlStringValue(elem, 'PhysicalResourceId'), policyAction: _s .extractXmlStringValue(elem, 'PolicyAction') - ?.let(PolicyAction.fromString) /* Nullability(true, true) */, + ?.let(PolicyAction.fromString), replacement: _s .extractXmlStringValue(elem, 'Replacement') - ?.let(Replacement.fromString) /* Nullability(true, true) */, + ?.let(Replacement.fromString), resourceType: _s.extractXmlStringValue(elem, 'ResourceType'), scope: _s.extractXmlChild(elem, 'Scope')?.let((elem) => _s .extractXmlStringListValues(elem, 'member') @@ -12160,10 +12160,10 @@ class ResourceChangeDetail { causingEntity: _s.extractXmlStringValue(elem, 'CausingEntity'), changeSource: _s .extractXmlStringValue(elem, 'ChangeSource') - ?.let(ChangeSource.fromString) /* Nullability(true, true) */, + ?.let(ChangeSource.fromString), evaluation: _s .extractXmlStringValue(elem, 'Evaluation') - ?.let(EvaluationType.fromString) /* Nullability(true, true) */, + ?.let(EvaluationType.fromString), target: _s .extractXmlChild(elem, 'Target') ?.let(ResourceTargetDefinition.fromXml), @@ -12307,9 +12307,9 @@ class ResourceDetail { ) ?? {}, ), - resourceStatus: _s.extractXmlStringValue(elem, 'ResourceStatus')?.let( - GeneratedTemplateResourceStatus - .fromString) /* Nullability(true, true) */, + resourceStatus: _s + .extractXmlStringValue(elem, 'ResourceStatus') + ?.let(GeneratedTemplateResourceStatus.fromString), resourceStatusReason: _s.extractXmlStringValue(elem, 'ResourceStatusReason'), resourceType: _s.extractXmlStringValue(elem, 'ResourceType'), @@ -12449,7 +12449,7 @@ class ResourceScanSummary { startTime: _s.extractXmlDateTimeValue(elem, 'StartTime'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(ResourceScanStatus.fromString) /* Nullability(true, true) */, + ?.let(ResourceScanStatus.fromString), statusReason: _s.extractXmlStringValue(elem, 'StatusReason'), ); } @@ -12584,16 +12584,16 @@ class ResourceTargetDefinition { afterValue: _s.extractXmlStringValue(elem, 'AfterValue'), attribute: _s .extractXmlStringValue(elem, 'Attribute') - ?.let(ResourceAttribute.fromString) /* Nullability(true, true) */, + ?.let(ResourceAttribute.fromString), attributeChangeType: _s .extractXmlStringValue(elem, 'AttributeChangeType') - ?.let(AttributeChangeType.fromString) /* Nullability(true, true) */, + ?.let(AttributeChangeType.fromString), beforeValue: _s.extractXmlStringValue(elem, 'BeforeValue'), name: _s.extractXmlStringValue(elem, 'Name'), path: _s.extractXmlStringValue(elem, 'Path'), requiresRecreation: _s .extractXmlStringValue(elem, 'RequiresRecreation') - ?.let(RequiresRecreation.fromString) /* Nullability(true, true) */, + ?.let(RequiresRecreation.fromString), ); } @@ -13155,7 +13155,7 @@ class Stack { stackName: _s.extractXmlStringValue(elem, 'StackName')!, stackStatus: _s .extractXmlStringValue(elem, 'StackStatus')! - .let(StackStatus.fromString) /* Nullability(true, false) */, + .let(StackStatus.fromString), capabilities: _s.extractXmlChild(elem, 'Capabilities')?.let((elem) => _s .extractXmlStringListValues(elem, 'member') .map(Capability.fromString) @@ -13163,12 +13163,12 @@ class Stack { changeSetId: _s.extractXmlStringValue(elem, 'ChangeSetId'), deletionMode: _s .extractXmlStringValue(elem, 'DeletionMode') - ?.let(DeletionMode.fromString) /* Nullability(true, true) */, + ?.let(DeletionMode.fromString), deletionTime: _s.extractXmlDateTimeValue(elem, 'DeletionTime'), description: _s.extractXmlStringValue(elem, 'Description'), detailedStatus: _s .extractXmlStringValue(elem, 'DetailedStatus') - ?.let(DetailedStatus.fromString) /* Nullability(true, true) */, + ?.let(DetailedStatus.fromString), disableRollback: _s.extractXmlBoolValue(elem, 'DisableRollback'), driftInformation: _s .extractXmlChild(elem, 'DriftInformation') @@ -13316,7 +13316,7 @@ class StackDriftInformation { return StackDriftInformation( stackDriftStatus: _s .extractXmlStringValue(elem, 'StackDriftStatus')! - .let(StackDriftStatus.fromString) /* Nullability(true, false) */, + .let(StackDriftStatus.fromString), lastCheckTimestamp: _s.extractXmlDateTimeValue(elem, 'LastCheckTimestamp'), ); @@ -13373,7 +13373,7 @@ class StackDriftInformationSummary { return StackDriftInformationSummary( stackDriftStatus: _s .extractXmlStringValue(elem, 'StackDriftStatus')! - .let(StackDriftStatus.fromString) /* Nullability(true, false) */, + .let(StackDriftStatus.fromString), lastCheckTimestamp: _s.extractXmlDateTimeValue(elem, 'LastCheckTimestamp'), ); @@ -13535,16 +13535,16 @@ class StackEvent { clientRequestToken: _s.extractXmlStringValue(elem, 'ClientRequestToken'), detailedStatus: _s .extractXmlStringValue(elem, 'DetailedStatus') - ?.let(DetailedStatus.fromString) /* Nullability(true, true) */, + ?.let(DetailedStatus.fromString), hookFailureMode: _s .extractXmlStringValue(elem, 'HookFailureMode') - ?.let(HookFailureMode.fromString) /* Nullability(true, true) */, + ?.let(HookFailureMode.fromString), hookInvocationPoint: _s .extractXmlStringValue(elem, 'HookInvocationPoint') - ?.let(HookInvocationPoint.fromString) /* Nullability(true, true) */, + ?.let(HookInvocationPoint.fromString), hookStatus: _s .extractXmlStringValue(elem, 'HookStatus') - ?.let(HookStatus.fromString) /* Nullability(true, true) */, + ?.let(HookStatus.fromString), hookStatusReason: _s.extractXmlStringValue(elem, 'HookStatusReason'), hookType: _s.extractXmlStringValue(elem, 'HookType'), logicalResourceId: _s.extractXmlStringValue(elem, 'LogicalResourceId'), @@ -13552,7 +13552,7 @@ class StackEvent { resourceProperties: _s.extractXmlStringValue(elem, 'ResourceProperties'), resourceStatus: _s .extractXmlStringValue(elem, 'ResourceStatus') - ?.let(ResourceStatus.fromString) /* Nullability(true, true) */, + ?.let(ResourceStatus.fromString), resourceStatusReason: _s.extractXmlStringValue(elem, 'ResourceStatusReason'), resourceType: _s.extractXmlStringValue(elem, 'ResourceType'), @@ -13729,7 +13729,7 @@ class StackInstance { account: _s.extractXmlStringValue(elem, 'Account'), driftStatus: _s .extractXmlStringValue(elem, 'DriftStatus') - ?.let(StackDriftStatus.fromString) /* Nullability(true, true) */, + ?.let(StackDriftStatus.fromString), lastDriftCheckTimestamp: _s.extractXmlDateTimeValue(elem, 'LastDriftCheckTimestamp'), lastOperationId: _s.extractXmlStringValue(elem, 'LastOperationId'), @@ -13746,7 +13746,7 @@ class StackInstance { stackSetId: _s.extractXmlStringValue(elem, 'StackSetId'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(StackInstanceStatus.fromString) /* Nullability(true, true) */, + ?.let(StackInstanceStatus.fromString), statusReason: _s.extractXmlStringValue(elem, 'StatusReason'), ); } @@ -13840,8 +13840,9 @@ class StackInstanceComprehensiveStatus { }); factory StackInstanceComprehensiveStatus.fromXml(_s.XmlElement elem) { return StackInstanceComprehensiveStatus( - detailedStatus: _s.extractXmlStringValue(elem, 'DetailedStatus')?.let( - StackInstanceDetailedStatus.fromString) /* Nullability(true, true) */, + detailedStatus: _s + .extractXmlStringValue(elem, 'DetailedStatus') + ?.let(StackInstanceDetailedStatus.fromString), ); } @@ -13995,8 +13996,7 @@ class StackInstanceResourceDriftsSummary { stackId: _s.extractXmlStringValue(elem, 'StackId')!, stackResourceDriftStatus: _s .extractXmlStringValue(elem, 'StackResourceDriftStatus')! - .let(StackResourceDriftStatus - .fromString) /* Nullability(true, false) */, + .let(StackResourceDriftStatus.fromString), timestamp: _s.extractXmlDateTimeValue(elem, 'Timestamp')!, physicalResourceId: _s.extractXmlStringValue(elem, 'PhysicalResourceId'), physicalResourceIdContext: _s @@ -14170,7 +14170,7 @@ class StackInstanceSummary { account: _s.extractXmlStringValue(elem, 'Account'), driftStatus: _s .extractXmlStringValue(elem, 'DriftStatus') - ?.let(StackDriftStatus.fromString) /* Nullability(true, true) */, + ?.let(StackDriftStatus.fromString), lastDriftCheckTimestamp: _s.extractXmlDateTimeValue(elem, 'LastDriftCheckTimestamp'), lastOperationId: _s.extractXmlStringValue(elem, 'LastOperationId'), @@ -14184,7 +14184,7 @@ class StackInstanceSummary { stackSetId: _s.extractXmlStringValue(elem, 'StackSetId'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(StackInstanceStatus.fromString) /* Nullability(true, true) */, + ?.let(StackInstanceStatus.fromString), statusReason: _s.extractXmlStringValue(elem, 'StatusReason'), ); } @@ -14283,7 +14283,7 @@ class StackResource { logicalResourceId: _s.extractXmlStringValue(elem, 'LogicalResourceId')!, resourceStatus: _s .extractXmlStringValue(elem, 'ResourceStatus')! - .let(ResourceStatus.fromString) /* Nullability(true, false) */, + .let(ResourceStatus.fromString), resourceType: _s.extractXmlStringValue(elem, 'ResourceType')!, timestamp: _s.extractXmlDateTimeValue(elem, 'Timestamp')!, description: _s.extractXmlStringValue(elem, 'Description'), @@ -14401,7 +14401,7 @@ class StackResourceDetail { logicalResourceId: _s.extractXmlStringValue(elem, 'LogicalResourceId')!, resourceStatus: _s .extractXmlStringValue(elem, 'ResourceStatus')! - .let(ResourceStatus.fromString) /* Nullability(true, false) */, + .let(ResourceStatus.fromString), resourceType: _s.extractXmlStringValue(elem, 'ResourceType')!, description: _s.extractXmlStringValue(elem, 'Description'), driftInformation: _s @@ -14558,8 +14558,7 @@ class StackResourceDrift { stackId: _s.extractXmlStringValue(elem, 'StackId')!, stackResourceDriftStatus: _s .extractXmlStringValue(elem, 'StackResourceDriftStatus')! - .let(StackResourceDriftStatus - .fromString) /* Nullability(true, false) */, + .let(StackResourceDriftStatus.fromString), timestamp: _s.extractXmlDateTimeValue(elem, 'Timestamp')!, actualProperties: _s.extractXmlStringValue(elem, 'ActualProperties'), expectedProperties: _s.extractXmlStringValue(elem, 'ExpectedProperties'), @@ -14652,8 +14651,7 @@ class StackResourceDriftInformation { return StackResourceDriftInformation( stackResourceDriftStatus: _s .extractXmlStringValue(elem, 'StackResourceDriftStatus')! - .let(StackResourceDriftStatus - .fromString) /* Nullability(true, false) */, + .let(StackResourceDriftStatus.fromString), lastCheckTimestamp: _s.extractXmlDateTimeValue(elem, 'LastCheckTimestamp'), ); @@ -14718,8 +14716,7 @@ class StackResourceDriftInformationSummary { return StackResourceDriftInformationSummary( stackResourceDriftStatus: _s .extractXmlStringValue(elem, 'StackResourceDriftStatus')! - .let(StackResourceDriftStatus - .fromString) /* Nullability(true, false) */, + .let(StackResourceDriftStatus.fromString), lastCheckTimestamp: _s.extractXmlDateTimeValue(elem, 'LastCheckTimestamp'), ); @@ -14806,7 +14803,7 @@ class StackResourceSummary { logicalResourceId: _s.extractXmlStringValue(elem, 'LogicalResourceId')!, resourceStatus: _s .extractXmlStringValue(elem, 'ResourceStatus')! - .let(ResourceStatus.fromString) /* Nullability(true, false) */, + .let(ResourceStatus.fromString), resourceType: _s.extractXmlStringValue(elem, 'ResourceType')!, driftInformation: _s .extractXmlChild(elem, 'DriftInformation') @@ -14988,7 +14985,7 @@ class StackSet { elem.findElements('member').map(Parameter.fromXml).toList()), permissionModel: _s .extractXmlStringValue(elem, 'PermissionModel') - ?.let(PermissionModels.fromString) /* Nullability(true, true) */, + ?.let(PermissionModels.fromString), regions: _s .extractXmlChild(elem, 'Regions') ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), @@ -15000,7 +14997,7 @@ class StackSet { stackSetName: _s.extractXmlStringValue(elem, 'StackSetName'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(StackSetStatus.fromString) /* Nullability(true, true) */, + ?.let(StackSetStatus.fromString), tags: _s.extractXmlChild(elem, 'Tags')?.let( (elem) => elem.findElements('member').map(Tag.fromXml).toList()), templateBody: _s.extractXmlStringValue(elem, 'TemplateBody'), @@ -15204,11 +15201,10 @@ class StackSetDriftDetectionDetails { return StackSetDriftDetectionDetails( driftDetectionStatus: _s .extractXmlStringValue(elem, 'DriftDetectionStatus') - ?.let(StackSetDriftDetectionStatus - .fromString) /* Nullability(true, true) */, + ?.let(StackSetDriftDetectionStatus.fromString), driftStatus: _s .extractXmlStringValue(elem, 'DriftStatus') - ?.let(StackSetDriftStatus.fromString) /* Nullability(true, true) */, + ?.let(StackSetDriftStatus.fromString), driftedStackInstancesCount: _s.extractXmlIntValue(elem, 'DriftedStackInstancesCount'), failedStackInstancesCount: @@ -15416,8 +15412,9 @@ class StackSetOperation { }); factory StackSetOperation.fromXml(_s.XmlElement elem) { return StackSetOperation( - action: _s.extractXmlStringValue(elem, 'Action')?.let( - StackSetOperationAction.fromString) /* Nullability(true, true) */, + action: _s + .extractXmlStringValue(elem, 'Action') + ?.let(StackSetOperationAction.fromString), administrationRoleARN: _s.extractXmlStringValue(elem, 'AdministrationRoleARN'), creationTimestamp: _s.extractXmlDateTimeValue(elem, 'CreationTimestamp'), @@ -15435,8 +15432,9 @@ class StackSetOperation { .extractXmlChild(elem, 'StackSetDriftDetectionDetails') ?.let(StackSetDriftDetectionDetails.fromXml), stackSetId: _s.extractXmlStringValue(elem, 'StackSetId'), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - StackSetOperationStatus.fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(StackSetOperationStatus.fromString), statusDetails: _s .extractXmlChild(elem, 'StatusDetails') ?.let(StackSetOperationStatusDetails.fromXml), @@ -15617,7 +15615,7 @@ class StackSetOperationPreferences { return StackSetOperationPreferences( concurrencyMode: _s .extractXmlStringValue(elem, 'ConcurrencyMode') - ?.let(ConcurrencyMode.fromString) /* Nullability(true, true) */, + ?.let(ConcurrencyMode.fromString), failureToleranceCount: _s.extractXmlIntValue(elem, 'FailureToleranceCount'), failureTolerancePercentage: @@ -15627,7 +15625,7 @@ class StackSetOperationPreferences { _s.extractXmlIntValue(elem, 'MaxConcurrentPercentage'), regionConcurrencyType: _s .extractXmlStringValue(elem, 'RegionConcurrencyType') - ?.let(RegionConcurrencyType.fromString) /* Nullability(true, true) */, + ?.let(RegionConcurrencyType.fromString), regionOrder: _s .extractXmlChild(elem, 'RegionOrder') ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), @@ -15776,9 +15774,9 @@ class StackSetOperationResultSummary { organizationalUnitId: _s.extractXmlStringValue(elem, 'OrganizationalUnitId'), region: _s.extractXmlStringValue(elem, 'Region'), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - StackSetOperationResultStatus - .fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(StackSetOperationResultStatus.fromString), statusReason: _s.extractXmlStringValue(elem, 'StatusReason'), ); } @@ -15933,16 +15931,18 @@ class StackSetOperationSummary { }); factory StackSetOperationSummary.fromXml(_s.XmlElement elem) { return StackSetOperationSummary( - action: _s.extractXmlStringValue(elem, 'Action')?.let( - StackSetOperationAction.fromString) /* Nullability(true, true) */, + action: _s + .extractXmlStringValue(elem, 'Action') + ?.let(StackSetOperationAction.fromString), creationTimestamp: _s.extractXmlDateTimeValue(elem, 'CreationTimestamp'), endTimestamp: _s.extractXmlDateTimeValue(elem, 'EndTimestamp'), operationId: _s.extractXmlStringValue(elem, 'OperationId'), operationPreferences: _s .extractXmlChild(elem, 'OperationPreferences') ?.let(StackSetOperationPreferences.fromXml), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - StackSetOperationStatus.fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(StackSetOperationStatus.fromString), statusDetails: _s .extractXmlChild(elem, 'StatusDetails') ?.let(StackSetOperationStatusDetails.fromXml), @@ -16084,7 +16084,7 @@ class StackSetSummary { description: _s.extractXmlStringValue(elem, 'Description'), driftStatus: _s .extractXmlStringValue(elem, 'DriftStatus') - ?.let(StackDriftStatus.fromString) /* Nullability(true, true) */, + ?.let(StackDriftStatus.fromString), lastDriftCheckTimestamp: _s.extractXmlDateTimeValue(elem, 'LastDriftCheckTimestamp'), managedExecution: _s @@ -16092,12 +16092,12 @@ class StackSetSummary { ?.let(ManagedExecution.fromXml), permissionModel: _s .extractXmlStringValue(elem, 'PermissionModel') - ?.let(PermissionModels.fromString) /* Nullability(true, true) */, + ?.let(PermissionModels.fromString), stackSetId: _s.extractXmlStringValue(elem, 'StackSetId'), stackSetName: _s.extractXmlStringValue(elem, 'StackSetName'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(StackSetStatus.fromString) /* Nullability(true, true) */, + ?.let(StackSetStatus.fromString), ); } @@ -16233,7 +16233,7 @@ class StackSummary { stackName: _s.extractXmlStringValue(elem, 'StackName')!, stackStatus: _s .extractXmlStringValue(elem, 'StackStatus')! - .let(StackStatus.fromString) /* Nullability(true, false) */, + .let(StackStatus.fromString), deletionTime: _s.extractXmlDateTimeValue(elem, 'DeletionTime'), driftInformation: _s .extractXmlChild(elem, 'DriftInformation') @@ -16400,13 +16400,12 @@ class TemplateConfiguration { }); factory TemplateConfiguration.fromXml(_s.XmlElement elem) { return TemplateConfiguration( - deletionPolicy: _s.extractXmlStringValue(elem, 'DeletionPolicy')?.let( - GeneratedTemplateDeletionPolicy - .fromString) /* Nullability(true, true) */, + deletionPolicy: _s + .extractXmlStringValue(elem, 'DeletionPolicy') + ?.let(GeneratedTemplateDeletionPolicy.fromString), updateReplacePolicy: _s .extractXmlStringValue(elem, 'UpdateReplacePolicy') - ?.let(GeneratedTemplateUpdateReplacePolicy - .fromString) /* Nullability(true, true) */, + ?.let(GeneratedTemplateUpdateReplacePolicy.fromString), ); } @@ -16623,8 +16622,9 @@ class TemplateSummary { _s.extractXmlStringValue(elem, 'GeneratedTemplateName'), lastUpdatedTime: _s.extractXmlDateTimeValue(elem, 'LastUpdatedTime'), numberOfResources: _s.extractXmlIntValue(elem, 'NumberOfResources'), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - GeneratedTemplateStatus.fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(GeneratedTemplateStatus.fromString), statusReason: _s.extractXmlStringValue(elem, 'StatusReason'), ); } @@ -16848,7 +16848,7 @@ class TypeConfigurationIdentifier { return TypeConfigurationIdentifier( type: _s .extractXmlStringValue(elem, 'Type') - ?.let(ThirdPartyType.fromString) /* Nullability(true, true) */, + ?.let(ThirdPartyType.fromString), typeArn: _s.extractXmlStringValue(elem, 'TypeArn'), typeConfigurationAlias: _s.extractXmlStringValue(elem, 'TypeConfigurationAlias'), @@ -17102,11 +17102,10 @@ class TypeSummary { publisherId: _s.extractXmlStringValue(elem, 'PublisherId'), publisherIdentity: _s .extractXmlStringValue(elem, 'PublisherIdentity') - ?.let(IdentityProvider.fromString) /* Nullability(true, true) */, + ?.let(IdentityProvider.fromString), publisherName: _s.extractXmlStringValue(elem, 'PublisherName'), - type: _s - .extractXmlStringValue(elem, 'Type') - ?.let(RegistryType.fromString) /* Nullability(true, true) */, + type: + _s.extractXmlStringValue(elem, 'Type')?.let(RegistryType.fromString), typeArn: _s.extractXmlStringValue(elem, 'TypeArn'), typeName: _s.extractXmlStringValue(elem, 'TypeName'), ); @@ -17226,9 +17225,8 @@ class TypeVersionSummary { publicVersionNumber: _s.extractXmlStringValue(elem, 'PublicVersionNumber'), timeCreated: _s.extractXmlDateTimeValue(elem, 'TimeCreated'), - type: _s - .extractXmlStringValue(elem, 'Type') - ?.let(RegistryType.fromString) /* Nullability(true, true) */, + type: + _s.extractXmlStringValue(elem, 'Type')?.let(RegistryType.fromString), typeName: _s.extractXmlStringValue(elem, 'TypeName'), versionId: _s.extractXmlStringValue(elem, 'VersionId'), ); @@ -17508,9 +17506,7 @@ class WarningDetail { return WarningDetail( properties: _s.extractXmlChild(elem, 'Properties')?.let((elem) => elem.findElements('member').map(WarningProperty.fromXml).toList()), - type: _s - .extractXmlStringValue(elem, 'Type') - ?.let(WarningType.fromString) /* Nullability(true, true) */, + type: _s.extractXmlStringValue(elem, 'Type')?.let(WarningType.fromString), ); } diff --git a/aws_client/lib/src/generated/cloud_front/v2016_11_25.dart b/aws_client/lib/src/generated/cloud_front/v2016_11_25.dart index 4c434cb05..421e0f5e0 100644 --- a/aws_client/lib/src/generated/cloud_front/v2016_11_25.dart +++ b/aws_client/lib/src/generated/cloud_front/v2016_11_25.dart @@ -1568,7 +1568,7 @@ class CacheBehavior { TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!), viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -2167,7 +2167,7 @@ class CookiePreference { return CookiePreference( forward: _s .extractXmlStringValue(elem, 'Forward')! - .let(ItemSelection.fromString) /* Nullability(true, false) */, + .let(ItemSelection.fromString), whitelistedNames: _s .extractXmlChild(elem, 'WhitelistedNames') ?.let(CookieNames.fromXml), @@ -2666,7 +2666,7 @@ class CustomOriginConfig { hTTPSPort: _s.extractXmlIntValue(elem, 'HTTPSPort')!, originProtocolPolicy: _s .extractXmlStringValue(elem, 'OriginProtocolPolicy')! - .let(OriginProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(OriginProtocolPolicy.fromString), originSslProtocols: _s .extractXmlChild(elem, 'OriginSslProtocols') ?.let(OriginSslProtocols.fromXml), @@ -2854,7 +2854,7 @@ class DefaultCacheBehavior { TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!), viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -3288,12 +3288,12 @@ class DistributionConfig { defaultRootObject: _s.extractXmlStringValue(elem, 'DefaultRootObject'), httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion') - ?.let(HttpVersion.fromString) /* Nullability(true, true) */, + ?.let(HttpVersion.fromString), isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled'), logging: _s.extractXmlChild(elem, 'Logging')?.let(LoggingConfig.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), restrictions: _s.extractXmlChild(elem, 'Restrictions')?.let(Restrictions.fromXml), viewerCertificate: _s @@ -3622,14 +3622,14 @@ class DistributionSummary { enabled: _s.extractXmlBoolValue(elem, 'Enabled')!, httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion')! - .let(HttpVersion.fromString) /* Nullability(true, false) */, + .let(HttpVersion.fromString), id: _s.extractXmlStringValue(elem, 'Id')!, isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled')!, lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, origins: Origins.fromXml(_s.extractXmlChild(elem, 'Origins')!), priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), restrictions: Restrictions.fromXml(_s.extractXmlChild(elem, 'Restrictions')!), status: _s.extractXmlStringValue(elem, 'Status')!, @@ -3854,7 +3854,7 @@ class GeoRestriction { quantity: _s.extractXmlIntValue(elem, 'Quantity')!, restrictionType: _s .extractXmlStringValue(elem, 'RestrictionType')! - .let(GeoRestrictionType.fromString) /* Nullability(true, false) */, + .let(GeoRestrictionType.fromString), items: _s .extractXmlChild(elem, 'Items') ?.let((elem) => _s.extractXmlStringListValues(elem, 'Location')), @@ -4970,7 +4970,7 @@ class LambdaFunctionAssociation { return LambdaFunctionAssociation( eventType: _s .extractXmlStringValue(elem, 'EventType') - ?.let(EventType.fromString) /* Nullability(true, true) */, + ?.let(EventType.fromString), lambdaFunctionARN: _s.extractXmlStringValue(elem, 'LambdaFunctionARN'), ); } @@ -6349,7 +6349,7 @@ class StreamingDistributionConfig { ?.let(StreamingLoggingConfig.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), ); } @@ -6611,7 +6611,7 @@ class StreamingDistributionSummary { lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), s3Origin: S3Origin.fromXml(_s.extractXmlChild(elem, 'S3Origin')!), status: _s.extractXmlStringValue(elem, 'Status')!, trustedSigners: @@ -7602,17 +7602,16 @@ class ViewerCertificate { certificate: _s.extractXmlStringValue(elem, 'Certificate'), certificateSource: _s .extractXmlStringValue(elem, 'CertificateSource') - ?.let(CertificateSource.fromString) /* Nullability(true, true) */, + ?.let(CertificateSource.fromString), cloudFrontDefaultCertificate: _s.extractXmlBoolValue(elem, 'CloudFrontDefaultCertificate'), iAMCertificateId: _s.extractXmlStringValue(elem, 'IAMCertificateId'), minimumProtocolVersion: _s .extractXmlStringValue(elem, 'MinimumProtocolVersion') - ?.let( - MinimumProtocolVersion.fromString) /* Nullability(true, true) */, + ?.let(MinimumProtocolVersion.fromString), sSLSupportMethod: _s .extractXmlStringValue(elem, 'SSLSupportMethod') - ?.let(SSLSupportMethod.fromString) /* Nullability(true, true) */, + ?.let(SSLSupportMethod.fromString), ); } diff --git a/aws_client/lib/src/generated/cloud_front/v2017_03_25.dart b/aws_client/lib/src/generated/cloud_front/v2017_03_25.dart index 4bcee8123..c560ac1ed 100644 --- a/aws_client/lib/src/generated/cloud_front/v2017_03_25.dart +++ b/aws_client/lib/src/generated/cloud_front/v2017_03_25.dart @@ -1656,7 +1656,7 @@ class CacheBehavior { TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!), viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -2255,7 +2255,7 @@ class CookiePreference { return CookiePreference( forward: _s .extractXmlStringValue(elem, 'Forward')! - .let(ItemSelection.fromString) /* Nullability(true, false) */, + .let(ItemSelection.fromString), whitelistedNames: _s .extractXmlChild(elem, 'WhitelistedNames') ?.let(CookieNames.fromXml), @@ -2774,7 +2774,7 @@ class CustomOriginConfig { hTTPSPort: _s.extractXmlIntValue(elem, 'HTTPSPort')!, originProtocolPolicy: _s .extractXmlStringValue(elem, 'OriginProtocolPolicy')! - .let(OriginProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(OriginProtocolPolicy.fromString), originKeepaliveTimeout: _s.extractXmlIntValue(elem, 'OriginKeepaliveTimeout'), originReadTimeout: _s.extractXmlIntValue(elem, 'OriginReadTimeout'), @@ -2976,7 +2976,7 @@ class DefaultCacheBehavior { TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!), viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -3404,12 +3404,12 @@ class DistributionConfig { defaultRootObject: _s.extractXmlStringValue(elem, 'DefaultRootObject'), httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion') - ?.let(HttpVersion.fromString) /* Nullability(true, true) */, + ?.let(HttpVersion.fromString), isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled'), logging: _s.extractXmlChild(elem, 'Logging')?.let(LoggingConfig.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), restrictions: _s.extractXmlChild(elem, 'Restrictions')?.let(Restrictions.fromXml), viewerCertificate: _s @@ -3738,14 +3738,14 @@ class DistributionSummary { enabled: _s.extractXmlBoolValue(elem, 'Enabled')!, httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion')! - .let(HttpVersion.fromString) /* Nullability(true, false) */, + .let(HttpVersion.fromString), id: _s.extractXmlStringValue(elem, 'Id')!, isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled')!, lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, origins: Origins.fromXml(_s.extractXmlChild(elem, 'Origins')!), priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), restrictions: Restrictions.fromXml(_s.extractXmlChild(elem, 'Restrictions')!), status: _s.extractXmlStringValue(elem, 'Status')!, @@ -3970,7 +3970,7 @@ class GeoRestriction { quantity: _s.extractXmlIntValue(elem, 'Quantity')!, restrictionType: _s .extractXmlStringValue(elem, 'RestrictionType')! - .let(GeoRestrictionType.fromString) /* Nullability(true, false) */, + .let(GeoRestrictionType.fromString), items: _s .extractXmlChild(elem, 'Items') ?.let((elem) => _s.extractXmlStringListValues(elem, 'Location')), @@ -5154,7 +5154,7 @@ class LambdaFunctionAssociation { return LambdaFunctionAssociation( eventType: _s .extractXmlStringValue(elem, 'EventType') - ?.let(EventType.fromString) /* Nullability(true, true) */, + ?.let(EventType.fromString), lambdaFunctionARN: _s.extractXmlStringValue(elem, 'LambdaFunctionARN'), ); } @@ -6556,7 +6556,7 @@ class StreamingDistributionConfig { ?.let(StreamingLoggingConfig.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), ); } @@ -6818,7 +6818,7 @@ class StreamingDistributionSummary { lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), s3Origin: S3Origin.fromXml(_s.extractXmlChild(elem, 'S3Origin')!), status: _s.extractXmlStringValue(elem, 'Status')!, trustedSigners: @@ -7849,17 +7849,16 @@ class ViewerCertificate { certificate: _s.extractXmlStringValue(elem, 'Certificate'), certificateSource: _s .extractXmlStringValue(elem, 'CertificateSource') - ?.let(CertificateSource.fromString) /* Nullability(true, true) */, + ?.let(CertificateSource.fromString), cloudFrontDefaultCertificate: _s.extractXmlBoolValue(elem, 'CloudFrontDefaultCertificate'), iAMCertificateId: _s.extractXmlStringValue(elem, 'IAMCertificateId'), minimumProtocolVersion: _s .extractXmlStringValue(elem, 'MinimumProtocolVersion') - ?.let( - MinimumProtocolVersion.fromString) /* Nullability(true, true) */, + ?.let(MinimumProtocolVersion.fromString), sSLSupportMethod: _s .extractXmlStringValue(elem, 'SSLSupportMethod') - ?.let(SSLSupportMethod.fromString) /* Nullability(true, true) */, + ?.let(SSLSupportMethod.fromString), ); } diff --git a/aws_client/lib/src/generated/cloud_front/v2017_10_30.dart b/aws_client/lib/src/generated/cloud_front/v2017_10_30.dart index cc8004247..aa09d90b2 100644 --- a/aws_client/lib/src/generated/cloud_front/v2017_10_30.dart +++ b/aws_client/lib/src/generated/cloud_front/v2017_10_30.dart @@ -2224,7 +2224,7 @@ class CacheBehavior { TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!), viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -2774,9 +2774,7 @@ class ContentTypeProfile { factory ContentTypeProfile.fromXml(_s.XmlElement elem) { return ContentTypeProfile( contentType: _s.extractXmlStringValue(elem, 'ContentType')!, - format: _s - .extractXmlStringValue(elem, 'Format')! - .let(Format.fromString) /* Nullability(true, false) */, + format: _s.extractXmlStringValue(elem, 'Format')!.let(Format.fromString), profileId: _s.extractXmlStringValue(elem, 'ProfileId'), ); } @@ -3019,7 +3017,7 @@ class CookiePreference { return CookiePreference( forward: _s .extractXmlStringValue(elem, 'Forward')! - .let(ItemSelection.fromString) /* Nullability(true, false) */, + .let(ItemSelection.fromString), whitelistedNames: _s .extractXmlChild(elem, 'WhitelistedNames') ?.let(CookieNames.fromXml), @@ -3627,7 +3625,7 @@ class CustomOriginConfig { hTTPSPort: _s.extractXmlIntValue(elem, 'HTTPSPort')!, originProtocolPolicy: _s .extractXmlStringValue(elem, 'OriginProtocolPolicy')! - .let(OriginProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(OriginProtocolPolicy.fromString), originKeepaliveTimeout: _s.extractXmlIntValue(elem, 'OriginKeepaliveTimeout'), originReadTimeout: _s.extractXmlIntValue(elem, 'OriginReadTimeout'), @@ -3831,7 +3829,7 @@ class DefaultCacheBehavior { TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!), viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -4268,12 +4266,12 @@ class DistributionConfig { defaultRootObject: _s.extractXmlStringValue(elem, 'DefaultRootObject'), httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion') - ?.let(HttpVersion.fromString) /* Nullability(true, true) */, + ?.let(HttpVersion.fromString), isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled'), logging: _s.extractXmlChild(elem, 'Logging')?.let(LoggingConfig.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), restrictions: _s.extractXmlChild(elem, 'Restrictions')?.let(Restrictions.fromXml), viewerCertificate: _s @@ -4602,14 +4600,14 @@ class DistributionSummary { enabled: _s.extractXmlBoolValue(elem, 'Enabled')!, httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion')! - .let(HttpVersion.fromString) /* Nullability(true, false) */, + .let(HttpVersion.fromString), id: _s.extractXmlStringValue(elem, 'Id')!, isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled')!, lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, origins: Origins.fromXml(_s.extractXmlChild(elem, 'Origins')!), priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), restrictions: Restrictions.fromXml(_s.extractXmlChild(elem, 'Restrictions')!), status: _s.extractXmlStringValue(elem, 'Status')!, @@ -5555,7 +5553,7 @@ class GeoRestriction { quantity: _s.extractXmlIntValue(elem, 'Quantity')!, restrictionType: _s .extractXmlStringValue(elem, 'RestrictionType')! - .let(GeoRestrictionType.fromString) /* Nullability(true, false) */, + .let(GeoRestrictionType.fromString), items: _s .extractXmlChild(elem, 'Items') ?.let((elem) => _s.extractXmlStringListValues(elem, 'Location')), @@ -6900,7 +6898,7 @@ class LambdaFunctionAssociation { return LambdaFunctionAssociation( eventType: _s .extractXmlStringValue(elem, 'EventType')! - .let(EventType.fromString) /* Nullability(true, false) */, + .let(EventType.fromString), lambdaFunctionARN: _s.extractXmlStringValue(elem, 'LambdaFunctionARN')!, ); } @@ -8823,7 +8821,7 @@ class StreamingDistributionConfig { ?.let(StreamingLoggingConfig.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), ); } @@ -9085,7 +9083,7 @@ class StreamingDistributionSummary { lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), s3Origin: S3Origin.fromXml(_s.extractXmlChild(elem, 'S3Origin')!), status: _s.extractXmlStringValue(elem, 'Status')!, trustedSigners: @@ -10364,17 +10362,16 @@ class ViewerCertificate { certificate: _s.extractXmlStringValue(elem, 'Certificate'), certificateSource: _s .extractXmlStringValue(elem, 'CertificateSource') - ?.let(CertificateSource.fromString) /* Nullability(true, true) */, + ?.let(CertificateSource.fromString), cloudFrontDefaultCertificate: _s.extractXmlBoolValue(elem, 'CloudFrontDefaultCertificate'), iAMCertificateId: _s.extractXmlStringValue(elem, 'IAMCertificateId'), minimumProtocolVersion: _s .extractXmlStringValue(elem, 'MinimumProtocolVersion') - ?.let( - MinimumProtocolVersion.fromString) /* Nullability(true, true) */, + ?.let(MinimumProtocolVersion.fromString), sSLSupportMethod: _s .extractXmlStringValue(elem, 'SSLSupportMethod') - ?.let(SSLSupportMethod.fromString) /* Nullability(true, true) */, + ?.let(SSLSupportMethod.fromString), ); } diff --git a/aws_client/lib/src/generated/cloud_front/v2018_06_18.dart b/aws_client/lib/src/generated/cloud_front/v2018_06_18.dart index b9c23df89..7acf61120 100644 --- a/aws_client/lib/src/generated/cloud_front/v2018_06_18.dart +++ b/aws_client/lib/src/generated/cloud_front/v2018_06_18.dart @@ -2200,7 +2200,7 @@ class CacheBehavior { TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!), viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -2683,9 +2683,7 @@ class ContentTypeProfile { factory ContentTypeProfile.fromXml(_s.XmlElement elem) { return ContentTypeProfile( contentType: _s.extractXmlStringValue(elem, 'ContentType')!, - format: _s - .extractXmlStringValue(elem, 'Format')! - .let(Format.fromString) /* Nullability(true, false) */, + format: _s.extractXmlStringValue(elem, 'Format')!.let(Format.fromString), profileId: _s.extractXmlStringValue(elem, 'ProfileId'), ); } @@ -2928,7 +2926,7 @@ class CookiePreference { return CookiePreference( forward: _s .extractXmlStringValue(elem, 'Forward')! - .let(ItemSelection.fromString) /* Nullability(true, false) */, + .let(ItemSelection.fromString), whitelistedNames: _s .extractXmlChild(elem, 'WhitelistedNames') ?.let(CookieNames.fromXml), @@ -3536,7 +3534,7 @@ class CustomOriginConfig { hTTPSPort: _s.extractXmlIntValue(elem, 'HTTPSPort')!, originProtocolPolicy: _s .extractXmlStringValue(elem, 'OriginProtocolPolicy')! - .let(OriginProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(OriginProtocolPolicy.fromString), originKeepaliveTimeout: _s.extractXmlIntValue(elem, 'OriginKeepaliveTimeout'), originReadTimeout: _s.extractXmlIntValue(elem, 'OriginReadTimeout'), @@ -3744,7 +3742,7 @@ class DefaultCacheBehavior { TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!), viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -4156,12 +4154,12 @@ class DistributionConfig { defaultRootObject: _s.extractXmlStringValue(elem, 'DefaultRootObject'), httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion') - ?.let(HttpVersion.fromString) /* Nullability(true, true) */, + ?.let(HttpVersion.fromString), isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled'), logging: _s.extractXmlChild(elem, 'Logging')?.let(LoggingConfig.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), restrictions: _s.extractXmlChild(elem, 'Restrictions')?.let(Restrictions.fromXml), viewerCertificate: _s @@ -4470,14 +4468,14 @@ class DistributionSummary { enabled: _s.extractXmlBoolValue(elem, 'Enabled')!, httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion')! - .let(HttpVersion.fromString) /* Nullability(true, false) */, + .let(HttpVersion.fromString), id: _s.extractXmlStringValue(elem, 'Id')!, isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled')!, lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, origins: Origins.fromXml(_s.extractXmlChild(elem, 'Origins')!), priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), restrictions: Restrictions.fromXml(_s.extractXmlChild(elem, 'Restrictions')!), status: _s.extractXmlStringValue(elem, 'Status')!, @@ -5318,7 +5316,7 @@ class GeoRestriction { quantity: _s.extractXmlIntValue(elem, 'Quantity')!, restrictionType: _s .extractXmlStringValue(elem, 'RestrictionType')! - .let(GeoRestrictionType.fromString) /* Nullability(true, false) */, + .let(GeoRestrictionType.fromString), items: _s .extractXmlChild(elem, 'Items') ?.let((elem) => _s.extractXmlStringListValues(elem, 'Location')), @@ -6124,7 +6122,7 @@ class LambdaFunctionAssociation { return LambdaFunctionAssociation( eventType: _s .extractXmlStringValue(elem, 'EventType')! - .let(EventType.fromString) /* Nullability(true, false) */, + .let(EventType.fromString), lambdaFunctionARN: _s.extractXmlStringValue(elem, 'LambdaFunctionARN')!, includeBody: _s.extractXmlBoolValue(elem, 'IncludeBody'), ); @@ -7740,7 +7738,7 @@ class StreamingDistributionConfig { ?.let(StreamingLoggingConfig.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), ); } @@ -7982,7 +7980,7 @@ class StreamingDistributionSummary { lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), s3Origin: S3Origin.fromXml(_s.extractXmlChild(elem, 'S3Origin')!), status: _s.extractXmlStringValue(elem, 'Status')!, trustedSigners: @@ -8718,17 +8716,16 @@ class ViewerCertificate { certificate: _s.extractXmlStringValue(elem, 'Certificate'), certificateSource: _s .extractXmlStringValue(elem, 'CertificateSource') - ?.let(CertificateSource.fromString) /* Nullability(true, true) */, + ?.let(CertificateSource.fromString), cloudFrontDefaultCertificate: _s.extractXmlBoolValue(elem, 'CloudFrontDefaultCertificate'), iAMCertificateId: _s.extractXmlStringValue(elem, 'IAMCertificateId'), minimumProtocolVersion: _s .extractXmlStringValue(elem, 'MinimumProtocolVersion') - ?.let( - MinimumProtocolVersion.fromString) /* Nullability(true, true) */, + ?.let(MinimumProtocolVersion.fromString), sSLSupportMethod: _s .extractXmlStringValue(elem, 'SSLSupportMethod') - ?.let(SSLSupportMethod.fromString) /* Nullability(true, true) */, + ?.let(SSLSupportMethod.fromString), ); } diff --git a/aws_client/lib/src/generated/cloud_front/v2018_11_05.dart b/aws_client/lib/src/generated/cloud_front/v2018_11_05.dart index c7fd6b246..3154b416f 100644 --- a/aws_client/lib/src/generated/cloud_front/v2018_11_05.dart +++ b/aws_client/lib/src/generated/cloud_front/v2018_11_05.dart @@ -2203,7 +2203,7 @@ class CacheBehavior { TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!), viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -2687,9 +2687,7 @@ class ContentTypeProfile { factory ContentTypeProfile.fromXml(_s.XmlElement elem) { return ContentTypeProfile( contentType: _s.extractXmlStringValue(elem, 'ContentType')!, - format: _s - .extractXmlStringValue(elem, 'Format')! - .let(Format.fromString) /* Nullability(true, false) */, + format: _s.extractXmlStringValue(elem, 'Format')!.let(Format.fromString), profileId: _s.extractXmlStringValue(elem, 'ProfileId'), ); } @@ -2932,7 +2930,7 @@ class CookiePreference { return CookiePreference( forward: _s .extractXmlStringValue(elem, 'Forward')! - .let(ItemSelection.fromString) /* Nullability(true, false) */, + .let(ItemSelection.fromString), whitelistedNames: _s .extractXmlChild(elem, 'WhitelistedNames') ?.let(CookieNames.fromXml), @@ -3541,7 +3539,7 @@ class CustomOriginConfig { hTTPSPort: _s.extractXmlIntValue(elem, 'HTTPSPort')!, originProtocolPolicy: _s .extractXmlStringValue(elem, 'OriginProtocolPolicy')! - .let(OriginProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(OriginProtocolPolicy.fromString), originKeepaliveTimeout: _s.extractXmlIntValue(elem, 'OriginKeepaliveTimeout'), originReadTimeout: _s.extractXmlIntValue(elem, 'OriginReadTimeout'), @@ -3749,7 +3747,7 @@ class DefaultCacheBehavior { TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!), viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -4163,14 +4161,14 @@ class DistributionConfig { defaultRootObject: _s.extractXmlStringValue(elem, 'DefaultRootObject'), httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion') - ?.let(HttpVersion.fromString) /* Nullability(true, true) */, + ?.let(HttpVersion.fromString), isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled'), logging: _s.extractXmlChild(elem, 'Logging')?.let(LoggingConfig.fromXml), originGroups: _s.extractXmlChild(elem, 'OriginGroups')?.let(OriginGroups.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), restrictions: _s.extractXmlChild(elem, 'Restrictions')?.let(Restrictions.fromXml), viewerCertificate: _s @@ -4495,14 +4493,14 @@ class DistributionSummary { enabled: _s.extractXmlBoolValue(elem, 'Enabled')!, httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion')! - .let(HttpVersion.fromString) /* Nullability(true, false) */, + .let(HttpVersion.fromString), id: _s.extractXmlStringValue(elem, 'Id')!, isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled')!, lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, origins: Origins.fromXml(_s.extractXmlChild(elem, 'Origins')!), priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), restrictions: Restrictions.fromXml(_s.extractXmlChild(elem, 'Restrictions')!), status: _s.extractXmlStringValue(elem, 'Status')!, @@ -5347,7 +5345,7 @@ class GeoRestriction { quantity: _s.extractXmlIntValue(elem, 'Quantity')!, restrictionType: _s .extractXmlStringValue(elem, 'RestrictionType')! - .let(GeoRestrictionType.fromString) /* Nullability(true, false) */, + .let(GeoRestrictionType.fromString), items: _s .extractXmlChild(elem, 'Items') ?.let((elem) => _s.extractXmlStringListValues(elem, 'Location')), @@ -6151,7 +6149,7 @@ class LambdaFunctionAssociation { return LambdaFunctionAssociation( eventType: _s .extractXmlStringValue(elem, 'EventType')! - .let(EventType.fromString) /* Nullability(true, false) */, + .let(EventType.fromString), lambdaFunctionARN: _s.extractXmlStringValue(elem, 'LambdaFunctionARN')!, includeBody: _s.extractXmlBoolValue(elem, 'IncludeBody'), ); @@ -8068,7 +8066,7 @@ class StreamingDistributionConfig { ?.let(StreamingLoggingConfig.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), ); } @@ -8312,7 +8310,7 @@ class StreamingDistributionSummary { lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), s3Origin: S3Origin.fromXml(_s.extractXmlChild(elem, 'S3Origin')!), status: _s.extractXmlStringValue(elem, 'Status')!, trustedSigners: @@ -9048,17 +9046,16 @@ class ViewerCertificate { certificate: _s.extractXmlStringValue(elem, 'Certificate'), certificateSource: _s .extractXmlStringValue(elem, 'CertificateSource') - ?.let(CertificateSource.fromString) /* Nullability(true, true) */, + ?.let(CertificateSource.fromString), cloudFrontDefaultCertificate: _s.extractXmlBoolValue(elem, 'CloudFrontDefaultCertificate'), iAMCertificateId: _s.extractXmlStringValue(elem, 'IAMCertificateId'), minimumProtocolVersion: _s .extractXmlStringValue(elem, 'MinimumProtocolVersion') - ?.let( - MinimumProtocolVersion.fromString) /* Nullability(true, true) */, + ?.let(MinimumProtocolVersion.fromString), sSLSupportMethod: _s .extractXmlStringValue(elem, 'SSLSupportMethod') - ?.let(SSLSupportMethod.fromString) /* Nullability(true, true) */, + ?.let(SSLSupportMethod.fromString), ); } diff --git a/aws_client/lib/src/generated/cloud_front/v2019_03_26.dart b/aws_client/lib/src/generated/cloud_front/v2019_03_26.dart index e1f225129..022b9af43 100644 --- a/aws_client/lib/src/generated/cloud_front/v2019_03_26.dart +++ b/aws_client/lib/src/generated/cloud_front/v2019_03_26.dart @@ -1905,7 +1905,7 @@ class AliasICPRecordal { cname: _s.extractXmlStringValue(elem, 'CNAME'), iCPRecordalStatus: _s .extractXmlStringValue(elem, 'ICPRecordalStatus') - ?.let(ICPRecordalStatus.fromString) /* Nullability(true, true) */, + ?.let(ICPRecordalStatus.fromString), ); } @@ -2261,7 +2261,7 @@ class CacheBehavior { TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!), viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -2745,9 +2745,7 @@ class ContentTypeProfile { factory ContentTypeProfile.fromXml(_s.XmlElement elem) { return ContentTypeProfile( contentType: _s.extractXmlStringValue(elem, 'ContentType')!, - format: _s - .extractXmlStringValue(elem, 'Format')! - .let(Format.fromString) /* Nullability(true, false) */, + format: _s.extractXmlStringValue(elem, 'Format')!.let(Format.fromString), profileId: _s.extractXmlStringValue(elem, 'ProfileId'), ); } @@ -3002,7 +3000,7 @@ class CookiePreference { return CookiePreference( forward: _s .extractXmlStringValue(elem, 'Forward')! - .let(ItemSelection.fromString) /* Nullability(true, false) */, + .let(ItemSelection.fromString), whitelistedNames: _s .extractXmlChild(elem, 'WhitelistedNames') ?.let(CookieNames.fromXml), @@ -3617,7 +3615,7 @@ class CustomOriginConfig { hTTPSPort: _s.extractXmlIntValue(elem, 'HTTPSPort')!, originProtocolPolicy: _s .extractXmlStringValue(elem, 'OriginProtocolPolicy')! - .let(OriginProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(OriginProtocolPolicy.fromString), originKeepaliveTimeout: _s.extractXmlIntValue(elem, 'OriginKeepaliveTimeout'), originReadTimeout: _s.extractXmlIntValue(elem, 'OriginReadTimeout'), @@ -3833,7 +3831,7 @@ class DefaultCacheBehavior { TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!), viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -4274,14 +4272,14 @@ class DistributionConfig { defaultRootObject: _s.extractXmlStringValue(elem, 'DefaultRootObject'), httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion') - ?.let(HttpVersion.fromString) /* Nullability(true, true) */, + ?.let(HttpVersion.fromString), isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled'), logging: _s.extractXmlChild(elem, 'Logging')?.let(LoggingConfig.fromXml), originGroups: _s.extractXmlChild(elem, 'OriginGroups')?.let(OriginGroups.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), restrictions: _s.extractXmlChild(elem, 'Restrictions')?.let(Restrictions.fromXml), viewerCertificate: _s @@ -4621,14 +4619,14 @@ class DistributionSummary { enabled: _s.extractXmlBoolValue(elem, 'Enabled')!, httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion')! - .let(HttpVersion.fromString) /* Nullability(true, false) */, + .let(HttpVersion.fromString), id: _s.extractXmlStringValue(elem, 'Id')!, isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled')!, lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, origins: Origins.fromXml(_s.extractXmlChild(elem, 'Origins')!), priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), restrictions: Restrictions.fromXml(_s.extractXmlChild(elem, 'Restrictions')!), status: _s.extractXmlStringValue(elem, 'Status')!, @@ -5488,7 +5486,7 @@ class GeoRestriction { quantity: _s.extractXmlIntValue(elem, 'Quantity')!, restrictionType: _s .extractXmlStringValue(elem, 'RestrictionType')! - .let(GeoRestrictionType.fromString) /* Nullability(true, false) */, + .let(GeoRestrictionType.fromString), items: _s .extractXmlChild(elem, 'Items') ?.let((elem) => _s.extractXmlStringListValues(elem, 'Location')), @@ -6311,7 +6309,7 @@ class LambdaFunctionAssociation { return LambdaFunctionAssociation( eventType: _s .extractXmlStringValue(elem, 'EventType')! - .let(EventType.fromString) /* Nullability(true, false) */, + .let(EventType.fromString), lambdaFunctionARN: _s.extractXmlStringValue(elem, 'LambdaFunctionARN')!, includeBody: _s.extractXmlBoolValue(elem, 'IncludeBody'), ); @@ -8243,7 +8241,7 @@ class StreamingDistributionConfig { ?.let(StreamingLoggingConfig.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), ); } @@ -8492,7 +8490,7 @@ class StreamingDistributionSummary { lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), s3Origin: S3Origin.fromXml(_s.extractXmlChild(elem, 'S3Origin')!), status: _s.extractXmlStringValue(elem, 'Status')!, trustedSigners: @@ -9166,17 +9164,16 @@ class ViewerCertificate { certificate: _s.extractXmlStringValue(elem, 'Certificate'), certificateSource: _s .extractXmlStringValue(elem, 'CertificateSource') - ?.let(CertificateSource.fromString) /* Nullability(true, true) */, + ?.let(CertificateSource.fromString), cloudFrontDefaultCertificate: _s.extractXmlBoolValue(elem, 'CloudFrontDefaultCertificate'), iAMCertificateId: _s.extractXmlStringValue(elem, 'IAMCertificateId'), minimumProtocolVersion: _s .extractXmlStringValue(elem, 'MinimumProtocolVersion') - ?.let( - MinimumProtocolVersion.fromString) /* Nullability(true, true) */, + ?.let(MinimumProtocolVersion.fromString), sSLSupportMethod: _s .extractXmlStringValue(elem, 'SSLSupportMethod') - ?.let(SSLSupportMethod.fromString) /* Nullability(true, true) */, + ?.let(SSLSupportMethod.fromString), ); } diff --git a/aws_client/lib/src/generated/cloud_front/v2020_05_31.dart b/aws_client/lib/src/generated/cloud_front/v2020_05_31.dart index 8246fb72d..db642293c 100644 --- a/aws_client/lib/src/generated/cloud_front/v2020_05_31.dart +++ b/aws_client/lib/src/generated/cloud_front/v2020_05_31.dart @@ -5136,7 +5136,7 @@ class AliasICPRecordal { cname: _s.extractXmlStringValue(elem, 'CNAME'), iCPRecordalStatus: _s .extractXmlStringValue(elem, 'ICPRecordalStatus') - ?.let(ICPRecordalStatus.fromString) /* Nullability(true, true) */, + ?.let(ICPRecordalStatus.fromString), ); } @@ -5587,7 +5587,7 @@ class CacheBehavior { targetOriginId: _s.extractXmlStringValue(elem, 'TargetOriginId')!, viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -6046,8 +6046,9 @@ class CachePolicyCookiesConfig { }); factory CachePolicyCookiesConfig.fromXml(_s.XmlElement elem) { return CachePolicyCookiesConfig( - cookieBehavior: _s.extractXmlStringValue(elem, 'CookieBehavior')!.let( - CachePolicyCookieBehavior.fromString) /* Nullability(true, false) */, + cookieBehavior: _s + .extractXmlStringValue(elem, 'CookieBehavior')! + .let(CachePolicyCookieBehavior.fromString), cookies: _s.extractXmlChild(elem, 'Cookies')?.let(CookieNames.fromXml), ); } @@ -6123,8 +6124,9 @@ class CachePolicyHeadersConfig { }); factory CachePolicyHeadersConfig.fromXml(_s.XmlElement elem) { return CachePolicyHeadersConfig( - headerBehavior: _s.extractXmlStringValue(elem, 'HeaderBehavior')!.let( - CachePolicyHeaderBehavior.fromString) /* Nullability(true, false) */, + headerBehavior: _s + .extractXmlStringValue(elem, 'HeaderBehavior')! + .let(CachePolicyHeaderBehavior.fromString), headers: _s.extractXmlChild(elem, 'Headers')?.let(Headers.fromXml), ); } @@ -6273,8 +6275,7 @@ class CachePolicyQueryStringsConfig { return CachePolicyQueryStringsConfig( queryStringBehavior: _s .extractXmlStringValue(elem, 'QueryStringBehavior')! - .let(CachePolicyQueryStringBehavior - .fromString) /* Nullability(true, false) */, + .let(CachePolicyQueryStringBehavior.fromString), queryStrings: _s .extractXmlChild(elem, 'QueryStrings') ?.let(QueryStringNames.fromXml), @@ -6328,7 +6329,7 @@ class CachePolicySummary { CachePolicy.fromXml(_s.extractXmlChild(elem, 'CachePolicy')!), type: _s .extractXmlStringValue(elem, 'Type')! - .let(CachePolicyType.fromString) /* Nullability(true, false) */, + .let(CachePolicyType.fromString), ); } @@ -6789,9 +6790,7 @@ class ContentTypeProfile { factory ContentTypeProfile.fromXml(_s.XmlElement elem) { return ContentTypeProfile( contentType: _s.extractXmlStringValue(elem, 'ContentType')!, - format: _s - .extractXmlStringValue(elem, 'Format')! - .let(Format.fromString) /* Nullability(true, false) */, + format: _s.extractXmlStringValue(elem, 'Format')!.let(Format.fromString), profileId: _s.extractXmlStringValue(elem, 'ProfileId'), ); } @@ -7352,7 +7351,7 @@ class CookiePreference { return CookiePreference( forward: _s .extractXmlStringValue(elem, 'Forward')! - .let(ItemSelection.fromString) /* Nullability(true, false) */, + .let(ItemSelection.fromString), whitelistedNames: _s .extractXmlChild(elem, 'WhitelistedNames') ?.let(CookieNames.fromXml), @@ -8483,7 +8482,7 @@ class CustomOriginConfig { hTTPSPort: _s.extractXmlIntValue(elem, 'HTTPSPort')!, originProtocolPolicy: _s .extractXmlStringValue(elem, 'OriginProtocolPolicy')! - .let(OriginProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(OriginProtocolPolicy.fromString), originKeepaliveTimeout: _s.extractXmlIntValue(elem, 'OriginKeepaliveTimeout'), originReadTimeout: _s.extractXmlIntValue(elem, 'OriginReadTimeout'), @@ -8792,7 +8791,7 @@ class DefaultCacheBehavior { targetOriginId: _s.extractXmlStringValue(elem, 'TargetOriginId')!, viewerProtocolPolicy: _s .extractXmlStringValue(elem, 'ViewerProtocolPolicy')! - .let(ViewerProtocolPolicy.fromString) /* Nullability(true, false) */, + .let(ViewerProtocolPolicy.fromString), allowedMethods: _s .extractXmlChild(elem, 'AllowedMethods') ?.let(AllowedMethods.fromXml), @@ -9400,14 +9399,14 @@ class DistributionConfig { defaultRootObject: _s.extractXmlStringValue(elem, 'DefaultRootObject'), httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion') - ?.let(HttpVersion.fromString) /* Nullability(true, true) */, + ?.let(HttpVersion.fromString), isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled'), logging: _s.extractXmlChild(elem, 'Logging')?.let(LoggingConfig.fromXml), originGroups: _s.extractXmlChild(elem, 'OriginGroups')?.let(OriginGroups.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), restrictions: _s.extractXmlChild(elem, 'Restrictions')?.let(Restrictions.fromXml), staging: _s.extractXmlBoolValue(elem, 'Staging'), @@ -9829,14 +9828,14 @@ class DistributionSummary { enabled: _s.extractXmlBoolValue(elem, 'Enabled')!, httpVersion: _s .extractXmlStringValue(elem, 'HttpVersion')! - .let(HttpVersion.fromString) /* Nullability(true, false) */, + .let(HttpVersion.fromString), id: _s.extractXmlStringValue(elem, 'Id')!, isIPV6Enabled: _s.extractXmlBoolValue(elem, 'IsIPV6Enabled')!, lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, origins: Origins.fromXml(_s.extractXmlChild(elem, 'Origins')!), priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), restrictions: Restrictions.fromXml(_s.extractXmlChild(elem, 'Restrictions')!), staging: _s.extractXmlBoolValue(elem, 'Staging')!, @@ -10799,7 +10798,7 @@ class FunctionAssociation { return FunctionAssociation( eventType: _s .extractXmlStringValue(elem, 'EventType')! - .let(EventType.fromString) /* Nullability(true, false) */, + .let(EventType.fromString), functionARN: _s.extractXmlStringValue(elem, 'FunctionARN')!, ); } @@ -10907,7 +10906,7 @@ class FunctionConfig { comment: _s.extractXmlStringValue(elem, 'Comment')!, runtime: _s .extractXmlStringValue(elem, 'Runtime')! - .let(FunctionRuntime.fromString) /* Nullability(true, false) */, + .let(FunctionRuntime.fromString), keyValueStoreAssociations: _s .extractXmlChild(elem, 'KeyValueStoreAssociations') ?.let(KeyValueStoreAssociations.fromXml), @@ -11032,7 +11031,7 @@ class FunctionMetadata { createdTime: _s.extractXmlDateTimeValue(elem, 'CreatedTime'), stage: _s .extractXmlStringValue(elem, 'Stage') - ?.let(FunctionStage.fromString) /* Nullability(true, true) */, + ?.let(FunctionStage.fromString), ); } @@ -11181,7 +11180,7 @@ class GeoRestriction { quantity: _s.extractXmlIntValue(elem, 'Quantity')!, restrictionType: _s .extractXmlStringValue(elem, 'RestrictionType')! - .let(GeoRestrictionType.fromString) /* Nullability(true, false) */, + .let(GeoRestrictionType.fromString), items: _s .extractXmlChild(elem, 'Items') ?.let((elem) => _s.extractXmlStringListValues(elem, 'Location')), @@ -12815,7 +12814,7 @@ class LambdaFunctionAssociation { return LambdaFunctionAssociation( eventType: _s .extractXmlStringValue(elem, 'EventType')! - .let(EventType.fromString) /* Nullability(true, false) */, + .let(EventType.fromString), lambdaFunctionARN: _s.extractXmlStringValue(elem, 'LambdaFunctionARN')!, includeBody: _s.extractXmlBoolValue(elem, 'IncludeBody'), ); @@ -13870,14 +13869,13 @@ class OriginAccessControlConfig { name: _s.extractXmlStringValue(elem, 'Name')!, originAccessControlOriginType: _s .extractXmlStringValue(elem, 'OriginAccessControlOriginType')! - .let(OriginAccessControlOriginTypes - .fromString) /* Nullability(true, false) */, - signingBehavior: _s.extractXmlStringValue(elem, 'SigningBehavior')!.let( - OriginAccessControlSigningBehaviors - .fromString) /* Nullability(true, false) */, - signingProtocol: _s.extractXmlStringValue(elem, 'SigningProtocol')!.let( - OriginAccessControlSigningProtocols - .fromString) /* Nullability(true, false) */, + .let(OriginAccessControlOriginTypes.fromString), + signingBehavior: _s + .extractXmlStringValue(elem, 'SigningBehavior')! + .let(OriginAccessControlSigningBehaviors.fromString), + signingProtocol: _s + .extractXmlStringValue(elem, 'SigningProtocol')! + .let(OriginAccessControlSigningProtocols.fromString), description: _s.extractXmlStringValue(elem, 'Description'), ); } @@ -14088,14 +14086,13 @@ class OriginAccessControlSummary { name: _s.extractXmlStringValue(elem, 'Name')!, originAccessControlOriginType: _s .extractXmlStringValue(elem, 'OriginAccessControlOriginType')! - .let(OriginAccessControlOriginTypes - .fromString) /* Nullability(true, false) */, - signingBehavior: _s.extractXmlStringValue(elem, 'SigningBehavior')!.let( - OriginAccessControlSigningBehaviors - .fromString) /* Nullability(true, false) */, - signingProtocol: _s.extractXmlStringValue(elem, 'SigningProtocol')!.let( - OriginAccessControlSigningProtocols - .fromString) /* Nullability(true, false) */, + .let(OriginAccessControlOriginTypes.fromString), + signingBehavior: _s + .extractXmlStringValue(elem, 'SigningBehavior')! + .let(OriginAccessControlSigningBehaviors.fromString), + signingProtocol: _s + .extractXmlStringValue(elem, 'SigningProtocol')! + .let(OriginAccessControlSigningProtocols.fromString), ); } @@ -14645,9 +14642,9 @@ class OriginRequestPolicyCookiesConfig { }); factory OriginRequestPolicyCookiesConfig.fromXml(_s.XmlElement elem) { return OriginRequestPolicyCookiesConfig( - cookieBehavior: _s.extractXmlStringValue(elem, 'CookieBehavior')!.let( - OriginRequestPolicyCookieBehavior - .fromString) /* Nullability(true, false) */, + cookieBehavior: _s + .extractXmlStringValue(elem, 'CookieBehavior')! + .let(OriginRequestPolicyCookieBehavior.fromString), cookies: _s.extractXmlChild(elem, 'Cookies')?.let(CookieNames.fromXml), ); } @@ -14740,9 +14737,9 @@ class OriginRequestPolicyHeadersConfig { }); factory OriginRequestPolicyHeadersConfig.fromXml(_s.XmlElement elem) { return OriginRequestPolicyHeadersConfig( - headerBehavior: _s.extractXmlStringValue(elem, 'HeaderBehavior')!.let( - OriginRequestPolicyHeaderBehavior - .fromString) /* Nullability(true, false) */, + headerBehavior: _s + .extractXmlStringValue(elem, 'HeaderBehavior')! + .let(OriginRequestPolicyHeaderBehavior.fromString), headers: _s.extractXmlChild(elem, 'Headers')?.let(Headers.fromXml), ); } @@ -14890,8 +14887,7 @@ class OriginRequestPolicyQueryStringsConfig { return OriginRequestPolicyQueryStringsConfig( queryStringBehavior: _s .extractXmlStringValue(elem, 'QueryStringBehavior')! - .let(OriginRequestPolicyQueryStringBehavior - .fromString) /* Nullability(true, false) */, + .let(OriginRequestPolicyQueryStringBehavior.fromString), queryStrings: _s .extractXmlChild(elem, 'QueryStrings') ?.let(QueryStringNames.fromXml), @@ -14943,8 +14939,9 @@ class OriginRequestPolicySummary { return OriginRequestPolicySummary( originRequestPolicy: OriginRequestPolicy.fromXml( _s.extractXmlChild(elem, 'OriginRequestPolicy')!), - type: _s.extractXmlStringValue(elem, 'Type')!.let( - OriginRequestPolicyType.fromString) /* Nullability(true, false) */, + type: _s + .extractXmlStringValue(elem, 'Type')! + .let(OriginRequestPolicyType.fromString), ); } @@ -16034,8 +16031,7 @@ class RealtimeMetricsSubscriptionConfig { return RealtimeMetricsSubscriptionConfig( realtimeMetricsSubscriptionStatus: _s .extractXmlStringValue(elem, 'RealtimeMetricsSubscriptionStatus')! - .let(RealtimeMetricsSubscriptionStatus - .fromString) /* Nullability(true, false) */, + .let(RealtimeMetricsSubscriptionStatus.fromString), ); } @@ -16951,7 +16947,7 @@ class ResponseHeadersPolicyFrameOptions { return ResponseHeadersPolicyFrameOptions( frameOption: _s .extractXmlStringValue(elem, 'FrameOption')! - .let(FrameOptionsList.fromString) /* Nullability(true, false) */, + .let(FrameOptionsList.fromString), override: _s.extractXmlBoolValue(elem, 'Override')!, ); } @@ -17088,7 +17084,7 @@ class ResponseHeadersPolicyReferrerPolicy { override: _s.extractXmlBoolValue(elem, 'Override')!, referrerPolicy: _s .extractXmlStringValue(elem, 'ReferrerPolicy')! - .let(ReferrerPolicyList.fromString) /* Nullability(true, false) */, + .let(ReferrerPolicyList.fromString), ); } @@ -17523,8 +17519,9 @@ class ResponseHeadersPolicySummary { return ResponseHeadersPolicySummary( responseHeadersPolicy: ResponseHeadersPolicy.fromXml( _s.extractXmlChild(elem, 'ResponseHeadersPolicy')!), - type: _s.extractXmlStringValue(elem, 'Type')!.let( - ResponseHeadersPolicyType.fromString) /* Nullability(true, false) */, + type: _s + .extractXmlStringValue(elem, 'Type')! + .let(ResponseHeadersPolicyType.fromString), ); } @@ -18214,7 +18211,7 @@ class StreamingDistributionConfig { ?.let(StreamingLoggingConfig.fromXml), priceClass: _s .extractXmlStringValue(elem, 'PriceClass') - ?.let(PriceClass.fromString) /* Nullability(true, true) */, + ?.let(PriceClass.fromString), ); } @@ -18465,7 +18462,7 @@ class StreamingDistributionSummary { lastModifiedTime: _s.extractXmlDateTimeValue(elem, 'LastModifiedTime')!, priceClass: _s .extractXmlStringValue(elem, 'PriceClass')! - .let(PriceClass.fromString) /* Nullability(true, false) */, + .let(PriceClass.fromString), s3Origin: S3Origin.fromXml(_s.extractXmlChild(elem, 'S3Origin')!), status: _s.extractXmlStringValue(elem, 'Status')!, trustedSigners: @@ -18856,9 +18853,9 @@ class TrafficConfig { }); factory TrafficConfig.fromXml(_s.XmlElement elem) { return TrafficConfig( - type: _s.extractXmlStringValue(elem, 'Type')!.let( - ContinuousDeploymentPolicyType - .fromString) /* Nullability(true, false) */, + type: _s + .extractXmlStringValue(elem, 'Type')! + .let(ContinuousDeploymentPolicyType.fromString), singleHeaderConfig: _s .extractXmlChild(elem, 'SingleHeaderConfig') ?.let(ContinuousDeploymentSingleHeaderConfig.fromXml), @@ -19775,17 +19772,16 @@ class ViewerCertificate { certificate: _s.extractXmlStringValue(elem, 'Certificate'), certificateSource: _s .extractXmlStringValue(elem, 'CertificateSource') - ?.let(CertificateSource.fromString) /* Nullability(true, true) */, + ?.let(CertificateSource.fromString), cloudFrontDefaultCertificate: _s.extractXmlBoolValue(elem, 'CloudFrontDefaultCertificate'), iAMCertificateId: _s.extractXmlStringValue(elem, 'IAMCertificateId'), minimumProtocolVersion: _s .extractXmlStringValue(elem, 'MinimumProtocolVersion') - ?.let( - MinimumProtocolVersion.fromString) /* Nullability(true, true) */, + ?.let(MinimumProtocolVersion.fromString), sSLSupportMethod: _s .extractXmlStringValue(elem, 'SSLSupportMethod') - ?.let(SSLSupportMethod.fromString) /* Nullability(true, true) */, + ?.let(SSLSupportMethod.fromString), ); } diff --git a/aws_client/lib/src/generated/cloud_hsm/v2014_05_30.dart b/aws_client/lib/src/generated/cloud_hsm/v2014_05_30.dart index 0c124fd3b..f5f4d211f 100644 --- a/aws_client/lib/src/generated/cloud_hsm/v2014_05_30.dart +++ b/aws_client/lib/src/generated/cloud_hsm/v2014_05_30.dart @@ -1388,21 +1388,21 @@ class DescribeHapgResponse { hapgArn: json['HapgArn'] as String?, hapgSerial: json['HapgSerial'] as String?, hsmsLastActionFailed: (json['HsmsLastActionFailed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), hsmsPendingDeletion: (json['HsmsPendingDeletion'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), hsmsPendingRegistration: (json['HsmsPendingRegistration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), label: json['Label'] as String?, lastModifiedTimestamp: json['LastModifiedTimestamp'] as String?, partitionSerialList: (json['PartitionSerialList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), state: (json['State'] as String?)?.let(CloudHsmObjectState.fromString), @@ -1534,7 +1534,7 @@ class DescribeHsmResponse { hsmType: json['HsmType'] as String?, iamRoleArn: json['IamRoleArn'] as String?, partitions: (json['Partitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serialNumber: json['SerialNumber'] as String?, @@ -1723,10 +1723,8 @@ class ListAvailableZonesResponse { factory ListAvailableZonesResponse.fromJson(Map json) { return ListAvailableZonesResponse( - aZList: (json['AZList'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + aZList: + (json['AZList'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -1753,10 +1751,8 @@ class ListHapgsResponse { factory ListHapgsResponse.fromJson(Map json) { return ListHapgsResponse( - hapgList: (json['HapgList'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + hapgList: + (json['HapgList'] as List).nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -1787,10 +1783,8 @@ class ListHsmsResponse { factory ListHsmsResponse.fromJson(Map json) { return ListHsmsResponse( - hsmList: (json['HsmList'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + hsmList: + (json['HsmList'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -1821,7 +1815,7 @@ class ListLunaClientsResponse { factory ListLunaClientsResponse.fromJson(Map json) { return ListLunaClientsResponse( clientList: (json['ClientList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -1849,7 +1843,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tagList: (json['TagList'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/cloud_hsm_v2/v2017_04_28.dart b/aws_client/lib/src/generated/cloud_hsm_v2/v2017_04_28.dart index b7a24a74a..e7b22e3c0 100644 --- a/aws_client/lib/src/generated/cloud_hsm_v2/v2017_04_28.dart +++ b/aws_client/lib/src/generated/cloud_hsm_v2/v2017_04_28.dart @@ -856,7 +856,7 @@ class Backup { sourceCluster: json['SourceCluster'] as String?, sourceRegion: json['SourceRegion'] as String?, tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1108,7 +1108,7 @@ class Cluster { createTimestamp: timeStampFromJson(json['CreateTimestamp']), hsmType: json['HsmType'] as String?, hsms: (json['Hsms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Hsm.fromJson(e as Map)) .toList(), preCoPassword: json['PreCoPassword'] as String?, @@ -1119,7 +1119,7 @@ class Cluster { subnetMapping: (json['SubnetMapping'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -1353,7 +1353,7 @@ class DescribeBackupsResponse { factory DescribeBackupsResponse.fromJson(Map json) { return DescribeBackupsResponse( backups: (json['Backups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Backup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1387,7 +1387,7 @@ class DescribeClustersResponse { factory DescribeClustersResponse.fromJson(Map json) { return DescribeClustersResponse( clusters: (json['Clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cluster.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1589,7 +1589,7 @@ class ListTagsResponse { factory ListTagsResponse.fromJson(Map json) { return ListTagsResponse( tagList: (json['TagList'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/cloud_search/v2011_02_01.dart b/aws_client/lib/src/generated/cloud_search/v2011_02_01.dart index db23c6dc5..7cf1f55f2 100644 --- a/aws_client/lib/src/generated/cloud_search/v2011_02_01.dart +++ b/aws_client/lib/src/generated/cloud_search/v2011_02_01.dart @@ -1355,7 +1355,7 @@ class IndexField { indexFieldName: _s.extractXmlStringValue(elem, 'IndexFieldName')!, indexFieldType: _s .extractXmlStringValue(elem, 'IndexFieldType')! - .let(IndexFieldType.fromString) /* Nullability(true, false) */, + .let(IndexFieldType.fromString), literalOptions: _s .extractXmlChild(elem, 'LiteralOptions') ?.let(LiteralOptions.fromXml), @@ -1699,9 +1699,8 @@ class OptionStatus { factory OptionStatus.fromXml(_s.XmlElement elem) { return OptionStatus( creationDate: _s.extractXmlDateTimeValue(elem, 'CreationDate')!, - state: _s - .extractXmlStringValue(elem, 'State')! - .let(OptionState.fromString) /* Nullability(true, false) */, + state: + _s.extractXmlStringValue(elem, 'State')!.let(OptionState.fromString), updateDate: _s.extractXmlDateTimeValue(elem, 'UpdateDate')!, pendingDeletion: _s.extractXmlBoolValue(elem, 'PendingDeletion'), updateVersion: _s.extractXmlIntValue(elem, 'UpdateVersion'), @@ -1828,7 +1827,7 @@ class SourceAttribute { return SourceAttribute( sourceDataFunction: _s .extractXmlStringValue(elem, 'SourceDataFunction')! - .let(SourceDataFunction.fromString) /* Nullability(true, false) */, + .let(SourceDataFunction.fromString), sourceDataCopy: _s.extractXmlChild(elem, 'SourceDataCopy')?.let(SourceData.fromXml), sourceDataMap: diff --git a/aws_client/lib/src/generated/cloud_search/v2013_01_01.dart b/aws_client/lib/src/generated/cloud_search/v2013_01_01.dart index 3067615da..9e792b8d6 100644 --- a/aws_client/lib/src/generated/cloud_search/v2013_01_01.dart +++ b/aws_client/lib/src/generated/cloud_search/v2013_01_01.dart @@ -1114,7 +1114,7 @@ class AnalysisOptions { return AnalysisOptions( algorithmicStemming: _s .extractXmlStringValue(elem, 'AlgorithmicStemming') - ?.let(AlgorithmicStemming.fromString) /* Nullability(true, true) */, + ?.let(AlgorithmicStemming.fromString), japaneseTokenizationDictionary: _s.extractXmlStringValue(elem, 'JapaneseTokenizationDictionary'), stemmingDictionary: _s.extractXmlStringValue(elem, 'StemmingDictionary'), @@ -1178,8 +1178,7 @@ class AnalysisScheme { return AnalysisScheme( analysisSchemeLanguage: _s .extractXmlStringValue(elem, 'AnalysisSchemeLanguage')! - .let( - AnalysisSchemeLanguage.fromString) /* Nullability(true, false) */, + .let(AnalysisSchemeLanguage.fromString), analysisSchemeName: _s.extractXmlStringValue(elem, 'AnalysisSchemeName')!, analysisOptions: _s .extractXmlChild(elem, 'AnalysisOptions') @@ -1978,8 +1977,9 @@ class DocumentSuggesterOptions { factory DocumentSuggesterOptions.fromXml(_s.XmlElement elem) { return DocumentSuggesterOptions( sourceField: _s.extractXmlStringValue(elem, 'SourceField')!, - fuzzyMatching: _s.extractXmlStringValue(elem, 'FuzzyMatching')?.let( - SuggesterFuzzyMatching.fromString) /* Nullability(true, true) */, + fuzzyMatching: _s + .extractXmlStringValue(elem, 'FuzzyMatching') + ?.let(SuggesterFuzzyMatching.fromString), sortExpression: _s.extractXmlStringValue(elem, 'SortExpression'), ); } @@ -2024,7 +2024,7 @@ class DomainEndpointOptions { enforceHTTPS: _s.extractXmlBoolValue(elem, 'EnforceHTTPS'), tLSSecurityPolicy: _s .extractXmlStringValue(elem, 'TLSSecurityPolicy') - ?.let(TLSSecurityPolicy.fromString) /* Nullability(true, true) */, + ?.let(TLSSecurityPolicy.fromString), ); } @@ -2482,7 +2482,7 @@ class IndexField { indexFieldName: _s.extractXmlStringValue(elem, 'IndexFieldName')!, indexFieldType: _s .extractXmlStringValue(elem, 'IndexFieldType')! - .let(IndexFieldType.fromString) /* Nullability(true, false) */, + .let(IndexFieldType.fromString), dateArrayOptions: _s .extractXmlChild(elem, 'DateArrayOptions') ?.let(DateArrayOptions.fromXml), @@ -3142,9 +3142,8 @@ class OptionStatus { factory OptionStatus.fromXml(_s.XmlElement elem) { return OptionStatus( creationDate: _s.extractXmlDateTimeValue(elem, 'CreationDate')!, - state: _s - .extractXmlStringValue(elem, 'State')! - .let(OptionState.fromString) /* Nullability(true, false) */, + state: + _s.extractXmlStringValue(elem, 'State')!.let(OptionState.fromString), updateDate: _s.extractXmlDateTimeValue(elem, 'UpdateDate')!, pendingDeletion: _s.extractXmlBoolValue(elem, 'PendingDeletion'), updateVersion: _s.extractXmlIntValue(elem, 'UpdateVersion'), @@ -3222,7 +3221,7 @@ class ScalingParameters { return ScalingParameters( desiredInstanceType: _s .extractXmlStringValue(elem, 'DesiredInstanceType') - ?.let(PartitionInstanceType.fromString) /* Nullability(true, true) */, + ?.let(PartitionInstanceType.fromString), desiredPartitionCount: _s.extractXmlIntValue(elem, 'DesiredPartitionCount'), desiredReplicationCount: diff --git a/aws_client/lib/src/generated/cloud_search_domain/v2013_01_01.dart b/aws_client/lib/src/generated/cloud_search_domain/v2013_01_01.dart index 0136e5af5..2f1337017 100644 --- a/aws_client/lib/src/generated/cloud_search_domain/v2013_01_01.dart +++ b/aws_client/lib/src/generated/cloud_search_domain/v2013_01_01.dart @@ -650,7 +650,7 @@ class BucketInfo { factory BucketInfo.fromJson(Map json) { return BucketInfo( buckets: (json['buckets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Bucket.fromJson(e as Map)) .toList(), ); @@ -859,8 +859,8 @@ class Hit { return Hit( exprs: (json['exprs'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), - fields: (json['fields'] as Map?)?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + fields: (json['fields'] as Map?)?.map((k, e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), highlights: (json['highlights'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), id: json['id'] as String?, @@ -908,7 +908,7 @@ class Hits { cursor: json['cursor'] as String?, found: json['found'] as int?, hit: (json['hit'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Hit.fromJson(e as Map)) .toList(), start: json['start'] as int?, @@ -1075,7 +1075,7 @@ class SuggestModel { found: json['found'] as int?, query: json['query'] as String?, suggestions: (json['suggestions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuggestionMatch.fromJson(e as Map)) .toList(), ); @@ -1227,7 +1227,7 @@ class UploadDocumentsResponse { deletes: json['deletes'] as int?, status: json['status'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DocumentServiceWarning.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/cloud_trail/v2013_11_01.dart b/aws_client/lib/src/generated/cloud_trail/v2013_11_01.dart index 1cb99529f..2943eaf06 100644 --- a/aws_client/lib/src/generated/cloud_trail/v2013_11_01.dart +++ b/aws_client/lib/src/generated/cloud_trail/v2013_11_01.dart @@ -3579,7 +3579,7 @@ class AdvancedEventSelector { factory AdvancedEventSelector.fromJson(Map json) { return AdvancedEventSelector( fieldSelectors: (json['FieldSelectors'] as List) - .whereNotNull() + .nonNulls .map((e) => AdvancedFieldSelector.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -4500,27 +4500,25 @@ class AdvancedFieldSelector { return AdvancedFieldSelector( field: json['Field'] as String, endsWith: (json['EndsWith'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - equals: (json['Equals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + equals: + (json['Equals'] as List?)?.nonNulls.map((e) => e as String).toList(), notEndsWith: (json['NotEndsWith'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notEquals: (json['NotEquals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notStartsWith: (json['NotStartsWith'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), startsWith: (json['StartsWith'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4651,13 +4649,13 @@ class CreateChannelResponse { return CreateChannelResponse( channelArn: json['ChannelArn'] as String?, destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), name: json['Name'] as String?, source: json['Source'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4745,7 +4743,7 @@ class CreateEventDataStoreResponse { factory CreateEventDataStoreResponse.fromJson(Map json) { return CreateEventDataStoreResponse( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), billingMode: @@ -4759,7 +4757,7 @@ class CreateEventDataStoreResponse { retentionPeriod: json['RetentionPeriod'] as int?, status: (json['Status'] as String?)?.let(EventDataStoreStatus.fromString), tagsList: (json['TagsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), terminationProtectionEnabled: @@ -5084,10 +5082,8 @@ class DataResource { factory DataResource.fromJson(Map json) { return DataResource( type: json['Type'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -5279,7 +5275,7 @@ class DescribeTrailsResponse { factory DescribeTrailsResponse.fromJson(Map json) { return DescribeTrailsResponse( trailList: (json['trailList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trail.fromJson(e as Map)) .toList(), ); @@ -5467,7 +5463,7 @@ class Event { eventTime: timeStampFromJson(json['EventTime']), readOnly: json['ReadOnly'] as String?, resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), username: json['Username'] as String?, @@ -5569,7 +5565,7 @@ class EventDataStore { factory EventDataStore.fromJson(Map json) { return EventDataStore( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), @@ -5704,12 +5700,12 @@ class EventSelector { factory EventSelector.fromJson(Map json) { return EventSelector( dataResources: (json['DataResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataResource.fromJson(e as Map)) .toList(), excludeManagementEventSources: (json['ExcludeManagementEventSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includeManagementEvents: json['IncludeManagementEvents'] as bool?, @@ -5792,7 +5788,7 @@ class GetChannelResponse { return GetChannelResponse( channelArn: json['ChannelArn'] as String?, destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), ingestionStatus: json['IngestionStatus'] != null @@ -5907,7 +5903,7 @@ class GetEventDataStoreResponse { factory GetEventDataStoreResponse.fromJson(Map json) { return GetEventDataStoreResponse( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), billingMode: @@ -5922,7 +5918,7 @@ class GetEventDataStoreResponse { name: json['Name'] as String?, organizationEnabled: json['OrganizationEnabled'] as bool?, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionKey.fromJson(e as Map)) .toList(), retentionPeriod: json['RetentionPeriod'] as int?, @@ -5993,11 +5989,11 @@ class GetEventSelectorsResponse { factory GetEventSelectorsResponse.fromJson(Map json) { return GetEventSelectorsResponse( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), eventSelectors: (json['EventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSelector.fromJson(e as Map)) .toList(), trailARN: json['TrailARN'] as String?, @@ -6068,7 +6064,7 @@ class GetImportResponse { return GetImportResponse( createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), endEventTime: timeStampFromJson(json['EndEventTime']), @@ -6142,7 +6138,7 @@ class GetInsightSelectorsResponse { return GetInsightSelectorsResponse( eventDataStoreArn: json['EventDataStoreArn'] as String?, insightSelectors: (json['InsightSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightSelector.fromJson(e as Map)) .toList(), insightsDestination: json['InsightsDestination'] as String?, @@ -6196,9 +6192,9 @@ class GetQueryResultsResponse { errorMessage: json['ErrorMessage'] as String?, nextToken: json['NextToken'] as String?, queryResultRows: (json['QueryResultRows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList()) @@ -6670,7 +6666,7 @@ class ImportsListItem { return ImportsListItem( createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), importId: json['ImportId'] as String?, @@ -6841,7 +6837,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( channels: (json['Channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6874,7 +6870,7 @@ class ListEventDataStoresResponse { factory ListEventDataStoresResponse.fromJson(Map json) { return ListEventDataStoresResponse( eventDataStores: (json['EventDataStores'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDataStore.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6906,7 +6902,7 @@ class ListImportFailuresResponse { factory ListImportFailuresResponse.fromJson(Map json) { return ListImportFailuresResponse( failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportFailureListItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6938,7 +6934,7 @@ class ListImportsResponse { factory ListImportsResponse.fromJson(Map json) { return ListImportsResponse( imports: (json['Imports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportsListItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7011,13 +7007,11 @@ class ListInsightsMetricDataResponse { (json['InsightType'] as String?)?.let(InsightType.fromString), nextToken: json['NextToken'] as String?, timestamps: (json['Timestamps'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as double) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as double).toList(), ); } @@ -7063,7 +7057,7 @@ class ListPublicKeysResponse { return ListPublicKeysResponse( nextToken: json['NextToken'] as String?, publicKeyList: (json['PublicKeyList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PublicKey.fromJson(e as Map)) .toList(), ); @@ -7096,7 +7090,7 @@ class ListQueriesResponse { return ListQueriesResponse( nextToken: json['NextToken'] as String?, queries: (json['Queries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Query.fromJson(e as Map)) .toList(), ); @@ -7130,7 +7124,7 @@ class ListTagsResponse { return ListTagsResponse( nextToken: json['NextToken'] as String?, resourceTagList: (json['ResourceTagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), ); @@ -7167,7 +7161,7 @@ class ListTrailsResponse { return ListTrailsResponse( nextToken: json['NextToken'] as String?, trails: (json['Trails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrailInfo.fromJson(e as Map)) .toList(), ); @@ -7255,7 +7249,7 @@ class LookupEventsResponse { factory LookupEventsResponse.fromJson(Map json) { return LookupEventsResponse( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7371,11 +7365,11 @@ class PutEventSelectorsResponse { factory PutEventSelectorsResponse.fromJson(Map json) { return PutEventSelectorsResponse( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), eventSelectors: (json['EventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSelector.fromJson(e as Map)) .toList(), trailARN: json['TrailARN'] as String?, @@ -7423,7 +7417,7 @@ class PutInsightSelectorsResponse { return PutInsightSelectorsResponse( eventDataStoreArn: json['EventDataStoreArn'] as String?, insightSelectors: (json['InsightSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightSelector.fromJson(e as Map)) .toList(), insightsDestination: json['InsightsDestination'] as String?, @@ -7734,7 +7728,7 @@ class ResourceTag { return ResourceTag( resourceId: json['ResourceId'] as String?, tagsList: (json['TagsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7813,7 +7807,7 @@ class RestoreEventDataStoreResponse { factory RestoreEventDataStoreResponse.fromJson(Map json) { return RestoreEventDataStoreResponse( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), billingMode: @@ -7920,7 +7914,7 @@ class SourceConfig { factory SourceConfig.fromJson(Map json) { return SourceConfig( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), applyToAllRegions: json['ApplyToAllRegions'] as bool?, @@ -7997,7 +7991,7 @@ class StartImportResponse { return StartImportResponse( createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), endEventTime: timeStampFromJson(json['EndEventTime']), @@ -8134,7 +8128,7 @@ class StopImportResponse { return StopImportResponse( createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), endEventTime: timeStampFromJson(json['EndEventTime']), @@ -8447,7 +8441,7 @@ class UpdateChannelResponse { return UpdateChannelResponse( channelArn: json['ChannelArn'] as String?, destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -8546,7 +8540,7 @@ class UpdateEventDataStoreResponse { factory UpdateEventDataStoreResponse.fromJson(Map json) { return UpdateEventDataStoreResponse( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), billingMode: diff --git a/aws_client/lib/src/generated/cloud_trail_data/v2021_08_11.dart b/aws_client/lib/src/generated/cloud_trail_data/v2021_08_11.dart index 989333ef8..31769a6f1 100644 --- a/aws_client/lib/src/generated/cloud_trail_data/v2021_08_11.dart +++ b/aws_client/lib/src/generated/cloud_trail_data/v2021_08_11.dart @@ -188,11 +188,11 @@ class PutAuditEventsResponse { factory PutAuditEventsResponse.fromJson(Map json) { return PutAuditEventsResponse( failed: (json['failed'] as List) - .whereNotNull() + .nonNulls .map((e) => ResultErrorEntry.fromJson(e as Map)) .toList(), successful: (json['successful'] as List) - .whereNotNull() + .nonNulls .map((e) => AuditEventResultEntry.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/cloud_watch/v2010_08_01.dart b/aws_client/lib/src/generated/cloud_watch/v2010_08_01.dart index 1fec79cc2..6ecd979fa 100644 --- a/aws_client/lib/src/generated/cloud_watch/v2010_08_01.dart +++ b/aws_client/lib/src/generated/cloud_watch/v2010_08_01.dart @@ -3813,11 +3813,11 @@ class AlarmHistoryItem { alarmName: _s.extractXmlStringValue(elem, 'AlarmName'), alarmType: _s .extractXmlStringValue(elem, 'AlarmType') - ?.let(AlarmType.fromString) /* Nullability(true, true) */, + ?.let(AlarmType.fromString), historyData: _s.extractXmlStringValue(elem, 'HistoryData'), historyItemType: _s .extractXmlStringValue(elem, 'HistoryItemType') - ?.let(HistoryItemType.fromString) /* Nullability(true, true) */, + ?.let(HistoryItemType.fromString), historySummary: _s.extractXmlStringValue(elem, 'HistorySummary'), timestamp: _s.extractXmlDateTimeValue(elem, 'Timestamp'), ); @@ -3925,8 +3925,9 @@ class AnomalyDetector { .extractXmlChild(elem, 'SingleMetricAnomalyDetector') ?.let(SingleMetricAnomalyDetector.fromXml), stat: _s.extractXmlStringValue(elem, 'Stat'), - stateValue: _s.extractXmlStringValue(elem, 'StateValue')?.let( - AnomalyDetectorStateValue.fromString) /* Nullability(true, true) */, + stateValue: _s + .extractXmlStringValue(elem, 'StateValue') + ?.let(AnomalyDetectorStateValue.fromString), ); } @@ -4181,7 +4182,7 @@ class CompositeAlarm { actionsEnabled: _s.extractXmlBoolValue(elem, 'ActionsEnabled'), actionsSuppressedBy: _s .extractXmlStringValue(elem, 'ActionsSuppressedBy') - ?.let(ActionsSuppressedBy.fromString) /* Nullability(true, true) */, + ?.let(ActionsSuppressedBy.fromString), actionsSuppressedReason: _s.extractXmlStringValue(elem, 'ActionsSuppressedReason'), actionsSuppressor: _s.extractXmlStringValue(elem, 'ActionsSuppressor'), @@ -4212,7 +4213,7 @@ class CompositeAlarm { _s.extractXmlDateTimeValue(elem, 'StateUpdatedTimestamp'), stateValue: _s .extractXmlStringValue(elem, 'StateValue') - ?.let(StateValue.fromString) /* Nullability(true, true) */, + ?.let(StateValue.fromString), ); } @@ -4399,9 +4400,8 @@ class Datapoint { sampleCount: _s.extractXmlDoubleValue(elem, 'SampleCount'), sum: _s.extractXmlDoubleValue(elem, 'Sum'), timestamp: _s.extractXmlDateTimeValue(elem, 'Timestamp'), - unit: _s - .extractXmlStringValue(elem, 'Unit') - ?.let(StandardUnit.fromString) /* Nullability(true, true) */, + unit: + _s.extractXmlStringValue(elem, 'Unit')?.let(StandardUnit.fromString), ); } @@ -5059,8 +5059,9 @@ class GetMetricStreamOutput { _s.extractXmlBoolValue(elem, 'IncludeLinkedAccountsMetrics'), lastUpdateDate: _s.extractXmlDateTimeValue(elem, 'LastUpdateDate'), name: _s.extractXmlStringValue(elem, 'Name'), - outputFormat: _s.extractXmlStringValue(elem, 'OutputFormat')?.let( - MetricStreamOutputFormat.fromString) /* Nullability(true, true) */, + outputFormat: _s + .extractXmlStringValue(elem, 'OutputFormat') + ?.let(MetricStreamOutputFormat.fromString), roleArn: _s.extractXmlStringValue(elem, 'RoleArn'), state: _s.extractXmlStringValue(elem, 'State'), statisticsConfigurations: _s @@ -5978,7 +5979,7 @@ class MetricAlarm { alarmName: _s.extractXmlStringValue(elem, 'AlarmName'), comparisonOperator: _s .extractXmlStringValue(elem, 'ComparisonOperator') - ?.let(ComparisonOperator.fromString) /* Nullability(true, true) */, + ?.let(ComparisonOperator.fromString), datapointsToAlarm: _s.extractXmlIntValue(elem, 'DatapointsToAlarm'), dimensions: _s.extractXmlChild(elem, 'Dimensions')?.let((elem) => elem.findElements('member').map(Dimension.fromXml).toList()), @@ -5987,7 +5988,7 @@ class MetricAlarm { evaluationPeriods: _s.extractXmlIntValue(elem, 'EvaluationPeriods'), evaluationState: _s .extractXmlStringValue(elem, 'EvaluationState') - ?.let(EvaluationState.fromString) /* Nullability(true, true) */, + ?.let(EvaluationState.fromString), extendedStatistic: _s.extractXmlStringValue(elem, 'ExtendedStatistic'), insufficientDataActions: _s .extractXmlChild(elem, 'InsufficientDataActions') @@ -6008,16 +6009,15 @@ class MetricAlarm { _s.extractXmlDateTimeValue(elem, 'StateUpdatedTimestamp'), stateValue: _s .extractXmlStringValue(elem, 'StateValue') - ?.let(StateValue.fromString) /* Nullability(true, true) */, + ?.let(StateValue.fromString), statistic: _s .extractXmlStringValue(elem, 'Statistic') - ?.let(Statistic.fromString) /* Nullability(true, true) */, + ?.let(Statistic.fromString), threshold: _s.extractXmlDoubleValue(elem, 'Threshold'), thresholdMetricId: _s.extractXmlStringValue(elem, 'ThresholdMetricId'), treatMissingData: _s.extractXmlStringValue(elem, 'TreatMissingData'), - unit: _s - .extractXmlStringValue(elem, 'Unit') - ?.let(StandardUnit.fromString) /* Nullability(true, true) */, + unit: + _s.extractXmlStringValue(elem, 'Unit')?.let(StandardUnit.fromString), ); } @@ -6348,7 +6348,7 @@ class MetricDataResult { elem.findElements('member').map(MessageData.fromXml).toList()), statusCode: _s .extractXmlStringValue(elem, 'StatusCode') - ?.let(StatusCode.fromString) /* Nullability(true, true) */, + ?.let(StatusCode.fromString), timestamps: _s .extractXmlChild(elem, 'Timestamps') ?.let((elem) => _s.extractXmlDateTimeListValues(elem, 'member')), @@ -6631,9 +6631,8 @@ class MetricStat { metric: Metric.fromXml(_s.extractXmlChild(elem, 'Metric')!), period: _s.extractXmlIntValue(elem, 'Period')!, stat: _s.extractXmlStringValue(elem, 'Stat')!, - unit: _s - .extractXmlStringValue(elem, 'Unit') - ?.let(StandardUnit.fromString) /* Nullability(true, true) */, + unit: + _s.extractXmlStringValue(elem, 'Unit')?.let(StandardUnit.fromString), ); } @@ -6708,8 +6707,9 @@ class MetricStreamEntry { firehoseArn: _s.extractXmlStringValue(elem, 'FirehoseArn'), lastUpdateDate: _s.extractXmlDateTimeValue(elem, 'LastUpdateDate'), name: _s.extractXmlStringValue(elem, 'Name'), - outputFormat: _s.extractXmlStringValue(elem, 'OutputFormat')?.let( - MetricStreamOutputFormat.fromString) /* Nullability(true, true) */, + outputFormat: _s + .extractXmlStringValue(elem, 'OutputFormat') + ?.let(MetricStreamOutputFormat.fromString), state: _s.extractXmlStringValue(elem, 'State'), ); } diff --git a/aws_client/lib/src/generated/cloud_watch_events/v2015_10_07.dart b/aws_client/lib/src/generated/cloud_watch_events/v2015_10_07.dart index 26bb8d455..37340b2a2 100644 --- a/aws_client/lib/src/generated/cloud_watch_events/v2015_10_07.dart +++ b/aws_client/lib/src/generated/cloud_watch_events/v2015_10_07.dart @@ -2917,14 +2917,12 @@ class AwsVpcConfiguration { factory AwsVpcConfiguration.fromJson(Map json) { return AwsVpcConfiguration( - subnets: (json['Subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), assignPublicIp: (json['AssignPublicIp'] as String?)?.let(AssignPublicIp.fromString), securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3478,17 +3476,17 @@ class ConnectionHttpParameters { factory ConnectionHttpParameters.fromJson(Map json) { return ConnectionHttpParameters( bodyParameters: (json['BodyParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionBodyParameter.fromJson(e as Map)) .toList(), headerParameters: (json['HeaderParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionHeaderParameter.fromJson(e as Map)) .toList(), queryStringParameters: (json['QueryStringParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionQueryStringParameter.fromJson( e as Map)) .toList(), @@ -4896,7 +4894,7 @@ class EcsParameters { return EcsParameters( taskDefinitionArn: json['TaskDefinitionArn'] as String, capacityProviderStrategy: (json['CapacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -4909,11 +4907,11 @@ class EcsParameters { json['NetworkConfiguration'] as Map) : null, placementConstraints: (json['PlacementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementConstraint.fromJson(e as Map)) .toList(), placementStrategy: (json['PlacementStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementStrategy.fromJson(e as Map)) .toList(), platformVersion: json['PlatformVersion'] as String?, @@ -4921,7 +4919,7 @@ class EcsParameters { (json['PropagateTags'] as String?)?.let(PropagateTags.fromString), referenceId: json['ReferenceId'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskCount: json['TaskCount'] as int?, @@ -5121,7 +5119,7 @@ class HttpParameters { headerParameters: (json['HeaderParameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), pathParameterValues: (json['PathParameterValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), queryStringParameters: @@ -5302,7 +5300,7 @@ class ListApiDestinationsResponse { factory ListApiDestinationsResponse.fromJson(Map json) { return ListApiDestinationsResponse( apiDestinations: (json['ApiDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiDestination.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5335,7 +5333,7 @@ class ListArchivesResponse { factory ListArchivesResponse.fromJson(Map json) { return ListArchivesResponse( archives: (json['Archives'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Archive.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5368,7 +5366,7 @@ class ListConnectionsResponse { factory ListConnectionsResponse.fromJson(Map json) { return ListConnectionsResponse( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5401,7 +5399,7 @@ class ListEventBusesResponse { factory ListEventBusesResponse.fromJson(Map json) { return ListEventBusesResponse( eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBus.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5434,7 +5432,7 @@ class ListEventSourcesResponse { factory ListEventSourcesResponse.fromJson(Map json) { return ListEventSourcesResponse( eventSources: (json['EventSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5469,7 +5467,7 @@ class ListPartnerEventSourceAccountsResponse { return ListPartnerEventSourceAccountsResponse( nextToken: json['NextToken'] as String?, partnerEventSourceAccounts: (json['PartnerEventSourceAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartnerEventSourceAccount.fromJson(e as Map)) .toList(), @@ -5504,7 +5502,7 @@ class ListPartnerEventSourcesResponse { return ListPartnerEventSourcesResponse( nextToken: json['NextToken'] as String?, partnerEventSources: (json['PartnerEventSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartnerEventSource.fromJson(e as Map)) .toList(), ); @@ -5538,7 +5536,7 @@ class ListReplaysResponse { return ListReplaysResponse( nextToken: json['NextToken'] as String?, replays: (json['Replays'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Replay.fromJson(e as Map)) .toList(), ); @@ -5571,7 +5569,7 @@ class ListRuleNamesByTargetResponse { return ListRuleNamesByTargetResponse( nextToken: json['NextToken'] as String?, ruleNames: (json['RuleNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5604,7 +5602,7 @@ class ListRulesResponse { return ListRulesResponse( nextToken: json['NextToken'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), ); @@ -5631,7 +5629,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5662,7 +5660,7 @@ class ListTargetsByRuleResponse { return ListTargetsByRuleResponse( nextToken: json['NextToken'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); @@ -6006,7 +6004,7 @@ class PutEventsResponse { factory PutEventsResponse.fromJson(Map json) { return PutEventsResponse( entries: (json['Entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutEventsResultEntry.fromJson(e as Map)) .toList(), failedEntryCount: json['FailedEntryCount'] as int?, @@ -6121,7 +6119,7 @@ class PutPartnerEventsResponse { factory PutPartnerEventsResponse.fromJson(Map json) { return PutPartnerEventsResponse( entries: (json['Entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutPartnerEventsResultEntry.fromJson(e as Map)) .toList(), @@ -6213,7 +6211,7 @@ class PutTargetsResponse { factory PutTargetsResponse.fromJson(Map json) { return PutTargetsResponse( failedEntries: (json['FailedEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutTargetsResultEntry.fromJson(e as Map)) .toList(), failedEntryCount: json['FailedEntryCount'] as int?, @@ -6349,7 +6347,7 @@ class RemoveTargetsResponse { factory RemoveTargetsResponse.fromJson(Map json) { return RemoveTargetsResponse( failedEntries: (json['FailedEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemoveTargetsResultEntry.fromJson(e as Map)) .toList(), @@ -6512,7 +6510,7 @@ class ReplayDestination { return ReplayDestination( arn: json['Arn'] as String, filterArns: (json['FilterArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6703,7 +6701,7 @@ class RunCommandParameters { factory RunCommandParameters.fromJson(Map json) { return RunCommandParameters( runCommandTargets: (json['RunCommandTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => RunCommandTarget.fromJson(e as Map)) .toList(), ); @@ -6737,10 +6735,8 @@ class RunCommandTarget { factory RunCommandTarget.fromJson(Map json) { return RunCommandTarget( key: json['Key'] as String, - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -6800,7 +6796,7 @@ class SageMakerPipelineParameters { factory SageMakerPipelineParameters.fromJson(Map json) { return SageMakerPipelineParameters( pipelineParameterList: (json['PipelineParameterList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SageMakerPipelineParameter.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/cloud_watch_logs/v2014_03_28.dart b/aws_client/lib/src/generated/cloud_watch_logs/v2014_03_28.dart index 110e920a2..18fa61698 100644 --- a/aws_client/lib/src/generated/cloud_watch_logs/v2014_03_28.dart +++ b/aws_client/lib/src/generated/cloud_watch_logs/v2014_03_28.dart @@ -5170,17 +5170,17 @@ class Anomaly { .map((k, e) => MapEntry(k, e as int)), lastSeen: json['lastSeen'] as int, logGroupArnList: (json['logGroupArnList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), logSamples: (json['logSamples'] as List) - .whereNotNull() + .nonNulls .map((e) => LogEvent.fromJson(e as Map)) .toList(), patternId: json['patternId'] as String, patternString: json['patternString'] as String, patternTokens: (json['patternTokens'] as List) - .whereNotNull() + .nonNulls .map((e) => PatternToken.fromJson(e as Map)) .toList(), state: State.fromString((json['state'] as String)), @@ -5300,7 +5300,7 @@ class AnomalyDetector { kmsKeyId: json['kmsKeyId'] as String?, lastModifiedTimeStamp: json['lastModifiedTimeStamp'] as int?, logGroupArnList: (json['logGroupArnList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5763,7 +5763,7 @@ class DeliverySource { logType: json['logType'] as String?, name: json['name'] as String?, resourceArns: (json['resourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), service: json['service'] as String?, @@ -5802,7 +5802,7 @@ class DescribeAccountPoliciesResponse { factory DescribeAccountPoliciesResponse.fromJson(Map json) { return DescribeAccountPoliciesResponse( accountPolicies: (json['accountPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountPolicy.fromJson(e as Map)) .toList(), ); @@ -5830,7 +5830,7 @@ class DescribeDeliveriesResponse { factory DescribeDeliveriesResponse.fromJson(Map json) { return DescribeDeliveriesResponse( deliveries: (json['deliveries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Delivery.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5862,7 +5862,7 @@ class DescribeDeliveryDestinationsResponse { Map json) { return DescribeDeliveryDestinationsResponse( deliveryDestinations: (json['deliveryDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeliveryDestination.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5894,7 +5894,7 @@ class DescribeDeliverySourcesResponse { factory DescribeDeliverySourcesResponse.fromJson(Map json) { return DescribeDeliverySourcesResponse( deliverySources: (json['deliverySources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeliverySource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5924,7 +5924,7 @@ class DescribeDestinationsResponse { factory DescribeDestinationsResponse.fromJson(Map json) { return DescribeDestinationsResponse( destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5954,7 +5954,7 @@ class DescribeExportTasksResponse { factory DescribeExportTasksResponse.fromJson(Map json) { return DescribeExportTasksResponse( exportTasks: (json['exportTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportTask.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5987,7 +5987,7 @@ class DescribeLogGroupsResponse { factory DescribeLogGroupsResponse.fromJson(Map json) { return DescribeLogGroupsResponse( logGroups: (json['logGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogGroup.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6017,7 +6017,7 @@ class DescribeLogStreamsResponse { factory DescribeLogStreamsResponse.fromJson(Map json) { return DescribeLogStreamsResponse( logStreams: (json['logStreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogStream.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6047,7 +6047,7 @@ class DescribeMetricFiltersResponse { factory DescribeMetricFiltersResponse.fromJson(Map json) { return DescribeMetricFiltersResponse( metricFilters: (json['metricFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricFilter.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6079,7 +6079,7 @@ class DescribeQueriesResponse { return DescribeQueriesResponse( nextToken: json['nextToken'] as String?, queries: (json['queries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryInfo.fromJson(e as Map)) .toList(), ); @@ -6110,7 +6110,7 @@ class DescribeQueryDefinitionsResponse { return DescribeQueryDefinitionsResponse( nextToken: json['nextToken'] as String?, queryDefinitions: (json['queryDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryDefinition.fromJson(e as Map)) .toList(), ); @@ -6141,7 +6141,7 @@ class DescribeResourcePoliciesResponse { return DescribeResourcePoliciesResponse( nextToken: json['nextToken'] as String?, resourcePolicies: (json['resourcePolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePolicy.fromJson(e as Map)) .toList(), ); @@ -6173,7 +6173,7 @@ class DescribeSubscriptionFiltersResponse { return DescribeSubscriptionFiltersResponse( nextToken: json['nextToken'] as String?, subscriptionFilters: (json['subscriptionFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubscriptionFilter.fromJson(e as Map)) .toList(), ); @@ -6482,12 +6482,12 @@ class FilterLogEventsResponse { factory FilterLogEventsResponse.fromJson(Map json) { return FilterLogEventsResponse( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilteredLogEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, searchedLogStreams: (json['searchedLogStreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SearchedLogStream.fromJson(e as Map)) .toList(), ); @@ -6755,7 +6755,7 @@ class GetLogAnomalyDetectorResponse { kmsKeyId: json['kmsKeyId'] as String?, lastModifiedTimeStamp: json['lastModifiedTimeStamp'] as int?, logGroupArnList: (json['logGroupArnList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6812,7 +6812,7 @@ class GetLogEventsResponse { factory GetLogEventsResponse.fromJson(Map json) { return GetLogEventsResponse( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputLogEvent.fromJson(e as Map)) .toList(), nextBackwardToken: json['nextBackwardToken'] as String?, @@ -6845,7 +6845,7 @@ class GetLogGroupFieldsResponse { factory GetLogGroupFieldsResponse.fromJson(Map json) { return GetLogGroupFieldsResponse( logGroupFields: (json['logGroupFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogGroupField.fromJson(e as Map)) .toList(), ); @@ -6924,9 +6924,9 @@ class GetQueryResultsResponse { return GetQueryResultsResponse( encryptionKey: json['encryptionKey'] as String?, results: (json['results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => ResultField.fromJson(e as Map)) .toList()) .toList(), @@ -7004,7 +7004,7 @@ class ListAnomaliesResponse { factory ListAnomaliesResponse.fromJson(Map json) { return ListAnomaliesResponse( anomalies: (json['anomalies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Anomaly.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7035,7 +7035,7 @@ class ListLogAnomalyDetectorsResponse { factory ListLogAnomalyDetectorsResponse.fromJson(Map json) { return ListLogAnomalyDetectorsResponse( anomalyDetectors: (json['anomalyDetectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalyDetector.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7235,15 +7235,15 @@ class LiveTailSessionStart { return LiveTailSessionStart( logEventFilterPattern: json['logEventFilterPattern'] as String?, logGroupIdentifiers: (json['logGroupIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), logStreamNamePrefixes: (json['logStreamNamePrefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), logStreamNames: (json['logStreamNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), requestId: json['requestId'] as String?, @@ -7298,7 +7298,7 @@ class LiveTailSessionUpdate { json['sessionMetadata'] as Map) : null, sessionResults: (json['sessionResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LiveTailSessionLogEvent.fromJson(e as Map)) .toList(), @@ -7452,7 +7452,7 @@ class LogGroup { dataProtectionStatus: (json['dataProtectionStatus'] as String?) ?.let(DataProtectionStatus.fromString), inheritedProperties: (json['inheritedProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InheritedProperty.fromString((e as String))) .toList(), kmsKeyId: json['kmsKeyId'] as String?, @@ -7671,7 +7671,7 @@ class MetricFilter { filterPattern: json['filterPattern'] as String?, logGroupName: json['logGroupName'] as String?, metricTransformations: (json['metricTransformations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricTransformation.fromJson(e as Map)) .toList(), ); @@ -8265,7 +8265,7 @@ class QueryDefinition { return QueryDefinition( lastModified: json['lastModified'] as int?, logGroupNames: (json['logGroupNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -8940,7 +8940,7 @@ class TestMetricFilterResponse { factory TestMetricFilterResponse.fromJson(Map json) { return TestMetricFilterResponse( matches: (json['matches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricFilterMatchRecord.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/code_build/v2016_10_06.dart b/aws_client/lib/src/generated/code_build/v2016_10_06.dart index b59ac2cf2..98d1e069d 100644 --- a/aws_client/lib/src/generated/code_build/v2016_10_06.dart +++ b/aws_client/lib/src/generated/code_build/v2016_10_06.dart @@ -3668,11 +3668,11 @@ class BatchDeleteBuildsOutput { factory BatchDeleteBuildsOutput.fromJson(Map json) { return BatchDeleteBuildsOutput( buildsDeleted: (json['buildsDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), buildsNotDeleted: (json['buildsNotDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildNotDeleted.fromJson(e as Map)) .toList(), ); @@ -3705,11 +3705,11 @@ class BatchGetBuildBatchesOutput { factory BatchGetBuildBatchesOutput.fromJson(Map json) { return BatchGetBuildBatchesOutput( buildBatches: (json['buildBatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildBatch.fromJson(e as Map)) .toList(), buildBatchesNotFound: (json['buildBatchesNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3741,11 +3741,11 @@ class BatchGetBuildsOutput { factory BatchGetBuildsOutput.fromJson(Map json) { return BatchGetBuildsOutput( builds: (json['builds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Build.fromJson(e as Map)) .toList(), buildsNotFound: (json['buildsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3776,11 +3776,11 @@ class BatchGetFleetsOutput { factory BatchGetFleetsOutput.fromJson(Map json) { return BatchGetFleetsOutput( fleets: (json['fleets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Fleet.fromJson(e as Map)) .toList(), fleetsNotFound: (json['fleetsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3811,11 +3811,11 @@ class BatchGetProjectsOutput { factory BatchGetProjectsOutput.fromJson(Map json) { return BatchGetProjectsOutput( projects: (json['projects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Project.fromJson(e as Map)) .toList(), projectsNotFound: (json['projectsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3847,11 +3847,11 @@ class BatchGetReportGroupsOutput { factory BatchGetReportGroupsOutput.fromJson(Map json) { return BatchGetReportGroupsOutput( reportGroups: (json['reportGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportGroup.fromJson(e as Map)) .toList(), reportGroupsNotFound: (json['reportGroupsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3885,11 +3885,11 @@ class BatchGetReportsOutput { factory BatchGetReportsOutput.fromJson(Map json) { return BatchGetReportsOutput( reports: (json['reports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Report.fromJson(e as Map)) .toList(), reportsNotFound: (json['reportsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3940,7 +3940,7 @@ class BatchRestrictions { factory BatchRestrictions.fromJson(Map json) { return BatchRestrictions( computeTypesAllowed: (json['computeTypesAllowed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maximumBuildsAllowed: json['maximumBuildsAllowed'] as int?, @@ -4272,12 +4272,12 @@ class Build { : null, exportedEnvironmentVariables: (json['exportedEnvironmentVariables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportedEnvironmentVariable.fromJson(e as Map)) .toList(), fileSystemLocations: (json['fileSystemLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectFileSystemLocation.fromJson(e as Map)) .toList(), @@ -4291,26 +4291,26 @@ class Build { json['networkInterface'] as Map) : null, phases: (json['phases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildPhase.fromJson(e as Map)) .toList(), projectName: json['projectName'] as String?, queuedTimeoutInMinutes: json['queuedTimeoutInMinutes'] as int?, reportArns: (json['reportArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resolvedSourceVersion: json['resolvedSourceVersion'] as String?, secondaryArtifacts: (json['secondaryArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildArtifacts.fromJson(e as Map)) .toList(), secondarySourceVersions: (json['secondarySourceVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSourceVersion.fromJson(e as Map)) .toList(), secondarySources: (json['secondarySources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSource.fromJson(e as Map)) .toList(), serviceRole: json['serviceRole'] as String?, @@ -4689,7 +4689,7 @@ class BuildBatch { buildBatchStatus: (json['buildBatchStatus'] as String?)?.let(StatusType.fromString), buildGroups: (json['buildGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildGroup.fromJson(e as Map)) .toList(), buildTimeoutInMinutes: json['buildTimeoutInMinutes'] as int?, @@ -4706,7 +4706,7 @@ class BuildBatch { json['environment'] as Map) : null, fileSystemLocations: (json['fileSystemLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectFileSystemLocation.fromJson(e as Map)) .toList(), @@ -4716,22 +4716,22 @@ class BuildBatch { ? LogsConfig.fromJson(json['logConfig'] as Map) : null, phases: (json['phases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildBatchPhase.fromJson(e as Map)) .toList(), projectName: json['projectName'] as String?, queuedTimeoutInMinutes: json['queuedTimeoutInMinutes'] as int?, resolvedSourceVersion: json['resolvedSourceVersion'] as String?, secondaryArtifacts: (json['secondaryArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildArtifacts.fromJson(e as Map)) .toList(), secondarySourceVersions: (json['secondarySourceVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSourceVersion.fromJson(e as Map)) .toList(), secondarySources: (json['secondarySources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSource.fromJson(e as Map)) .toList(), serviceRole: json['serviceRole'] as String?, @@ -4899,7 +4899,7 @@ class BuildBatchPhase { factory BuildBatchPhase.fromJson(Map json) { return BuildBatchPhase( contexts: (json['contexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhaseContext.fromJson(e as Map)) .toList(), durationInSeconds: json['durationInSeconds'] as int?, @@ -4986,13 +4986,13 @@ class BuildGroup { json['currentBuildSummary'] as Map) : null, dependsOn: (json['dependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identifier: json['identifier'] as String?, ignoreFailure: json['ignoreFailure'] as bool?, priorBuildSummaryList: (json['priorBuildSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildSummary.fromJson(e as Map)) .toList(), ); @@ -5117,7 +5117,7 @@ class BuildPhase { factory BuildPhase.fromJson(Map json) { return BuildPhase( contexts: (json['contexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhaseContext.fromJson(e as Map)) .toList(), durationInSeconds: json['durationInSeconds'] as int?, @@ -5275,7 +5275,7 @@ class BuildSummary { : null, requestedOn: timeStampFromJson(json['requestedOn']), secondaryArtifacts: (json['secondaryArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolvedArtifact.fromJson(e as Map)) .toList(), ); @@ -5731,11 +5731,11 @@ class DeleteBuildBatchOutput { factory DeleteBuildBatchOutput.fromJson(Map json) { return DeleteBuildBatchOutput( buildsDeleted: (json['buildsDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), buildsNotDeleted: (json['buildsNotDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildNotDeleted.fromJson(e as Map)) .toList(), statusCode: json['statusCode'] as String?, @@ -5865,7 +5865,7 @@ class DescribeCodeCoveragesOutput { factory DescribeCodeCoveragesOutput.fromJson(Map json) { return DescribeCodeCoveragesOutput( codeCoverages: (json['codeCoverages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeCoverage.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5904,7 +5904,7 @@ class DescribeTestCasesOutput { return DescribeTestCasesOutput( nextToken: json['nextToken'] as String?, testCases: (json['testCases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestCase.fromJson(e as Map)) .toList(), ); @@ -5942,7 +5942,7 @@ class EnvironmentImage { description: json['description'] as String?, name: json['name'] as String?, versions: (json['versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5978,7 +5978,7 @@ class EnvironmentLanguage { factory EnvironmentLanguage.fromJson(Map json) { return EnvironmentLanguage( images: (json['images'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentImage.fromJson(e as Map)) .toList(), language: (json['language'] as String?)?.let(LanguageType.fromString), @@ -6013,7 +6013,7 @@ class EnvironmentPlatform { factory EnvironmentPlatform.fromJson(Map json) { return EnvironmentPlatform( languages: (json['languages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentLanguage.fromJson(e as Map)) .toList(), platform: (json['platform'] as String?)?.let(PlatformType.fromString), @@ -6398,7 +6398,7 @@ class Fleet { ? FleetStatus.fromJson(json['status'] as Map) : null, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcConfig: json['vpcConfig'] != null @@ -6629,7 +6629,7 @@ class GetReportGroupTrendOutput { factory GetReportGroupTrendOutput.fromJson(Map json) { return GetReportGroupTrendOutput( rawData: (json['rawData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportWithRawData.fromJson(e as Map)) .toList(), stats: json['stats'] != null @@ -6783,10 +6783,7 @@ class ListBuildBatchesForProjectOutput { factory ListBuildBatchesForProjectOutput.fromJson(Map json) { return ListBuildBatchesForProjectOutput( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -6817,10 +6814,7 @@ class ListBuildBatchesOutput { factory ListBuildBatchesOutput.fromJson(Map json) { return ListBuildBatchesOutput( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -6853,10 +6847,7 @@ class ListBuildsForProjectOutput { factory ListBuildsForProjectOutput.fromJson(Map json) { return ListBuildsForProjectOutput( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -6888,10 +6879,7 @@ class ListBuildsOutput { factory ListBuildsOutput.fromJson(Map json) { return ListBuildsOutput( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -6919,7 +6907,7 @@ class ListCuratedEnvironmentImagesOutput { Map json) { return ListCuratedEnvironmentImagesOutput( platforms: (json['platforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentPlatform.fromJson(e as Map)) .toList(), ); @@ -6950,10 +6938,8 @@ class ListFleetsOutput { factory ListFleetsOutput.fromJson(Map json) { return ListFleetsOutput( - fleets: (json['fleets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + fleets: + (json['fleets'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -6988,7 +6974,7 @@ class ListProjectsOutput { return ListProjectsOutput( nextToken: json['nextToken'] as String?, projects: (json['projects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7027,7 +7013,7 @@ class ListReportGroupsOutput { return ListReportGroupsOutput( nextToken: json['nextToken'] as String?, reportGroups: (json['reportGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7064,10 +7050,8 @@ class ListReportsForReportGroupOutput { factory ListReportsForReportGroupOutput.fromJson(Map json) { return ListReportsForReportGroupOutput( nextToken: json['nextToken'] as String?, - reports: (json['reports'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + reports: + (json['reports'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -7103,10 +7087,8 @@ class ListReportsOutput { factory ListReportsOutput.fromJson(Map json) { return ListReportsOutput( nextToken: json['nextToken'] as String?, - reports: (json['reports'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + reports: + (json['reports'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -7143,7 +7125,7 @@ class ListSharedProjectsOutput { return ListSharedProjectsOutput( nextToken: json['nextToken'] as String?, projects: (json['projects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7182,7 +7164,7 @@ class ListSharedReportGroupsOutput { return ListSharedReportGroupsOutput( nextToken: json['nextToken'] as String?, reportGroups: (json['reportGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7211,7 +7193,7 @@ class ListSourceCredentialsOutput { factory ListSourceCredentialsOutput.fromJson(Map json) { return ListSourceCredentialsOutput( sourceCredentialsInfos: (json['sourceCredentialsInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceCredentialsInfo.fromJson(e as Map)) .toList(), ); @@ -7654,7 +7636,7 @@ class Project { json['environment'] as Map) : null, fileSystemLocations: (json['fileSystemLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectFileSystemLocation.fromJson(e as Map)) .toList(), @@ -7669,15 +7651,15 @@ class Project { queuedTimeoutInMinutes: json['queuedTimeoutInMinutes'] as int?, resourceAccessRole: json['resourceAccessRole'] as String?, secondaryArtifacts: (json['secondaryArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectArtifacts.fromJson(e as Map)) .toList(), secondarySourceVersions: (json['secondarySourceVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSourceVersion.fromJson(e as Map)) .toList(), secondarySources: (json['secondarySources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSource.fromJson(e as Map)) .toList(), serviceRole: json['serviceRole'] as String?, @@ -7686,7 +7668,7 @@ class Project { : null, sourceVersion: json['sourceVersion'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), timeoutInMinutes: json['timeoutInMinutes'] as int?, @@ -8202,7 +8184,7 @@ class ProjectCache { type: CacheType.fromString((json['type'] as String)), location: json['location'] as String?, modes: (json['modes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CacheMode.fromString((e as String))) .toList(), ); @@ -8468,7 +8450,7 @@ class ProjectEnvironment { type: EnvironmentType.fromString((json['type'] as String)), certificate: json['certificate'] as String?, environmentVariables: (json['environmentVariables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentVariable.fromJson(e as Map)) .toList(), fleet: json['fleet'] != null @@ -9314,7 +9296,7 @@ class ReportGroup { status: (json['status'] as String?)?.let(ReportGroupStatusType.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: (json['type'] as String?)?.let(ReportType.fromString), @@ -9800,7 +9782,7 @@ class ScalingConfigurationOutput { (json['scalingType'] as String?)?.let(FleetScalingType.fromString), targetTrackingScalingConfigs: (json['targetTrackingScalingConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetTrackingScalingConfiguration.fromJson( e as Map)) .toList(), @@ -10486,13 +10468,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + subnets: + (json['subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), vpcId: json['vpcId'] as String?, ); } @@ -10576,9 +10556,9 @@ class Webhook { buildType: (json['buildType'] as String?)?.let(WebhookBuildType.fromString), filterGroups: (json['filterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => WebhookFilter.fromJson(e as Map)) .toList()) .toList(), diff --git a/aws_client/lib/src/generated/code_catalyst/v2022_09_28.dart b/aws_client/lib/src/generated/code_catalyst/v2022_09_28.dart index 522c1d0df..496318d04 100644 --- a/aws_client/lib/src/generated/code_catalyst/v2022_09_28.dart +++ b/aws_client/lib/src/generated/code_catalyst/v2022_09_28.dart @@ -2528,14 +2528,14 @@ class DevEnvironmentSummary { persistentStorage: PersistentStorage.fromJson( json['persistentStorage'] as Map), repositories: (json['repositories'] as List) - .whereNotNull() + .nonNulls .map((e) => DevEnvironmentRepositorySummary.fromJson( e as Map)) .toList(), status: DevEnvironmentStatus.fromString((json['status'] as String)), alias: json['alias'] as String?, ides: (json['ides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ide.fromJson(e as Map)) .toList(), projectName: json['projectName'] as String?, @@ -2921,7 +2921,7 @@ class GetDevEnvironmentResponse { json['persistentStorage'] as Map), projectName: json['projectName'] as String, repositories: (json['repositories'] as List) - .whereNotNull() + .nonNulls .map((e) => DevEnvironmentRepositorySummary.fromJson( e as Map)) .toList(), @@ -2929,7 +2929,7 @@ class GetDevEnvironmentResponse { status: DevEnvironmentStatus.fromString((json['status'] as String)), alias: json['alias'] as String?, ides: (json['ides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ide.fromJson(e as Map)) .toList(), statusReason: json['statusReason'] as String?, @@ -3408,7 +3408,7 @@ class GetWorkflowRunResponse { workflowId: json['workflowId'] as String, endTime: timeStampFromJson(json['endTime']), statusReasons: (json['statusReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowRunStatusReason.fromJson(e as Map)) .toList(), @@ -3540,7 +3540,7 @@ class ListAccessTokensResponse { factory ListAccessTokensResponse.fromJson(Map json) { return ListAccessTokensResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => AccessTokenSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3574,7 +3574,7 @@ class ListDevEnvironmentSessionsResponse { Map json) { return ListDevEnvironmentSessionsResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => DevEnvironmentSessionSummary.fromJson(e as Map)) .toList(), @@ -3608,7 +3608,7 @@ class ListDevEnvironmentsResponse { factory ListDevEnvironmentsResponse.fromJson(Map json) { return ListDevEnvironmentsResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => DevEnvironmentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3641,7 +3641,7 @@ class ListEventLogsResponse { factory ListEventLogsResponse.fromJson(Map json) { return ListEventLogsResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => EventLogEntry.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3674,7 +3674,7 @@ class ListProjectsResponse { factory ListProjectsResponse.fromJson(Map json) { return ListProjectsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3764,7 +3764,7 @@ class ListSourceRepositoriesResponse { factory ListSourceRepositoriesResponse.fromJson(Map json) { return ListSourceRepositoriesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListSourceRepositoriesItem.fromJson(e as Map)) .toList(), @@ -3848,7 +3848,7 @@ class ListSourceRepositoryBranchesResponse { Map json) { return ListSourceRepositoryBranchesResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => ListSourceRepositoryBranchesItem.fromJson( e as Map)) .toList(), @@ -3882,7 +3882,7 @@ class ListSpacesResponse { factory ListSpacesResponse.fromJson(Map json) { return ListSpacesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SpaceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3915,7 +3915,7 @@ class ListWorkflowRunsResponse { factory ListWorkflowRunsResponse.fromJson(Map json) { return ListWorkflowRunsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowRunSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3948,7 +3948,7 @@ class ListWorkflowsResponse { factory ListWorkflowsResponse.fromJson(Map json) { return ListWorkflowsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4467,7 +4467,7 @@ class UpdateDevEnvironmentResponse { alias: json['alias'] as String?, clientToken: json['clientToken'] as String?, ides: (json['ides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdeConfiguration.fromJson(e as Map)) .toList(), inactivityTimeoutMinutes: json['inactivityTimeoutMinutes'] as int?, @@ -4825,7 +4825,7 @@ class WorkflowRunSummary { workflowName: json['workflowName'] as String, endTime: timeStampFromJson(json['endTime']), statusReasons: (json['statusReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowRunStatusReason.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/code_commit/v2015_04_13.dart b/aws_client/lib/src/generated/code_commit/v2015_04_13.dart index 6b7fc33c9..693bb27c6 100644 --- a/aws_client/lib/src/generated/code_commit/v2015_04_13.dart +++ b/aws_client/lib/src/generated/code_commit/v2015_04_13.dart @@ -5332,11 +5332,11 @@ class BatchAssociateApprovalRuleTemplateWithRepositoriesOutput { Map json) { return BatchAssociateApprovalRuleTemplateWithRepositoriesOutput( associatedRepositoryNames: (json['associatedRepositoryNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchAssociateApprovalRuleTemplateWithRepositoriesError.fromJson( e as Map)) @@ -5428,14 +5428,14 @@ class BatchDescribeMergeConflictsOutput { Map json) { return BatchDescribeMergeConflictsOutput( conflicts: (json['conflicts'] as List) - .whereNotNull() + .nonNulls .map((e) => Conflict.fromJson(e as Map)) .toList(), destinationCommitId: json['destinationCommitId'] as String, sourceCommitId: json['sourceCommitId'] as String, baseCommitId: json['baseCommitId'] as String?, errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchDescribeMergeConflictsError.fromJson( e as Map)) .toList(), @@ -5522,11 +5522,11 @@ class BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput { return BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput( disassociatedRepositoryNames: (json['disassociatedRepositoryNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDisassociateApprovalRuleTemplateFromRepositoriesError .fromJson(e as Map)) .toList(), @@ -5601,11 +5601,11 @@ class BatchGetCommitsOutput { factory BatchGetCommitsOutput.fromJson(Map json) { return BatchGetCommitsOutput( commits: (json['commits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Commit.fromJson(e as Map)) .toList(), errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchGetCommitsError.fromJson(e as Map)) .toList(), ); @@ -5710,16 +5710,16 @@ class BatchGetRepositoriesOutput { factory BatchGetRepositoriesOutput.fromJson(Map json) { return BatchGetRepositoriesOutput( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchGetRepositoriesError.fromJson(e as Map)) .toList(), repositories: (json['repositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryMetadata.fromJson(e as Map)) .toList(), repositoriesNotFound: (json['repositoriesNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5891,7 +5891,7 @@ class Comment { return Comment( authorArn: json['authorArn'] as String?, callerReactions: (json['callerReactions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clientRequestToken: json['clientRequestToken'] as String?, @@ -5981,7 +5981,7 @@ class CommentsForComparedCommit { beforeBlobId: json['beforeBlobId'] as String?, beforeCommitId: json['beforeCommitId'] as String?, comments: (json['comments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Comment.fromJson(e as Map)) .toList(), location: json['location'] != null @@ -6064,7 +6064,7 @@ class CommentsForPullRequest { beforeBlobId: json['beforeBlobId'] as String?, beforeCommitId: json['beforeCommitId'] as String?, comments: (json['comments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Comment.fromJson(e as Map)) .toList(), location: json['location'] != null @@ -6151,10 +6151,8 @@ class Commit { ? UserInfo.fromJson(json['committer'] as Map) : null, message: json['message'] as String?, - parents: (json['parents'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + parents: + (json['parents'] as List?)?.nonNulls.map((e) => e as String).toList(), treeId: json['treeId'] as String?, ); } @@ -6200,7 +6198,7 @@ class Conflict { json['conflictMetadata'] as Map) : null, mergeHunks: (json['mergeHunks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MergeHunk.fromJson(e as Map)) .toList(), ); @@ -6435,15 +6433,15 @@ class CreateCommitOutput { return CreateCommitOutput( commitId: json['commitId'] as String?, filesAdded: (json['filesAdded'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileMetadata.fromJson(e as Map)) .toList(), filesDeleted: (json['filesDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileMetadata.fromJson(e as Map)) .toList(), filesUpdated: (json['filesUpdated'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileMetadata.fromJson(e as Map)) .toList(), treeId: json['treeId'] as String?, @@ -6793,7 +6791,7 @@ class DescribeMergeConflictsOutput { json['conflictMetadata'] as Map), destinationCommitId: json['destinationCommitId'] as String, mergeHunks: (json['mergeHunks'] as List) - .whereNotNull() + .nonNulls .map((e) => MergeHunk.fromJson(e as Map)) .toList(), sourceCommitId: json['sourceCommitId'] as String, @@ -6836,7 +6834,7 @@ class DescribePullRequestEventsOutput { factory DescribePullRequestEventsOutput.fromJson(Map json) { return DescribePullRequestEventsOutput( pullRequestEvents: (json['pullRequestEvents'] as List) - .whereNotNull() + .nonNulls .map((e) => PullRequestEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6952,11 +6950,11 @@ class Evaluation { factory Evaluation.fromJson(Map json) { return Evaluation( approvalRulesNotSatisfied: (json['approvalRulesNotSatisfied'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), approvalRulesSatisfied: (json['approvalRulesSatisfied'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), approved: json['approved'] as bool?, @@ -7186,7 +7184,7 @@ class FileVersion { : null, path: json['path'] as String?, revisionChildren: (json['revisionChildren'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7356,7 +7354,7 @@ class GetCommentReactionsOutput { factory GetCommentReactionsOutput.fromJson(Map json) { return GetCommentReactionsOutput( reactionsForComment: (json['reactionsForComment'] as List) - .whereNotNull() + .nonNulls .map((e) => ReactionForComment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7391,7 +7389,7 @@ class GetCommentsForComparedCommitOutput { return GetCommentsForComparedCommitOutput( commentsForComparedCommitData: (json['commentsForComparedCommitData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CommentsForComparedCommit.fromJson(e as Map)) .toList(), @@ -7426,7 +7424,7 @@ class GetCommentsForPullRequestOutput { factory GetCommentsForPullRequestOutput.fromJson(Map json) { return GetCommentsForPullRequestOutput( commentsForPullRequestData: (json['commentsForPullRequestData'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CommentsForPullRequest.fromJson(e as Map)) .toList(), @@ -7487,7 +7485,7 @@ class GetDifferencesOutput { return GetDifferencesOutput( nextToken: json['NextToken'] as String?, differences: (json['differences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Difference.fromJson(e as Map)) .toList(), ); @@ -7609,19 +7607,19 @@ class GetFolderOutput { commitId: json['commitId'] as String, folderPath: json['folderPath'] as String, files: (json['files'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => File.fromJson(e as Map)) .toList(), subFolders: (json['subFolders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Folder.fromJson(e as Map)) .toList(), subModules: (json['subModules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubModule.fromJson(e as Map)) .toList(), symbolicLinks: (json['symbolicLinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SymbolicLink.fromJson(e as Map)) .toList(), treeId: json['treeId'] as String?, @@ -7732,7 +7730,7 @@ class GetMergeConflictsOutput { factory GetMergeConflictsOutput.fromJson(Map json) { return GetMergeConflictsOutput( conflictMetadataList: (json['conflictMetadataList'] as List) - .whereNotNull() + .nonNulls .map((e) => ConflictMetadata.fromJson(e as Map)) .toList(), destinationCommitId: json['destinationCommitId'] as String, @@ -7788,7 +7786,7 @@ class GetMergeOptionsOutput { baseCommitId: json['baseCommitId'] as String, destinationCommitId: json['destinationCommitId'] as String, mergeOptions: (json['mergeOptions'] as List) - .whereNotNull() + .nonNulls .map((e) => MergeOptionTypeEnum.fromString((e as String))) .toList(), sourceCommitId: json['sourceCommitId'] as String, @@ -7821,7 +7819,7 @@ class GetPullRequestApprovalStatesOutput { Map json) { return GetPullRequestApprovalStatesOutput( approvals: (json['approvals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Approval.fromJson(e as Map)) .toList(), ); @@ -7933,7 +7931,7 @@ class GetRepositoryTriggersOutput { return GetRepositoryTriggersOutput( configurationId: json['configurationId'] as String?, triggers: (json['triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryTrigger.fromJson(e as Map)) .toList(), ); @@ -8007,7 +8005,7 @@ class ListApprovalRuleTemplatesOutput { factory ListApprovalRuleTemplatesOutput.fromJson(Map json) { return ListApprovalRuleTemplatesOutput( approvalRuleTemplateNames: (json['approvalRuleTemplateNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -8042,7 +8040,7 @@ class ListAssociatedApprovalRuleTemplatesForRepositoryOutput { Map json) { return ListAssociatedApprovalRuleTemplatesForRepositoryOutput( approvalRuleTemplateNames: (json['approvalRuleTemplateNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -8076,7 +8074,7 @@ class ListBranchesOutput { factory ListBranchesOutput.fromJson(Map json) { return ListBranchesOutput( branches: (json['branches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -8109,7 +8107,7 @@ class ListFileCommitHistoryResponse { factory ListFileCommitHistoryResponse.fromJson(Map json) { return ListFileCommitHistoryResponse( revisionDag: (json['revisionDag'] as List) - .whereNotNull() + .nonNulls .map((e) => FileVersion.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8142,7 +8140,7 @@ class ListPullRequestsOutput { factory ListPullRequestsOutput.fromJson(Map json) { return ListPullRequestsOutput( pullRequestIds: (json['pullRequestIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -8178,7 +8176,7 @@ class ListRepositoriesForApprovalRuleTemplateOutput { return ListRepositoriesForApprovalRuleTemplateOutput( nextToken: json['nextToken'] as String?, repositoryNames: (json['repositoryNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8214,7 +8212,7 @@ class ListRepositoriesOutput { return ListRepositoriesOutput( nextToken: json['nextToken'] as String?, repositories: (json['repositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryNameIdPair.fromJson(e as Map)) .toList(), ); @@ -9003,7 +9001,7 @@ class PullRequest { factory PullRequest.fromJson(Map json) { return PullRequest( approvalRules: (json['approvalRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApprovalRule.fromJson(e as Map)) .toList(), authorArn: json['authorArn'] as String?, @@ -9015,7 +9013,7 @@ class PullRequest { pullRequestStatus: (json['pullRequestStatus'] as String?) ?.let(PullRequestStatusEnum.fromString), pullRequestTargets: (json['pullRequestTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PullRequestTarget.fromJson(e as Map)) .toList(), revisionId: json['revisionId'] as String?, @@ -9613,7 +9611,7 @@ class ReactionForComment { json['reaction'] as Map) : null, reactionUsers: (json['reactionUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), reactionsFromDeletedUsersCount: @@ -9916,12 +9914,12 @@ class RepositoryTrigger { return RepositoryTrigger( destinationArn: json['destinationArn'] as String, events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositoryTriggerEventEnum.fromString((e as String))) .toList(), name: json['name'] as String, branches: (json['branches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), customData: json['customData'] as String?, @@ -10187,12 +10185,12 @@ class TestRepositoryTriggersOutput { factory TestRepositoryTriggersOutput.fromJson(Map json) { return TestRepositoryTriggersOutput( failedExecutions: (json['failedExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryTriggerExecutionFailure.fromJson( e as Map)) .toList(), successfulExecutions: (json['successfulExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/code_connections/v2023_12_01.dart b/aws_client/lib/src/generated/code_connections/v2023_12_01.dart index b0ce927f1..9c20d9d67 100644 --- a/aws_client/lib/src/generated/code_connections/v2023_12_01.dart +++ b/aws_client/lib/src/generated/code_connections/v2023_12_01.dart @@ -1379,7 +1379,7 @@ class CreateConnectionOutput { return CreateConnectionOutput( connectionArn: json['ConnectionArn'] as String, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1411,7 +1411,7 @@ class CreateHostOutput { return CreateHostOutput( hostArn: json['HostArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1837,7 +1837,7 @@ class ListConnectionsOutput { factory ListConnectionsOutput.fromJson(Map json) { return ListConnectionsOutput( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1872,7 +1872,7 @@ class ListHostsOutput { factory ListHostsOutput.fromJson(Map json) { return ListHostsOutput( hosts: (json['Hosts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Host.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1905,7 +1905,7 @@ class ListRepositoryLinksOutput { factory ListRepositoryLinksOutput.fromJson(Map json) { return ListRepositoryLinksOutput( repositoryLinks: (json['RepositoryLinks'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositoryLinkInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1942,7 +1942,7 @@ class ListRepositorySyncDefinitionsOutput { Map json) { return ListRepositorySyncDefinitionsOutput( repositorySyncDefinitions: (json['RepositorySyncDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositorySyncDefinition.fromJson(e as Map)) .toList(), @@ -1976,7 +1976,7 @@ class ListSyncConfigurationsOutput { factory ListSyncConfigurationsOutput.fromJson(Map json) { return ListSyncConfigurationsOutput( syncConfigurations: (json['SyncConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => SyncConfiguration.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2004,7 +2004,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2161,7 +2161,7 @@ class RepositorySyncAttempt { factory RepositorySyncAttempt.fromJson(Map json) { return RepositorySyncAttempt( events: (json['Events'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositorySyncEvent.fromJson(e as Map)) .toList(), startedAt: nonNullableTimeStampFromJson(json['StartedAt'] as Object), @@ -2342,7 +2342,7 @@ class ResourceSyncAttempt { factory ResourceSyncAttempt.fromJson(Map json) { return ResourceSyncAttempt( events: (json['Events'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceSyncEvent.fromJson(e as Map)) .toList(), initialRevision: @@ -2540,7 +2540,7 @@ class SyncBlocker { status: BlockerStatus.fromString((json['Status'] as String)), type: BlockerType.fromString((json['Type'] as String)), contexts: (json['Contexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyncBlockerContext.fromJson(e as Map)) .toList(), resolvedAt: timeStampFromJson(json['ResolvedAt']), @@ -2621,7 +2621,7 @@ class SyncBlockerSummary { return SyncBlockerSummary( resourceName: json['ResourceName'] as String, latestBlockers: (json['LatestBlockers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyncBlocker.fromJson(e as Map)) .toList(), parentResourceName: json['ParentResourceName'] as String?, @@ -2954,13 +2954,11 @@ class VpcConfiguration { factory VpcConfiguration.fromJson(Map json) { return VpcConfiguration( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['SubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['SubnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String, tlsCertificate: json['TlsCertificate'] as String?, ); diff --git a/aws_client/lib/src/generated/code_deploy/v2014_10_06.dart b/aws_client/lib/src/generated/code_deploy/v2014_10_06.dart index ac254cdf3..f5ab9cf9f 100644 --- a/aws_client/lib/src/generated/code_deploy/v2014_10_06.dart +++ b/aws_client/lib/src/generated/code_deploy/v2014_10_06.dart @@ -2792,7 +2792,7 @@ class AlarmConfiguration { factory AlarmConfiguration.fromJson(Map json) { return AlarmConfiguration( alarms: (json['alarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alarm.fromJson(e as Map)) .toList(), enabled: json['enabled'] as bool?, @@ -2956,7 +2956,7 @@ class AutoRollbackConfiguration { return AutoRollbackConfiguration( enabled: json['enabled'] as bool?, events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoRollbackEvent.fromString((e as String))) .toList(), ); @@ -3061,7 +3061,7 @@ class BatchGetApplicationRevisionsOutput { applicationName: json['applicationName'] as String?, errorMessage: json['errorMessage'] as String?, revisions: (json['revisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RevisionInfo.fromJson(e as Map)) .toList(), ); @@ -3091,7 +3091,7 @@ class BatchGetApplicationsOutput { factory BatchGetApplicationsOutput.fromJson(Map json) { return BatchGetApplicationsOutput( applicationsInfo: (json['applicationsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationInfo.fromJson(e as Map)) .toList(), ); @@ -3121,7 +3121,7 @@ class BatchGetDeploymentGroupsOutput { factory BatchGetDeploymentGroupsOutput.fromJson(Map json) { return BatchGetDeploymentGroupsOutput( deploymentGroupsInfo: (json['deploymentGroupsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentGroupInfo.fromJson(e as Map)) .toList(), errorMessage: json['errorMessage'] as String?, @@ -3158,7 +3158,7 @@ class BatchGetDeploymentInstancesOutput { return BatchGetDeploymentInstancesOutput( errorMessage: json['errorMessage'] as String?, instancesSummary: (json['instancesSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceSummary.fromJson(e as Map)) .toList(), ); @@ -3205,7 +3205,7 @@ class BatchGetDeploymentTargetsOutput { factory BatchGetDeploymentTargetsOutput.fromJson(Map json) { return BatchGetDeploymentTargetsOutput( deploymentTargets: (json['deploymentTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentTarget.fromJson(e as Map)) .toList(), ); @@ -3231,7 +3231,7 @@ class BatchGetDeploymentsOutput { factory BatchGetDeploymentsOutput.fromJson(Map json) { return BatchGetDeploymentsOutput( deploymentsInfo: (json['deploymentsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentInfo.fromJson(e as Map)) .toList(), ); @@ -3259,7 +3259,7 @@ class BatchGetOnPremisesInstancesOutput { Map json) { return BatchGetOnPremisesInstancesOutput( instanceInfos: (json['instanceInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceInfo.fromJson(e as Map)) .toList(), ); @@ -3446,7 +3446,7 @@ class CloudFormationTarget { deploymentId: json['deploymentId'] as String?, lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), lifecycleEvents: (json['lifecycleEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleEvent.fromJson(e as Map)) .toList(), resourceType: json['resourceType'] as String?, @@ -3603,7 +3603,7 @@ class DeleteDeploymentGroupOutput { factory DeleteDeploymentGroupOutput.fromJson(Map json) { return DeleteDeploymentGroupOutput( hooksNotCleanedUp: (json['hooksNotCleanedUp'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingGroup.fromJson(e as Map)) .toList(), ); @@ -3895,7 +3895,7 @@ class DeploymentGroupInfo { json['autoRollbackConfiguration'] as Map) : null, autoScalingGroups: (json['autoScalingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingGroup.fromJson(e as Map)) .toList(), blueGreenDeploymentConfiguration: @@ -3914,14 +3914,14 @@ class DeploymentGroupInfo { json['deploymentStyle'] as Map) : null, ec2TagFilters: (json['ec2TagFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EC2TagFilter.fromJson(e as Map)) .toList(), ec2TagSet: json['ec2TagSet'] != null ? EC2TagSet.fromJson(json['ec2TagSet'] as Map) : null, ecsServices: (json['ecsServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSService.fromJson(e as Map)) .toList(), lastAttemptedDeployment: json['lastAttemptedDeployment'] != null @@ -3938,7 +3938,7 @@ class DeploymentGroupInfo { : null, onPremisesInstanceTagFilters: (json['onPremisesInstanceTagFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagFilter.fromJson(e as Map)) .toList(), onPremisesTagSet: json['onPremisesTagSet'] != null @@ -3954,7 +3954,7 @@ class DeploymentGroupInfo { : null, terminationHookEnabled: json['terminationHookEnabled'] as bool?, triggerConfigurations: (json['triggerConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TriggerConfig.fromJson(e as Map)) .toList(), ); @@ -4250,7 +4250,7 @@ class DeploymentInfo { json['deploymentOverview'] as Map) : null, deploymentStatusMessages: (json['deploymentStatusMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deploymentStyle: json['deploymentStyle'] != null @@ -4839,9 +4839,9 @@ class EC2TagSet { factory EC2TagSet.fromJson(Map json) { return EC2TagSet( ec2TagSetList: (json['ec2TagSetList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => EC2TagFilter.fromJson(e as Map)) .toList()) .toList(), @@ -4928,14 +4928,14 @@ class ECSTarget { deploymentId: json['deploymentId'] as String?, lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), lifecycleEvents: (json['lifecycleEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleEvent.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(TargetStatus.fromString), targetArn: json['targetArn'] as String?, targetId: json['targetId'] as String?, taskSetsInfo: (json['taskSetsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSTaskSet.fromJson(e as Map)) .toList(), ); @@ -5277,7 +5277,7 @@ class GenericRevisionInfo { factory GenericRevisionInfo.fromJson(Map json) { return GenericRevisionInfo( deploymentGroups: (json['deploymentGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -5677,7 +5677,7 @@ class InstanceInfo { instanceName: json['instanceName'] as String?, registerTime: timeStampFromJson(json['registerTime']), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5795,7 +5795,7 @@ class InstanceSummary { (json['instanceType'] as String?)?.let(InstanceType.fromString), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), lifecycleEvents: (json['lifecycleEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleEvent.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(InstanceStatus.fromString), @@ -5864,7 +5864,7 @@ class InstanceTarget { (json['instanceLabel'] as String?)?.let(TargetLabel.fromString), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), lifecycleEvents: (json['lifecycleEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleEvent.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(TargetStatus.fromString), @@ -6010,7 +6010,7 @@ class LambdaTarget { : null, lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), lifecycleEvents: (json['lifecycleEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleEvent.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(TargetStatus.fromString), @@ -6220,7 +6220,7 @@ class ListApplicationRevisionsOutput { return ListApplicationRevisionsOutput( nextToken: json['nextToken'] as String?, revisions: (json['revisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RevisionLocation.fromJson(e as Map)) .toList(), ); @@ -6254,7 +6254,7 @@ class ListApplicationsOutput { factory ListApplicationsOutput.fromJson(Map json) { return ListApplicationsOutput( applications: (json['applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -6290,7 +6290,7 @@ class ListDeploymentConfigsOutput { factory ListDeploymentConfigsOutput.fromJson(Map json) { return ListDeploymentConfigsOutput( deploymentConfigsList: (json['deploymentConfigsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -6331,7 +6331,7 @@ class ListDeploymentGroupsOutput { return ListDeploymentGroupsOutput( applicationName: json['applicationName'] as String?, deploymentGroups: (json['deploymentGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -6368,7 +6368,7 @@ class ListDeploymentInstancesOutput { factory ListDeploymentInstancesOutput.fromJson(Map json) { return ListDeploymentInstancesOutput( instancesList: (json['instancesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -6403,7 +6403,7 @@ class ListDeploymentTargetsOutput { return ListDeploymentTargetsOutput( nextToken: json['nextToken'] as String?, targetIds: (json['targetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6437,7 +6437,7 @@ class ListDeploymentsOutput { factory ListDeploymentsOutput.fromJson(Map json) { return ListDeploymentsOutput( deployments: (json['deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -6476,7 +6476,7 @@ class ListGitHubAccountTokenNamesOutput { return ListGitHubAccountTokenNamesOutput( nextToken: json['nextToken'] as String?, tokenNameList: (json['tokenNameList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6510,7 +6510,7 @@ class ListOnPremisesInstancesOutput { factory ListOnPremisesInstancesOutput.fromJson(Map json) { return ListOnPremisesInstancesOutput( instanceNames: (json['instanceNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -6563,7 +6563,7 @@ class ListTagsForResourceOutput { return ListTagsForResourceOutput( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6624,15 +6624,15 @@ class LoadBalancerInfo { factory LoadBalancerInfo.fromJson(Map json) { return LoadBalancerInfo( elbInfoList: (json['elbInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ELBInfo.fromJson(e as Map)) .toList(), targetGroupInfoList: (json['targetGroupInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetGroupInfo.fromJson(e as Map)) .toList(), targetGroupPairInfoList: (json['targetGroupPairInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetGroupPairInfo.fromJson(e as Map)) .toList(), ); @@ -6792,9 +6792,9 @@ class OnPremisesTagSet { factory OnPremisesTagSet.fromJson(Map json) { return OnPremisesTagSet( onPremisesTagSetList: (json['onPremisesTagSetList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => TagFilter.fromJson(e as Map)) .toList()) .toList(), @@ -6920,7 +6920,7 @@ class RelatedDeployments { return RelatedDeployments( autoUpdateOutdatedInstancesDeploymentIds: (json['autoUpdateOutdatedInstancesDeploymentIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), autoUpdateOutdatedInstancesRootDeploymentId: @@ -7451,7 +7451,7 @@ class TargetGroupPairInfo { json['prodTrafficRoute'] as Map) : null, targetGroups: (json['targetGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetGroupInfo.fromJson(e as Map)) .toList(), testTrafficRoute: json['testTrafficRoute'] != null @@ -7500,14 +7500,14 @@ class TargetInstances { factory TargetInstances.fromJson(Map json) { return TargetInstances( autoScalingGroups: (json['autoScalingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ec2TagSet: json['ec2TagSet'] != null ? EC2TagSet.fromJson(json['ec2TagSet'] as Map) : null, tagFilters: (json['tagFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EC2TagFilter.fromJson(e as Map)) .toList(), ); @@ -7673,7 +7673,7 @@ class TrafficRoute { factory TrafficRoute.fromJson(Map json) { return TrafficRoute( listenerArns: (json['listenerArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7778,7 +7778,7 @@ class TriggerConfig { factory TriggerConfig.fromJson(Map json) { return TriggerConfig( triggerEvents: (json['triggerEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TriggerEventType.fromString((e as String))) .toList(), triggerName: json['triggerName'] as String?, @@ -7851,7 +7851,7 @@ class UpdateDeploymentGroupOutput { factory UpdateDeploymentGroupOutput.fromJson(Map json) { return UpdateDeploymentGroupOutput( hooksNotCleanedUp: (json['hooksNotCleanedUp'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingGroup.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/code_guru_profiler/v2019_07_18.dart b/aws_client/lib/src/generated/code_guru_profiler/v2019_07_18.dart index 72842abab..7cc32448f 100644 --- a/aws_client/lib/src/generated/code_guru_profiler/v2019_07_18.dart +++ b/aws_client/lib/src/generated/code_guru_profiler/v2019_07_18.dart @@ -1557,7 +1557,7 @@ class Anomaly { factory Anomaly.fromJson(Map json) { return Anomaly( instances: (json['instances'] as List) - .whereNotNull() + .nonNulls .map((e) => AnomalyInstance.fromJson(e as Map)) .toList(), metric: Metric.fromJson(json['metric'] as Map), @@ -1689,11 +1689,11 @@ class BatchGetFrameMetricDataResponse { return BatchGetFrameMetricDataResponse( endTime: nonNullableTimeStampFromJson(json['endTime'] as Object), endTimes: (json['endTimes'] as List) - .whereNotNull() + .nonNulls .map((e) => TimestampStructure.fromJson(e as Map)) .toList(), frameMetricData: (json['frameMetricData'] as List) - .whereNotNull() + .nonNulls .map((e) => FrameMetricDatum.fromJson(e as Map)) .toList(), resolution: AggregationPeriod.fromString((json['resolution'] as String)), @@ -1702,7 +1702,7 @@ class BatchGetFrameMetricDataResponse { .map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => TimestampStructure.fromJson(e as Map)) .toList())), @@ -1754,7 +1754,7 @@ class Channel { factory Channel.fromJson(Map json) { return Channel( eventPublishers: (json['eventPublishers'] as List) - .whereNotNull() + .nonNulls .map((e) => EventPublisher.fromString((e as String))) .toList(), uri: json['uri'] as String, @@ -1979,7 +1979,7 @@ class FrameMetric { return FrameMetric( frameName: json['frameName'] as String, threadStates: (json['threadStates'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), type: MetricType.fromString((json['type'] as String)), @@ -2014,10 +2014,8 @@ class FrameMetricDatum { return FrameMetricDatum( frameMetric: FrameMetric.fromJson(json['frameMetric'] as Map), - values: (json['values'] as List) - .whereNotNull() - .map((e) => e as double) - .toList(), + values: + (json['values'] as List).nonNulls.map((e) => e as double).toList(), ); } @@ -2056,7 +2054,7 @@ class GetFindingsReportAccountSummaryResponse { Map json) { return GetFindingsReportAccountSummaryResponse( reportSummaries: (json['reportSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => FindingsReportSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2190,7 +2188,7 @@ class GetRecommendationsResponse { factory GetRecommendationsResponse.fromJson(Map json) { return GetRecommendationsResponse( anomalies: (json['anomalies'] as List) - .whereNotNull() + .nonNulls .map((e) => Anomaly.fromJson(e as Map)) .toList(), profileEndTime: @@ -2199,7 +2197,7 @@ class GetRecommendationsResponse { nonNullableTimeStampFromJson(json['profileStartTime'] as Object), profilingGroupName: json['profilingGroupName'] as String, recommendations: (json['recommendations'] as List) - .whereNotNull() + .nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), ); @@ -2241,7 +2239,7 @@ class ListFindingsReportsResponse { factory ListFindingsReportsResponse.fromJson(Map json) { return ListFindingsReportsResponse( findingsReportSummaries: (json['findingsReportSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => FindingsReportSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2279,7 +2277,7 @@ class ListProfileTimesResponse { factory ListProfileTimesResponse.fromJson(Map json) { return ListProfileTimesResponse( profileTimes: (json['profileTimes'] as List) - .whereNotNull() + .nonNulls .map((e) => ProfileTime.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2330,12 +2328,12 @@ class ListProfilingGroupsResponse { factory ListProfilingGroupsResponse.fromJson(Map json) { return ListProfilingGroupsResponse( profilingGroupNames: (json['profilingGroupNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, profilingGroups: (json['profilingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfilingGroupDescription.fromJson(e as Map)) .toList(), @@ -2469,7 +2467,7 @@ class Metric { return Metric( frameName: json['frameName'] as String, threadStates: (json['threadStates'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), type: MetricType.fromString((json['type'] as String)), @@ -2516,7 +2514,7 @@ class NotificationConfiguration { factory NotificationConfiguration.fromJson(Map json) { return NotificationConfiguration( channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), ); @@ -2585,7 +2583,7 @@ class Pattern { factory Pattern.fromJson(Map json) { return Pattern( countersToAggregate: (json['countersToAggregate'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -2593,9 +2591,8 @@ class Pattern { name: json['name'] as String?, resolutionSteps: json['resolutionSteps'] as String?, targetFrames: (json['targetFrames'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), thresholdPercent: json['thresholdPercent'] as double?, ); @@ -2888,7 +2885,7 @@ class Recommendation { pattern: Pattern.fromJson(json['pattern'] as Map), startTime: nonNullableTimeStampFromJson(json['startTime'] as Object), topMatches: (json['topMatches'] as List) - .whereNotNull() + .nonNulls .map((e) => Match.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/code_guru_reviewer/v2019_09_19.dart b/aws_client/lib/src/generated/code_guru_reviewer/v2019_09_19.dart index f5b962a45..f42d5d70c 100644 --- a/aws_client/lib/src/generated/code_guru_reviewer/v2019_09_19.dart +++ b/aws_client/lib/src/generated/code_guru_reviewer/v2019_09_19.dart @@ -1092,7 +1092,7 @@ class CodeReview { factory CodeReview.fromJson(Map json) { return CodeReview( analysisTypes: (json['AnalysisTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisType.fromString((e as String))) .toList(), associationArn: json['AssociationArn'] as String?, @@ -1694,7 +1694,7 @@ class ListCodeReviewsResponse { factory ListCodeReviewsResponse.fromJson(Map json) { return ListCodeReviewsResponse( codeReviewSummaries: (json['CodeReviewSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeReviewSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1733,7 +1733,7 @@ class ListRecommendationFeedbackResponse { nextToken: json['NextToken'] as String?, recommendationFeedbackSummaries: (json['RecommendationFeedbackSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationFeedbackSummary.fromJson(e as Map)) .toList(), @@ -1768,7 +1768,7 @@ class ListRecommendationsResponse { return ListRecommendationsResponse( nextToken: json['NextToken'] as String?, recommendationSummaries: (json['RecommendationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationSummary.fromJson(e as Map)) .toList(), ); @@ -1807,7 +1807,7 @@ class ListRepositoryAssociationsResponse { nextToken: json['NextToken'] as String?, repositoryAssociationSummaries: (json['RepositoryAssociationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryAssociationSummary.fromJson(e as Map)) .toList(), @@ -2087,7 +2087,7 @@ class RecommendationFeedback { createdTimeStamp: timeStampFromJson(json['CreatedTimeStamp']), lastUpdatedTimeStamp: timeStampFromJson(json['LastUpdatedTimeStamp']), reactions: (json['Reactions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Reaction.fromString((e as String))) .toList(), recommendationId: json['RecommendationId'] as String?, @@ -2144,7 +2144,7 @@ class RecommendationFeedbackSummary { factory RecommendationFeedbackSummary.fromJson(Map json) { return RecommendationFeedbackSummary( reactions: (json['Reactions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Reaction.fromString((e as String))) .toList(), recommendationId: json['RecommendationId'] as String?, @@ -2761,7 +2761,7 @@ class RuleMetadata { ruleId: json['RuleId'] as String?, ruleName: json['RuleName'] as String?, ruleTags: (json['RuleTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), shortDescription: json['ShortDescription'] as String?, diff --git a/aws_client/lib/src/generated/code_guru_security/v2018_05_10.dart b/aws_client/lib/src/generated/code_guru_security/v2018_05_10.dart index 9127f5b5d..b16a530c1 100644 --- a/aws_client/lib/src/generated/code_guru_security/v2018_05_10.dart +++ b/aws_client/lib/src/generated/code_guru_security/v2018_05_10.dart @@ -700,11 +700,11 @@ class BatchGetFindingsResponse { factory BatchGetFindingsResponse.fromJson(Map json) { return BatchGetFindingsResponse( failedFindings: (json['failedFindings'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetFindingsError.fromJson(e as Map)) .toList(), findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => Finding.fromJson(e as Map)) .toList(), ); @@ -948,7 +948,7 @@ class FilePath { factory FilePath.fromJson(Map json) { return FilePath( codeSnippet: (json['codeSnippet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeLine.fromJson(e as Map)) .toList(), endLine: json['endLine'] as int?, @@ -1060,7 +1060,7 @@ class Finding { detectorId: json['detectorId'] as String?, detectorName: json['detectorName'] as String?, detectorTags: (json['detectorTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), generatorId: json['generatorId'] as String?, @@ -1242,7 +1242,7 @@ class GetFindingsResponse { factory GetFindingsResponse.fromJson(Map json) { return GetFindingsResponse( findings: (json['findings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Finding.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1385,7 +1385,7 @@ class ListFindingsMetricsResponse { factory ListFindingsMetricsResponse.fromJson(Map json) { return ListFindingsMetricsResponse( findingsMetrics: (json['findingsMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountFindingsMetric.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1420,7 +1420,7 @@ class ListScansResponse { return ListScansResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScanSummary.fromJson(e as Map)) .toList(), ); @@ -1503,7 +1503,7 @@ class MetricsSummary { factory MetricsSummary.fromJson(Map json) { return MetricsSummary( categoriesWithMostFindings: (json['categoriesWithMostFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CategoryWithFindingNum.fromJson(e as Map)) .toList(), @@ -1514,12 +1514,12 @@ class MetricsSummary { : null, scansWithMostOpenCriticalFindings: (json['scansWithMostOpenCriticalFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScanNameWithFindingNum.fromJson(e as Map)) .toList(), scansWithMostOpenFindings: (json['scansWithMostOpenFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ScanNameWithFindingNum.fromJson(e as Map)) .toList(), @@ -1598,7 +1598,7 @@ class Remediation { json['recommendation'] as Map) : null, suggestedFixes: (json['suggestedFixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuggestedFix.fromJson(e as Map)) .toList(), ); @@ -1936,11 +1936,11 @@ class Vulnerability { id: json['id'] as String?, itemCount: json['itemCount'] as int?, referenceUrls: (json['referenceUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), relatedVulnerabilities: (json['relatedVulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/code_pipeline/v2015_07_09.dart b/aws_client/lib/src/generated/code_pipeline/v2015_07_09.dart index ac5fe4025..68fa75c38 100644 --- a/aws_client/lib/src/generated/code_pipeline/v2015_07_09.dart +++ b/aws_client/lib/src/generated/code_pipeline/v2015_07_09.dart @@ -2202,12 +2202,12 @@ class ActionDeclaration { configuration: (json['configuration'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), inputArtifacts: (json['inputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputArtifact.fromJson(e as Map)) .toList(), namespace: json['namespace'] as String?, outputArtifacts: (json['outputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputArtifact.fromJson(e as Map)) .toList(), region: json['region'] as String?, @@ -2524,7 +2524,7 @@ class ActionExecutionInput { configuration: (json['configuration'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), inputArtifacts: (json['inputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ArtifactDetail.fromJson(e as Map)) .toList(), namespace: json['namespace'] as String?, @@ -2585,7 +2585,7 @@ class ActionExecutionOutput { json['executionResult'] as Map) : null, outputArtifacts: (json['outputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ArtifactDetail.fromJson(e as Map)) .toList(), outputVariables: (json['outputVariables'] as Map?) @@ -2819,7 +2819,7 @@ class ActionType { json['outputArtifactDetails'] as Map), actionConfigurationProperties: (json['actionConfigurationProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionConfigurationProperty.fromJson(e as Map)) .toList(), @@ -2941,7 +2941,7 @@ class ActionTypeDeclaration { json['permissions'] as Map) : null, properties: (json['properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionTypeProperty.fromJson(e as Map)) .toList(), urls: json['urls'] != null @@ -3189,7 +3189,7 @@ class ActionTypePermissions { factory ActionTypePermissions.fromJson(Map json) { return ActionTypePermissions( allowedAccounts: (json['allowedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -3763,7 +3763,7 @@ class CreateCustomActionTypeOutput { actionType: ActionType.fromJson(json['actionType'] as Map), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3800,7 +3800,7 @@ class CreatePipelineOutput { json['pipeline'] as Map) : null, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4344,7 +4344,7 @@ class GetPipelineStateOutput { pipelineName: json['pipelineName'] as String?, pipelineVersion: json['pipelineVersion'] as int?, stageStates: (json['stageStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StageState.fromJson(e as Map)) .toList(), updated: timeStampFromJson(json['updated']), @@ -4412,11 +4412,11 @@ class GitBranchFilterCriteria { factory GitBranchFilterCriteria.fromJson(Map json) { return GitBranchFilterCriteria( excludes: (json['excludes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includes: (json['includes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4465,11 +4465,11 @@ class GitConfiguration { return GitConfiguration( sourceActionName: json['sourceActionName'] as String, pullRequest: (json['pullRequest'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GitPullRequestFilter.fromJson(e as Map)) .toList(), push: (json['push'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GitPushFilter.fromJson(e as Map)) .toList(), ); @@ -4506,11 +4506,11 @@ class GitFilePathFilterCriteria { factory GitFilePathFilterCriteria.fromJson(Map json) { return GitFilePathFilterCriteria( excludes: (json['excludes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includes: (json['includes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4570,7 +4570,7 @@ class GitPullRequestFilter { json['branches'] as Map) : null, events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GitPullRequestEventType.fromString((e as String))) .toList(), filePaths: json['filePaths'] != null @@ -4660,11 +4660,11 @@ class GitTagFilterCriteria { factory GitTagFilterCriteria.fromJson(Map json) { return GitTagFilterCriteria( excludes: (json['excludes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includes: (json['includes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4831,11 +4831,11 @@ class JobData { json['encryptionKey'] as Map) : null, inputArtifacts: (json['inputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Artifact.fromJson(e as Map)) .toList(), outputArtifacts: (json['outputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Artifact.fromJson(e as Map)) .toList(), pipelineContext: json['pipelineContext'] != null @@ -4947,11 +4947,11 @@ class JobWorkerExecutorConfiguration { factory JobWorkerExecutorConfiguration.fromJson(Map json) { return JobWorkerExecutorConfiguration( pollingAccounts: (json['pollingAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), pollingServicePrincipals: (json['pollingServicePrincipals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5047,7 +5047,7 @@ class ListActionExecutionsOutput { factory ListActionExecutionsOutput.fromJson(Map json) { return ListActionExecutionsOutput( actionExecutionDetails: (json['actionExecutionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionExecutionDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5083,7 +5083,7 @@ class ListActionTypesOutput { factory ListActionTypesOutput.fromJson(Map json) { return ListActionTypesOutput( actionTypes: (json['actionTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => ActionType.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5119,7 +5119,7 @@ class ListPipelineExecutionsOutput { return ListPipelineExecutionsOutput( nextToken: json['nextToken'] as String?, pipelineExecutionSummaries: (json['pipelineExecutionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineExecutionSummary.fromJson(e as Map)) .toList(), @@ -5156,7 +5156,7 @@ class ListPipelinesOutput { return ListPipelinesOutput( nextToken: json['nextToken'] as String?, pipelines: (json['pipelines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineSummary.fromJson(e as Map)) .toList(), ); @@ -5191,7 +5191,7 @@ class ListTagsForResourceOutput { return ListTagsForResourceOutput( nextToken: json['nextToken'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5256,7 +5256,7 @@ class ListWebhookItem { errorMessage: json['errorMessage'] as String?, lastTriggered: timeStampFromJson(json['lastTriggered']), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5302,7 +5302,7 @@ class ListWebhooksOutput { return ListWebhooksOutput( nextToken: json['NextToken'] as String?, webhooks: (json['webhooks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListWebhookItem.fromJson(e as Map)) .toList(), ); @@ -5513,7 +5513,7 @@ class PipelineDeclaration { name: json['name'] as String, roleArn: json['roleArn'] as String, stages: (json['stages'] as List) - .whereNotNull() + .nonNulls .map((e) => StageDeclaration.fromJson(e as Map)) .toList(), artifactStore: json['artifactStore'] != null @@ -5528,12 +5528,12 @@ class PipelineDeclaration { pipelineType: (json['pipelineType'] as String?)?.let(PipelineType.fromString), triggers: (json['triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineTriggerDeclaration.fromJson(e as Map)) .toList(), variables: (json['variables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineVariableDeclaration.fromJson(e as Map)) .toList(), @@ -5655,7 +5655,7 @@ class PipelineExecution { factory PipelineExecution.fromJson(Map json) { return PipelineExecution( artifactRevisions: (json['artifactRevisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ArtifactRevision.fromJson(e as Map)) .toList(), executionMode: @@ -5676,7 +5676,7 @@ class PipelineExecution { ? ExecutionTrigger.fromJson(json['trigger'] as Map) : null, variables: (json['variables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolvedPipelineVariable.fromJson(e as Map)) .toList(), @@ -5848,7 +5848,7 @@ class PipelineExecutionSummary { json['rollbackMetadata'] as Map) : null, sourceRevisions: (json['sourceRevisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceRevision.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['startTime']), @@ -6203,7 +6203,7 @@ class PollForJobsOutput { factory PollForJobsOutput.fromJson(Map json) { return PollForJobsOutput( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), ); @@ -6229,7 +6229,7 @@ class PollForThirdPartyJobsOutput { factory PollForThirdPartyJobsOutput.fromJson(Map json) { return PollForThirdPartyJobsOutput( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThirdPartyJob.fromJson(e as Map)) .toList(), ); @@ -6636,12 +6636,12 @@ class StageDeclaration { factory StageDeclaration.fromJson(Map json) { return StageDeclaration( actions: (json['actions'] as List) - .whereNotNull() + .nonNulls .map((e) => ActionDeclaration.fromJson(e as Map)) .toList(), name: json['name'] as String, blockers: (json['blockers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BlockerDeclaration.fromJson(e as Map)) .toList(), onFailure: json['onFailure'] != null @@ -6773,7 +6773,7 @@ class StageState { factory StageState.fromJson(Map json) { return StageState( actionStates: (json['actionStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionState.fromJson(e as Map)) .toList(), inboundExecution: json['inboundExecution'] != null @@ -6781,7 +6781,7 @@ class StageState { json['inboundExecution'] as Map) : null, inboundExecutions: (json['inboundExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StageExecution.fromJson(e as Map)) .toList(), inboundTransitionState: json['inboundTransitionState'] != null @@ -7082,11 +7082,11 @@ class ThirdPartyJobData { json['encryptionKey'] as Map) : null, inputArtifacts: (json['inputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Artifact.fromJson(e as Map)) .toList(), outputArtifacts: (json['outputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Artifact.fromJson(e as Map)) .toList(), pipelineContext: json['pipelineContext'] != null @@ -7375,7 +7375,7 @@ class WebhookDefinition { authenticationConfiguration: WebhookAuthConfiguration.fromJson( json['authenticationConfiguration'] as Map), filters: (json['filters'] as List) - .whereNotNull() + .nonNulls .map((e) => WebhookFilterRule.fromJson(e as Map)) .toList(), name: json['name'] as String, diff --git a/aws_client/lib/src/generated/code_star/v2017_04_19.dart b/aws_client/lib/src/generated/code_star/v2017_04_19.dart index d718a475e..cf3bb8a1a 100644 --- a/aws_client/lib/src/generated/code_star/v2017_04_19.dart +++ b/aws_client/lib/src/generated/code_star/v2017_04_19.dart @@ -1364,7 +1364,7 @@ class ListProjectsResult { factory ListProjectsResult.fromJson(Map json) { return ListProjectsResult( projects: (json['projects'] as List) - .whereNotNull() + .nonNulls .map((e) => ProjectSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1398,7 +1398,7 @@ class ListResourcesResult { return ListResourcesResult( nextToken: json['nextToken'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -1460,7 +1460,7 @@ class ListTeamMembersResult { factory ListTeamMembersResult.fromJson(Map json) { return ListTeamMembersResult( teamMembers: (json['teamMembers'] as List) - .whereNotNull() + .nonNulls .map((e) => TeamMember.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1493,7 +1493,7 @@ class ListUserProfilesResult { factory ListUserProfilesResult.fromJson(Map json) { return ListUserProfilesResult( userProfiles: (json['userProfiles'] as List) - .whereNotNull() + .nonNulls .map((e) => UserProfileSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/code_star_connections/v2019_12_01.dart b/aws_client/lib/src/generated/code_star_connections/v2019_12_01.dart index 440a69b5c..58c7d01b5 100644 --- a/aws_client/lib/src/generated/code_star_connections/v2019_12_01.dart +++ b/aws_client/lib/src/generated/code_star_connections/v2019_12_01.dart @@ -1379,7 +1379,7 @@ class CreateConnectionOutput { return CreateConnectionOutput( connectionArn: json['ConnectionArn'] as String, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1411,7 +1411,7 @@ class CreateHostOutput { return CreateHostOutput( hostArn: json['HostArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1837,7 +1837,7 @@ class ListConnectionsOutput { factory ListConnectionsOutput.fromJson(Map json) { return ListConnectionsOutput( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1872,7 +1872,7 @@ class ListHostsOutput { factory ListHostsOutput.fromJson(Map json) { return ListHostsOutput( hosts: (json['Hosts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Host.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1905,7 +1905,7 @@ class ListRepositoryLinksOutput { factory ListRepositoryLinksOutput.fromJson(Map json) { return ListRepositoryLinksOutput( repositoryLinks: (json['RepositoryLinks'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositoryLinkInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1942,7 +1942,7 @@ class ListRepositorySyncDefinitionsOutput { Map json) { return ListRepositorySyncDefinitionsOutput( repositorySyncDefinitions: (json['RepositorySyncDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositorySyncDefinition.fromJson(e as Map)) .toList(), @@ -1976,7 +1976,7 @@ class ListSyncConfigurationsOutput { factory ListSyncConfigurationsOutput.fromJson(Map json) { return ListSyncConfigurationsOutput( syncConfigurations: (json['SyncConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => SyncConfiguration.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2004,7 +2004,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2161,7 +2161,7 @@ class RepositorySyncAttempt { factory RepositorySyncAttempt.fromJson(Map json) { return RepositorySyncAttempt( events: (json['Events'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositorySyncEvent.fromJson(e as Map)) .toList(), startedAt: nonNullableTimeStampFromJson(json['StartedAt'] as Object), @@ -2342,7 +2342,7 @@ class ResourceSyncAttempt { factory ResourceSyncAttempt.fromJson(Map json) { return ResourceSyncAttempt( events: (json['Events'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceSyncEvent.fromJson(e as Map)) .toList(), initialRevision: @@ -2540,7 +2540,7 @@ class SyncBlocker { status: BlockerStatus.fromString((json['Status'] as String)), type: BlockerType.fromString((json['Type'] as String)), contexts: (json['Contexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyncBlockerContext.fromJson(e as Map)) .toList(), resolvedAt: timeStampFromJson(json['ResolvedAt']), @@ -2621,7 +2621,7 @@ class SyncBlockerSummary { return SyncBlockerSummary( resourceName: json['ResourceName'] as String, latestBlockers: (json['LatestBlockers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyncBlocker.fromJson(e as Map)) .toList(), parentResourceName: json['ParentResourceName'] as String?, @@ -2954,13 +2954,11 @@ class VpcConfiguration { factory VpcConfiguration.fromJson(Map json) { return VpcConfiguration( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['SubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['SubnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String, tlsCertificate: json['TlsCertificate'] as String?, ); diff --git a/aws_client/lib/src/generated/codeartifact/v2018_09_22.dart b/aws_client/lib/src/generated/codeartifact/v2018_09_22.dart index 4b86339fe..84f4fb25d 100644 --- a/aws_client/lib/src/generated/codeartifact/v2018_09_22.dart +++ b/aws_client/lib/src/generated/codeartifact/v2018_09_22.dart @@ -4962,7 +4962,7 @@ class ListAllowedRepositoriesForGroupResult { Map json) { return ListAllowedRepositoriesForGroupResult( allowedRepositories: (json['allowedRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -4997,7 +4997,7 @@ class ListAssociatedPackagesResult { return ListAssociatedPackagesResult( nextToken: json['nextToken'] as String?, packages: (json['packages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociatedPackage.fromJson(e as Map)) .toList(), ); @@ -5031,7 +5031,7 @@ class ListDomainsResult { factory ListDomainsResult.fromJson(Map json) { return ListDomainsResult( domains: (json['domains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5065,7 +5065,7 @@ class ListPackageGroupsResult { return ListPackageGroupsResult( nextToken: json['nextToken'] as String?, packageGroups: (json['packageGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageGroupSummary.fromJson(e as Map)) .toList(), ); @@ -5138,7 +5138,7 @@ class ListPackageVersionAssetsResult { factory ListPackageVersionAssetsResult.fromJson(Map json) { return ListPackageVersionAssetsResult( assets: (json['assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetSummary.fromJson(e as Map)) .toList(), format: (json['format'] as String?)?.let(PackageFormat.fromString), @@ -5229,7 +5229,7 @@ class ListPackageVersionDependenciesResult { Map json) { return ListPackageVersionDependenciesResult( dependencies: (json['dependencies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageDependency.fromJson(e as Map)) .toList(), format: (json['format'] as String?)?.let(PackageFormat.fromString), @@ -5330,7 +5330,7 @@ class ListPackageVersionsResult { nextToken: json['nextToken'] as String?, package: json['package'] as String?, versions: (json['versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageVersionSummary.fromJson(e as Map)) .toList(), ); @@ -5374,7 +5374,7 @@ class ListPackagesResult { return ListPackagesResult( nextToken: json['nextToken'] as String?, packages: (json['packages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageSummary.fromJson(e as Map)) .toList(), ); @@ -5407,7 +5407,7 @@ class ListRepositoriesInDomainResult { return ListRepositoriesInDomainResult( nextToken: json['nextToken'] as String?, repositories: (json['repositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositorySummary.fromJson(e as Map)) .toList(), ); @@ -5442,7 +5442,7 @@ class ListRepositoriesResult { return ListRepositoriesResult( nextToken: json['nextToken'] as String?, repositories: (json['repositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositorySummary.fromJson(e as Map)) .toList(), ); @@ -5475,7 +5475,7 @@ class ListSubPackageGroupsResult { return ListSubPackageGroupsResult( nextToken: json['nextToken'] as String?, packageGroups: (json['packageGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageGroupSummary.fromJson(e as Map)) .toList(), ); @@ -5502,7 +5502,7 @@ class ListTagsForResourceResult { factory ListTagsForResourceResult.fromJson(Map json) { return ListTagsForResourceResult( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6303,7 +6303,7 @@ class PackageVersionDescription { format: (json['format'] as String?)?.let(PackageFormat.fromString), homePage: json['homePage'] as String?, licenses: (json['licenses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseInfo.fromJson(e as Map)) .toList(), namespace: json['namespace'] as String?, @@ -6785,13 +6785,13 @@ class RepositoryDescription { domainName: json['domainName'] as String?, domainOwner: json['domainOwner'] as String?, externalConnections: (json['externalConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryExternalConnectionInfo.fromJson( e as Map)) .toList(), name: json['name'] as String?, upstreams: (json['upstreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => UpstreamRepositoryInfo.fromJson(e as Map)) .toList(), @@ -7099,10 +7099,7 @@ class UpdatePackageGroupOriginConfigurationResult { PackageGroupOriginRestrictionType.fromString(k), (e as Map).map((k, e) => MapEntry( PackageGroupAllowedRepositoryUpdateType.fromString(k), - (e as List) - .whereNotNull() - .map((e) => e as String) - .toList())))), + (e as List).nonNulls.map((e) => e as String).toList())))), packageGroup: json['packageGroup'] != null ? PackageGroupDescription.fromJson( json['packageGroup'] as Map) diff --git a/aws_client/lib/src/generated/codestar_notifications/v2019_10_15.dart b/aws_client/lib/src/generated/codestar_notifications/v2019_10_15.dart index aee8094ae..e5c06e1a0 100644 --- a/aws_client/lib/src/generated/codestar_notifications/v2019_10_15.dart +++ b/aws_client/lib/src/generated/codestar_notifications/v2019_10_15.dart @@ -743,7 +743,7 @@ class DescribeNotificationRuleResult { createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), detailType: (json['DetailType'] as String?)?.let(DetailType.fromString), eventTypes: (json['EventTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventTypeSummary.fromJson(e as Map)) .toList(), lastModifiedTimestamp: timeStampFromJson(json['LastModifiedTimestamp']), @@ -754,7 +754,7 @@ class DescribeNotificationRuleResult { tags: (json['Tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetSummary.fromJson(e as Map)) .toList(), ); @@ -908,7 +908,7 @@ class ListEventTypesResult { factory ListEventTypesResult.fromJson(Map json) { return ListEventTypesResult( eventTypes: (json['EventTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventTypeSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -988,7 +988,7 @@ class ListNotificationRulesResult { return ListNotificationRulesResult( nextToken: json['NextToken'] as String?, notificationRules: (json['NotificationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationRuleSummary.fromJson(e as Map)) .toList(), @@ -1091,7 +1091,7 @@ class ListTargetsResult { return ListTargetsResult( nextToken: json['NextToken'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetSummary.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/cognito_identity/v2014_06_30.dart b/aws_client/lib/src/generated/cognito_identity/v2014_06_30.dart index 8ad4e422c..d81ba8560 100644 --- a/aws_client/lib/src/generated/cognito_identity/v2014_06_30.dart +++ b/aws_client/lib/src/generated/cognito_identity/v2014_06_30.dart @@ -1445,7 +1445,7 @@ class DeleteIdentitiesResponse { factory DeleteIdentitiesResponse.fromJson(Map json) { return DeleteIdentitiesResponse( unprocessedIdentityIds: (json['UnprocessedIdentityIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedIdentityId.fromJson(e as Map)) .toList(), ); @@ -1714,10 +1714,8 @@ class IdentityDescription { creationDate: timeStampFromJson(json['CreationDate']), identityId: json['IdentityId'] as String?, lastModifiedDate: timeStampFromJson(json['LastModifiedDate']), - logins: (json['Logins'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + logins: + (json['Logins'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -1797,7 +1795,7 @@ class IdentityPool { identityPoolName: json['IdentityPoolName'] as String, allowClassicFlow: json['AllowClassicFlow'] as bool?, cognitoIdentityProviders: (json['CognitoIdentityProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CognitoIdentityProvider.fromJson(e as Map)) .toList(), @@ -1805,11 +1803,11 @@ class IdentityPool { identityPoolTags: (json['IdentityPoolTags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), openIdConnectProviderARNs: (json['OpenIdConnectProviderARNs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), samlProviderARNs: (json['SamlProviderARNs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedLoginProviders: @@ -1898,7 +1896,7 @@ class ListIdentitiesResponse { factory ListIdentitiesResponse.fromJson(Map json) { return ListIdentitiesResponse( identities: (json['Identities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityDescription.fromJson(e as Map)) .toList(), identityPoolId: json['IdentityPoolId'] as String?, @@ -1934,7 +1932,7 @@ class ListIdentityPoolsResponse { factory ListIdentityPoolsResponse.fromJson(Map json) { return ListIdentityPoolsResponse( identityPools: (json['IdentityPools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityPoolShortDescription.fromJson(e as Map)) .toList(), @@ -2005,7 +2003,7 @@ class LookupDeveloperIdentityResponse { return LookupDeveloperIdentityResponse( developerUserIdentifierList: (json['DeveloperUserIdentifierList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identityId: json['IdentityId'] as String?, @@ -2197,7 +2195,7 @@ class RulesConfigurationType { factory RulesConfigurationType.fromJson(Map json) { return RulesConfigurationType( rules: (json['Rules'] as List) - .whereNotNull() + .nonNulls .map((e) => MappingRule.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/cognito_identity_provider/v2016_04_18.dart b/aws_client/lib/src/generated/cognito_identity_provider/v2016_04_18.dart index 011ece383..7ca6bd09b 100644 --- a/aws_client/lib/src/generated/cognito_identity_provider/v2016_04_18.dart +++ b/aws_client/lib/src/generated/cognito_identity_provider/v2016_04_18.dart @@ -9758,7 +9758,7 @@ class AccountRecoverySettingType { factory AccountRecoverySettingType.fromJson(Map json) { return AccountRecoverySettingType( recoveryMechanisms: (json['RecoveryMechanisms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryOptionType.fromJson(e as Map)) .toList(), ); @@ -10185,18 +10185,18 @@ class AdminGetUserResponse { username: json['Username'] as String, enabled: json['Enabled'] as bool?, mFAOptions: (json['MFAOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MFAOptionType.fromJson(e as Map)) .toList(), preferredMfaSetting: json['PreferredMfaSetting'] as String?, userAttributes: (json['UserAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeType.fromJson(e as Map)) .toList(), userCreateDate: timeStampFromJson(json['UserCreateDate']), userLastModifiedDate: timeStampFromJson(json['UserLastModifiedDate']), userMFASettingList: (json['UserMFASettingList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userStatus: @@ -10410,7 +10410,7 @@ class AdminListDevicesResponse { factory AdminListDevicesResponse.fromJson(Map json) { return AdminListDevicesResponse( devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceType.fromJson(e as Map)) .toList(), paginationToken: json['PaginationToken'] as String?, @@ -10443,7 +10443,7 @@ class AdminListGroupsForUserResponse { factory AdminListGroupsForUserResponse.fromJson(Map json) { return AdminListGroupsForUserResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupType.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -10477,7 +10477,7 @@ class AdminListUserAuthEventsResponse { factory AdminListUserAuthEventsResponse.fromJson(Map json) { return AdminListUserAuthEventsResponse( authEvents: (json['AuthEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthEventType.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -10902,7 +10902,7 @@ class AuthEventType { factory AuthEventType.fromJson(Map json) { return AuthEventType( challengeResponses: (json['ChallengeResponses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChallengeResponseType.fromJson(e as Map)) .toList(), creationDate: timeStampFromJson(json['CreationDate']), @@ -11261,7 +11261,7 @@ class CompromisedCredentialsRiskConfigurationType { actions: CompromisedCredentialsActionsType.fromJson( json['Actions'] as Map), eventFilter: (json['EventFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventFilterType.fromString((e as String))) .toList(), ); @@ -12069,7 +12069,7 @@ class DeviceType { factory DeviceType.fromJson(Map json) { return DeviceType( deviceAttributes: (json['DeviceAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeType.fromJson(e as Map)) .toList(), deviceCreateDate: timeStampFromJson(json['DeviceCreateDate']), @@ -12640,7 +12640,7 @@ class GetCSVHeaderResponse { factory GetCSVHeaderResponse.fromJson(Map json) { return GetCSVHeaderResponse( cSVHeader: (json['CSVHeader'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userPoolId: json['UserPoolId'] as String?, @@ -12927,17 +12927,17 @@ class GetUserResponse { factory GetUserResponse.fromJson(Map json) { return GetUserResponse( userAttributes: (json['UserAttributes'] as List) - .whereNotNull() + .nonNulls .map((e) => AttributeType.fromJson(e as Map)) .toList(), username: json['Username'] as String, mFAOptions: (json['MFAOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MFAOptionType.fromJson(e as Map)) .toList(), preferredMfaSetting: json['PreferredMfaSetting'] as String?, userMFASettingList: (json['UserMFASettingList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -13228,7 +13228,7 @@ class IdentityProviderType { ?.map((k, e) => MapEntry(k, e as String)), creationDate: timeStampFromJson(json['CreationDate']), idpIdentifiers: (json['IdpIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastModifiedDate: timeStampFromJson(json['LastModifiedDate']), @@ -13576,7 +13576,7 @@ class ListDevicesResponse { factory ListDevicesResponse.fromJson(Map json) { return ListDevicesResponse( devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceType.fromJson(e as Map)) .toList(), paginationToken: json['PaginationToken'] as String?, @@ -13609,7 +13609,7 @@ class ListGroupsResponse { factory ListGroupsResponse.fromJson(Map json) { return ListGroupsResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupType.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13641,7 +13641,7 @@ class ListIdentityProvidersResponse { factory ListIdentityProvidersResponse.fromJson(Map json) { return ListIdentityProvidersResponse( providers: (json['Providers'] as List) - .whereNotNull() + .nonNulls .map((e) => ProviderDescription.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13673,7 +13673,7 @@ class ListResourceServersResponse { factory ListResourceServersResponse.fromJson(Map json) { return ListResourceServersResponse( resourceServers: (json['ResourceServers'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceServerType.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13734,7 +13734,7 @@ class ListUserImportJobsResponse { return ListUserImportJobsResponse( paginationToken: json['PaginationToken'] as String?, userImportJobs: (json['UserImportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserImportJobType.fromJson(e as Map)) .toList(), ); @@ -13768,7 +13768,7 @@ class ListUserPoolClientsResponse { return ListUserPoolClientsResponse( nextToken: json['NextToken'] as String?, userPoolClients: (json['UserPoolClients'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserPoolClientDescription.fromJson(e as Map)) .toList(), @@ -13803,7 +13803,7 @@ class ListUserPoolsResponse { return ListUserPoolsResponse( nextToken: json['NextToken'] as String?, userPools: (json['UserPools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserPoolDescriptionType.fromJson(e as Map)) .toList(), @@ -13837,7 +13837,7 @@ class ListUsersInGroupResponse { return ListUsersInGroupResponse( nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserType.fromJson(e as Map)) .toList(), ); @@ -13883,7 +13883,7 @@ class ListUsersResponse { return ListUsersResponse( paginationToken: json['PaginationToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserType.fromJson(e as Map)) .toList(), ); @@ -13958,7 +13958,7 @@ class LogDeliveryConfigurationType { factory LogDeliveryConfigurationType.fromJson(Map json) { return LogDeliveryConfigurationType( logConfigurations: (json['LogConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => LogConfigurationType.fromJson(e as Map)) .toList(), userPoolId: json['UserPoolId'] as String, @@ -14628,7 +14628,7 @@ class ResourceServerType { identifier: json['Identifier'] as String?, name: json['Name'] as String?, scopes: (json['Scopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceServerScopeType.fromJson(e as Map)) .toList(), @@ -14839,11 +14839,11 @@ class RiskExceptionConfigurationType { factory RiskExceptionConfigurationType.fromJson(Map json) { return RiskExceptionConfigurationType( blockedIPRangeList: (json['BlockedIPRangeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), skippedIPRangeList: (json['SkippedIPRangeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15769,7 +15769,7 @@ class UpdateUserAttributesResponse { factory UpdateUserAttributesResponse.fromJson(Map json) { return UpdateUserAttributesResponse( codeDeliveryDetailsList: (json['CodeDeliveryDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeDeliveryDetailsType.fromJson(e as Map)) .toList(), @@ -15889,7 +15889,7 @@ class UserAttributeUpdateSettingsType { return UserAttributeUpdateSettingsType( attributesRequireVerificationBeforeUpdate: (json['AttributesRequireVerificationBeforeUpdate'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VerifiedAttributeType.fromString((e as String))) .toList(), ); @@ -16548,13 +16548,13 @@ class UserPoolClientType { return UserPoolClientType( accessTokenValidity: json['AccessTokenValidity'] as int?, allowedOAuthFlows: (json['AllowedOAuthFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OAuthFlowType.fromString((e as String))) .toList(), allowedOAuthFlowsUserPoolClient: json['AllowedOAuthFlowsUserPoolClient'] as bool?, allowedOAuthScopes: (json['AllowedOAuthScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), analyticsConfiguration: json['AnalyticsConfiguration'] != null @@ -16563,7 +16563,7 @@ class UserPoolClientType { : null, authSessionValidity: json['AuthSessionValidity'] as int?, callbackURLs: (json['CallbackURLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clientId: json['ClientId'] as String?, @@ -16575,25 +16575,25 @@ class UserPoolClientType { json['EnablePropagateAdditionalUserContextData'] as bool?, enableTokenRevocation: json['EnableTokenRevocation'] as bool?, explicitAuthFlows: (json['ExplicitAuthFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExplicitAuthFlowsType.fromString((e as String))) .toList(), idTokenValidity: json['IdTokenValidity'] as int?, lastModifiedDate: timeStampFromJson(json['LastModifiedDate']), logoutURLs: (json['LogoutURLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), preventUserExistenceErrors: (json['PreventUserExistenceErrors'] as String?) ?.let(PreventUserExistenceErrorTypes.fromString), readAttributes: (json['ReadAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), refreshTokenValidity: json['RefreshTokenValidity'] as int?, supportedIdentityProviders: (json['SupportedIdentityProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tokenValidityUnits: json['TokenValidityUnits'] != null @@ -16602,7 +16602,7 @@ class UserPoolClientType { : null, userPoolId: json['UserPoolId'] as String?, writeAttributes: (json['WriteAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -17040,12 +17040,12 @@ class UserPoolType { json['AdminCreateUserConfig'] as Map) : null, aliasAttributes: (json['AliasAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AliasAttributeType.fromString((e as String))) .toList(), arn: json['Arn'] as String?, autoVerifiedAttributes: (json['AutoVerifiedAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VerifiedAttributeType.fromString((e as String))) .toList(), creationDate: timeStampFromJson(json['CreationDate']), @@ -17079,7 +17079,7 @@ class UserPoolType { json['Policies'] as Map) : null, schemaAttributes: (json['SchemaAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaAttributeType.fromJson(e as Map)) .toList(), smsAuthenticationMessage: json['SmsAuthenticationMessage'] as String?, @@ -17101,7 +17101,7 @@ class UserPoolType { userPoolTags: (json['UserPoolTags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), usernameAttributes: (json['UsernameAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsernameAttributeType.fromString((e as String))) .toList(), usernameConfiguration: json['UsernameConfiguration'] != null @@ -17290,12 +17290,12 @@ class UserType { factory UserType.fromJson(Map json) { return UserType( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeType.fromJson(e as Map)) .toList(), enabled: json['Enabled'] as bool?, mFAOptions: (json['MFAOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MFAOptionType.fromJson(e as Map)) .toList(), userCreateDate: timeStampFromJson(json['UserCreateDate']), diff --git a/aws_client/lib/src/generated/cognito_sync/v2014_06_30.dart b/aws_client/lib/src/generated/cognito_sync/v2014_06_30.dart index f75d5a2fe..e2593adc6 100644 --- a/aws_client/lib/src/generated/cognito_sync/v2014_06_30.dart +++ b/aws_client/lib/src/generated/cognito_sync/v2014_06_30.dart @@ -1290,7 +1290,7 @@ class ListDatasetsResponse { return ListDatasetsResponse( count: json['Count'] as int?, datasets: (json['Datasets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Dataset.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1334,7 +1334,7 @@ class ListIdentityPoolUsageResponse { return ListIdentityPoolUsageResponse( count: json['Count'] as int?, identityPoolUsages: (json['IdentityPoolUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityPoolUsage.fromJson(e as Map)) .toList(), maxResults: json['MaxResults'] as int?, @@ -1406,12 +1406,12 @@ class ListRecordsResponse { datasetSyncCount: json['DatasetSyncCount'] as int?, lastModifiedBy: json['LastModifiedBy'] as String?, mergedDatasetNames: (json['MergedDatasetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, records: (json['Records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), syncSessionToken: json['SyncSessionToken'] as String?, @@ -1491,7 +1491,7 @@ class PushSync { factory PushSync.fromJson(Map json) { return PushSync( applicationArns: (json['ApplicationArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), roleArn: json['RoleArn'] as String?, @@ -1730,7 +1730,7 @@ class UpdateRecordsResponse { factory UpdateRecordsResponse.fromJson(Map json) { return UpdateRecordsResponse( records: (json['Records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/comprehend/v2017_11_27.dart b/aws_client/lib/src/generated/comprehend/v2017_11_27.dart index 971c38a97..99bab91e3 100644 --- a/aws_client/lib/src/generated/comprehend/v2017_11_27.dart +++ b/aws_client/lib/src/generated/comprehend/v2017_11_27.dart @@ -4671,7 +4671,7 @@ class AugmentedManifestsListItem { factory AugmentedManifestsListItem.fromJson(Map json) { return AugmentedManifestsListItem( attributeNames: (json['AttributeNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), s3Uri: json['S3Uri'] as String, @@ -4723,7 +4723,7 @@ class BatchDetectDominantLanguageItemResult { return BatchDetectDominantLanguageItemResult( index: json['Index'] as int?, languages: (json['Languages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantLanguage.fromJson(e as Map)) .toList(), ); @@ -4761,11 +4761,11 @@ class BatchDetectDominantLanguageResponse { Map json) { return BatchDetectDominantLanguageResponse( errorList: (json['ErrorList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchItemError.fromJson(e as Map)) .toList(), resultList: (json['ResultList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDetectDominantLanguageItemResult.fromJson( e as Map)) .toList(), @@ -4800,7 +4800,7 @@ class BatchDetectEntitiesItemResult { factory BatchDetectEntitiesItemResult.fromJson(Map json) { return BatchDetectEntitiesItemResult( entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), index: json['Index'] as int?, @@ -4838,11 +4838,11 @@ class BatchDetectEntitiesResponse { factory BatchDetectEntitiesResponse.fromJson(Map json) { return BatchDetectEntitiesResponse( errorList: (json['ErrorList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchItemError.fromJson(e as Map)) .toList(), resultList: (json['ResultList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDetectEntitiesItemResult.fromJson(e as Map)) .toList(), @@ -4878,7 +4878,7 @@ class BatchDetectKeyPhrasesItemResult { return BatchDetectKeyPhrasesItemResult( index: json['Index'] as int?, keyPhrases: (json['KeyPhrases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyPhrase.fromJson(e as Map)) .toList(), ); @@ -4915,11 +4915,11 @@ class BatchDetectKeyPhrasesResponse { factory BatchDetectKeyPhrasesResponse.fromJson(Map json) { return BatchDetectKeyPhrasesResponse( errorList: (json['ErrorList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchItemError.fromJson(e as Map)) .toList(), resultList: (json['ResultList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDetectKeyPhrasesItemResult.fromJson( e as Map)) .toList(), @@ -4999,11 +4999,11 @@ class BatchDetectSentimentResponse { factory BatchDetectSentimentResponse.fromJson(Map json) { return BatchDetectSentimentResponse( errorList: (json['ErrorList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchItemError.fromJson(e as Map)) .toList(), resultList: (json['ResultList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDetectSentimentItemResult.fromJson( e as Map)) .toList(), @@ -5038,7 +5038,7 @@ class BatchDetectSyntaxItemResult { return BatchDetectSyntaxItemResult( index: json['Index'] as int?, syntaxTokens: (json['SyntaxTokens'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyntaxToken.fromJson(e as Map)) .toList(), ); @@ -5075,11 +5075,11 @@ class BatchDetectSyntaxResponse { factory BatchDetectSyntaxResponse.fromJson(Map json) { return BatchDetectSyntaxResponse( errorList: (json['ErrorList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchItemError.fromJson(e as Map)) .toList(), resultList: (json['ResultList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDetectSyntaxItemResult.fromJson(e as Map)) .toList(), @@ -5113,7 +5113,7 @@ class BatchDetectTargetedSentimentItemResult { Map json) { return BatchDetectTargetedSentimentItemResult( entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetedSentimentEntity.fromJson(e as Map)) .toList(), @@ -5150,11 +5150,11 @@ class BatchDetectTargetedSentimentResponse { Map json) { return BatchDetectTargetedSentimentResponse( errorList: (json['ErrorList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchItemError.fromJson(e as Map)) .toList(), resultList: (json['ResultList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDetectTargetedSentimentItemResult.fromJson( e as Map)) .toList(), @@ -5264,7 +5264,7 @@ class Block { id: json['Id'] as String?, page: json['Page'] as int?, relationships: (json['Relationships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationshipsListItem.fromJson(e as Map)) .toList(), text: json['Text'] as String?, @@ -5315,7 +5315,7 @@ class BlockReference { beginOffset: json['BeginOffset'] as int?, blockId: json['BlockId'] as String?, childBlocks: (json['ChildBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChildBlock.fromJson(e as Map)) .toList(), endOffset: json['EndOffset'] as int?, @@ -5642,7 +5642,7 @@ class ClassifyDocumentResponse { factory ClassifyDocumentResponse.fromJson(Map json) { return ClassifyDocumentResponse( classes: (json['Classes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentClass.fromJson(e as Map)) .toList(), documentMetadata: json['DocumentMetadata'] != null @@ -5650,19 +5650,19 @@ class ClassifyDocumentResponse { json['DocumentMetadata'] as Map) : null, documentType: (json['DocumentType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentTypeListItem.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorsListItem.fromJson(e as Map)) .toList(), labels: (json['Labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentLabel.fromJson(e as Map)) .toList(), warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WarningsListItem.fromJson(e as Map)) .toList(), ); @@ -5698,7 +5698,7 @@ class ContainsPiiEntitiesResponse { factory ContainsPiiEntitiesResponse.fromJson(Map json) { return ContainsPiiEntitiesResponse( labels: (json['Labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityLabel.fromJson(e as Map)) .toList(), ); @@ -6883,7 +6883,7 @@ class DetectDominantLanguageResponse { factory DetectDominantLanguageResponse.fromJson(Map json) { return DetectDominantLanguageResponse( languages: (json['Languages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantLanguage.fromJson(e as Map)) .toList(), ); @@ -6945,7 +6945,7 @@ class DetectEntitiesResponse { factory DetectEntitiesResponse.fromJson(Map json) { return DetectEntitiesResponse( blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), documentMetadata: json['DocumentMetadata'] != null @@ -6953,15 +6953,15 @@ class DetectEntitiesResponse { json['DocumentMetadata'] as Map) : null, documentType: (json['DocumentType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentTypeListItem.fromJson(e as Map)) .toList(), entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorsListItem.fromJson(e as Map)) .toList(), ); @@ -6997,7 +6997,7 @@ class DetectKeyPhrasesResponse { factory DetectKeyPhrasesResponse.fromJson(Map json) { return DetectKeyPhrasesResponse( keyPhrases: (json['KeyPhrases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyPhrase.fromJson(e as Map)) .toList(), ); @@ -7025,7 +7025,7 @@ class DetectPiiEntitiesResponse { factory DetectPiiEntitiesResponse.fromJson(Map json) { return DetectPiiEntitiesResponse( entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PiiEntity.fromJson(e as Map)) .toList(), ); @@ -7089,7 +7089,7 @@ class DetectSyntaxResponse { factory DetectSyntaxResponse.fromJson(Map json) { return DetectSyntaxResponse( syntaxTokens: (json['SyntaxTokens'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyntaxToken.fromJson(e as Map)) .toList(), ); @@ -7115,7 +7115,7 @@ class DetectTargetedSentimentResponse { factory DetectTargetedSentimentResponse.fromJson(Map json) { return DetectTargetedSentimentResponse( entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetedSentimentEntity.fromJson(e as Map)) .toList(), @@ -7144,7 +7144,7 @@ class DetectToxicContentResponse { factory DetectToxicContentResponse.fromJson(Map json) { return DetectToxicContentResponse( resultList: (json['ResultList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ToxicLabels.fromJson(e as Map)) .toList(), ); @@ -7214,10 +7214,8 @@ class DocumentClassificationConfig { factory DocumentClassificationConfig.fromJson(Map json) { return DocumentClassificationConfig( mode: DocumentClassifierMode.fromString((json['Mode'] as String)), - labels: (json['Labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['Labels'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -7629,7 +7627,7 @@ class DocumentClassifierInputDataConfig { Map json) { return DocumentClassifierInputDataConfig( augmentedManifests: (json['AugmentedManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AugmentedManifestsListItem.fromJson(e as Map)) .toList(), @@ -8084,7 +8082,7 @@ class DocumentMetadata { factory DocumentMetadata.fromJson(Map json) { return DocumentMetadata( extractedCharacters: (json['ExtractedCharacters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtractedCharactersListItem.fromJson(e as Map)) .toList(), @@ -8236,7 +8234,7 @@ class DocumentReaderConfig { documentReadMode: (json['DocumentReadMode'] as String?) ?.let(DocumentReadMode.fromString), featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentReadFeatureTypes.fromString((e as String))) .toList(), ); @@ -8954,7 +8952,7 @@ class Entity { return Entity( beginOffset: json['BeginOffset'] as int?, blockReferences: (json['BlockReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BlockReference.fromJson(e as Map)) .toList(), endOffset: json['EndOffset'] as int?, @@ -9026,7 +9024,7 @@ class EntityRecognitionConfig { factory EntityRecognitionConfig.fromJson(Map json) { return EntityRecognitionConfig( entityTypes: (json['EntityTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => EntityTypesListItem.fromJson(e as Map)) .toList(), ); @@ -9325,7 +9323,7 @@ class EntityRecognizerInputDataConfig { factory EntityRecognizerInputDataConfig.fromJson(Map json) { return EntityRecognizerInputDataConfig( entityTypes: (json['EntityTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => EntityTypesListItem.fromJson(e as Map)) .toList(), annotations: json['Annotations'] != null @@ -9333,7 +9331,7 @@ class EntityRecognizerInputDataConfig { json['Annotations'] as Map) : null, augmentedManifests: (json['AugmentedManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AugmentedManifestsListItem.fromJson(e as Map)) .toList(), @@ -9394,7 +9392,7 @@ class EntityRecognizerMetadata { factory EntityRecognizerMetadata.fromJson(Map json) { return EntityRecognizerMetadata( entityTypes: (json['EntityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityRecognizerMetadataEntityTypesListItem.fromJson( e as Map)) .toList(), @@ -10028,7 +10026,7 @@ class EventsDetectionJobProperties { : null, submitTime: timeStampFromJson(json['SubmitTime']), targetEventTypes: (json['TargetEventTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -10551,7 +10549,7 @@ class Geometry { ? BoundingBox.fromJson(json['BoundingBox'] as Map) : null, polygon: (json['Polygon'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Point.fromJson(e as Map)) .toList(), ); @@ -10961,7 +10959,7 @@ class ListDatasetsResponse { factory ListDatasetsResponse.fromJson(Map json) { return ListDatasetsResponse( datasetPropertiesList: (json['DatasetPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetProperties.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -10997,7 +10995,7 @@ class ListDocumentClassificationJobsResponse { return ListDocumentClassificationJobsResponse( documentClassificationJobPropertiesList: (json['DocumentClassificationJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentClassificationJobProperties.fromJson( e as Map)) .toList(), @@ -11035,7 +11033,7 @@ class ListDocumentClassifierSummariesResponse { return ListDocumentClassifierSummariesResponse( documentClassifierSummariesList: (json['DocumentClassifierSummariesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentClassifierSummary.fromJson(e as Map)) .toList(), @@ -11071,7 +11069,7 @@ class ListDocumentClassifiersResponse { return ListDocumentClassifiersResponse( documentClassifierPropertiesList: (json['DocumentClassifierPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentClassifierProperties.fromJson( e as Map)) .toList(), @@ -11109,7 +11107,7 @@ class ListDominantLanguageDetectionJobsResponse { return ListDominantLanguageDetectionJobsResponse( dominantLanguageDetectionJobPropertiesList: (json['DominantLanguageDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantLanguageDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -11146,7 +11144,7 @@ class ListEndpointsResponse { factory ListEndpointsResponse.fromJson(Map json) { return ListEndpointsResponse( endpointPropertiesList: (json['EndpointPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointProperties.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11182,7 +11180,7 @@ class ListEntitiesDetectionJobsResponse { return ListEntitiesDetectionJobsResponse( entitiesDetectionJobPropertiesList: (json['EntitiesDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitiesDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -11220,7 +11218,7 @@ class ListEntityRecognizerSummariesResponse { return ListEntityRecognizerSummariesResponse( entityRecognizerSummariesList: (json['EntityRecognizerSummariesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityRecognizerSummary.fromJson(e as Map)) .toList(), @@ -11255,7 +11253,7 @@ class ListEntityRecognizersResponse { return ListEntityRecognizersResponse( entityRecognizerPropertiesList: (json['EntityRecognizerPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityRecognizerProperties.fromJson(e as Map)) .toList(), @@ -11290,7 +11288,7 @@ class ListEventsDetectionJobsResponse { return ListEventsDetectionJobsResponse( eventsDetectionJobPropertiesList: (json['EventsDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventsDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -11327,7 +11325,7 @@ class ListFlywheelIterationHistoryResponse { return ListFlywheelIterationHistoryResponse( flywheelIterationPropertiesList: (json['FlywheelIterationPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlywheelIterationProperties.fromJson(e as Map)) .toList(), @@ -11363,7 +11361,7 @@ class ListFlywheelsResponse { factory ListFlywheelsResponse.fromJson(Map json) { return ListFlywheelsResponse( flywheelSummaryList: (json['FlywheelSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlywheelSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11399,7 +11397,7 @@ class ListKeyPhrasesDetectionJobsResponse { return ListKeyPhrasesDetectionJobsResponse( keyPhrasesDetectionJobPropertiesList: (json['KeyPhrasesDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyPhrasesDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -11439,7 +11437,7 @@ class ListPiiEntitiesDetectionJobsResponse { nextToken: json['NextToken'] as String?, piiEntitiesDetectionJobPropertiesList: (json['PiiEntitiesDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PiiEntitiesDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -11478,7 +11476,7 @@ class ListSentimentDetectionJobsResponse { nextToken: json['NextToken'] as String?, sentimentDetectionJobPropertiesList: (json['SentimentDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SentimentDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -11518,7 +11516,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( resourceArn: json['ResourceArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11553,7 +11551,7 @@ class ListTargetedSentimentDetectionJobsResponse { nextToken: json['NextToken'] as String?, targetedSentimentDetectionJobPropertiesList: (json['TargetedSentimentDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetedSentimentDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -11590,7 +11588,7 @@ class ListTopicsDetectionJobsResponse { nextToken: json['NextToken'] as String?, topicsDetectionJobPropertiesList: (json['TopicsDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicsDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -12275,7 +12273,7 @@ class RedactionConfig { maskMode: (json['MaskMode'] as String?) ?.let(PiiEntitiesDetectionMaskMode.fromString), piiEntityTypes: (json['PiiEntityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PiiEntityType.fromString((e as String))) .toList(), ); @@ -12323,10 +12321,7 @@ class RelationshipsListItem { factory RelationshipsListItem.fromJson(Map json) { return RelationshipsListItem( - ids: (json['Ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['Ids'] as List?)?.nonNulls.map((e) => e as String).toList(), type: (json['Type'] as String?)?.let(RelationshipType.fromString), ); } @@ -13782,11 +13777,11 @@ class TargetedSentimentEntity { factory TargetedSentimentEntity.fromJson(Map json) { return TargetedSentimentEntity( descriptiveMentionIndex: (json['DescriptiveMentionIndex'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), mentions: (json['Mentions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetedSentimentMention.fromJson(e as Map)) .toList(), @@ -14238,7 +14233,7 @@ class ToxicLabels { factory ToxicLabels.fromJson(Map json) { return ToxicLabels( labels: (json['Labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ToxicContent.fromJson(e as Map)) .toList(), toxicity: json['Toxicity'] as double?, @@ -14384,13 +14379,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/comprehend_medical/v2018_10_30.dart b/aws_client/lib/src/generated/comprehend_medical/v2018_10_30.dart index 34e0e9ed0..ea90c8dfe 100644 --- a/aws_client/lib/src/generated/comprehend_medical/v2018_10_30.dart +++ b/aws_client/lib/src/generated/comprehend_medical/v2018_10_30.dart @@ -1241,7 +1241,7 @@ class Attribute { score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(EntitySubType.fromString), @@ -1688,13 +1688,13 @@ class DetectEntitiesResponse { factory DetectEntitiesResponse.fromJson(Map json) { return DetectEntitiesResponse( entities: (json['Entities'] as List) - .whereNotNull() + .nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), modelVersion: json['ModelVersion'] as String, paginationToken: json['PaginationToken'] as String?, unmappedAttributes: (json['UnmappedAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnmappedAttribute.fromJson(e as Map)) .toList(), ); @@ -1745,13 +1745,13 @@ class DetectEntitiesV2Response { factory DetectEntitiesV2Response.fromJson(Map json) { return DetectEntitiesV2Response( entities: (json['Entities'] as List) - .whereNotNull() + .nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), modelVersion: json['ModelVersion'] as String, paginationToken: json['PaginationToken'] as String?, unmappedAttributes: (json['UnmappedAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnmappedAttribute.fromJson(e as Map)) .toList(), ); @@ -1797,7 +1797,7 @@ class DetectPHIResponse { factory DetectPHIResponse.fromJson(Map json) { return DetectPHIResponse( entities: (json['Entities'] as List) - .whereNotNull() + .nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), modelVersion: json['ModelVersion'] as String, @@ -1865,7 +1865,7 @@ class Entity { factory Entity.fromJson(Map json) { return Entity( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), beginOffset: json['BeginOffset'] as int?, @@ -1875,7 +1875,7 @@ class Entity { score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(EntitySubType.fromString), @@ -2057,7 +2057,7 @@ class ICD10CMAttribute { score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ICD10CMTrait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(ICD10CMAttributeType.fromString), @@ -2214,7 +2214,7 @@ class ICD10CMEntity { factory ICD10CMEntity.fromJson(Map json) { return ICD10CMEntity( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ICD10CMAttribute.fromJson(e as Map)) .toList(), beginOffset: json['BeginOffset'] as int?, @@ -2222,14 +2222,14 @@ class ICD10CMEntity { (json['Category'] as String?)?.let(ICD10CMEntityCategory.fromString), endOffset: json['EndOffset'] as int?, iCD10CMConcepts: (json['ICD10CMConcepts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ICD10CMConcept.fromJson(e as Map)) .toList(), id: json['Id'] as int?, score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ICD10CMTrait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(ICD10CMEntityType.fromString), @@ -2385,7 +2385,7 @@ class InferICD10CMResponse { factory InferICD10CMResponse.fromJson(Map json) { return InferICD10CMResponse( entities: (json['Entities'] as List) - .whereNotNull() + .nonNulls .map((e) => ICD10CMEntity.fromJson(e as Map)) .toList(), modelVersion: json['ModelVersion'] as String?, @@ -2430,7 +2430,7 @@ class InferRxNormResponse { factory InferRxNormResponse.fromJson(Map json) { return InferRxNormResponse( entities: (json['Entities'] as List) - .whereNotNull() + .nonNulls .map((e) => RxNormEntity.fromJson(e as Map)) .toList(), modelVersion: json['ModelVersion'] as String?, @@ -2485,7 +2485,7 @@ class InferSNOMEDCTResponse { factory InferSNOMEDCTResponse.fromJson(Map json) { return InferSNOMEDCTResponse( entities: (json['Entities'] as List) - .whereNotNull() + .nonNulls .map((e) => SNOMEDCTEntity.fromJson(e as Map)) .toList(), characters: json['Characters'] != null @@ -2599,7 +2599,7 @@ class ListEntitiesDetectionV2JobsResponse { return ListEntitiesDetectionV2JobsResponse( comprehendMedicalAsyncJobPropertiesList: (json['ComprehendMedicalAsyncJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComprehendMedicalAsyncJobProperties.fromJson( e as Map)) .toList(), @@ -2637,7 +2637,7 @@ class ListICD10CMInferenceJobsResponse { return ListICD10CMInferenceJobsResponse( comprehendMedicalAsyncJobPropertiesList: (json['ComprehendMedicalAsyncJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComprehendMedicalAsyncJobProperties.fromJson( e as Map)) .toList(), @@ -2675,7 +2675,7 @@ class ListPHIDetectionJobsResponse { return ListPHIDetectionJobsResponse( comprehendMedicalAsyncJobPropertiesList: (json['ComprehendMedicalAsyncJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComprehendMedicalAsyncJobProperties.fromJson( e as Map)) .toList(), @@ -2713,7 +2713,7 @@ class ListRxNormInferenceJobsResponse { return ListRxNormInferenceJobsResponse( comprehendMedicalAsyncJobPropertiesList: (json['ComprehendMedicalAsyncJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComprehendMedicalAsyncJobProperties.fromJson( e as Map)) .toList(), @@ -2752,7 +2752,7 @@ class ListSNOMEDCTInferenceJobsResponse { return ListSNOMEDCTInferenceJobsResponse( comprehendMedicalAsyncJobPropertiesList: (json['ComprehendMedicalAsyncJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComprehendMedicalAsyncJobProperties.fromJson( e as Map)) .toList(), @@ -2902,7 +2902,7 @@ class RxNormAttribute { score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RxNormTrait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(RxNormAttributeType.fromString), @@ -3052,7 +3052,7 @@ class RxNormEntity { factory RxNormEntity.fromJson(Map json) { return RxNormEntity( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RxNormAttribute.fromJson(e as Map)) .toList(), beginOffset: json['BeginOffset'] as int?, @@ -3061,13 +3061,13 @@ class RxNormEntity { endOffset: json['EndOffset'] as int?, id: json['Id'] as int?, rxNormConcepts: (json['RxNormConcepts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RxNormConcept.fromJson(e as Map)) .toList(), score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RxNormTrait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(RxNormEntityType.fromString), @@ -3251,13 +3251,13 @@ class SNOMEDCTAttribute { relationshipType: (json['RelationshipType'] as String?) ?.let(SNOMEDCTRelationshipType.fromString), sNOMEDCTConcepts: (json['SNOMEDCTConcepts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SNOMEDCTConcept.fromJson(e as Map)) .toList(), score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SNOMEDCTTrait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(SNOMEDCTAttributeType.fromString), @@ -3452,7 +3452,7 @@ class SNOMEDCTEntity { factory SNOMEDCTEntity.fromJson(Map json) { return SNOMEDCTEntity( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SNOMEDCTAttribute.fromJson(e as Map)) .toList(), beginOffset: json['BeginOffset'] as int?, @@ -3461,13 +3461,13 @@ class SNOMEDCTEntity { endOffset: json['EndOffset'] as int?, id: json['Id'] as int?, sNOMEDCTConcepts: (json['SNOMEDCTConcepts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SNOMEDCTConcept.fromJson(e as Map)) .toList(), score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SNOMEDCTTrait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(SNOMEDCTEntityType.fromString), diff --git a/aws_client/lib/src/generated/compute_optimizer/v2019_11_01.dart b/aws_client/lib/src/generated/compute_optimizer/v2019_11_01.dart index d042176ed..d1783ab89 100644 --- a/aws_client/lib/src/generated/compute_optimizer/v2019_11_01.dart +++ b/aws_client/lib/src/generated/compute_optimizer/v2019_11_01.dart @@ -2396,18 +2396,18 @@ class AutoScalingGroupRecommendation { : null, finding: (json['finding'] as String?)?.let(Finding.fromString), inferredWorkloadTypes: (json['inferredWorkloadTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferredWorkloadType.fromString((e as String))) .toList(), lastRefreshTimestamp: timeStampFromJson(json['lastRefreshTimestamp']), lookBackPeriodInDays: json['lookBackPeriodInDays'] as double?, recommendationOptions: (json['recommendationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingGroupRecommendationOption.fromJson( e as Map)) .toList(), utilizationMetrics: (json['utilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationMetric.fromJson(e as Map)) .toList(), ); @@ -2550,7 +2550,7 @@ class AutoScalingGroupRecommendationOption { performanceRisk: json['performanceRisk'] as double?, projectedUtilizationMetrics: (json['projectedUtilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationMetric.fromJson(e as Map)) .toList(), rank: json['rank'] as int?, @@ -2946,7 +2946,7 @@ class DescribeRecommendationExportJobsResponse { return DescribeRecommendationExportJobsResponse( nextToken: json['nextToken'] as String?, recommendationExportJobs: (json['recommendationExportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationExportJob.fromJson(e as Map)) .toList(), @@ -3530,16 +3530,16 @@ class ECSServiceProjectedMetric { factory ECSServiceProjectedMetric.fromJson(Map json) { return ECSServiceProjectedMetric( lowerBoundValues: (json['lowerBoundValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), name: (json['name'] as String?)?.let(ECSServiceMetricName.fromString), timestamps: (json['timestamps'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), upperBoundValues: (json['upperBoundValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -3779,7 +3779,7 @@ class ECSServiceRecommendation { finding: (json['finding'] as String?) ?.let(ECSServiceRecommendationFinding.fromString), findingReasonCodes: (json['findingReasonCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceRecommendationFindingReasonCode.fromString( (e as String))) .toList(), @@ -3790,16 +3790,16 @@ class ECSServiceRecommendation { serviceArn: json['serviceArn'] as String?, serviceRecommendationOptions: (json['serviceRecommendationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceRecommendationOption.fromJson( e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), utilizationMetrics: (json['utilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceUtilizationMetric.fromJson(e as Map)) .toList(), @@ -3996,7 +3996,7 @@ class ECSServiceRecommendationOption { factory ECSServiceRecommendationOption.fromJson(Map json) { return ECSServiceRecommendationOption( containerRecommendations: (json['containerRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerRecommendation.fromJson(e as Map)) .toList(), @@ -4004,7 +4004,7 @@ class ECSServiceRecommendationOption { memory: json['memory'] as int?, projectedUtilizationMetrics: (json['projectedUtilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceProjectedUtilizationMetric.fromJson( e as Map)) .toList(), @@ -4069,7 +4069,7 @@ class ECSServiceRecommendedOptionProjectedMetric { Map json) { return ECSServiceRecommendedOptionProjectedMetric( projectedMetrics: (json['projectedMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceProjectedMetric.fromJson(e as Map)) .toList(), @@ -4190,15 +4190,15 @@ class EffectivePreferredResource { factory EffectivePreferredResource.fromJson(Map json) { return EffectivePreferredResource( effectiveIncludeList: (json['effectiveIncludeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), excludeList: (json['excludeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includeList: (json['includeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: (json['name'] as String?)?.let(PreferredResourceName.fromString), @@ -4307,7 +4307,7 @@ class EffectiveRecommendationPreferences { Map json) { return EffectiveRecommendationPreferences( cpuVendorArchitectures: (json['cpuVendorArchitectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CpuVendorArchitecture.fromString((e as String))) .toList(), enhancedInfrastructureMetrics: @@ -4322,7 +4322,7 @@ class EffectiveRecommendationPreferences { lookBackPeriod: (json['lookBackPeriod'] as String?) ?.let(LookBackPeriodPreference.fromString), preferredResources: (json['preferredResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectivePreferredResource.fromJson(e as Map)) .toList(), @@ -4331,7 +4331,7 @@ class EffectiveRecommendationPreferences { json['savingsEstimationMode'] as Map) : null, utilizationPreferences: (json['utilizationPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationPreference.fromJson(e as Map)) .toList(), ); @@ -5525,12 +5525,12 @@ class GetAutoScalingGroupRecommendationsResponse { return GetAutoScalingGroupRecommendationsResponse( autoScalingGroupRecommendations: (json['autoScalingGroupRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingGroupRecommendation.fromJson( e as Map)) .toList(), errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GetRecommendationError.fromJson(e as Map)) .toList(), @@ -5578,13 +5578,13 @@ class GetEBSVolumeRecommendationsResponse { Map json) { return GetEBSVolumeRecommendationsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GetRecommendationError.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, volumeRecommendations: (json['volumeRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeRecommendation.fromJson(e as Map)) .toList(), ); @@ -5629,12 +5629,12 @@ class GetEC2InstanceRecommendationsResponse { Map json) { return GetEC2InstanceRecommendationsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GetRecommendationError.fromJson(e as Map)) .toList(), instanceRecommendations: (json['instanceRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => InstanceRecommendation.fromJson(e as Map)) .toList(), @@ -5669,7 +5669,7 @@ class GetEC2RecommendationProjectedMetricsResponse { return GetEC2RecommendationProjectedMetricsResponse( recommendedOptionProjectedMetrics: (json['recommendedOptionProjectedMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendedOptionProjectedMetric.fromJson( e as Map)) .toList(), @@ -5700,7 +5700,7 @@ class GetECSServiceRecommendationProjectedMetricsResponse { return GetECSServiceRecommendationProjectedMetricsResponse( recommendedOptionProjectedMetrics: (json['recommendedOptionProjectedMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceRecommendedOptionProjectedMetric.fromJson( e as Map)) .toList(), @@ -5737,12 +5737,12 @@ class GetECSServiceRecommendationsResponse { Map json) { return GetECSServiceRecommendationsResponse( ecsServiceRecommendations: (json['ecsServiceRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceRecommendation.fromJson(e as Map)) .toList(), errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GetRecommendationError.fromJson(e as Map)) .toList(), @@ -5853,12 +5853,12 @@ class GetEffectiveRecommendationPreferencesResponse { lookBackPeriod: (json['lookBackPeriod'] as String?) ?.let(LookBackPeriodPreference.fromString), preferredResources: (json['preferredResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectivePreferredResource.fromJson(e as Map)) .toList(), utilizationPreferences: (json['utilizationPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationPreference.fromJson(e as Map)) .toList(), ); @@ -5964,7 +5964,7 @@ class GetEnrollmentStatusesForOrganizationResponse { Map json) { return GetEnrollmentStatusesForOrganizationResponse( accountEnrollmentStatuses: (json['accountEnrollmentStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountEnrollmentStatus.fromJson(e as Map)) .toList(), @@ -6003,7 +6003,7 @@ class GetLambdaFunctionRecommendationsResponse { return GetLambdaFunctionRecommendationsResponse( lambdaFunctionRecommendations: (json['lambdaFunctionRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LambdaFunctionRecommendation.fromJson(e as Map)) .toList(), @@ -6042,12 +6042,12 @@ class GetLicenseRecommendationsResponse { Map json) { return GetLicenseRecommendationsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GetRecommendationError.fromJson(e as Map)) .toList(), licenseRecommendations: (json['licenseRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseRecommendation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6129,7 +6129,7 @@ class GetRecommendationPreferencesResponse { nextToken: json['nextToken'] as String?, recommendationPreferencesDetails: (json['recommendationPreferencesDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationPreferencesDetail.fromJson( e as Map)) .toList(), @@ -6168,7 +6168,7 @@ class GetRecommendationSummariesResponse { return GetRecommendationSummariesResponse( nextToken: json['nextToken'] as String?, recommendationSummaries: (json['recommendationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationSummary.fromJson(e as Map)) .toList(), ); @@ -6228,7 +6228,7 @@ class GpuInfo { factory GpuInfo.fromJson(Map json) { return GpuInfo( gpus: (json['gpus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Gpu.fromJson(e as Map)) .toList(), ); @@ -6308,7 +6308,7 @@ class InferredWorkloadSaving { json['estimatedMonthlySavings'] as Map) : null, inferredWorkloadTypes: (json['inferredWorkloadTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferredWorkloadType.fromString((e as String))) .toList(), ); @@ -6730,13 +6730,13 @@ class InstanceRecommendation { : null, finding: (json['finding'] as String?)?.let(Finding.fromString), findingReasonCodes: (json['findingReasonCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceRecommendationFindingReasonCode.fromString((e as String))) .toList(), idle: (json['idle'] as String?)?.let(InstanceIdle.fromString), inferredWorkloadTypes: (json['inferredWorkloadTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferredWorkloadType.fromString((e as String))) .toList(), instanceArn: json['instanceArn'] as String?, @@ -6746,20 +6746,20 @@ class InstanceRecommendation { lastRefreshTimestamp: timeStampFromJson(json['lastRefreshTimestamp']), lookBackPeriodInDays: json['lookBackPeriodInDays'] as double?, recommendationOptions: (json['recommendationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceRecommendationOption.fromJson(e as Map)) .toList(), recommendationSources: (json['recommendationSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationSource.fromJson(e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), utilizationMetrics: (json['utilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationMetric.fromJson(e as Map)) .toList(), ); @@ -7053,12 +7053,12 @@ class InstanceRecommendationOption { (json['migrationEffort'] as String?)?.let(MigrationEffort.fromString), performanceRisk: json['performanceRisk'] as double?, platformDifferences: (json['platformDifferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformDifference.fromString((e as String))) .toList(), projectedUtilizationMetrics: (json['projectedUtilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationMetric.fromJson(e as Map)) .toList(), rank: json['rank'] as int?, @@ -7466,7 +7466,7 @@ class LambdaFunctionMemoryRecommendationOption { memorySize: json['memorySize'] as int?, projectedUtilizationMetrics: (json['projectedUtilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LambdaFunctionMemoryProjectedMetric.fromJson( e as Map)) .toList(), @@ -7685,7 +7685,7 @@ class LambdaFunctionRecommendation { finding: (json['finding'] as String?) ?.let(LambdaFunctionRecommendationFinding.fromString), findingReasonCodes: (json['findingReasonCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LambdaFunctionRecommendationFindingReasonCode.fromString( (e as String))) .toList(), @@ -7695,17 +7695,17 @@ class LambdaFunctionRecommendation { lookbackPeriodInDays: json['lookbackPeriodInDays'] as double?, memorySizeRecommendationOptions: (json['memorySizeRecommendationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LambdaFunctionMemoryRecommendationOption.fromJson( e as Map)) .toList(), numberOfInvocations: json['numberOfInvocations'] as int?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), utilizationMetrics: (json['utilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LambdaFunctionUtilizationMetric.fromJson( e as Map)) .toList(), @@ -8079,7 +8079,7 @@ class LicenseConfiguration { (json['licenseName'] as String?)?.let(LicenseName.fromString), licenseVersion: json['licenseVersion'] as String?, metricsSource: (json['metricsSource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricSource.fromJson(e as Map)) .toList(), numberOfCores: json['numberOfCores'] as int?, @@ -8283,20 +8283,20 @@ class LicenseRecommendation { : null, finding: (json['finding'] as String?)?.let(LicenseFinding.fromString), findingReasonCodes: (json['findingReasonCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseFindingReasonCode.fromString((e as String))) .toList(), lastRefreshTimestamp: timeStampFromJson(json['lastRefreshTimestamp']), licenseRecommendationOptions: (json['licenseRecommendationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseRecommendationOption.fromJson(e as Map)) .toList(), lookbackPeriodInDays: json['lookbackPeriodInDays'] as double?, resourceArn: json['resourceArn'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8792,13 +8792,11 @@ class ProjectedMetric { return ProjectedMetric( name: (json['name'] as String?)?.let(MetricName.fromString), timestamps: (json['timestamps'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as double) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as double).toList(), ); } @@ -9098,7 +9096,7 @@ class RecommendationPreferencesDetail { lookBackPeriod: (json['lookBackPeriod'] as String?) ?.let(LookBackPeriodPreference.fromString), preferredResources: (json['preferredResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectivePreferredResource.fromJson(e as Map)) .toList(), @@ -9110,7 +9108,7 @@ class RecommendationPreferencesDetail { ? Scope.fromJson(json['scope'] as Map) : null, utilizationPreferences: (json['utilizationPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationPreference.fromJson(e as Map)) .toList(), ); @@ -9242,7 +9240,7 @@ class RecommendationSummary { json['currentPerformanceRiskRatings'] as Map) : null, inferredWorkloadSavings: (json['inferredWorkloadSavings'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => InferredWorkloadSaving.fromJson(e as Map)) .toList(), @@ -9254,7 +9252,7 @@ class RecommendationSummary { json['savingsOpportunity'] as Map) : null, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Summary.fromJson(e as Map)) .toList(), ); @@ -9317,7 +9315,7 @@ class RecommendedOptionProjectedMetric { factory RecommendedOptionProjectedMetric.fromJson(Map json) { return RecommendedOptionProjectedMetric( projectedMetrics: (json['projectedMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectedMetric.fromJson(e as Map)) .toList(), rank: json['rank'] as int?, @@ -9664,7 +9662,7 @@ class ServiceConfiguration { autoScalingConfiguration: (json['autoScalingConfiguration'] as String?) ?.let(AutoScalingConfiguration.fromString), containerConfigurations: (json['containerConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ContainerConfiguration.fromJson(e as Map)) .toList(), @@ -9729,7 +9727,7 @@ class Summary { return Summary( name: (json['name'] as String?)?.let(Finding.fromString), reasonCodeSummaries: (json['reasonCodeSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReasonCodeSummary.fromJson(e as Map)) .toList(), value: json['value'] as double?, @@ -10189,17 +10187,17 @@ class VolumeRecommendation { lastRefreshTimestamp: timeStampFromJson(json['lastRefreshTimestamp']), lookBackPeriodInDays: json['lookBackPeriodInDays'] as double?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), utilizationMetrics: (json['utilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EBSUtilizationMetric.fromJson(e as Map)) .toList(), volumeArn: json['volumeArn'] as String?, volumeRecommendationOptions: (json['volumeRecommendationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeRecommendationOption.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/config_service/v2014_11_12.dart b/aws_client/lib/src/generated/config_service/v2014_11_12.dart index 8c8c8814d..91e30e6b7 100644 --- a/aws_client/lib/src/generated/config_service/v2014_11_12.dart +++ b/aws_client/lib/src/generated/config_service/v2014_11_12.dart @@ -5133,12 +5133,12 @@ class AccountAggregationSource { factory AccountAggregationSource.fromJson(Map json) { return AccountAggregationSource( accountIds: (json['AccountIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allAwsRegions: json['AllAwsRegions'] as bool?, awsRegions: (json['AwsRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6000,12 +6000,12 @@ class BatchGetAggregateResourceConfigResponse { Map json) { return BatchGetAggregateResourceConfigResponse( baseConfigurationItems: (json['BaseConfigurationItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BaseConfigurationItem.fromJson(e as Map)) .toList(), unprocessedResourceIdentifiers: (json['UnprocessedResourceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateResourceIdentifier.fromJson(e as Map)) .toList(), @@ -6043,11 +6043,11 @@ class BatchGetResourceConfigResponse { factory BatchGetResourceConfigResponse.fromJson(Map json) { return BatchGetResourceConfigResponse( baseConfigurationItems: (json['baseConfigurationItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BaseConfigurationItem.fromJson(e as Map)) .toList(), unprocessedResourceKeys: (json['unprocessedResourceKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceKey.fromJson(e as Map)) .toList(), ); @@ -6547,7 +6547,7 @@ class ConfigRule { createdBy: json['CreatedBy'] as String?, description: json['Description'] as String?, evaluationModes: (json['EvaluationModes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationModeConfiguration.fromJson(e as Map)) .toList(), @@ -7013,7 +7013,7 @@ class ConfigurationAggregator { factory ConfigurationAggregator.fromJson(Map json) { return ConfigurationAggregator( accountAggregationSources: (json['AccountAggregationSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAggregationSource.fromJson(e as Map)) .toList(), @@ -7211,11 +7211,11 @@ class ConfigurationItem { recordingFrequency: (json['recordingFrequency'] as String?) ?.let(RecordingFrequency.fromString), relatedEvents: (json['relatedEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), relationships: (json['relationships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Relationship.fromJson(e as Map)) .toList(), resourceCreationTime: timeStampFromJson(json['resourceCreationTime']), @@ -7709,7 +7709,7 @@ class ConformancePackDetail { conformancePackName: json['ConformancePackName'] as String, conformancePackInputParameters: (json['ConformancePackInputParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConformancePackInputParameter.fromJson(e as Map)) .toList(), @@ -7913,7 +7913,7 @@ class ConformancePackRuleCompliance { ?.let(ConformancePackComplianceType.fromString), configRuleName: json['ConfigRuleName'] as String?, controls: (json['Controls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8135,7 +8135,7 @@ class DeleteRemediationExceptionsResponse { Map json) { return DeleteRemediationExceptionsResponse( failedBatches: (json['FailedBatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedDeleteRemediationExceptionsBatch.fromJson( e as Map)) .toList(), @@ -8366,7 +8366,7 @@ class DescribeAggregateComplianceByConfigRulesResponse { return DescribeAggregateComplianceByConfigRulesResponse( aggregateComplianceByConfigRules: (json['AggregateComplianceByConfigRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateComplianceByConfigRule.fromJson( e as Map)) .toList(), @@ -8405,7 +8405,7 @@ class DescribeAggregateComplianceByConformancePacksResponse { return DescribeAggregateComplianceByConformancePacksResponse( aggregateComplianceByConformancePacks: (json['AggregateComplianceByConformancePacks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateComplianceByConformancePack.fromJson( e as Map)) .toList(), @@ -8444,7 +8444,7 @@ class DescribeAggregationAuthorizationsResponse { Map json) { return DescribeAggregationAuthorizationsResponse( aggregationAuthorizations: (json['AggregationAuthorizations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregationAuthorization.fromJson(e as Map)) .toList(), @@ -8481,7 +8481,7 @@ class DescribeComplianceByConfigRuleResponse { Map json) { return DescribeComplianceByConfigRuleResponse( complianceByConfigRules: (json['ComplianceByConfigRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ComplianceByConfigRule.fromJson(e as Map)) .toList(), @@ -8519,7 +8519,7 @@ class DescribeComplianceByResourceResponse { Map json) { return DescribeComplianceByResourceResponse( complianceByResources: (json['ComplianceByResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComplianceByResource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8556,7 +8556,7 @@ class DescribeConfigRuleEvaluationStatusResponse { return DescribeConfigRuleEvaluationStatusResponse( configRulesEvaluationStatus: (json['ConfigRulesEvaluationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigRuleEvaluationStatus.fromJson(e as Map)) .toList(), @@ -8613,7 +8613,7 @@ class DescribeConfigRulesResponse { factory DescribeConfigRulesResponse.fromJson(Map json) { return DescribeConfigRulesResponse( configRules: (json['ConfigRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigRule.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8647,7 +8647,7 @@ class DescribeConfigurationAggregatorSourcesStatusResponse { Map json) { return DescribeConfigurationAggregatorSourcesStatusResponse( aggregatedSourceStatusList: (json['AggregatedSourceStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AggregatedSourceStatus.fromJson(e as Map)) .toList(), @@ -8683,7 +8683,7 @@ class DescribeConfigurationAggregatorsResponse { Map json) { return DescribeConfigurationAggregatorsResponse( configurationAggregators: (json['ConfigurationAggregators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationAggregator.fromJson(e as Map)) .toList(), @@ -8717,7 +8717,7 @@ class DescribeConfigurationRecorderStatusResponse { return DescribeConfigurationRecorderStatusResponse( configurationRecordersStatus: (json['ConfigurationRecordersStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationRecorderStatus.fromJson(e as Map)) .toList(), @@ -8747,7 +8747,7 @@ class DescribeConfigurationRecordersResponse { Map json) { return DescribeConfigurationRecordersResponse( configurationRecorders: (json['ConfigurationRecorders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationRecorder.fromJson(e as Map)) .toList(), ); @@ -8785,7 +8785,7 @@ class DescribeConformancePackComplianceResponse { conformancePackName: json['ConformancePackName'] as String, conformancePackRuleComplianceList: (json['ConformancePackRuleComplianceList'] as List) - .whereNotNull() + .nonNulls .map((e) => ConformancePackRuleCompliance.fromJson( e as Map)) .toList(), @@ -8824,7 +8824,7 @@ class DescribeConformancePackStatusResponse { return DescribeConformancePackStatusResponse( conformancePackStatusDetails: (json['ConformancePackStatusDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConformancePackStatusDetail.fromJson(e as Map)) .toList(), @@ -8859,7 +8859,7 @@ class DescribeConformancePacksResponse { factory DescribeConformancePacksResponse.fromJson(Map json) { return DescribeConformancePacksResponse( conformancePackDetails: (json['ConformancePackDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConformancePackDetail.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8890,7 +8890,7 @@ class DescribeDeliveryChannelStatusResponse { Map json) { return DescribeDeliveryChannelStatusResponse( deliveryChannelsStatus: (json['DeliveryChannelsStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeliveryChannelStatus.fromJson(e as Map)) .toList(), ); @@ -8917,7 +8917,7 @@ class DescribeDeliveryChannelsResponse { factory DescribeDeliveryChannelsResponse.fromJson(Map json) { return DescribeDeliveryChannelsResponse( deliveryChannels: (json['DeliveryChannels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeliveryChannel.fromJson(e as Map)) .toList(), ); @@ -8950,7 +8950,7 @@ class DescribeOrganizationConfigRuleStatusesResponse { nextToken: json['NextToken'] as String?, organizationConfigRuleStatuses: (json['OrganizationConfigRuleStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationConfigRuleStatus.fromJson(e as Map)) .toList(), @@ -8986,7 +8986,7 @@ class DescribeOrganizationConfigRulesResponse { return DescribeOrganizationConfigRulesResponse( nextToken: json['NextToken'] as String?, organizationConfigRules: (json['OrganizationConfigRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => OrganizationConfigRule.fromJson(e as Map)) .toList(), @@ -9024,7 +9024,7 @@ class DescribeOrganizationConformancePackStatusesResponse { nextToken: json['NextToken'] as String?, organizationConformancePackStatuses: (json['OrganizationConformancePackStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationConformancePackStatus.fromJson( e as Map)) .toList(), @@ -9063,7 +9063,7 @@ class DescribeOrganizationConformancePacksResponse { nextToken: json['NextToken'] as String?, organizationConformancePacks: (json['OrganizationConformancePacks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationConformancePack.fromJson(e as Map)) .toList(), @@ -9099,7 +9099,7 @@ class DescribePendingAggregationRequestsResponse { return DescribePendingAggregationRequestsResponse( nextToken: json['NextToken'] as String?, pendingAggregationRequests: (json['PendingAggregationRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingAggregationRequest.fromJson(e as Map)) .toList(), @@ -9129,7 +9129,7 @@ class DescribeRemediationConfigurationsResponse { Map json) { return DescribeRemediationConfigurationsResponse( remediationConfigurations: (json['RemediationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationConfiguration.fromJson(e as Map)) .toList(), @@ -9163,7 +9163,7 @@ class DescribeRemediationExceptionsResponse { return DescribeRemediationExceptionsResponse( nextToken: json['NextToken'] as String?, remediationExceptions: (json['RemediationExceptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationException.fromJson(e as Map)) .toList(), ); @@ -9199,7 +9199,7 @@ class DescribeRemediationExecutionStatusResponse { nextToken: json['NextToken'] as String?, remediationExecutionStatuses: (json['RemediationExecutionStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationExecutionStatus.fromJson(e as Map)) .toList(), @@ -9235,7 +9235,7 @@ class DescribeRetentionConfigurationsResponse { return DescribeRetentionConfigurationsResponse( nextToken: json['NextToken'] as String?, retentionConfigurations: (json['RetentionConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RetentionConfiguration.fromJson(e as Map)) .toList(), @@ -9670,7 +9670,7 @@ class ExclusionByResourceTypes { factory ExclusionByResourceTypes.fromJson(Map json) { return ExclusionByResourceTypes( resourceTypes: (json['resourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceType.fromString((e as String))) .toList(), ); @@ -9775,7 +9775,7 @@ class FailedDeleteRemediationExceptionsBatch { Map json) { return FailedDeleteRemediationExceptionsBatch( failedItems: (json['FailedItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationExceptionResourceKey.fromJson( e as Map)) .toList(), @@ -9809,7 +9809,7 @@ class FailedRemediationBatch { factory FailedRemediationBatch.fromJson(Map json) { return FailedRemediationBatch( failedItems: (json['FailedItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationConfiguration.fromJson(e as Map)) .toList(), @@ -9843,7 +9843,7 @@ class FailedRemediationExceptionBatch { factory FailedRemediationExceptionBatch.fromJson(Map json) { return FailedRemediationExceptionBatch( failedItems: (json['FailedItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationException.fromJson(e as Map)) .toList(), failureMessage: json['FailureMessage'] as String?, @@ -9900,7 +9900,7 @@ class GetAggregateComplianceDetailsByConfigRuleResponse { Map json) { return GetAggregateComplianceDetailsByConfigRuleResponse( aggregateEvaluationResults: (json['AggregateEvaluationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateEvaluationResult.fromJson(e as Map)) .toList(), @@ -9940,7 +9940,7 @@ class GetAggregateConfigRuleComplianceSummaryResponse { Map json) { return GetAggregateConfigRuleComplianceSummaryResponse( aggregateComplianceCounts: (json['AggregateComplianceCounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateComplianceCount.fromJson(e as Map)) .toList(), @@ -9987,7 +9987,7 @@ class GetAggregateConformancePackComplianceSummaryResponse { return GetAggregateConformancePackComplianceSummaryResponse( aggregateConformancePackComplianceSummaries: (json['AggregateConformancePackComplianceSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateConformancePackComplianceSummary.fromJson( e as Map)) .toList(), @@ -10040,7 +10040,7 @@ class GetAggregateDiscoveredResourceCountsResponse { totalDiscoveredResources: json['TotalDiscoveredResources'] as int, groupByKey: json['GroupByKey'] as String?, groupedResourceCounts: (json['GroupedResourceCounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupedResourceCount.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -10107,7 +10107,7 @@ class GetComplianceDetailsByConfigRuleResponse { Map json) { return GetComplianceDetailsByConfigRuleResponse( evaluationResults: (json['EvaluationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationResult.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -10143,7 +10143,7 @@ class GetComplianceDetailsByResourceResponse { Map json) { return GetComplianceDetailsByResourceResponse( evaluationResults: (json['EvaluationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationResult.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -10206,7 +10206,7 @@ class GetComplianceSummaryByResourceTypeResponse { return GetComplianceSummaryByResourceTypeResponse( complianceSummariesByResourceType: (json['ComplianceSummariesByResourceType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComplianceSummaryByResourceType.fromJson( e as Map)) .toList(), @@ -10247,7 +10247,7 @@ class GetConformancePackComplianceDetailsResponse { conformancePackName: json['ConformancePackName'] as String, conformancePackRuleEvaluationResults: (json['ConformancePackRuleEvaluationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConformancePackEvaluationResult.fromJson( e as Map)) .toList(), @@ -10289,7 +10289,7 @@ class GetConformancePackComplianceSummaryResponse { return GetConformancePackComplianceSummaryResponse( conformancePackComplianceSummaryList: (json['ConformancePackComplianceSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConformancePackComplianceSummary.fromJson( e as Map)) .toList(), @@ -10373,7 +10373,7 @@ class GetDiscoveredResourceCountsResponse { return GetDiscoveredResourceCountsResponse( nextToken: json['nextToken'] as String?, resourceCounts: (json['resourceCounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceCount.fromJson(e as Map)) .toList(), totalDiscoveredResources: json['totalDiscoveredResources'] as int?, @@ -10412,7 +10412,7 @@ class GetOrganizationConfigRuleDetailedStatusResponse { nextToken: json['NextToken'] as String?, organizationConfigRuleDetailedStatus: (json[ 'OrganizationConfigRuleDetailedStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberAccountStatus.fromJson(e as Map)) .toList(), ); @@ -10451,7 +10451,7 @@ class GetOrganizationConformancePackDetailedStatusResponse { nextToken: json['NextToken'] as String?, organizationConformancePackDetailedStatuses: (json['OrganizationConformancePackDetailedStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationConformancePackDetailedStatus.fromJson( e as Map)) .toList(), @@ -10512,7 +10512,7 @@ class GetResourceConfigHistoryResponse { factory GetResourceConfigHistoryResponse.fromJson(Map json) { return GetResourceConfigHistoryResponse( configurationItems: (json['configurationItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10686,7 +10686,7 @@ class ListAggregateDiscoveredResourcesResponse { return ListAggregateDiscoveredResourcesResponse( nextToken: json['NextToken'] as String?, resourceIdentifiers: (json['ResourceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateResourceIdentifier.fromJson(e as Map)) .toList(), @@ -10722,7 +10722,7 @@ class ListConformancePackComplianceScoresResponse { return ListConformancePackComplianceScoresResponse( conformancePackComplianceScores: (json['ConformancePackComplianceScores'] as List) - .whereNotNull() + .nonNulls .map((e) => ConformancePackComplianceScore.fromJson( e as Map)) .toList(), @@ -10760,7 +10760,7 @@ class ListDiscoveredResourcesResponse { return ListDiscoveredResourcesResponse( nextToken: json['nextToken'] as String?, resourceIdentifiers: (json['resourceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceIdentifier.fromJson(e as Map)) .toList(), ); @@ -10794,7 +10794,7 @@ class ListResourceEvaluationsResponse { return ListResourceEvaluationsResponse( nextToken: json['NextToken'] as String?, resourceEvaluations: (json['ResourceEvaluations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceEvaluation.fromJson(e as Map)) .toList(), ); @@ -10832,7 +10832,7 @@ class ListStoredQueriesResponse { return ListStoredQueriesResponse( nextToken: json['NextToken'] as String?, storedQueryMetadata: (json['StoredQueryMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StoredQueryMetadata.fromJson(e as Map)) .toList(), ); @@ -10866,7 +10866,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11076,7 +11076,7 @@ class OrganizationAggregationSource { roleArn: json['RoleArn'] as String, allAwsRegions: json['AllAwsRegions'] as bool?, awsRegions: (json['AwsRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11139,7 +11139,7 @@ class OrganizationConfigRule { organizationConfigRuleArn: json['OrganizationConfigRuleArn'] as String, organizationConfigRuleName: json['OrganizationConfigRuleName'] as String, excludedAccounts: (json['ExcludedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdateTime: timeStampFromJson(json['LastUpdateTime']), @@ -11379,14 +11379,14 @@ class OrganizationConformancePack { json['OrganizationConformancePackName'] as String, conformancePackInputParameters: (json['ConformancePackInputParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConformancePackInputParameter.fromJson(e as Map)) .toList(), deliveryS3Bucket: json['DeliveryS3Bucket'] as String?, deliveryS3KeyPrefix: json['DeliveryS3KeyPrefix'] as String?, excludedAccounts: (json['ExcludedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11838,7 +11838,7 @@ class OrganizationCustomPolicyRuleMetadataNoPolicy { Map json) { return OrganizationCustomPolicyRuleMetadataNoPolicy( debugLogDeliveryAccounts: (json['DebugLogDeliveryAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['Description'] as String?, @@ -11847,14 +11847,14 @@ class OrganizationCustomPolicyRuleMetadataNoPolicy { ?.let(MaximumExecutionFrequency.fromString), organizationConfigRuleTriggerTypes: (json['OrganizationConfigRuleTriggerTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationConfigRuleTriggerTypeNoSN.fromString( (e as String))) .toList(), policyRuntime: json['PolicyRuntime'] as String?, resourceIdScope: json['ResourceIdScope'] as String?, resourceTypesScope: (json['ResourceTypesScope'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tagKeyScope: json['TagKeyScope'] as String?, @@ -11973,7 +11973,7 @@ class OrganizationCustomRuleMetadata { lambdaFunctionArn: json['LambdaFunctionArn'] as String, organizationConfigRuleTriggerTypes: (json['OrganizationConfigRuleTriggerTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => OrganizationConfigRuleTriggerType.fromString((e as String))) .toList(), @@ -11983,7 +11983,7 @@ class OrganizationCustomRuleMetadata { ?.let(MaximumExecutionFrequency.fromString), resourceIdScope: json['ResourceIdScope'] as String?, resourceTypesScope: (json['ResourceTypesScope'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tagKeyScope: json['TagKeyScope'] as String?, @@ -12080,7 +12080,7 @@ class OrganizationManagedRuleMetadata { ?.let(MaximumExecutionFrequency.fromString), resourceIdScope: json['ResourceIdScope'] as String?, resourceTypesScope: (json['ResourceTypesScope'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tagKeyScope: json['TagKeyScope'] as String?, @@ -12384,7 +12384,7 @@ class PutEvaluationsResponse { factory PutEvaluationsResponse.fromJson(Map json) { return PutEvaluationsResponse( failedEvaluations: (json['FailedEvaluations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Evaluation.fromJson(e as Map)) .toList(), ); @@ -12471,7 +12471,7 @@ class PutRemediationConfigurationsResponse { Map json) { return PutRemediationConfigurationsResponse( failedBatches: (json['FailedBatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FailedRemediationBatch.fromJson(e as Map)) .toList(), @@ -12498,7 +12498,7 @@ class PutRemediationExceptionsResponse { factory PutRemediationExceptionsResponse.fromJson(Map json) { return PutRemediationExceptionsResponse( failedBatches: (json['FailedBatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedRemediationExceptionBatch.fromJson( e as Map)) .toList(), @@ -12575,7 +12575,7 @@ class QueryInfo { factory QueryInfo.fromJson(Map json) { return QueryInfo( selectFields: (json['SelectFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldInfo.fromJson(e as Map)) .toList(), ); @@ -12956,7 +12956,7 @@ class RecordingGroup { json['recordingStrategy'] as Map) : null, resourceTypes: (json['resourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceType.fromString((e as String))) .toList(), ); @@ -13042,7 +13042,7 @@ class RecordingMode { recordingFrequency: RecordingFrequency.fromString((json['recordingFrequency'] as String)), recordingModeOverrides: (json['recordingModeOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecordingModeOverride.fromJson(e as Map)) .toList(), ); @@ -13113,7 +13113,7 @@ class RecordingModeOverride { recordingFrequency: RecordingFrequency.fromString((json['recordingFrequency'] as String)), resourceTypes: (json['resourceTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceType.fromString((e as String))) .toList(), description: json['description'] as String?, @@ -13582,7 +13582,7 @@ class RemediationExecutionStatus { state: (json['State'] as String?)?.let(RemediationExecutionState.fromString), stepDetails: (json['StepDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationExecutionStep.fromJson(e as Map)) .toList(), @@ -14649,7 +14649,7 @@ class Scope { return Scope( complianceResourceId: json['ComplianceResourceId'] as String?, complianceResourceTypes: (json['ComplianceResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tagKey: json['TagKey'] as String?, @@ -14695,10 +14695,8 @@ class SelectAggregateResourceConfigResponse { queryInfo: json['QueryInfo'] != null ? QueryInfo.fromJson(json['QueryInfo'] as Map) : null, - results: (json['Results'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + results: + (json['Results'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -14737,10 +14735,8 @@ class SelectResourceConfigResponse { queryInfo: json['QueryInfo'] != null ? QueryInfo.fromJson(json['QueryInfo'] as Map) : null, - results: (json['Results'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + results: + (json['Results'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -14847,7 +14843,7 @@ class Source { json['CustomPolicyDetails'] as Map) : null, sourceDetails: (json['SourceDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceDetail.fromJson(e as Map)) .toList(), sourceIdentifier: json['SourceIdentifier'] as String?, @@ -15024,7 +15020,7 @@ class StartRemediationExecutionResponse { Map json) { return StartRemediationExecutionResponse( failedItems: (json['FailedItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceKey.fromJson(e as Map)) .toList(), failureMessage: json['FailureMessage'] as String?, @@ -15075,10 +15071,8 @@ class StaticValue { factory StaticValue.fromJson(Map json) { return StaticValue( - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/connect/v2017_08_08.dart b/aws_client/lib/src/generated/connect/v2017_08_08.dart index 4bddd3e19..c0edbfa8d 100644 --- a/aws_client/lib/src/generated/connect/v2017_08_08.dart +++ b/aws_client/lib/src/generated/connect/v2017_08_08.dart @@ -14093,7 +14093,7 @@ class AgentConfig { factory AgentConfig.fromJson(Map json) { return AgentConfig( distributions: (json['Distributions'] as List) - .whereNotNull() + .nonNulls .map((e) => Distribution.fromJson(e as Map)) .toList(), ); @@ -14711,7 +14711,7 @@ class Application { factory Application.fromJson(Map json) { return Application( applicationPermissions: (json['ApplicationPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), namespace: json['Namespace'] as String?, @@ -15244,7 +15244,7 @@ class AudioQualityMetricsInfo { factory AudioQualityMetricsInfo.fromJson(Map json) { return AudioQualityMetricsInfo( potentialQualityIssues: (json['PotentialQualityIssues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), qualityScore: json['QualityScore'] as double?, @@ -15322,12 +15322,12 @@ class BatchAssociateAnalyticsDataSetResponse { Map json) { return BatchAssociateAnalyticsDataSetResponse( created: (json['Created'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsDataAssociationResult.fromJson( e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorResult.fromJson(e as Map)) .toList(), ); @@ -15358,12 +15358,10 @@ class BatchDisassociateAnalyticsDataSetResponse { factory BatchDisassociateAnalyticsDataSetResponse.fromJson( Map json) { return BatchDisassociateAnalyticsDataSetResponse( - deleted: (json['Deleted'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + deleted: + (json['Deleted'] as List?)?.nonNulls.map((e) => e as String).toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorResult.fromJson(e as Map)) .toList(), ); @@ -15395,11 +15393,11 @@ class BatchGetAttachedFileMetadataResponse { Map json) { return BatchGetAttachedFileMetadataResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachedFileError.fromJson(e as Map)) .toList(), files: (json['Files'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachedFile.fromJson(e as Map)) .toList(), ); @@ -15426,7 +15424,7 @@ class BatchGetFlowAssociationResponse { factory BatchGetFlowAssociationResponse.fromJson(Map json) { return BatchGetFlowAssociationResponse( flowAssociationSummaryList: (json['FlowAssociationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FlowAssociationSummary.fromJson(e as Map)) .toList(), @@ -15457,11 +15455,11 @@ class BatchPutContactResponse { factory BatchPutContactResponse.fromJson(Map json) { return BatchPutContactResponse( failedRequestList: (json['FailedRequestList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedRequest.fromJson(e as Map)) .toList(), successfulRequestList: (json['SuccessfulRequestList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuccessfulRequest.fromJson(e as Map)) .toList(), ); @@ -17164,7 +17162,7 @@ class CreateCaseActionDefinition { factory CreateCaseActionDefinition.fromJson(Map json) { return CreateCaseActionDefinition( fields: (json['Fields'] as List) - .whereNotNull() + .nonNulls .map((e) => FieldValue.fromJson(e as Map)) .toList(), templateId: json['TemplateId'] as String, @@ -18042,7 +18040,7 @@ class CurrentMetricResult { factory CurrentMetricResult.fromJson(Map json) { return CurrentMetricResult( collections: (json['Collections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CurrentMetricData.fromJson(e as Map)) .toList(), dimensions: json['Dimensions'] != null @@ -19701,7 +19699,7 @@ class EvaluationForm { evaluationFormId: json['EvaluationFormId'] as String, evaluationFormVersion: json['EvaluationFormVersion'] as int, items: (json['Items'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormItem.fromJson(e as Map)) .toList(), lastModifiedBy: json['LastModifiedBy'] as String, @@ -19796,7 +19794,7 @@ class EvaluationFormContent { evaluationFormId: json['EvaluationFormId'] as String, evaluationFormVersion: json['EvaluationFormVersion'] as int, items: (json['Items'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormItem.fromJson(e as Map)) .toList(), title: json['Title'] as String, @@ -19969,7 +19967,7 @@ class EvaluationFormNumericQuestionProperties { json['Automation'] as Map) : null, options: (json['Options'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationFormNumericQuestionOption.fromJson( e as Map)) .toList(), @@ -20210,7 +20208,7 @@ class EvaluationFormSection { factory EvaluationFormSection.fromJson(Map json) { return EvaluationFormSection( items: (json['Items'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormItem.fromJson(e as Map)) .toList(), refId: json['RefId'] as String, @@ -20257,7 +20255,7 @@ class EvaluationFormSingleSelectQuestionAutomation { Map json) { return EvaluationFormSingleSelectQuestionAutomation( options: (json['Options'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormSingleSelectQuestionAutomationOption.fromJson( e as Map)) @@ -20388,7 +20386,7 @@ class EvaluationFormSingleSelectQuestionProperties { Map json) { return EvaluationFormSingleSelectQuestionProperties( options: (json['Options'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormSingleSelectQuestionOption.fromJson( e as Map)) .toList(), @@ -20915,7 +20913,7 @@ class Expression { factory Expression.fromJson(Map json) { return Expression( andExpression: (json['AndExpression'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Expression.fromJson(e as Map)) .toList(), attributeCondition: json['AttributeCondition'] != null @@ -20923,7 +20921,7 @@ class Expression { json['AttributeCondition'] as Map) : null, orExpression: (json['OrExpression'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Expression.fromJson(e as Map)) .toList(), ); @@ -21399,7 +21397,7 @@ class GetCurrentMetricDataResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, dataSnapshotTime: timeStampFromJson(json['DataSnapshotTime']), metricResults: (json['MetricResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CurrentMetricResult.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21444,7 +21442,7 @@ class GetCurrentUserDataResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, userDataList: (json['UserDataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserData.fromJson(e as Map)) .toList(), ); @@ -21567,7 +21565,7 @@ class GetMetricDataResponse { factory GetMetricDataResponse.fromJson(Map json) { return GetMetricDataResponse( metricResults: (json['MetricResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => HistoricalMetricResult.fromJson(e as Map)) .toList(), @@ -21602,7 +21600,7 @@ class GetMetricDataV2Response { factory GetMetricDataV2Response.fromJson(Map json) { return GetMetricDataV2Response( metricResults: (json['MetricResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricResultV2.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21738,7 +21736,7 @@ class GetTaskTemplateResponse { : null, description: json['Description'] as String?, fields: (json['Fields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskTemplateField.fromJson(e as Map)) .toList(), instanceId: json['InstanceId'] as String?, @@ -22560,7 +22558,7 @@ class HistoricalMetricResult { factory HistoricalMetricResult.fromJson(Map json) { return HistoricalMetricResult( collections: (json['Collections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HistoricalMetricData.fromJson(e as Map)) .toList(), dimensions: json['Dimensions'] != null @@ -22624,7 +22622,7 @@ class HoursOfOperation { factory HoursOfOperation.fromJson(Map json) { return HoursOfOperation( config: (json['Config'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => HoursOfOperationConfig.fromJson(e as Map)) .toList(), @@ -23664,7 +23662,7 @@ class ListAgentStatusResponse { factory ListAgentStatusResponse.fromJson(Map json) { return ListAgentStatusResponse( agentStatusSummaryList: (json['AgentStatusSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentStatusSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -23703,7 +23701,7 @@ class ListAnalyticsDataAssociationsResponse { return ListAnalyticsDataAssociationsResponse( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsDataAssociationResult.fromJson( e as Map)) .toList(), @@ -23736,10 +23734,8 @@ class ListApprovedOriginsResponse { factory ListApprovedOriginsResponse.fromJson(Map json) { return ListApprovedOriginsResponse( nextToken: json['NextToken'] as String?, - origins: (json['Origins'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + origins: + (json['Origins'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -23770,7 +23766,7 @@ class ListBotsResponse { factory ListBotsResponse.fromJson(Map json) { return ListBotsResponse( lexBots: (json['LexBots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LexBotConfig.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -23807,7 +23803,7 @@ class ListContactEvaluationsResponse { factory ListContactEvaluationsResponse.fromJson(Map json) { return ListContactEvaluationsResponse( evaluationSummaryList: (json['EvaluationSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -23841,7 +23837,7 @@ class ListContactFlowModulesResponse { return ListContactFlowModulesResponse( contactFlowModulesSummaryList: (json['ContactFlowModulesSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactFlowModuleSummary.fromJson(e as Map)) .toList(), @@ -23876,7 +23872,7 @@ class ListContactFlowsResponse { factory ListContactFlowsResponse.fromJson(Map json) { return ListContactFlowsResponse( contactFlowSummaryList: (json['ContactFlowSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactFlowSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -23914,7 +23910,7 @@ class ListContactReferencesResponse { return ListContactReferencesResponse( nextToken: json['NextToken'] as String?, referenceSummaryList: (json['ReferenceSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceSummary.fromJson(e as Map)) .toList(), ); @@ -23947,7 +23943,7 @@ class ListDefaultVocabulariesResponse { factory ListDefaultVocabulariesResponse.fromJson(Map json) { return ListDefaultVocabulariesResponse( defaultVocabularyList: (json['DefaultVocabularyList'] as List) - .whereNotNull() + .nonNulls .map((e) => DefaultVocabulary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -23982,7 +23978,7 @@ class ListEvaluationFormVersionsResponse { return ListEvaluationFormVersionsResponse( evaluationFormVersionSummaryList: (json['EvaluationFormVersionSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormVersionSummary.fromJson( e as Map)) .toList(), @@ -24017,7 +24013,7 @@ class ListEvaluationFormsResponse { factory ListEvaluationFormsResponse.fromJson(Map json) { return ListEvaluationFormsResponse( evaluationFormSummaryList: (json['EvaluationFormSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -24064,7 +24060,7 @@ class ListFlowAssociationsResponse { factory ListFlowAssociationsResponse.fromJson(Map json) { return ListFlowAssociationsResponse( flowAssociationSummaryList: (json['FlowAssociationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FlowAssociationSummary.fromJson(e as Map)) .toList(), @@ -24100,7 +24096,7 @@ class ListHoursOfOperationsResponse { return ListHoursOfOperationsResponse( hoursOfOperationSummaryList: (json['HoursOfOperationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HoursOfOperationSummary.fromJson(e as Map)) .toList(), @@ -24135,7 +24131,7 @@ class ListInstanceAttributesResponse { factory ListInstanceAttributesResponse.fromJson(Map json) { return ListInstanceAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -24170,7 +24166,7 @@ class ListInstanceStorageConfigsResponse { return ListInstanceStorageConfigsResponse( nextToken: json['NextToken'] as String?, storageConfigs: (json['StorageConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceStorageConfig.fromJson(e as Map)) .toList(), ); @@ -24202,7 +24198,7 @@ class ListInstancesResponse { factory ListInstancesResponse.fromJson(Map json) { return ListInstancesResponse( instanceSummaryList: (json['InstanceSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -24238,7 +24234,7 @@ class ListIntegrationAssociationsResponse { return ListIntegrationAssociationsResponse( integrationAssociationSummaryList: (json['IntegrationAssociationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegrationAssociationSummary.fromJson( e as Map)) .toList(), @@ -24274,7 +24270,7 @@ class ListLambdaFunctionsResponse { factory ListLambdaFunctionsResponse.fromJson(Map json) { return ListLambdaFunctionsResponse( lambdaFunctions: (json['LambdaFunctions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -24308,7 +24304,7 @@ class ListLexBotsResponse { factory ListLexBotsResponse.fromJson(Map json) { return ListLexBotsResponse( lexBots: (json['LexBots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LexBot.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -24342,7 +24338,7 @@ class ListPhoneNumbersResponse { return ListPhoneNumbersResponse( nextToken: json['NextToken'] as String?, phoneNumberSummaryList: (json['PhoneNumberSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberSummary.fromJson(e as Map)) .toList(), ); @@ -24469,7 +24465,7 @@ class ListPhoneNumbersV2Response { return ListPhoneNumbersV2Response( listPhoneNumbersSummaryList: (json['ListPhoneNumbersSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListPhoneNumbersSummary.fromJson(e as Map)) .toList(), @@ -24506,7 +24502,7 @@ class ListPredefinedAttributesResponse { nextToken: json['NextToken'] as String?, predefinedAttributeSummaryList: (json['PredefinedAttributeSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredefinedAttributeSummary.fromJson(e as Map)) .toList(), @@ -24541,7 +24537,7 @@ class ListPromptsResponse { return ListPromptsResponse( nextToken: json['NextToken'] as String?, promptSummaryList: (json['PromptSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PromptSummary.fromJson(e as Map)) .toList(), ); @@ -24584,7 +24580,7 @@ class ListQueueQuickConnectsResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), nextToken: json['NextToken'] as String?, quickConnectSummaryList: (json['QuickConnectSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QuickConnectSummary.fromJson(e as Map)) .toList(), ); @@ -24623,7 +24619,7 @@ class ListQueuesResponse { return ListQueuesResponse( nextToken: json['NextToken'] as String?, queueSummaryList: (json['QueueSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueueSummary.fromJson(e as Map)) .toList(), ); @@ -24656,7 +24652,7 @@ class ListQuickConnectsResponse { return ListQuickConnectsResponse( nextToken: json['NextToken'] as String?, quickConnectSummaryList: (json['QuickConnectSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QuickConnectSummary.fromJson(e as Map)) .toList(), ); @@ -24700,7 +24696,7 @@ class ListRealtimeContactAnalysisSegmentsV2Response { channel: RealTimeContactAnalysisSupportedChannel.fromString( (json['Channel'] as String)), segments: (json['Segments'] as List) - .whereNotNull() + .nonNulls .map((e) => RealtimeContactAnalysisSegment.fromJson( e as Map)) .toList(), @@ -24753,7 +24749,7 @@ class ListRoutingProfileQueuesResponse { nextToken: json['NextToken'] as String?, routingProfileQueueConfigSummaryList: (json['RoutingProfileQueueConfigSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoutingProfileQueueConfigSummary.fromJson( e as Map)) .toList(), @@ -24795,7 +24791,7 @@ class ListRoutingProfilesResponse { return ListRoutingProfilesResponse( nextToken: json['NextToken'] as String?, routingProfileSummaryList: (json['RoutingProfileSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoutingProfileSummary.fromJson(e as Map)) .toList(), ); @@ -24828,7 +24824,7 @@ class ListRulesResponse { factory ListRulesResponse.fromJson(Map json) { return ListRulesResponse( ruleSummaryList: (json['RuleSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -24862,7 +24858,7 @@ class ListSecurityKeysResponse { return ListSecurityKeysResponse( nextToken: json['NextToken'] as String?, securityKeys: (json['SecurityKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityKey.fromJson(e as Map)) .toList(), ); @@ -24903,7 +24899,7 @@ class ListSecurityProfileApplicationsResponse { Map json) { return ListSecurityProfileApplicationsResponse( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), lastModifiedRegion: json['LastModifiedRegion'] as String?, @@ -24958,7 +24954,7 @@ class ListSecurityProfilePermissionsResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), nextToken: json['NextToken'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -24996,7 +24992,7 @@ class ListSecurityProfilesResponse { return ListSecurityProfilesResponse( nextToken: json['NextToken'] as String?, securityProfileSummaryList: (json['SecurityProfileSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SecurityProfileSummary.fromJson(e as Map)) .toList(), @@ -25057,7 +25053,7 @@ class ListTaskTemplatesResponse { return ListTaskTemplatesResponse( nextToken: json['NextToken'] as String?, taskTemplates: (json['TaskTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskTemplateMetadata.fromJson(e as Map)) .toList(), ); @@ -25093,7 +25089,7 @@ class ListTrafficDistributionGroupUsersResponse { nextToken: json['NextToken'] as String?, trafficDistributionGroupUserSummaryList: (json['TrafficDistributionGroupUserSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrafficDistributionGroupUserSummary.fromJson( e as Map)) .toList(), @@ -25133,7 +25129,7 @@ class ListTrafficDistributionGroupsResponse { nextToken: json['NextToken'] as String?, trafficDistributionGroupSummaryList: (json['TrafficDistributionGroupSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrafficDistributionGroupSummary.fromJson( e as Map)) .toList(), @@ -25170,7 +25166,7 @@ class ListUseCasesResponse { return ListUseCasesResponse( nextToken: json['NextToken'] as String?, useCaseSummaryList: (json['UseCaseSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UseCase.fromJson(e as Map)) .toList(), ); @@ -25204,7 +25200,7 @@ class ListUserHierarchyGroupsResponse { nextToken: json['NextToken'] as String?, userHierarchyGroupSummaryList: (json['UserHierarchyGroupSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HierarchyGroupSummary.fromJson(e as Map)) .toList(), ); @@ -25248,7 +25244,7 @@ class ListUserProficienciesResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), nextToken: json['NextToken'] as String?, userProficiencyList: (json['UserProficiencyList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserProficiency.fromJson(e as Map)) .toList(), ); @@ -25287,7 +25283,7 @@ class ListUsersResponse { return ListUsersResponse( nextToken: json['NextToken'] as String?, userSummaryList: (json['UserSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserSummary.fromJson(e as Map)) .toList(), ); @@ -25320,7 +25316,7 @@ class ListViewVersionsResponse { return ListViewVersionsResponse( nextToken: json['NextToken'] as String?, viewVersionSummaryList: (json['ViewVersionSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ViewVersionSummary.fromJson(e as Map)) .toList(), ); @@ -25354,7 +25350,7 @@ class ListViewsResponse { return ListViewsResponse( nextToken: json['NextToken'] as String?, viewsSummaryList: (json['ViewsSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ViewSummary.fromJson(e as Map)) .toList(), ); @@ -25639,7 +25635,7 @@ class MetricFilterV2 { return MetricFilterV2( metricFilterKey: json['MetricFilterKey'] as String?, metricFilterValues: (json['MetricFilterValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), negate: json['Negate'] as bool?, @@ -25721,7 +25717,7 @@ class MetricResultV2 { factory MetricResultV2.fromJson(Map json) { return MetricResultV2( collections: (json['Collections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDataV2.fromJson(e as Map)) .toList(), dimensions: (json['Dimensions'] as Map?) @@ -25768,12 +25764,12 @@ class MetricV2 { factory MetricV2.fromJson(Map json) { return MetricV2( metricFilters: (json['MetricFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricFilterV2.fromJson(e as Map)) .toList(), name: json['Name'] as String?, threshold: (json['Threshold'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThresholdV2.fromJson(e as Map)) .toList(), ); @@ -25930,10 +25926,8 @@ class NotificationRecipientType { factory NotificationRecipientType.fromJson(Map json) { return NotificationRecipientType( - userIds: (json['UserIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + userIds: + (json['UserIds'] as List?)?.nonNulls.map((e) => e as String).toList(), userTags: (json['UserTags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), ); @@ -26928,7 +26922,7 @@ class PredefinedAttributeValues { factory PredefinedAttributeValues.fromJson(Map json) { return PredefinedAttributeValues( stringList: (json['StringList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -27849,7 +27843,7 @@ class RealTimeContactAnalysisCategoryDetails { Map json) { return RealTimeContactAnalysisCategoryDetails( pointsOfInterest: (json['PointsOfInterest'] as List) - .whereNotNull() + .nonNulls .map((e) => RealTimeContactAnalysisPointOfInterest.fromJson( e as Map)) .toList(), @@ -27910,7 +27904,7 @@ class RealTimeContactAnalysisIssueDetected { Map json) { return RealTimeContactAnalysisIssueDetected( transcriptItems: (json['TranscriptItems'] as List) - .whereNotNull() + .nonNulls .map((e) => RealTimeContactAnalysisTranscriptItemWithContent.fromJson( e as Map)) .toList(), @@ -27956,7 +27950,7 @@ class RealTimeContactAnalysisPointOfInterest { Map json) { return RealTimeContactAnalysisPointOfInterest( transcriptItems: (json['TranscriptItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RealTimeContactAnalysisTranscriptItemWithCharacterOffsets .fromJson(e as Map)) .toList(), @@ -28006,7 +28000,7 @@ class RealTimeContactAnalysisSegmentAttachments { Map json) { return RealTimeContactAnalysisSegmentAttachments( attachments: (json['Attachments'] as List) - .whereNotNull() + .nonNulls .map((e) => RealTimeContactAnalysisAttachment.fromJson( e as Map)) .toList(), @@ -28144,7 +28138,7 @@ class RealTimeContactAnalysisSegmentIssues { Map json) { return RealTimeContactAnalysisSegmentIssues( issuesDetected: (json['IssuesDetected'] as List) - .whereNotNull() + .nonNulls .map((e) => RealTimeContactAnalysisIssueDetected.fromJson( e as Map)) .toList(), @@ -28354,7 +28348,7 @@ class RealTimeContactAnalysisTranscriptItemRedaction { Map json) { return RealTimeContactAnalysisTranscriptItemRedaction( characterOffsets: (json['CharacterOffsets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RealTimeContactAnalysisCharacterInterval.fromJson( e as Map)) .toList(), @@ -28800,7 +28794,7 @@ class RoutingCriteria { activationTimestamp: timeStampFromJson(json['ActivationTimestamp']), index: json['Index'] as int?, steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Step.fromJson(e as Map)) .toList(), ); @@ -28912,7 +28906,7 @@ class RoutingProfile { agentAvailabilityTimer: (json['AgentAvailabilityTimer'] as String?) ?.let(AgentAvailabilityTimer.fromString), associatedQueueIds: (json['AssociatedQueueIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultOutboundQueueId: json['DefaultOutboundQueueId'] as String?, @@ -28922,7 +28916,7 @@ class RoutingProfile { lastModifiedRegion: json['LastModifiedRegion'] as String?, lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), mediaConcurrencies: (json['MediaConcurrencies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaConcurrency.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -29291,7 +29285,7 @@ class Rule { factory Rule.fromJson(Map json) { return Rule( actions: (json['Actions'] as List) - .whereNotNull() + .nonNulls .map((e) => RuleAction.fromJson(e as Map)) .toList(), createdTime: nonNullableTimeStampFromJson(json['CreatedTime'] as Object), @@ -29538,7 +29532,7 @@ class RuleSummary { factory RuleSummary.fromJson(Map json) { return RuleSummary( actionSummaries: (json['ActionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ActionSummary.fromJson(e as Map)) .toList(), createdTime: nonNullableTimeStampFromJson(json['CreatedTime'] as Object), @@ -29672,7 +29666,7 @@ class SearchAvailablePhoneNumbersResponse { Map json) { return SearchAvailablePhoneNumbersResponse( availableNumbersList: (json['AvailableNumbersList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AvailableNumberSummary.fromJson(e as Map)) .toList(), @@ -29712,7 +29706,7 @@ class SearchContactFlowModulesResponse { return SearchContactFlowModulesResponse( approximateTotalCount: json['ApproximateTotalCount'] as int?, contactFlowModules: (json['ContactFlowModules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactFlowModule.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -29753,7 +29747,7 @@ class SearchContactFlowsResponse { return SearchContactFlowsResponse( approximateTotalCount: json['ApproximateTotalCount'] as int?, contactFlows: (json['ContactFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactFlow.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -29808,7 +29802,7 @@ class SearchContactsResponse { factory SearchContactsResponse.fromJson(Map json) { return SearchContactsResponse( contacts: (json['Contacts'] as List) - .whereNotNull() + .nonNulls .map((e) => ContactSearchSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -29962,7 +29956,7 @@ class SearchHoursOfOperationsResponse { return SearchHoursOfOperationsResponse( approximateTotalCount: json['ApproximateTotalCount'] as int?, hoursOfOperations: (json['HoursOfOperations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HoursOfOperation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -30006,7 +30000,7 @@ class SearchPredefinedAttributesResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, predefinedAttributes: (json['PredefinedAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredefinedAttribute.fromJson(e as Map)) .toList(), ); @@ -30048,7 +30042,7 @@ class SearchPromptsResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, prompts: (json['Prompts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Prompt.fromJson(e as Map)) .toList(), ); @@ -30089,7 +30083,7 @@ class SearchQueuesResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, queues: (json['Queues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Queue.fromJson(e as Map)) .toList(), ); @@ -30130,7 +30124,7 @@ class SearchQuickConnectsResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, quickConnects: (json['QuickConnects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QuickConnect.fromJson(e as Map)) .toList(), ); @@ -30166,7 +30160,7 @@ class SearchResourceTagsResponse { return SearchResourceTagsResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagSet.fromJson(e as Map)) .toList(), ); @@ -30204,7 +30198,7 @@ class SearchRoutingProfilesResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, routingProfiles: (json['RoutingProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoutingProfile.fromJson(e as Map)) .toList(), ); @@ -30245,7 +30239,7 @@ class SearchSecurityProfilesResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, securityProfiles: (json['SecurityProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityProfileSearchSummary.fromJson(e as Map)) .toList(), @@ -30287,7 +30281,7 @@ class SearchUsersResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserSearchSummary.fromJson(e as Map)) .toList(), ); @@ -30323,7 +30317,7 @@ class SearchVocabulariesResponse { return SearchVocabulariesResponse( nextToken: json['NextToken'] as String?, vocabularySummaryList: (json['VocabularySummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VocabularySummary.fromJson(e as Map)) .toList(), ); @@ -30513,7 +30507,7 @@ class SecurityProfile { description: json['Description'] as String?, hierarchyRestrictedResources: (json['HierarchyRestrictedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), id: json['Id'] as String?, @@ -30522,7 +30516,7 @@ class SecurityProfile { organizationResourceId: json['OrganizationResourceId'] as String?, securityProfileName: json['SecurityProfileName'] as String?, tagRestrictedResources: (json['TagRestrictedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as Map?) @@ -30860,7 +30854,7 @@ class SignInConfig { factory SignInConfig.fromJson(Map json) { return SignInConfig( distributions: (json['Distributions'] as List) - .whereNotNull() + .nonNulls .map((e) => SignInDistribution.fromJson(e as Map)) .toList(), ); @@ -31769,15 +31763,15 @@ class TaskTemplateConstraints { factory TaskTemplateConstraints.fromJson(Map json) { return TaskTemplateConstraints( invisibleFields: (json['InvisibleFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InvisibleFieldInfo.fromJson(e as Map)) .toList(), readOnlyFields: (json['ReadOnlyFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReadOnlyFieldInfo.fromJson(e as Map)) .toList(), requiredFields: (json['RequiredFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RequiredFieldInfo.fromJson(e as Map)) .toList(), ); @@ -31840,7 +31834,7 @@ class TaskTemplateDefaults { factory TaskTemplateDefaults.fromJson(Map json) { return TaskTemplateDefaults( defaultFieldValues: (json['DefaultFieldValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskTemplateDefaultFieldValue.fromJson(e as Map)) .toList(), @@ -31882,7 +31876,7 @@ class TaskTemplateField { json['Id'] as Map), description: json['Description'] as String?, singleSelectOptions: (json['SingleSelectOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['Type'] as String?)?.let(TaskTemplateFieldType.fromString), @@ -32048,7 +32042,7 @@ class TelephonyConfig { factory TelephonyConfig.fromJson(Map json) { return TelephonyConfig( distributions: (json['Distributions'] as List) - .whereNotNull() + .nonNulls .map((e) => Distribution.fromJson(e as Map)) .toList(), ); @@ -32543,7 +32537,7 @@ class UpdateCaseActionDefinition { factory UpdateCaseActionDefinition.fromJson(Map json) { return UpdateCaseActionDefinition( fields: (json['Fields'] as List) - .whereNotNull() + .nonNulls .map((e) => FieldValue.fromJson(e as Map)) .toList(), ); @@ -32893,7 +32887,7 @@ class UpdateTaskTemplateResponse { : null, description: json['Description'] as String?, fields: (json['Fields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskTemplateField.fromJson(e as Map)) .toList(), id: json['Id'] as String?, @@ -33179,7 +33173,7 @@ class User { : null, routingProfileId: json['RoutingProfileId'] as String?, securityProfileIds: (json['SecurityProfileIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as Map?) @@ -33278,7 +33272,7 @@ class UserData { (json['AvailableSlotsByChannel'] as Map?) ?.map((k, e) => MapEntry(Channel.fromString(k), e as int)), contacts: (json['Contacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentContactReference.fromJson(e as Map)) .toList(), hierarchyPath: json['HierarchyPath'] != null @@ -33800,7 +33794,7 @@ class UserSearchSummary { : null, routingProfileId: json['RoutingProfileId'] as String?, securityProfileIds: (json['SecurityProfileIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as Map?) @@ -34038,10 +34032,8 @@ class ViewContent { factory ViewContent.fromJson(Map json) { return ViewContent( - actions: (json['Actions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List?)?.nonNulls.map((e) => e as String).toList(), inputSchema: json['InputSchema'] as String?, template: json['Template'] as String?, ); diff --git a/aws_client/lib/src/generated/connect_campaigns/v2021_01_30.dart b/aws_client/lib/src/generated/connect_campaigns/v2021_01_30.dart index 41d910849..152e15787 100644 --- a/aws_client/lib/src/generated/connect_campaigns/v2021_01_30.dart +++ b/aws_client/lib/src/generated/connect_campaigns/v2021_01_30.dart @@ -1005,12 +1005,12 @@ class GetCampaignStateBatchResponse { factory GetCampaignStateBatchResponse.fromJson(Map json) { return GetCampaignStateBatchResponse( failedRequests: (json['failedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCampaignStateResponse.fromJson(e as Map)) .toList(), successfulRequests: (json['successfulRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuccessfulCampaignStateResponse.fromJson( e as Map)) .toList(), @@ -1259,7 +1259,7 @@ class ListCampaignsResponse { factory ListCampaignsResponse.fromJson(Map json) { return ListCampaignsResponse( campaignSummaryList: (json['campaignSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CampaignSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1409,11 +1409,11 @@ class PutDialRequestBatchResponse { factory PutDialRequestBatchResponse.fromJson(Map json) { return PutDialRequestBatchResponse( failedRequests: (json['failedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedRequest.fromJson(e as Map)) .toList(), successfulRequests: (json['successfulRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuccessfulRequest.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/connect_cases/v2022_10_03.dart b/aws_client/lib/src/generated/connect_cases/v2022_10_03.dart index 5a2ff9921..63552bc7e 100644 --- a/aws_client/lib/src/generated/connect_cases/v2022_10_03.dart +++ b/aws_client/lib/src/generated/connect_cases/v2022_10_03.dart @@ -1546,7 +1546,7 @@ class AuditEvent { return AuditEvent( eventId: json['eventId'] as String, fields: (json['fields'] as List) - .whereNotNull() + .nonNulls .map((e) => AuditEventField.fromJson(e as Map)) .toList(), performedTime: @@ -1771,11 +1771,11 @@ class BatchGetFieldResponse { factory BatchGetFieldResponse.fromJson(Map json) { return BatchGetFieldResponse( errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => FieldError.fromJson(e as Map)) .toList(), fields: (json['fields'] as List) - .whereNotNull() + .nonNulls .map((e) => GetFieldResponse.fromJson(e as Map)) .toList(), ); @@ -1802,7 +1802,7 @@ class BatchPutFieldOptionsResponse { factory BatchPutFieldOptionsResponse.fromJson(Map json) { return BatchPutFieldOptionsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldOptionError.fromJson(e as Map)) .toList(), ); @@ -1828,7 +1828,7 @@ class CaseEventIncludedData { factory CaseEventIncludedData.fromJson(Map json) { return CaseEventIncludedData( fields: (json['fields'] as List) - .whereNotNull() + .nonNulls .map((e) => FieldIdentifier.fromJson(e as Map)) .toList(), ); @@ -2513,7 +2513,7 @@ class FieldGroup { factory FieldGroup.fromJson(Map json) { return FieldGroup( fields: (json['fields'] as List) - .whereNotNull() + .nonNulls .map((e) => FieldItem.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -2883,7 +2883,7 @@ class GetCaseAuditEventsResponse { factory GetCaseAuditEventsResponse.fromJson(Map json) { return GetCaseAuditEventsResponse( auditEvents: (json['auditEvents'] as List) - .whereNotNull() + .nonNulls .map((e) => AuditEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2950,7 +2950,7 @@ class GetCaseResponse { factory GetCaseResponse.fromJson(Map json) { return GetCaseResponse( fields: (json['fields'] as List) - .whereNotNull() + .nonNulls .map((e) => FieldValue.fromJson(e as Map)) .toList(), templateId: json['templateId'] as String, @@ -3262,7 +3262,7 @@ class GetTemplateResponse { json['layoutConfiguration'] as Map) : null, requiredFields: (json['requiredFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RequiredField.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -3361,7 +3361,7 @@ class LayoutSections { factory LayoutSections.fromJson(Map json) { return LayoutSections( sections: (json['sections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Section.fromJson(e as Map)) .toList(), ); @@ -3428,7 +3428,7 @@ class ListCasesForContactResponse { factory ListCasesForContactResponse.fromJson(Map json) { return ListCasesForContactResponse( cases: (json['cases'] as List) - .whereNotNull() + .nonNulls .map((e) => CaseSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3461,7 +3461,7 @@ class ListDomainsResponse { factory ListDomainsResponse.fromJson(Map json) { return ListDomainsResponse( domains: (json['domains'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3494,7 +3494,7 @@ class ListFieldOptionsResponse { factory ListFieldOptionsResponse.fromJson(Map json) { return ListFieldOptionsResponse( options: (json['options'] as List) - .whereNotNull() + .nonNulls .map((e) => FieldOption.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3527,7 +3527,7 @@ class ListFieldsResponse { factory ListFieldsResponse.fromJson(Map json) { return ListFieldsResponse( fields: (json['fields'] as List) - .whereNotNull() + .nonNulls .map((e) => FieldSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3560,7 +3560,7 @@ class ListLayoutsResponse { factory ListLayoutsResponse.fromJson(Map json) { return ListLayoutsResponse( layouts: (json['layouts'] as List) - .whereNotNull() + .nonNulls .map((e) => LayoutSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3617,7 +3617,7 @@ class ListTemplatesResponse { factory ListTemplatesResponse.fromJson(Map json) { return ListTemplatesResponse( templates: (json['templates'] as List) - .whereNotNull() + .nonNulls .map((e) => TemplateSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3844,7 +3844,7 @@ class SearchCasesResponse { factory SearchCasesResponse.fromJson(Map json) { return SearchCasesResponse( cases: (json['cases'] as List) - .whereNotNull() + .nonNulls .map((e) => SearchCasesResponseItem.fromJson(e as Map)) .toList(), @@ -3888,7 +3888,7 @@ class SearchCasesResponseItem { return SearchCasesResponseItem( caseId: json['caseId'] as String, fields: (json['fields'] as List) - .whereNotNull() + .nonNulls .map((e) => FieldValue.fromJson(e as Map)) .toList(), templateId: json['templateId'] as String, @@ -3927,7 +3927,7 @@ class SearchRelatedItemsResponse { factory SearchRelatedItemsResponse.fromJson(Map json) { return SearchRelatedItemsResponse( relatedItems: (json['relatedItems'] as List) - .whereNotNull() + .nonNulls .map((e) => SearchRelatedItemsResponseItem.fromJson( e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/connect_contact_lens/v2020_08_21.dart b/aws_client/lib/src/generated/connect_contact_lens/v2020_08_21.dart index 5173d3b5e..00f912462 100644 --- a/aws_client/lib/src/generated/connect_contact_lens/v2020_08_21.dart +++ b/aws_client/lib/src/generated/connect_contact_lens/v2020_08_21.dart @@ -125,7 +125,7 @@ class Categories { factory Categories.fromJson(Map json) { return Categories( matchedCategories: (json['MatchedCategories'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), matchedDetails: (json['MatchedDetails'] as Map).map( @@ -156,7 +156,7 @@ class CategoryDetails { factory CategoryDetails.fromJson(Map json) { return CategoryDetails( pointsOfInterest: (json['PointsOfInterest'] as List) - .whereNotNull() + .nonNulls .map((e) => PointOfInterest.fromJson(e as Map)) .toList(), ); @@ -258,7 +258,7 @@ class ListRealtimeContactAnalysisSegmentsResponse { Map json) { return ListRealtimeContactAnalysisSegmentsResponse( segments: (json['Segments'] as List) - .whereNotNull() + .nonNulls .map((e) => RealtimeContactAnalysisSegment.fromJson( e as Map)) .toList(), @@ -403,7 +403,7 @@ class Transcript { participantRole: json['ParticipantRole'] as String, sentiment: SentimentValue.fromString((json['Sentiment'] as String)), issuesDetected: (json['IssuesDetected'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IssueDetected.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/connect_participant/v2018_09_07.dart b/aws_client/lib/src/generated/connect_participant/v2018_09_07.dart index cedb10215..989918c60 100644 --- a/aws_client/lib/src/generated/connect_participant/v2018_09_07.dart +++ b/aws_client/lib/src/generated/connect_participant/v2018_09_07.dart @@ -911,7 +911,7 @@ class GetTranscriptResponse { initialContactId: json['InitialContactId'] as String?, nextToken: json['NextToken'] as String?, transcript: (json['Transcript'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Item.fromJson(e as Map)) .toList(), ); @@ -995,7 +995,7 @@ class Item { return Item( absoluteTime: json['AbsoluteTime'] as String?, attachments: (json['Attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachmentItem.fromJson(e as Map)) .toList(), contactId: json['ContactId'] as String?, @@ -1062,7 +1062,7 @@ class MessageMetadata { return MessageMetadata( messageId: json['MessageId'] as String?, receipts: (json['Receipts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Receipt.fromJson(e as Map)) .toList(), ); @@ -1409,10 +1409,8 @@ class ViewContent { factory ViewContent.fromJson(Map json) { return ViewContent( - actions: (json['Actions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List?)?.nonNulls.map((e) => e as String).toList(), inputSchema: json['InputSchema'] as String?, template: json['Template'] as String?, ); diff --git a/aws_client/lib/src/generated/control_catalog/v2018_05_10.dart b/aws_client/lib/src/generated/control_catalog/v2018_05_10.dart index 5000b5fda..0d02f4459 100644 --- a/aws_client/lib/src/generated/control_catalog/v2018_05_10.dart +++ b/aws_client/lib/src/generated/control_catalog/v2018_05_10.dart @@ -458,7 +458,7 @@ class ListCommonControlsResponse { factory ListCommonControlsResponse.fromJson(Map json) { return ListCommonControlsResponse( commonControls: (json['CommonControls'] as List) - .whereNotNull() + .nonNulls .map((e) => CommonControlSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -490,7 +490,7 @@ class ListDomainsResponse { factory ListDomainsResponse.fromJson(Map json) { return ListDomainsResponse( domains: (json['Domains'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -522,7 +522,7 @@ class ListObjectivesResponse { factory ListObjectivesResponse.fromJson(Map json) { return ListObjectivesResponse( objectives: (json['Objectives'] as List) - .whereNotNull() + .nonNulls .map((e) => ObjectiveSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/control_tower/v2018_05_10.dart b/aws_client/lib/src/generated/control_tower/v2018_05_10.dart index f632ee6ec..f70efcd52 100644 --- a/aws_client/lib/src/generated/control_tower/v2018_05_10.dart +++ b/aws_client/lib/src/generated/control_tower/v2018_05_10.dart @@ -1860,7 +1860,7 @@ class EnabledBaselineDetails { targetIdentifier: json['targetIdentifier'] as String, baselineVersion: json['baselineVersion'] as String?, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnabledBaselineParameterSummary.fromJson( e as Map)) .toList(), @@ -2080,7 +2080,7 @@ class EnabledControlDetails { json['driftStatusSummary'] as Map) : null, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnabledControlParameterSummary.fromJson( e as Map)) .toList(), @@ -2090,7 +2090,7 @@ class EnabledControlDetails { : null, targetIdentifier: json['targetIdentifier'] as String?, targetRegions: (json['targetRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Region.fromJson(e as Map)) .toList(), ); @@ -2791,7 +2791,7 @@ class ListBaselinesOutput { factory ListBaselinesOutput.fromJson(Map json) { return ListBaselinesOutput( baselines: (json['baselines'] as List) - .whereNotNull() + .nonNulls .map((e) => BaselineSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2823,7 +2823,7 @@ class ListControlOperationsOutput { factory ListControlOperationsOutput.fromJson(Map json) { return ListControlOperationsOutput( controlOperations: (json['controlOperations'] as List) - .whereNotNull() + .nonNulls .map((e) => ControlOperationSummary.fromJson(e as Map)) .toList(), @@ -2856,7 +2856,7 @@ class ListEnabledBaselinesOutput { factory ListEnabledBaselinesOutput.fromJson(Map json) { return ListEnabledBaselinesOutput( enabledBaselines: (json['enabledBaselines'] as List) - .whereNotNull() + .nonNulls .map( (e) => EnabledBaselineSummary.fromJson(e as Map)) .toList(), @@ -2891,7 +2891,7 @@ class ListEnabledControlsOutput { factory ListEnabledControlsOutput.fromJson(Map json) { return ListEnabledControlsOutput( enabledControls: (json['enabledControls'] as List) - .whereNotNull() + .nonNulls .map((e) => EnabledControlSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2924,7 +2924,7 @@ class ListLandingZonesOutput { factory ListLandingZonesOutput.fromJson(Map json) { return ListLandingZonesOutput( landingZones: (json['landingZones'] as List) - .whereNotNull() + .nonNulls .map((e) => LandingZoneSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/cost_and_usage_report_service/v2017_01_06.dart b/aws_client/lib/src/generated/cost_and_usage_report_service/v2017_01_06.dart index ba985e4e0..164c00d44 100644 --- a/aws_client/lib/src/generated/cost_and_usage_report_service/v2017_01_06.dart +++ b/aws_client/lib/src/generated/cost_and_usage_report_service/v2017_01_06.dart @@ -406,7 +406,7 @@ class DescribeReportDefinitionsResponse { return DescribeReportDefinitionsResponse( nextToken: json['NextToken'] as String?, reportDefinitions: (json['ReportDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportDefinition.fromJson(e as Map)) .toList(), ); @@ -448,7 +448,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -546,7 +546,7 @@ class ReportDefinition { factory ReportDefinition.fromJson(Map json) { return ReportDefinition( additionalSchemaElements: (json['AdditionalSchemaElements'] as List) - .whereNotNull() + .nonNulls .map((e) => SchemaElement.fromString((e as String))) .toList(), compression: @@ -558,7 +558,7 @@ class ReportDefinition { s3Region: AWSRegion.fromString((json['S3Region'] as String)), timeUnit: TimeUnit.fromString((json['TimeUnit'] as String)), additionalArtifacts: (json['AdditionalArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalArtifact.fromString((e as String))) .toList(), billingViewArn: json['BillingViewArn'] as String?, diff --git a/aws_client/lib/src/generated/cost_explorer/v2017_10_25.dart b/aws_client/lib/src/generated/cost_explorer/v2017_10_25.dart index b96b10913..c9f52bd83 100644 --- a/aws_client/lib/src/generated/cost_explorer/v2017_10_25.dart +++ b/aws_client/lib/src/generated/cost_explorer/v2017_10_25.dart @@ -3644,7 +3644,7 @@ class Anomaly { feedback: (json['Feedback'] as String?)?.let(AnomalyFeedbackType.fromString), rootCauses: (json['RootCauses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RootCause.fromJson(e as Map)) .toList(), ); @@ -3948,11 +3948,11 @@ class AnomalySubscription { frequency: AnomalySubscriptionFrequency.fromString( (json['Frequency'] as String)), monitorArnList: (json['MonitorArnList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), subscribers: (json['Subscribers'] as List) - .whereNotNull() + .nonNulls .map((e) => Subscriber.fromJson(e as Map)) .toList(), subscriptionName: json['SubscriptionName'] as String, @@ -4262,18 +4262,18 @@ class CostCategory { ruleVersion: CostCategoryRuleVersion.fromString((json['RuleVersion'] as String)), rules: (json['Rules'] as List) - .whereNotNull() + .nonNulls .map((e) => CostCategoryRule.fromJson(e as Map)) .toList(), defaultValue: json['DefaultValue'] as String?, effectiveEnd: json['EffectiveEnd'] as String?, processingStatus: (json['ProcessingStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostCategoryProcessingStatus.fromJson(e as Map)) .toList(), splitChargeRules: (json['SplitChargeRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostCategorySplitChargeRule.fromJson(e as Map)) .toList(), @@ -4441,14 +4441,12 @@ class CostCategoryReference { name: json['Name'] as String?, numberOfRules: json['NumberOfRules'] as int?, processingStatus: (json['ProcessingStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostCategoryProcessingStatus.fromJson(e as Map)) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4631,12 +4629,10 @@ class CostCategorySplitChargeRule { method: CostCategorySplitChargeMethod.fromString((json['Method'] as String)), source: json['Source'] as String, - targets: (json['Targets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['Targets'] as List).nonNulls.map((e) => e as String).toList(), parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostCategorySplitChargeRuleParameter.fromJson( e as Map)) .toList(), @@ -4675,10 +4671,8 @@ class CostCategorySplitChargeRuleParameter { return CostCategorySplitChargeRuleParameter( type: CostCategorySplitChargeRuleParameterType.fromString( (json['Type'] as String)), - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -4768,13 +4762,11 @@ class CostCategoryValues { return CostCategoryValues( key: json['Key'] as String?, matchOptions: (json['MatchOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchOption.fromString((e as String))) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4858,7 +4850,7 @@ class CoverageByTime { factory CoverageByTime.fromJson(Map json) { return CoverageByTime( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservationCoverageGroup.fromJson(e as Map)) .toList(), @@ -5167,7 +5159,7 @@ class CurrentInstance { savingsPlansCoveredHoursInLookbackPeriod: json['SavingsPlansCoveredHoursInLookbackPeriod'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagValues.fromJson(e as Map)) .toList(), totalRunningHoursInLookbackPeriod: @@ -5417,13 +5409,11 @@ class DimensionValues { return DimensionValues( key: (json['Key'] as String?)?.let(Dimension.fromString), matchOptions: (json['MatchOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchOption.fromString((e as String))) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6088,7 +6078,7 @@ class Expression { factory Expression.fromJson(Map json) { return Expression( and: (json['And'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Expression.fromJson(e as Map)) .toList(), costCategories: json['CostCategories'] != null @@ -6102,7 +6092,7 @@ class Expression { ? Expression.fromJson(json['Not'] as Map) : null, or: (json['Or'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Expression.fromJson(e as Map)) .toList(), tags: json['Tags'] != null @@ -6298,7 +6288,7 @@ class GetAnomaliesResponse { factory GetAnomaliesResponse.fromJson(Map json) { return GetAnomaliesResponse( anomalies: (json['Anomalies'] as List) - .whereNotNull() + .nonNulls .map((e) => Anomaly.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -6333,7 +6323,7 @@ class GetAnomalyMonitorsResponse { factory GetAnomalyMonitorsResponse.fromJson(Map json) { return GetAnomalyMonitorsResponse( anomalyMonitors: (json['AnomalyMonitors'] as List) - .whereNotNull() + .nonNulls .map((e) => AnomalyMonitor.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -6368,7 +6358,7 @@ class GetAnomalySubscriptionsResponse { factory GetAnomalySubscriptionsResponse.fromJson(Map json) { return GetAnomalySubscriptionsResponse( anomalySubscriptions: (json['AnomalySubscriptions'] as List) - .whereNotNull() + .nonNulls .map((e) => AnomalySubscription.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -6453,17 +6443,17 @@ class GetCostAndUsageResponse { factory GetCostAndUsageResponse.fromJson(Map json) { return GetCostAndUsageResponse( dimensionValueAttributes: (json['DimensionValueAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionValuesWithAttributes.fromJson(e as Map)) .toList(), groupDefinitions: (json['GroupDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupDefinition.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, resultsByTime: (json['ResultsByTime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResultByTime.fromJson(e as Map)) .toList(), ); @@ -6512,17 +6502,17 @@ class GetCostAndUsageWithResourcesResponse { Map json) { return GetCostAndUsageWithResourcesResponse( dimensionValueAttributes: (json['DimensionValueAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionValuesWithAttributes.fromJson(e as Map)) .toList(), groupDefinitions: (json['GroupDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupDefinition.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, resultsByTime: (json['ResultsByTime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResultByTime.fromJson(e as Map)) .toList(), ); @@ -6578,11 +6568,11 @@ class GetCostCategoriesResponse { returnSize: json['ReturnSize'] as int, totalSize: json['TotalSize'] as int, costCategoryNames: (json['CostCategoryNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), costCategoryValues: (json['CostCategoryValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -6623,7 +6613,7 @@ class GetCostForecastResponse { factory GetCostForecastResponse.fromJson(Map json) { return GetCostForecastResponse( forecastResultsByTime: (json['ForecastResultsByTime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ForecastResult.fromJson(e as Map)) .toList(), total: json['Total'] != null @@ -6803,7 +6793,7 @@ class GetDimensionValuesResponse { factory GetDimensionValuesResponse.fromJson(Map json) { return GetDimensionValuesResponse( dimensionValues: (json['DimensionValues'] as List) - .whereNotNull() + .nonNulls .map((e) => DimensionValuesWithAttributes.fromJson(e as Map)) .toList(), @@ -6848,7 +6838,7 @@ class GetReservationCoverageResponse { factory GetReservationCoverageResponse.fromJson(Map json) { return GetReservationCoverageResponse( coveragesByTime: (json['CoveragesByTime'] as List) - .whereNotNull() + .nonNulls .map((e) => CoverageByTime.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -6896,7 +6886,7 @@ class GetReservationPurchaseRecommendationResponse { : null, nextPageToken: json['NextPageToken'] as String?, recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservationPurchaseRecommendation.fromJson( e as Map)) .toList(), @@ -6937,7 +6927,7 @@ class GetReservationUtilizationResponse { Map json) { return GetReservationUtilizationResponse( utilizationsByTime: (json['UtilizationsByTime'] as List) - .whereNotNull() + .nonNulls .map((e) => UtilizationByTime.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -7002,7 +6992,7 @@ class GetRightsizingRecommendationResponse { : null, nextPageToken: json['NextPageToken'] as String?, rightsizingRecommendations: (json['RightsizingRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RightsizingRecommendation.fromJson(e as Map)) .toList(), @@ -7082,7 +7072,7 @@ class GetSavingsPlansCoverageResponse { factory GetSavingsPlansCoverageResponse.fromJson(Map json) { return GetSavingsPlansCoverageResponse( savingsPlansCoverages: (json['SavingsPlansCoverages'] as List) - .whereNotNull() + .nonNulls .map((e) => SavingsPlansCoverage.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7176,7 +7166,7 @@ class GetSavingsPlansUtilizationDetailsResponse { return GetSavingsPlansUtilizationDetailsResponse( savingsPlansUtilizationDetails: (json['SavingsPlansUtilizationDetails'] as List) - .whereNotNull() + .nonNulls .map((e) => SavingsPlansUtilizationDetail.fromJson(e as Map)) .toList(), @@ -7225,7 +7215,7 @@ class GetSavingsPlansUtilizationResponse { json['Total'] as Map), savingsPlansUtilizationsByTime: (json['SavingsPlansUtilizationsByTime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlansUtilizationByTime.fromJson(e as Map)) .toList(), @@ -7268,10 +7258,7 @@ class GetTagsResponse { factory GetTagsResponse.fromJson(Map json) { return GetTagsResponse( returnSize: json['ReturnSize'] as int, - tags: (json['Tags'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tags: (json['Tags'] as List).nonNulls.map((e) => e as String).toList(), totalSize: json['TotalSize'] as int, nextPageToken: json['NextPageToken'] as String?, ); @@ -7308,7 +7295,7 @@ class GetUsageForecastResponse { factory GetUsageForecastResponse.fromJson(Map json) { return GetUsageForecastResponse( forecastResultsByTime: (json['ForecastResultsByTime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ForecastResult.fromJson(e as Map)) .toList(), total: json['Total'] != null @@ -7358,10 +7345,7 @@ class Group { factory Group.fromJson(Map json) { return Group( - keys: (json['Keys'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + keys: (json['Keys'] as List?)?.nonNulls.map((e) => e as String).toList(), metrics: (json['Metrics'] as Map?)?.map((k, e) => MapEntry(k, MetricValue.fromJson(e as Map))), ); @@ -7589,7 +7573,7 @@ class ListCostAllocationTagBackfillHistoryResponse { Map json) { return ListCostAllocationTagBackfillHistoryResponse( backfillRequests: (json['BackfillRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostAllocationTagBackfillRequest.fromJson( e as Map)) .toList(), @@ -7625,7 +7609,7 @@ class ListCostAllocationTagsResponse { factory ListCostAllocationTagsResponse.fromJson(Map json) { return ListCostAllocationTagsResponse( costAllocationTags: (json['CostAllocationTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostAllocationTag.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7661,7 +7645,7 @@ class ListCostCategoryDefinitionsResponse { Map json) { return ListCostCategoryDefinitionsResponse( costCategoryReferences: (json['CostCategoryReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostCategoryReference.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7695,7 +7679,7 @@ class ListSavingsPlansPurchaseRecommendationGenerationResponse { Map json) { return ListSavingsPlansPurchaseRecommendationGenerationResponse( generationSummaryList: (json['GenerationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GenerationSummary.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -7724,7 +7708,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), ); @@ -7888,7 +7872,7 @@ class ModifyRecommendationDetail { factory ModifyRecommendationDetail.fromJson(Map json) { return ModifyRecommendationDetail( targetInstances: (json['TargetInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetInstance.fromJson(e as Map)) .toList(), ); @@ -8326,7 +8310,7 @@ class RecommendationDetailData { lookbackPeriodInDays: (json['LookbackPeriodInDays'] as String?) ?.let(LookbackPeriodInDays.fromString), metricsOverLookbackPeriod: (json['MetricsOverLookbackPeriod'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationDetailHourlyMetrics.fromJson( e as Map)) .toList(), @@ -8788,7 +8772,7 @@ class ReservationPurchaseRecommendation { paymentOption: (json['PaymentOption'] as String?)?.let(PaymentOption.fromString), recommendationDetails: (json['RecommendationDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservationPurchaseRecommendationDetail.fromJson( e as Map)) .toList(), @@ -9302,7 +9286,7 @@ class ResultByTime { return ResultByTime( estimated: json['Estimated'] as bool?, groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), timePeriod: json['TimePeriod'] != null @@ -9366,7 +9350,7 @@ class RightsizingRecommendation { json['CurrentInstance'] as Map) : null, findingReasonCodes: (json['FindingReasonCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingReasonCode.fromString((e as String))) .toList(), modifyRecommendationDetail: json['ModifyRecommendationDetail'] != null @@ -9858,7 +9842,7 @@ class SavingsPlansPurchaseRecommendation { (json['PaymentOption'] as String?)?.let(PaymentOption.fromString), savingsPlansPurchaseRecommendationDetails: (json['SavingsPlansPurchaseRecommendationDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlansPurchaseRecommendationDetail.fromJson( e as Map)) .toList(), @@ -10755,13 +10739,11 @@ class TagValues { return TagValues( key: json['Key'] as String?, matchOptions: (json['MatchOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchOption.fromString((e as String))) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -10826,7 +10808,7 @@ class TargetInstance { json['ExpectedResourceUtilization'] as Map) : null, platformDifferences: (json['PlatformDifferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformDifference.fromString((e as String))) .toList(), resourceDetails: json['ResourceDetails'] != null @@ -11046,7 +11028,7 @@ class UpdateCostAllocationTagsStatusResponse { Map json) { return UpdateCostAllocationTagsStatusResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateCostAllocationTagsStatusError.fromJson( e as Map)) .toList(), @@ -11112,7 +11094,7 @@ class UtilizationByTime { factory UtilizationByTime.fromJson(Map json) { return UtilizationByTime( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservationUtilizationGroup.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/cost_optimization_hub/v2022_07_26.dart b/aws_client/lib/src/generated/cost_optimization_hub/v2022_07_26.dart index 450504e43..2d81a49ba 100644 --- a/aws_client/lib/src/generated/cost_optimization_hub/v2022_07_26.dart +++ b/aws_client/lib/src/generated/cost_optimization_hub/v2022_07_26.dart @@ -1603,7 +1603,7 @@ class GetRecommendationResponse { rollbackPossible: json['rollbackPossible'] as bool?, source: (json['source'] as String?)?.let(Source.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1804,7 +1804,7 @@ class ListEnrollmentStatusesResponse { return ListEnrollmentStatusesResponse( includeMemberAccounts: json['includeMemberAccounts'] as bool?, items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountEnrollmentStatus.fromJson(e as Map)) .toList(), @@ -1857,7 +1857,7 @@ class ListRecommendationSummariesResponse { json['estimatedTotalDedupedSavings'] as double?, groupBy: json['groupBy'] as String?, items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1896,7 +1896,7 @@ class ListRecommendationsResponse { factory ListRecommendationsResponse.fromJson(Map json) { return ListRecommendationsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2404,7 +2404,7 @@ class Recommendation { rollbackPossible: json['rollbackPossible'] as bool?, source: (json['source'] as String?)?.let(Source.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2761,7 +2761,7 @@ class ResourceCostCalculation { ? ResourcePricing.fromJson(json['pricing'] as Map) : null, usages: (json['usages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Usage.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/customer_profiles/v2020_08_15.dart b/aws_client/lib/src/generated/customer_profiles/v2020_08_15.dart index 891e35870..84fa4a4fd 100644 --- a/aws_client/lib/src/generated/customer_profiles/v2020_08_15.dart +++ b/aws_client/lib/src/generated/customer_profiles/v2020_08_15.dart @@ -2737,10 +2737,8 @@ class AddProfileKeyResponse { factory AddProfileKeyResponse.fromJson(Map json) { return AddProfileKeyResponse( keyName: json['KeyName'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -3074,7 +3072,7 @@ class AttributeDetails { factory AttributeDetails.fromJson(Map json) { return AttributeDetails( attributes: (json['Attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => AttributeItem.fromJson(e as Map)) .toList(), expression: json['Expression'] as String, @@ -3227,16 +3225,14 @@ class AttributeTypesSelector { return AttributeTypesSelector( attributeMatchingModel: AttributeMatchingModel.fromString( (json['AttributeMatchingModel'] as String)), - address: (json['Address'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + address: + (json['Address'] as List?)?.nonNulls.map((e) => e as String).toList(), emailAddress: (json['EmailAddress'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), phoneNumber: (json['PhoneNumber'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3500,9 +3496,8 @@ class Consolidation { factory Consolidation.fromJson(Map json) { return Consolidation( matchingAttributesList: (json['MatchingAttributesList'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -4029,7 +4024,7 @@ class DetectProfileObjectTypeResponse { factory DetectProfileObjectTypeResponse.fromJson(Map json) { return DetectProfileObjectTypeResponse( detectedProfileObjectTypes: (json['DetectedProfileObjectTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectedProfileObjectType.fromJson(e as Map)) .toList(), @@ -4070,7 +4065,7 @@ class DetectedProfileObjectType { keys: (json['Keys'] as Map?)?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ObjectTypeKey.fromJson(e as Map)) .toList())), sourceLastUpdatedTimestampFormat: @@ -4581,10 +4576,8 @@ class FoundByKeyValue { factory FoundByKeyValue.fromJson(Map json) { return FoundByKeyValue( keyName: json['KeyName'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -5232,7 +5225,7 @@ class GetMatchesResponse { return GetMatchesResponse( matchGenerationDate: timeStampFromJson(json['MatchGenerationDate']), matches: (json['Matches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5327,7 +5320,7 @@ class GetProfileObjectTypeResponse { keys: (json['Keys'] as Map?)?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ObjectTypeKey.fromJson(e as Map)) .toList())), lastUpdatedAt: timeStampFromJson(json['LastUpdatedAt']), @@ -5420,7 +5413,7 @@ class GetProfileObjectTypeTemplateResponse { keys: (json['Keys'] as Map?)?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ObjectTypeKey.fromJson(e as Map)) .toList())), sourceLastUpdatedTimestampFormat: @@ -5499,7 +5492,7 @@ class GetSimilarProfilesResponse { matchType: (json['MatchType'] as String?)?.let(MatchType.fromString), nextToken: json['NextToken'] as String?, profileIds: (json['ProfileIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ruleLevel: json['RuleLevel'] as int?, @@ -5626,7 +5619,7 @@ class GetWorkflowStepsResponse { factory GetWorkflowStepsResponse.fromJson(Map json) { return GetWorkflowStepsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowStepItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5924,7 +5917,7 @@ class ListAccountIntegrationsResponse { factory ListAccountIntegrationsResponse.fromJson(Map json) { return ListAccountIntegrationsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListIntegrationItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6021,7 +6014,7 @@ class ListCalculatedAttributeDefinitionsResponse { Map json) { return ListCalculatedAttributeDefinitionsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListCalculatedAttributeDefinitionItem.fromJson( e as Map)) .toList(), @@ -6103,7 +6096,7 @@ class ListCalculatedAttributesForProfileResponse { Map json) { return ListCalculatedAttributesForProfileResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListCalculatedAttributeForProfileItem.fromJson( e as Map)) .toList(), @@ -6182,7 +6175,7 @@ class ListDomainsResponse { factory ListDomainsResponse.fromJson(Map json) { return ListDomainsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListDomainItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6214,7 +6207,7 @@ class ListEventStreamsResponse { factory ListEventStreamsResponse.fromJson(Map json) { return ListEventStreamsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventStreamSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6248,7 +6241,7 @@ class ListIdentityResolutionJobsResponse { Map json) { return ListIdentityResolutionJobsResponse( identityResolutionJobsList: (json['IdentityResolutionJobsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityResolutionJob.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6371,7 +6364,7 @@ class ListIntegrationsResponse { factory ListIntegrationsResponse.fromJson(Map json) { return ListIntegrationsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListIntegrationItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6495,7 +6488,7 @@ class ListProfileObjectTypeTemplatesResponse { Map json) { return ListProfileObjectTypeTemplatesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListProfileObjectTypeTemplateItem.fromJson( e as Map)) .toList(), @@ -6528,7 +6521,7 @@ class ListProfileObjectTypesResponse { factory ListProfileObjectTypesResponse.fromJson(Map json) { return ListProfileObjectTypesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListProfileObjectTypeItem.fromJson(e as Map)) .toList(), @@ -6600,7 +6593,7 @@ class ListProfileObjectsResponse { factory ListProfileObjectsResponse.fromJson(Map json) { return ListProfileObjectsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ListProfileObjectsItem.fromJson(e as Map)) .toList(), @@ -6634,7 +6627,7 @@ class ListRuleBasedMatchesResponse { factory ListRuleBasedMatchesResponse.fromJson(Map json) { return ListRuleBasedMatchesResponse( matchIds: (json['MatchIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -6749,7 +6742,7 @@ class ListWorkflowsResponse { factory ListWorkflowsResponse.fromJson(Map json) { return ListWorkflowsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListWorkflowsItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6841,7 +6834,7 @@ class MatchItem { confidenceScore: json['ConfidenceScore'] as double?, matchId: json['MatchId'] as String?, profileIds: (json['ProfileIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7031,10 +7024,7 @@ class MatchingRule { factory MatchingRule.fromJson(Map json) { return MatchingRule( - rule: (json['Rule'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + rule: (json['Rule'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -7164,11 +7154,11 @@ class ObjectTypeKey { factory ObjectTypeKey.fromJson(Map json) { return ObjectTypeKey( fieldNames: (json['FieldNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), standardIdentifiers: (json['StandardIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StandardIdentifier.fromString((e as String))) .toList(), ); @@ -7398,7 +7388,7 @@ class Profile { emailAddress: json['EmailAddress'] as String?, firstName: json['FirstName'] as String?, foundByItems: (json['FoundByItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FoundByKeyValue.fromJson(e as Map)) .toList(), gender: (json['Gender'] as String?)?.let(Gender.fromString), @@ -7668,7 +7658,7 @@ class PutProfileObjectTypeResponse { keys: (json['Keys'] as Map?)?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ObjectTypeKey.fromJson(e as Map)) .toList())), lastUpdatedAt: timeStampFromJson(json['LastUpdatedAt']), @@ -7879,7 +7869,7 @@ class RuleBasedMatchingResponse { json['ExportingConfig'] as Map) : null, matchingRules: (json['MatchingRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchingRule.fromJson(e as Map)) .toList(), maxAllowedRuleLevelForMatching: @@ -8197,7 +8187,7 @@ class SearchProfilesResponse { factory SearchProfilesResponse.fromJson(Map json) { return SearchProfilesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Profile.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/data_brew/v2017_07_25.dart b/aws_client/lib/src/generated/data_brew/v2017_07_25.dart index 446a3a37a..a7c44f8c6 100644 --- a/aws_client/lib/src/generated/data_brew/v2017_07_25.dart +++ b/aws_client/lib/src/generated/data_brew/v2017_07_25.dart @@ -1810,7 +1810,7 @@ class AllowedStatistics { factory AllowedStatistics.fromJson(Map json) { return AllowedStatistics( statistics: (json['Statistics'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -1856,7 +1856,7 @@ class BatchDeleteRecipeVersionResponse { return BatchDeleteRecipeVersionResponse( name: json['Name'] as String, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecipeVersionErrorDetail.fromJson(e as Map)) .toList(), @@ -1927,7 +1927,7 @@ class ColumnStatisticsConfiguration { statistics: StatisticsConfiguration.fromJson( json['Statistics'] as Map), selectors: (json['Selectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnSelector.fromJson(e as Map)) .toList(), ); @@ -3083,11 +3083,11 @@ class DescribeJobResponse { createDate: timeStampFromJson(json['CreateDate']), createdBy: json['CreatedBy'] as String?, dataCatalogOutputs: (json['DataCatalogOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataCatalogOutput.fromJson(e as Map)) .toList(), databaseOutputs: (json['DatabaseOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatabaseOutput.fromJson(e as Map)) .toList(), datasetName: json['DatasetName'] as String?, @@ -3104,7 +3104,7 @@ class DescribeJobResponse { maxCapacity: json['MaxCapacity'] as int?, maxRetries: json['MaxRetries'] as int?, outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), profileConfiguration: json['ProfileConfiguration'] != null @@ -3123,7 +3123,7 @@ class DescribeJobResponse { timeout: json['Timeout'] as int?, type: (json['Type'] as String?)?.let(JobType.fromString), validationConfigurations: (json['ValidationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationConfiguration.fromJson(e as Map)) .toList(), @@ -3280,11 +3280,11 @@ class DescribeJobRunResponse { attempt: json['Attempt'] as int?, completedOn: timeStampFromJson(json['CompletedOn']), dataCatalogOutputs: (json['DataCatalogOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataCatalogOutput.fromJson(e as Map)) .toList(), databaseOutputs: (json['DatabaseOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatabaseOutput.fromJson(e as Map)) .toList(), datasetName: json['DatasetName'] as String?, @@ -3297,7 +3297,7 @@ class DescribeJobRunResponse { logSubscription: (json['LogSubscription'] as String?)?.let(LogSubscription.fromString), outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), profileConfiguration: json['ProfileConfiguration'] != null @@ -3313,7 +3313,7 @@ class DescribeJobRunResponse { startedOn: timeStampFromJson(json['StartedOn']), state: (json['State'] as String?)?.let(JobRunState.fromString), validationConfigurations: (json['ValidationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationConfiguration.fromJson(e as Map)) .toList(), @@ -3566,7 +3566,7 @@ class DescribeRecipeResponse { recipeVersion: json['RecipeVersion'] as String?, resourceArn: json['ResourceArn'] as String?, steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecipeStep.fromJson(e as Map)) .toList(), tags: (json['Tags'] as Map?) @@ -3664,7 +3664,7 @@ class DescribeRulesetResponse { lastModifiedDate: timeStampFromJson(json['LastModifiedDate']), resourceArn: json['ResourceArn'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), tags: (json['Tags'] as Map?) @@ -3750,7 +3750,7 @@ class DescribeScheduleResponse { createdBy: json['CreatedBy'] as String?, cronExpression: json['CronExpression'] as String?, jobNames: (json['JobNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastModifiedBy: json['LastModifiedBy'] as String?, @@ -3882,11 +3882,11 @@ class EntityDetectorConfiguration { factory EntityDetectorConfiguration.fromJson(Map json) { return EntityDetectorConfiguration( entityTypes: (json['EntityTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowedStatistics: (json['AllowedStatistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AllowedStatistics.fromJson(e as Map)) .toList(), ); @@ -3927,11 +3927,11 @@ class ExcelOptions { return ExcelOptions( headerRow: json['HeaderRow'] as bool?, sheetIndexes: (json['SheetIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), sheetNames: (json['SheetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4287,11 +4287,11 @@ class Job { createDate: timeStampFromJson(json['CreateDate']), createdBy: json['CreatedBy'] as String?, dataCatalogOutputs: (json['DataCatalogOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataCatalogOutput.fromJson(e as Map)) .toList(), databaseOutputs: (json['DatabaseOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatabaseOutput.fromJson(e as Map)) .toList(), datasetName: json['DatasetName'] as String?, @@ -4308,7 +4308,7 @@ class Job { maxCapacity: json['MaxCapacity'] as int?, maxRetries: json['MaxRetries'] as int?, outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), projectName: json['ProjectName'] as String?, @@ -4323,7 +4323,7 @@ class Job { timeout: json['Timeout'] as int?, type: (json['Type'] as String?)?.let(JobType.fromString), validationConfigurations: (json['ValidationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationConfiguration.fromJson(e as Map)) .toList(), @@ -4475,11 +4475,11 @@ class JobRun { attempt: json['Attempt'] as int?, completedOn: timeStampFromJson(json['CompletedOn']), dataCatalogOutputs: (json['DataCatalogOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataCatalogOutput.fromJson(e as Map)) .toList(), databaseOutputs: (json['DatabaseOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatabaseOutput.fromJson(e as Map)) .toList(), datasetName: json['DatasetName'] as String?, @@ -4493,7 +4493,7 @@ class JobRun { logSubscription: (json['LogSubscription'] as String?)?.let(LogSubscription.fromString), outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), recipeReference: json['RecipeReference'] != null @@ -4505,7 +4505,7 @@ class JobRun { startedOn: timeStampFromJson(json['StartedOn']), state: (json['State'] as String?)?.let(JobRunState.fromString), validationConfigurations: (json['ValidationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationConfiguration.fromJson(e as Map)) .toList(), @@ -4677,7 +4677,7 @@ class ListDatasetsResponse { factory ListDatasetsResponse.fromJson(Map json) { return ListDatasetsResponse( datasets: (json['Datasets'] as List) - .whereNotNull() + .nonNulls .map((e) => Dataset.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4710,7 +4710,7 @@ class ListJobRunsResponse { factory ListJobRunsResponse.fromJson(Map json) { return ListJobRunsResponse( jobRuns: (json['JobRuns'] as List) - .whereNotNull() + .nonNulls .map((e) => JobRun.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4743,7 +4743,7 @@ class ListJobsResponse { factory ListJobsResponse.fromJson(Map json) { return ListJobsResponse( jobs: (json['Jobs'] as List) - .whereNotNull() + .nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4776,7 +4776,7 @@ class ListProjectsResponse { factory ListProjectsResponse.fromJson(Map json) { return ListProjectsResponse( projects: (json['Projects'] as List) - .whereNotNull() + .nonNulls .map((e) => Project.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4809,7 +4809,7 @@ class ListRecipeVersionsResponse { factory ListRecipeVersionsResponse.fromJson(Map json) { return ListRecipeVersionsResponse( recipes: (json['Recipes'] as List) - .whereNotNull() + .nonNulls .map((e) => Recipe.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4842,7 +4842,7 @@ class ListRecipesResponse { factory ListRecipesResponse.fromJson(Map json) { return ListRecipesResponse( recipes: (json['Recipes'] as List) - .whereNotNull() + .nonNulls .map((e) => Recipe.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4875,7 +4875,7 @@ class ListRulesetsResponse { factory ListRulesetsResponse.fromJson(Map json) { return ListRulesetsResponse( rulesets: (json['Rulesets'] as List) - .whereNotNull() + .nonNulls .map((e) => RulesetItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4908,7 +4908,7 @@ class ListSchedulesResponse { factory ListSchedulesResponse.fromJson(Map json) { return ListSchedulesResponse( schedules: (json['Schedules'] as List) - .whereNotNull() + .nonNulls .map((e) => Schedule.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5064,7 +5064,7 @@ class Output { maxOutputFiles: json['MaxOutputFiles'] as int?, overwrite: json['Overwrite'] as bool?, partitionColumns: (json['PartitionColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5241,7 +5241,7 @@ class ProfileConfiguration { return ProfileConfiguration( columnStatisticsConfigurations: (json['ColumnStatisticsConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnStatisticsConfiguration.fromJson(e as Map)) .toList(), @@ -5255,7 +5255,7 @@ class ProfileConfiguration { json['EntityDetectorConfiguration'] as Map) : null, profileColumns: (json['ProfileColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnSelector.fromJson(e as Map)) .toList(), ); @@ -5508,7 +5508,7 @@ class Recipe { recipeVersion: json['RecipeVersion'] as String?, resourceArn: json['ResourceArn'] as String?, steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecipeStep.fromJson(e as Map)) .toList(), tags: (json['Tags'] as Map?) @@ -5635,7 +5635,7 @@ class RecipeStep { return RecipeStep( action: RecipeAction.fromJson(json['Action'] as Map), conditionExpressions: (json['ConditionExpressions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConditionExpression.fromJson(e as Map)) .toList(), ); @@ -5750,7 +5750,7 @@ class Rule { checkExpression: json['CheckExpression'] as String, name: json['Name'] as String, columnSelectors: (json['ColumnSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnSelector.fromJson(e as Map)) .toList(), disabled: json['Disabled'] as bool?, @@ -6054,7 +6054,7 @@ class Schedule { createdBy: json['CreatedBy'] as String?, cronExpression: json['CronExpression'] as String?, jobNames: (json['JobNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastModifiedBy: json['LastModifiedBy'] as String?, @@ -6267,11 +6267,11 @@ class StatisticsConfiguration { factory StatisticsConfiguration.fromJson(Map json) { return StatisticsConfiguration( includedStatistics: (json['IncludedStatistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), overrides: (json['Overrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StatisticOverride.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/data_exchange/v2017_07_25.dart b/aws_client/lib/src/generated/data_exchange/v2017_07_25.dart index e904ce038..418d04e1c 100644 --- a/aws_client/lib/src/generated/data_exchange/v2017_07_25.dart +++ b/aws_client/lib/src/generated/data_exchange/v2017_07_25.dart @@ -1748,7 +1748,7 @@ class CreateJobResponse { ? ResponseDetails.fromJson(json['Details'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobError.fromJson(e as Map)) .toList(), id: json['Id'] as String?, @@ -2085,7 +2085,7 @@ class DatabaseLFTagPolicy { factory DatabaseLFTagPolicy.fromJson(Map json) { return DatabaseLFTagPolicy( expression: (json['Expression'] as List) - .whereNotNull() + .nonNulls .map((e) => LFTag.fromJson(e as Map)) .toList(), ); @@ -2116,11 +2116,11 @@ class DatabaseLFTagPolicyAndPermissions { Map json) { return DatabaseLFTagPolicyAndPermissions( expression: (json['Expression'] as List) - .whereNotNull() + .nonNulls .map((e) => LFTag.fromJson(e as Map)) .toList(), permissions: (json['Permissions'] as List) - .whereNotNull() + .nonNulls .map((e) => DatabaseLFTagPolicyPermission.fromString((e as String))) .toList(), ); @@ -2191,7 +2191,7 @@ class Details { : null, importAssetsFromS3JobErrorDetails: (json['ImportAssetsFromS3JobErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetSourceEntry.fromJson(e as Map)) .toList(), ); @@ -2440,7 +2440,7 @@ class ExportAssetsToS3ResponseDetails { factory ExportAssetsToS3ResponseDetails.fromJson(Map json) { return ExportAssetsToS3ResponseDetails( assetDestinations: (json['AssetDestinations'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetDestinationEntry.fromJson(e as Map)) .toList(), dataSetId: json['DataSetId'] as String, @@ -2521,7 +2521,7 @@ class ExportRevisionsToS3ResponseDetails { return ExportRevisionsToS3ResponseDetails( dataSetId: json['DataSetId'] as String, revisionDestinations: (json['RevisionDestinations'] as List) - .whereNotNull() + .nonNulls .map((e) => RevisionDestinationEntry.fromJson(e as Map)) .toList(), @@ -2884,7 +2884,7 @@ class GetJobResponse { ? ResponseDetails.fromJson(json['Details'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobError.fromJson(e as Map)) .toList(), id: json['Id'] as String?, @@ -3480,7 +3480,7 @@ class ImportAssetsFromRedshiftDataSharesResponseDetails { Map json) { return ImportAssetsFromRedshiftDataSharesResponseDetails( assetSources: (json['AssetSources'] as List) - .whereNotNull() + .nonNulls .map((e) => RedshiftDataShareAssetSourceEntry.fromJson( e as Map)) .toList(), @@ -3551,7 +3551,7 @@ class ImportAssetsFromS3ResponseDetails { Map json) { return ImportAssetsFromS3ResponseDetails( assetSources: (json['AssetSources'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetSourceEntry.fromJson(e as Map)) .toList(), dataSetId: json['DataSetId'] as String, @@ -3623,7 +3623,7 @@ class JobEntry { type: Type.fromString((json['Type'] as String)), updatedAt: nonNullableTimeStampFromJson(json['UpdatedAt'] as Object), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobError.fromJson(e as Map)) .toList(), ); @@ -3869,10 +3869,8 @@ class LFTag { factory LFTag.fromJson(Map json) { return LFTag( tagKey: json['TagKey'] as String, - tagValues: (json['TagValues'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tagValues: + (json['TagValues'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -3956,7 +3954,7 @@ class LakeFormationDataPermissionAsset { LakeFormationDataPermissionType.fromString( (json['LakeFormationDataPermissionType'] as String)), permissions: (json['Permissions'] as List) - .whereNotNull() + .nonNulls .map((e) => LFPermission.fromString((e as String))) .toList(), roleArn: json['RoleArn'] as String?, @@ -4060,7 +4058,7 @@ class ListDataSetRevisionsResponse { return ListDataSetRevisionsResponse( nextToken: json['NextToken'] as String?, revisions: (json['Revisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RevisionEntry.fromJson(e as Map)) .toList(), ); @@ -4092,7 +4090,7 @@ class ListDataSetsResponse { factory ListDataSetsResponse.fromJson(Map json) { return ListDataSetsResponse( dataSets: (json['DataSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSetEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4125,7 +4123,7 @@ class ListEventActionsResponse { factory ListEventActionsResponse.fromJson(Map json) { return ListEventActionsResponse( eventActions: (json['EventActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventActionEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4158,7 +4156,7 @@ class ListJobsResponse { factory ListJobsResponse.fromJson(Map json) { return ListJobsResponse( jobs: (json['Jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4191,7 +4189,7 @@ class ListRevisionAssetsResponse { factory ListRevisionAssetsResponse.fromJson(Map json) { return ListRevisionAssetsResponse( assets: (json['Assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4943,15 +4941,12 @@ class S3DataAccessAsset { return S3DataAccessAsset( bucket: json['Bucket'] as String, keyPrefixes: (json['KeyPrefixes'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - keys: (json['Keys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + keys: (json['Keys'] as List?)?.nonNulls.map((e) => e as String).toList(), kmsKeysToGrant: (json['KmsKeysToGrant'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KmsKeyToGrant.fromJson(e as Map)) .toList(), s3AccessPointAlias: json['S3AccessPointAlias'] as String?, @@ -5004,15 +4999,12 @@ class S3DataAccessAssetSourceEntry { return S3DataAccessAssetSourceEntry( bucket: json['Bucket'] as String, keyPrefixes: (json['KeyPrefixes'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - keys: (json['Keys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + keys: (json['Keys'] as List?)?.nonNulls.map((e) => e as String).toList(), kmsKeysToGrant: (json['KmsKeysToGrant'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KmsKeyToGrant.fromJson(e as Map)) .toList(), ); @@ -5272,7 +5264,7 @@ class TableLFTagPolicy { factory TableLFTagPolicy.fromJson(Map json) { return TableLFTagPolicy( expression: (json['Expression'] as List) - .whereNotNull() + .nonNulls .map((e) => LFTag.fromJson(e as Map)) .toList(), ); @@ -5302,11 +5294,11 @@ class TableLFTagPolicyAndPermissions { factory TableLFTagPolicyAndPermissions.fromJson(Map json) { return TableLFTagPolicyAndPermissions( expression: (json['Expression'] as List) - .whereNotNull() + .nonNulls .map((e) => LFTag.fromJson(e as Map)) .toList(), permissions: (json['Permissions'] as List) - .whereNotNull() + .nonNulls .map((e) => TableTagPolicyLFPermission.fromString((e as String))) .toList(), ); diff --git a/aws_client/lib/src/generated/data_pipeline/v2012_10_29.dart b/aws_client/lib/src/generated/data_pipeline/v2012_10_29.dart index 5b9cdeb65..fc1421a0d 100644 --- a/aws_client/lib/src/generated/data_pipeline/v2012_10_29.dart +++ b/aws_client/lib/src/generated/data_pipeline/v2012_10_29.dart @@ -1063,7 +1063,7 @@ class DescribeObjectsOutput { factory DescribeObjectsOutput.fromJson(Map json) { return DescribeObjectsOutput( pipelineObjects: (json['pipelineObjects'] as List) - .whereNotNull() + .nonNulls .map((e) => PipelineObject.fromJson(e as Map)) .toList(), hasMoreResults: json['hasMoreResults'] as bool?, @@ -1095,7 +1095,7 @@ class DescribePipelinesOutput { factory DescribePipelinesOutput.fromJson(Map json) { return DescribePipelinesOutput( pipelineDescriptionList: (json['pipelineDescriptionList'] as List) - .whereNotNull() + .nonNulls .map((e) => PipelineDescription.fromJson(e as Map)) .toList(), ); @@ -1191,15 +1191,15 @@ class GetPipelineDefinitionOutput { factory GetPipelineDefinitionOutput.fromJson(Map json) { return GetPipelineDefinitionOutput( parameterObjects: (json['parameterObjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterObject.fromJson(e as Map)) .toList(), parameterValues: (json['parameterValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterValue.fromJson(e as Map)) .toList(), pipelineObjects: (json['pipelineObjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineObject.fromJson(e as Map)) .toList(), ); @@ -1277,7 +1277,7 @@ class ListPipelinesOutput { factory ListPipelinesOutput.fromJson(Map json) { return ListPipelinesOutput( pipelineIdList: (json['pipelineIdList'] as List) - .whereNotNull() + .nonNulls .map((e) => PipelineIdName.fromJson(e as Map)) .toList(), hasMoreResults: json['hasMoreResults'] as bool?, @@ -1420,7 +1420,7 @@ class ParameterObject { factory ParameterObject.fromJson(Map json) { return ParameterObject( attributes: (json['attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => ParameterAttribute.fromJson(e as Map)) .toList(), id: json['id'] as String, @@ -1501,14 +1501,14 @@ class PipelineDescription { factory PipelineDescription.fromJson(Map json) { return PipelineDescription( fields: (json['fields'] as List) - .whereNotNull() + .nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), name: json['name'] as String, pipelineId: json['pipelineId'] as String, description: json['description'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1583,7 +1583,7 @@ class PipelineObject { factory PipelineObject.fromJson(Map json) { return PipelineObject( fields: (json['fields'] as List) - .whereNotNull() + .nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), id: json['id'] as String, @@ -1657,11 +1657,11 @@ class PutPipelineDefinitionOutput { return PutPipelineDefinitionOutput( errored: json['errored'] as bool, validationErrors: (json['validationErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationError.fromJson(e as Map)) .toList(), validationWarnings: (json['validationWarnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationWarning.fromJson(e as Map)) .toList(), ); @@ -1720,10 +1720,7 @@ class QueryObjectsOutput { factory QueryObjectsOutput.fromJson(Map json) { return QueryObjectsOutput( hasMoreResults: json['hasMoreResults'] as bool?, - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), marker: json['marker'] as String?, ); } @@ -1965,11 +1962,11 @@ class ValidatePipelineDefinitionOutput { return ValidatePipelineDefinitionOutput( errored: json['errored'] as bool, validationErrors: (json['validationErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationError.fromJson(e as Map)) .toList(), validationWarnings: (json['validationWarnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationWarning.fromJson(e as Map)) .toList(), ); @@ -2004,10 +2001,8 @@ class ValidationError { factory ValidationError.fromJson(Map json) { return ValidationError( - errors: (json['errors'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + errors: + (json['errors'] as List?)?.nonNulls.map((e) => e as String).toList(), id: json['id'] as String?, ); } @@ -2041,7 +2036,7 @@ class ValidationWarning { return ValidationWarning( id: json['id'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/data_sync/v2018_11_09.dart b/aws_client/lib/src/generated/data_sync/v2018_11_09.dart index d9608a79b..6fd99c786 100644 --- a/aws_client/lib/src/generated/data_sync/v2018_11_09.dart +++ b/aws_client/lib/src/generated/data_sync/v2018_11_09.dart @@ -4354,7 +4354,7 @@ class DescribeLocationAzureBlobResponse { accessTier: (json['AccessTier'] as String?)?.let(AzureAccessTier.fromString), agentArns: (json['AgentArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authenticationType: (json['AuthenticationType'] as String?) @@ -4489,7 +4489,7 @@ class DescribeLocationFsxLustreResponse { locationArn: json['LocationArn'] as String?, locationUri: json['LocationUri'] as String?, securityGroupArns: (json['SecurityGroupArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4553,7 +4553,7 @@ class DescribeLocationFsxOntapResponse { ? FsxProtocol.fromJson(json['Protocol'] as Map) : null, securityGroupArns: (json['SecurityGroupArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), storageVirtualMachineArn: json['StorageVirtualMachineArn'] as String?, @@ -4621,7 +4621,7 @@ class DescribeLocationFsxOpenZfsResponse { ? FsxProtocol.fromJson(json['Protocol'] as Map) : null, securityGroupArns: (json['SecurityGroupArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4684,7 +4684,7 @@ class DescribeLocationFsxWindowsResponse { locationArn: json['LocationArn'] as String?, locationUri: json['LocationUri'] as String?, securityGroupArns: (json['SecurityGroupArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), user: json['User'] as String?, @@ -4772,7 +4772,7 @@ class DescribeLocationHdfsResponse { factory DescribeLocationHdfsResponse.fromJson(Map json) { return DescribeLocationHdfsResponse( agentArns: (json['AgentArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authenticationType: (json['AuthenticationType'] as String?) @@ -4784,7 +4784,7 @@ class DescribeLocationHdfsResponse { locationArn: json['LocationArn'] as String?, locationUri: json['LocationUri'] as String?, nameNodes: (json['NameNodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HdfsNameNode.fromJson(e as Map)) .toList(), qopConfiguration: json['QopConfiguration'] != null @@ -4930,7 +4930,7 @@ class DescribeLocationObjectStorageResponse { return DescribeLocationObjectStorageResponse( accessKey: json['AccessKey'] as String?, agentArns: (json['AgentArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -5009,7 +5009,7 @@ class DescribeLocationS3Response { factory DescribeLocationS3Response.fromJson(Map json) { return DescribeLocationS3Response( agentArns: (json['AgentArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -5080,7 +5080,7 @@ class DescribeLocationSmbResponse { factory DescribeLocationSmbResponse.fromJson(Map json) { return DescribeLocationSmbResponse( agentArns: (json['AgentArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -5134,7 +5134,7 @@ class DescribeStorageSystemResourceMetricsResponse { Map json) { return DescribeStorageSystemResourceMetricsResponse( metrics: (json['Metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceMetrics.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5253,7 +5253,7 @@ class DescribeStorageSystemResponse { factory DescribeStorageSystemResponse.fromJson(Map json) { return DescribeStorageSystemResponse( agentArns: (json['AgentArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cloudWatchLogGroupArn: json['CloudWatchLogGroupArn'] as String?, @@ -5449,7 +5449,7 @@ class DescribeTaskExecutionResponse { estimatedFilesToDelete: json['EstimatedFilesToDelete'] as int?, estimatedFilesToTransfer: json['EstimatedFilesToTransfer'] as int?, excludes: (json['Excludes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterRule.fromJson(e as Map)) .toList(), filesDeleted: json['FilesDeleted'] as int?, @@ -5457,7 +5457,7 @@ class DescribeTaskExecutionResponse { filesTransferred: json['FilesTransferred'] as int?, filesVerified: json['FilesVerified'] as int?, includes: (json['Includes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterRule.fromJson(e as Map)) .toList(), manifestConfig: json['ManifestConfig'] != null @@ -5661,17 +5661,17 @@ class DescribeTaskResponse { destinationLocationArn: json['DestinationLocationArn'] as String?, destinationNetworkInterfaceArns: (json['DestinationNetworkInterfaceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), errorCode: json['ErrorCode'] as String?, errorDetail: json['ErrorDetail'] as String?, excludes: (json['Excludes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterRule.fromJson(e as Map)) .toList(), includes: (json['Includes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterRule.fromJson(e as Map)) .toList(), manifestConfig: json['ManifestConfig'] != null @@ -5691,7 +5691,7 @@ class DescribeTaskResponse { : null, sourceLocationArn: json['SourceLocationArn'] as String?, sourceNetworkInterfaceArns: (json['SourceNetworkInterfaceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['Status'] as String?)?.let(TaskStatus.fromString), @@ -5915,7 +5915,7 @@ class Ec2Config { factory Ec2Config.fromJson(Map json) { return Ec2Config( securityGroupArns: (json['SecurityGroupArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), subnetArn: json['SubnetArn'] as String, @@ -6351,7 +6351,7 @@ class ListAgentsResponse { factory ListAgentsResponse.fromJson(Map json) { return ListAgentsResponse( agents: (json['Agents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentListEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6384,7 +6384,7 @@ class ListDiscoveryJobsResponse { factory ListDiscoveryJobsResponse.fromJson(Map json) { return ListDiscoveryJobsResponse( discoveryJobs: (json['DiscoveryJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DiscoveryJobListEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6418,7 +6418,7 @@ class ListLocationsResponse { factory ListLocationsResponse.fromJson(Map json) { return ListLocationsResponse( locations: (json['Locations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocationListEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6453,7 +6453,7 @@ class ListStorageSystemsResponse { return ListStorageSystemsResponse( nextToken: json['NextToken'] as String?, storageSystems: (json['StorageSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => StorageSystemListEntry.fromJson(e as Map)) .toList(), @@ -6488,7 +6488,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagListEntry.fromJson(e as Map)) .toList(), ); @@ -6522,7 +6522,7 @@ class ListTaskExecutionsResponse { return ListTaskExecutionsResponse( nextToken: json['NextToken'] as String?, taskExecutions: (json['TaskExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TaskExecutionListEntry.fromJson(e as Map)) .toList(), @@ -6557,7 +6557,7 @@ class ListTasksResponse { return ListTasksResponse( nextToken: json['NextToken'] as String?, tasks: (json['Tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskListEntry.fromJson(e as Map)) .toList(), ); @@ -6976,7 +6976,7 @@ class NetAppONTAPCluster { recommendationStatus: (json['RecommendationStatus'] as String?) ?.let(RecommendationStatus.fromString), recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), resourceId: json['ResourceId'] as String?, @@ -7095,7 +7095,7 @@ class NetAppONTAPSVM { cifsShareCount: json['CifsShareCount'] as int?, clusterUuid: json['ClusterUuid'] as String?, enabledProtocols: (json['EnabledProtocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lunCount: json['LunCount'] as int?, @@ -7107,7 +7107,7 @@ class NetAppONTAPSVM { recommendationStatus: (json['RecommendationStatus'] as String?) ?.let(RecommendationStatus.fromString), recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), resourceId: json['ResourceId'] as String?, @@ -7247,7 +7247,7 @@ class NetAppONTAPVolume { recommendationStatus: (json['RecommendationStatus'] as String?) ?.let(RecommendationStatus.fromString), recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), resourceId: json['ResourceId'] as String?, @@ -7421,10 +7421,8 @@ class OnPremConfig { factory OnPremConfig.fromJson(Map json) { return OnPremConfig( - agentArns: (json['AgentArns'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + agentArns: + (json['AgentArns'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -8050,11 +8048,11 @@ class PrivateLinkConfig { return PrivateLinkConfig( privateLinkEndpoint: json['PrivateLinkEndpoint'] as String?, securityGroupArns: (json['SecurityGroupArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetArns: (json['SubnetArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcEndpointId: json['VpcEndpointId'] as String?, @@ -8455,15 +8453,15 @@ class ResourceDetails { factory ResourceDetails.fromJson(Map json) { return ResourceDetails( netAppONTAPClusters: (json['NetAppONTAPClusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetAppONTAPCluster.fromJson(e as Map)) .toList(), netAppONTAPSVMs: (json['NetAppONTAPSVMs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetAppONTAPSVM.fromJson(e as Map)) .toList(), netAppONTAPVolumes: (json['NetAppONTAPVolumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetAppONTAPVolume.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/data_zone/v2018_05_10.dart b/aws_client/lib/src/generated/data_zone/v2018_05_10.dart index dee1bf772..70fdbeded 100644 --- a/aws_client/lib/src/generated/data_zone/v2018_05_10.dart +++ b/aws_client/lib/src/generated/data_zone/v2018_05_10.dart @@ -5451,11 +5451,11 @@ class AcceptSubscriptionRequestOutput { requestReason: json['requestReason'] as String, status: SubscriptionRequestStatus.fromString((json['status'] as String)), subscribedListings: (json['subscribedListings'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedListing.fromJson(e as Map)) .toList(), subscribedPrincipals: (json['subscribedPrincipals'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedPrincipal.fromJson(e as Map)) .toList(), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), @@ -5578,7 +5578,7 @@ class AssetItem { firstRevisionCreatedAt: timeStampFromJson(json['firstRevisionCreatedAt']), firstRevisionCreatedBy: json['firstRevisionCreatedBy'] as String?, glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5644,17 +5644,17 @@ class AssetItemAdditionalAttributes { factory AssetItemAdditionalAttributes.fromJson(Map json) { return AssetItemAdditionalAttributes( formsOutput: (json['formsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FormOutput.fromJson(e as Map)) .toList(), latestTimeSeriesDataPointFormsOutput: (json['latestTimeSeriesDataPointFormsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesDataPointSummaryFormOutput.fromJson( e as Map)) .toList(), readOnlyFormsOutput: (json['readOnlyFormsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FormOutput.fromJson(e as Map)) .toList(), ); @@ -5727,12 +5727,12 @@ class AssetListing { createdAt: timeStampFromJson(json['createdAt']), forms: json['forms'] as String?, glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetailedGlossaryTerm.fromJson(e as Map)) .toList(), latestTimeSeriesDataPointForms: (json['latestTimeSeriesDataPointForms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesDataPointSummaryFormOutput.fromJson( e as Map)) .toList(), @@ -5865,7 +5865,7 @@ class AssetListingItem { entityRevision: json['entityRevision'] as String?, entityType: json['entityType'] as String?, glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetailedGlossaryTerm.fromJson(e as Map)) .toList(), listingCreatedBy: json['listingCreatedBy'] as String?, @@ -5931,7 +5931,7 @@ class AssetListingItemAdditionalAttributes { forms: json['forms'] as String?, latestTimeSeriesDataPointForms: (json['latestTimeSeriesDataPointForms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesDataPointSummaryFormOutput.fromJson( e as Map)) .toList(), @@ -6380,7 +6380,7 @@ class ConfigurableEnvironmentAction { factory ConfigurableEnvironmentAction.fromJson(Map json) { return ConfigurableEnvironmentAction( parameters: (json['parameters'] as List) - .whereNotNull() + .nonNulls .map((e) => ConfigurableActionParameter.fromJson(e as Map)) .toList(), @@ -6489,7 +6489,7 @@ class CreateAssetOutput { return CreateAssetOutput( domainId: json['domainId'] as String, formsOutput: (json['formsOutput'] as List) - .whereNotNull() + .nonNulls .map((e) => FormOutput.fromJson(e as Map)) .toList(), id: json['id'] as String, @@ -6505,12 +6505,12 @@ class CreateAssetOutput { firstRevisionCreatedAt: timeStampFromJson(json['firstRevisionCreatedAt']), firstRevisionCreatedBy: json['firstRevisionCreatedBy'] as String?, glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), latestTimeSeriesDataPointFormsOutput: (json['latestTimeSeriesDataPointFormsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesDataPointSummaryFormOutput.fromJson( e as Map)) .toList(), @@ -6523,7 +6523,7 @@ class CreateAssetOutput { json['predictionConfiguration'] as Map) : null, readOnlyFormsOutput: (json['readOnlyFormsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FormOutput.fromJson(e as Map)) .toList(), ); @@ -6671,7 +6671,7 @@ class CreateAssetRevisionOutput { return CreateAssetRevisionOutput( domainId: json['domainId'] as String, formsOutput: (json['formsOutput'] as List) - .whereNotNull() + .nonNulls .map((e) => FormOutput.fromJson(e as Map)) .toList(), id: json['id'] as String, @@ -6687,12 +6687,12 @@ class CreateAssetRevisionOutput { firstRevisionCreatedAt: timeStampFromJson(json['firstRevisionCreatedAt']), firstRevisionCreatedBy: json['firstRevisionCreatedBy'] as String?, glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), latestTimeSeriesDataPointFormsOutput: (json['latestTimeSeriesDataPointFormsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesDataPointSummaryFormOutput.fromJson( e as Map)) .toList(), @@ -6705,7 +6705,7 @@ class CreateAssetRevisionOutput { json['predictionConfiguration'] as Map) : null, readOnlyFormsOutput: (json['readOnlyFormsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FormOutput.fromJson(e as Map)) .toList(), ); @@ -6962,7 +6962,7 @@ class CreateDataSourceOutput { name: json['name'] as String, projectId: json['projectId'] as String, assetFormsOutput: (json['assetFormsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FormOutput.fromJson(e as Map)) .toList(), configuration: json['configuration'] != null @@ -7249,13 +7249,13 @@ class CreateEnvironmentOutput { : null, description: json['description'] as String?, environmentActions: (json['environmentActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurableEnvironmentAction.fromJson(e as Map)) .toList(), environmentBlueprintId: json['environmentBlueprintId'] as String?, glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), id: json['id'] as String?, @@ -7263,7 +7263,7 @@ class CreateEnvironmentOutput { ? Deployment.fromJson(json['lastDeployment'] as Map) : null, provisionedResources: (json['provisionedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), provisioningProperties: json['provisioningProperties'] != null @@ -7273,7 +7273,7 @@ class CreateEnvironmentOutput { status: (json['status'] as String?)?.let(EnvironmentStatus.fromString), updatedAt: timeStampFromJson(json['updatedAt']), userParameters: (json['userParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomParameter.fromJson(e as Map)) .toList(), ); @@ -7401,7 +7401,7 @@ class CreateEnvironmentProfileOutput { projectId: json['projectId'] as String?, updatedAt: timeStampFromJson(json['updatedAt']), userParameters: (json['userParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomParameter.fromJson(e as Map)) .toList(), ); @@ -7784,11 +7784,11 @@ class CreateProjectOutput { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectDeletionError.fromJson(e as Map)) .toList(), glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), @@ -7886,7 +7886,7 @@ class CreateSubscriptionGrantOutput { subscriptionTargetId: json['subscriptionTargetId'] as String, updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), assets: (json['assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubscribedAsset.fromJson(e as Map)) .toList(), subscriptionId: json['subscriptionId'] as String?, @@ -7984,11 +7984,11 @@ class CreateSubscriptionRequestOutput { requestReason: json['requestReason'] as String, status: SubscriptionRequestStatus.fromString((json['status'] as String)), subscribedListings: (json['subscribedListings'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedListing.fromJson(e as Map)) .toList(), subscribedPrincipals: (json['subscribedPrincipals'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedPrincipal.fromJson(e as Map)) .toList(), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), @@ -8096,11 +8096,11 @@ class CreateSubscriptionTargetOutput { factory CreateSubscriptionTargetOutput.fromJson(Map json) { return CreateSubscriptionTargetOutput( applicableAssetTypes: (json['applicableAssetTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), authorizedPrincipals: (json['authorizedPrincipals'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), @@ -8113,7 +8113,7 @@ class CreateSubscriptionTargetOutput { projectId: json['projectId'] as String, provider: json['provider'] as String, subscriptionTargetConfig: (json['subscriptionTargetConfig'] as List) - .whereNotNull() + .nonNulls .map( (e) => SubscriptionTargetForm.fromJson(e as Map)) .toList(), @@ -8378,12 +8378,12 @@ class DataProductSummary { createdAt: timeStampFromJson(json['createdAt']), createdBy: json['createdBy'] as String?, dataProductItems: (json['dataProductItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataProductItem.fromJson(e as Map)) .toList(), description: json['description'] as String?, glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), updatedAt: timeStampFromJson(json['updatedAt']), @@ -9010,7 +9010,7 @@ class DeleteDataSourceOutput { name: json['name'] as String, projectId: json['projectId'] as String, assetFormsOutput: (json['assetFormsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FormOutput.fromJson(e as Map)) .toList(), configuration: json['configuration'] != null @@ -9259,7 +9259,7 @@ class DeleteSubscriptionGrantOutput { subscriptionTargetId: json['subscriptionTargetId'] as String, updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), assets: (json['assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubscribedAsset.fromJson(e as Map)) .toList(), subscriptionId: json['subscriptionId'] as String?, @@ -9349,7 +9349,7 @@ class Deployment { : null, isDeploymentComplete: json['isDeploymentComplete'] as bool?, messages: (json['messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9643,7 +9643,7 @@ class EnvironmentBlueprintConfigurationItem { environmentBlueprintId: json['environmentBlueprintId'] as String, createdAt: timeStampFromJson(json['createdAt']), enabledRegions: (json['enabledRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), manageAccessRoleArn: json['manageAccessRoleArn'] as String?, @@ -10360,7 +10360,7 @@ class FormTypeData { createdBy: json['createdBy'] as String?, description: json['description'] as String?, imports: (json['imports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Import.fromJson(e as Map)) .toList(), model: json['model'] != null @@ -10500,7 +10500,7 @@ class GetAssetOutput { return GetAssetOutput( domainId: json['domainId'] as String, formsOutput: (json['formsOutput'] as List) - .whereNotNull() + .nonNulls .map((e) => FormOutput.fromJson(e as Map)) .toList(), id: json['id'] as String, @@ -10516,12 +10516,12 @@ class GetAssetOutput { firstRevisionCreatedAt: timeStampFromJson(json['firstRevisionCreatedAt']), firstRevisionCreatedBy: json['firstRevisionCreatedBy'] as String?, glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), latestTimeSeriesDataPointFormsOutput: (json['latestTimeSeriesDataPointFormsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesDataPointSummaryFormOutput.fromJson( e as Map)) .toList(), @@ -10530,7 +10530,7 @@ class GetAssetOutput { json['listing'] as Map) : null, readOnlyFormsOutput: (json['readOnlyFormsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FormOutput.fromJson(e as Map)) .toList(), ); @@ -10786,7 +10786,7 @@ class GetDataSourceOutput { name: json['name'] as String, projectId: json['projectId'] as String, assetFormsOutput: (json['assetFormsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FormOutput.fromJson(e as Map)) .toList(), configuration: json['configuration'] != null @@ -11138,7 +11138,7 @@ class GetEnvironmentBlueprintConfigurationOutput { environmentBlueprintId: json['environmentBlueprintId'] as String, createdAt: timeStampFromJson(json['createdAt']), enabledRegions: (json['enabledRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), manageAccessRoleArn: json['manageAccessRoleArn'] as String?, @@ -11234,12 +11234,12 @@ class GetEnvironmentBlueprintOutput { : null, description: json['description'] as String?, glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), updatedAt: timeStampFromJson(json['updatedAt']), userParameters: (json['userParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomParameter.fromJson(e as Map)) .toList(), ); @@ -11377,13 +11377,13 @@ class GetEnvironmentOutput { : null, description: json['description'] as String?, environmentActions: (json['environmentActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurableEnvironmentAction.fromJson(e as Map)) .toList(), environmentBlueprintId: json['environmentBlueprintId'] as String?, glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), id: json['id'] as String?, @@ -11391,7 +11391,7 @@ class GetEnvironmentOutput { ? Deployment.fromJson(json['lastDeployment'] as Map) : null, provisionedResources: (json['provisionedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), provisioningProperties: json['provisioningProperties'] != null @@ -11401,7 +11401,7 @@ class GetEnvironmentOutput { status: (json['status'] as String?)?.let(EnvironmentStatus.fromString), updatedAt: timeStampFromJson(json['updatedAt']), userParameters: (json['userParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomParameter.fromJson(e as Map)) .toList(), ); @@ -11528,7 +11528,7 @@ class GetEnvironmentProfileOutput { projectId: json['projectId'] as String?, updatedAt: timeStampFromJson(json['updatedAt']), userParameters: (json['userParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomParameter.fromJson(e as Map)) .toList(), ); @@ -11629,7 +11629,7 @@ class GetFormTypeOutput { createdBy: json['createdBy'] as String?, description: json['description'] as String?, imports: (json['imports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Import.fromJson(e as Map)) .toList(), originDomainId: json['originDomainId'] as String?, @@ -12156,11 +12156,11 @@ class GetProjectOutput { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectDeletionError.fromJson(e as Map)) .toList(), glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), @@ -12256,7 +12256,7 @@ class GetSubscriptionGrantOutput { subscriptionTargetId: json['subscriptionTargetId'] as String, updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), assets: (json['assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubscribedAsset.fromJson(e as Map)) .toList(), subscriptionId: json['subscriptionId'] as String?, @@ -12451,11 +12451,11 @@ class GetSubscriptionRequestDetailsOutput { requestReason: json['requestReason'] as String, status: SubscriptionRequestStatus.fromString((json['status'] as String)), subscribedListings: (json['subscribedListings'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedListing.fromJson(e as Map)) .toList(), subscribedPrincipals: (json['subscribedPrincipals'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedPrincipal.fromJson(e as Map)) .toList(), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), @@ -12563,11 +12563,11 @@ class GetSubscriptionTargetOutput { factory GetSubscriptionTargetOutput.fromJson(Map json) { return GetSubscriptionTargetOutput( applicableAssetTypes: (json['applicableAssetTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), authorizedPrincipals: (json['authorizedPrincipals'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), @@ -12580,7 +12580,7 @@ class GetSubscriptionTargetOutput { projectId: json['projectId'] as String, provider: json['provider'] as String, subscriptionTargetConfig: (json['subscriptionTargetConfig'] as List) - .whereNotNull() + .nonNulls .map( (e) => SubscriptionTargetForm.fromJson(e as Map)) .toList(), @@ -13022,7 +13022,7 @@ class GlueRunConfigurationOutput { return GlueRunConfigurationOutput( relationalFilterConfigurations: (json['relationalFilterConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => RelationalFilterConfiguration.fromJson(e as Map)) .toList(), @@ -13278,7 +13278,7 @@ class ListAssetRevisionsOutput { factory ListAssetRevisionsOutput.fromJson(Map json) { return ListAssetRevisionsOutput( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetRevision.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -13316,7 +13316,7 @@ class ListDataSourceRunActivitiesOutput { Map json) { return ListDataSourceRunActivitiesOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSourceRunActivity.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -13353,7 +13353,7 @@ class ListDataSourceRunsOutput { factory ListDataSourceRunsOutput.fromJson(Map json) { return ListDataSourceRunsOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSourceRunSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -13390,7 +13390,7 @@ class ListDataSourcesOutput { factory ListDataSourcesOutput.fromJson(Map json) { return ListDataSourcesOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSourceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -13427,7 +13427,7 @@ class ListDomainsOutput { factory ListDomainsOutput.fromJson(Map json) { return ListDomainsOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -13467,7 +13467,7 @@ class ListEnvironmentBlueprintConfigurationsOutput { Map json) { return ListEnvironmentBlueprintConfigurationsOutput( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentBlueprintConfigurationItem.fromJson( e as Map)) .toList(), @@ -13506,7 +13506,7 @@ class ListEnvironmentBlueprintsOutput { factory ListEnvironmentBlueprintsOutput.fromJson(Map json) { return ListEnvironmentBlueprintsOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => EnvironmentBlueprintSummary.fromJson(e as Map)) .toList(), @@ -13545,7 +13545,7 @@ class ListEnvironmentProfilesOutput { factory ListEnvironmentProfilesOutput.fromJson(Map json) { return ListEnvironmentProfilesOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => EnvironmentProfileSummary.fromJson(e as Map)) .toList(), @@ -13583,7 +13583,7 @@ class ListEnvironmentsOutput { factory ListEnvironmentsOutput.fromJson(Map json) { return ListEnvironmentsOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => EnvironmentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -13620,7 +13620,7 @@ class ListMetadataGenerationRunsOutput { factory ListMetadataGenerationRunsOutput.fromJson(Map json) { return ListMetadataGenerationRunsOutput( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetadataGenerationRunItem.fromJson(e as Map)) .toList(), @@ -13659,7 +13659,7 @@ class ListNotificationsOutput { return ListNotificationsOutput( nextToken: json['nextToken'] as String?, notifications: (json['notifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationOutput.fromJson(e as Map)) .toList(), ); @@ -13695,7 +13695,7 @@ class ListProjectMembershipsOutput { factory ListProjectMembershipsOutput.fromJson(Map json) { return ListProjectMembershipsOutput( members: (json['members'] as List) - .whereNotNull() + .nonNulls .map((e) => ProjectMember.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -13732,7 +13732,7 @@ class ListProjectsOutput { factory ListProjectsOutput.fromJson(Map json) { return ListProjectsOutput( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -13770,7 +13770,7 @@ class ListSubscriptionGrantsOutput { factory ListSubscriptionGrantsOutput.fromJson(Map json) { return ListSubscriptionGrantsOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscriptionGrantSummary.fromJson(e as Map)) .toList(), @@ -13809,7 +13809,7 @@ class ListSubscriptionRequestsOutput { factory ListSubscriptionRequestsOutput.fromJson(Map json) { return ListSubscriptionRequestsOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscriptionRequestSummary.fromJson(e as Map)) .toList(), @@ -13848,7 +13848,7 @@ class ListSubscriptionTargetsOutput { factory ListSubscriptionTargetsOutput.fromJson(Map json) { return ListSubscriptionTargetsOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscriptionTargetSummary.fromJson(e as Map)) .toList(), @@ -13886,7 +13886,7 @@ class ListSubscriptionsOutput { factory ListSubscriptionsOutput.fromJson(Map json) { return ListSubscriptionsOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscriptionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -13946,7 +13946,7 @@ class ListTimeSeriesDataPointsOutput { factory ListTimeSeriesDataPointsOutput.fromJson(Map json) { return ListTimeSeriesDataPointsOutput( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesDataPointSummaryFormOutput.fromJson( e as Map)) .toList(), @@ -14512,7 +14512,7 @@ class PostTimeSeriesDataPointsOutput { entityType: (json['entityType'] as String?)?.let(TimeSeriesEntityType.fromString), forms: (json['forms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesDataPointFormOutput.fromJson(e as Map)) .toList(), @@ -14689,7 +14689,7 @@ class ProjectSummary { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectDeletionError.fromJson(e as Map)) .toList(), projectStatus: @@ -14792,7 +14792,7 @@ class PutEnvironmentBlueprintConfigurationOutput { environmentBlueprintId: json['environmentBlueprintId'] as String, createdAt: timeStampFromJson(json['createdAt']), enabledRegions: (json['enabledRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), manageAccessRoleArn: json['manageAccessRoleArn'] as String?, @@ -14977,7 +14977,7 @@ class RedshiftRunConfigurationOutput { json['redshiftStorage'] as Map), relationalFilterConfigurations: (json['relationalFilterConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => RelationalFilterConfiguration.fromJson(e as Map)) .toList(), @@ -15233,11 +15233,11 @@ class RejectSubscriptionRequestOutput { requestReason: json['requestReason'] as String, status: SubscriptionRequestStatus.fromString((json['status'] as String)), subscribedListings: (json['subscribedListings'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedListing.fromJson(e as Map)) .toList(), subscribedPrincipals: (json['subscribedPrincipals'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedPrincipal.fromJson(e as Map)) .toList(), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), @@ -15301,7 +15301,7 @@ class RelationalFilterConfiguration { return RelationalFilterConfiguration( databaseName: json['databaseName'] as String, filterExpressions: (json['filterExpressions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterExpression.fromJson(e as Map)) .toList(), schemaName: json['schemaName'] as String?, @@ -15561,7 +15561,7 @@ class SearchGroupProfilesOutput { factory SearchGroupProfilesOutput.fromJson(Map json) { return SearchGroupProfilesOutput( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupProfileSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -15673,7 +15673,7 @@ class SearchListingsOutput { factory SearchListingsOutput.fromJson(Map json) { return SearchListingsOutput( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SearchResultItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -15717,7 +15717,7 @@ class SearchOutput { factory SearchOutput.fromJson(Map json) { return SearchOutput( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SearchInventoryResultItem.fromJson(e as Map)) .toList(), @@ -15827,7 +15827,7 @@ class SearchTypesOutput { factory SearchTypesOutput.fromJson(Map json) { return SearchTypesOutput( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SearchTypesResultItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -15904,7 +15904,7 @@ class SearchUserProfilesOutput { factory SearchUserProfilesOutput.fromJson(Map json) { return SearchUserProfilesOutput( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserProfileSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -16325,7 +16325,7 @@ class SubscribedAssetListing { entityType: json['entityType'] as String?, forms: json['forms'] as String?, glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetailedGlossaryTerm.fromJson(e as Map)) .toList(), ); @@ -16656,7 +16656,7 @@ class SubscriptionGrantSummary { subscriptionTargetId: json['subscriptionTargetId'] as String, updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), assets: (json['assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubscribedAsset.fromJson(e as Map)) .toList(), subscriptionId: json['subscriptionId'] as String?, @@ -16772,11 +16772,11 @@ class SubscriptionRequestSummary { requestReason: json['requestReason'] as String, status: SubscriptionRequestStatus.fromString((json['status'] as String)), subscribedListings: (json['subscribedListings'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedListing.fromJson(e as Map)) .toList(), subscribedPrincipals: (json['subscribedPrincipals'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedPrincipal.fromJson(e as Map)) .toList(), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), @@ -17027,11 +17027,11 @@ class SubscriptionTargetSummary { factory SubscriptionTargetSummary.fromJson(Map json) { return SubscriptionTargetSummary( applicableAssetTypes: (json['applicableAssetTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), authorizedPrincipals: (json['authorizedPrincipals'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), @@ -17044,7 +17044,7 @@ class SubscriptionTargetSummary { projectId: json['projectId'] as String, provider: json['provider'] as String, subscriptionTargetConfig: (json['subscriptionTargetConfig'] as List) - .whereNotNull() + .nonNulls .map( (e) => SubscriptionTargetForm.fromJson(e as Map)) .toList(), @@ -17132,13 +17132,10 @@ class TermRelations { factory TermRelations.fromJson(Map json) { return TermRelations( classifies: (json['classifies'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - isA: (json['isA'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + isA: (json['isA'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -17567,7 +17564,7 @@ class UpdateDataSourceOutput { name: json['name'] as String, projectId: json['projectId'] as String, assetFormsOutput: (json['assetFormsOutput'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FormOutput.fromJson(e as Map)) .toList(), configuration: json['configuration'] != null @@ -17828,13 +17825,13 @@ class UpdateEnvironmentOutput { : null, description: json['description'] as String?, environmentActions: (json['environmentActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurableEnvironmentAction.fromJson(e as Map)) .toList(), environmentBlueprintId: json['environmentBlueprintId'] as String?, glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), id: json['id'] as String?, @@ -17842,7 +17839,7 @@ class UpdateEnvironmentOutput { ? Deployment.fromJson(json['lastDeployment'] as Map) : null, provisionedResources: (json['provisionedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), provisioningProperties: json['provisioningProperties'] != null @@ -17852,7 +17849,7 @@ class UpdateEnvironmentOutput { status: (json['status'] as String?)?.let(EnvironmentStatus.fromString), updatedAt: timeStampFromJson(json['updatedAt']), userParameters: (json['userParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomParameter.fromJson(e as Map)) .toList(), ); @@ -17984,7 +17981,7 @@ class UpdateEnvironmentProfileOutput { projectId: json['projectId'] as String?, updatedAt: timeStampFromJson(json['updatedAt']), userParameters: (json['userParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomParameter.fromJson(e as Map)) .toList(), ); @@ -18257,11 +18254,11 @@ class UpdateProjectOutput { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectDeletionError.fromJson(e as Map)) .toList(), glossaryTerms: (json['glossaryTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), @@ -18362,7 +18359,7 @@ class UpdateSubscriptionGrantStatusOutput { subscriptionTargetId: json['subscriptionTargetId'] as String, updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), assets: (json['assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubscribedAsset.fromJson(e as Map)) .toList(), subscriptionId: json['subscriptionId'] as String?, @@ -18461,11 +18458,11 @@ class UpdateSubscriptionRequestOutput { requestReason: json['requestReason'] as String, status: SubscriptionRequestStatus.fromString((json['status'] as String)), subscribedListings: (json['subscribedListings'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedListing.fromJson(e as Map)) .toList(), subscribedPrincipals: (json['subscribedPrincipals'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedPrincipal.fromJson(e as Map)) .toList(), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), @@ -18582,11 +18579,11 @@ class UpdateSubscriptionTargetOutput { factory UpdateSubscriptionTargetOutput.fromJson(Map json) { return UpdateSubscriptionTargetOutput( applicableAssetTypes: (json['applicableAssetTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), authorizedPrincipals: (json['authorizedPrincipals'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), @@ -18599,7 +18596,7 @@ class UpdateSubscriptionTargetOutput { projectId: json['projectId'] as String, provider: json['provider'] as String, subscriptionTargetConfig: (json['subscriptionTargetConfig'] as List) - .whereNotNull() + .nonNulls .map( (e) => SubscriptionTargetForm.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/database_migration_service/v2016_01_01.dart b/aws_client/lib/src/generated/database_migration_service/v2016_01_01.dart index 8d684a337..3209ecabe 100644 --- a/aws_client/lib/src/generated/database_migration_service/v2016_01_01.dart +++ b/aws_client/lib/src/generated/database_migration_service/v2016_01_01.dart @@ -6737,7 +6737,7 @@ class BatchStartRecommendationsResponse { Map json) { return BatchStartRecommendationsResponse( errorEntries: (json['ErrorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchStartRecommendationsErrorEntry.fromJson( e as Map)) .toList(), @@ -7247,7 +7247,7 @@ class ComputeConfig { preferredMaintenanceWindow: json['PreferredMaintenanceWindow'] as String?, replicationSubnetGroupId: json['ReplicationSubnetGroupId'] as String?, vpcSecurityGroupIds: (json['VpcSecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8026,7 +8026,7 @@ class DatabaseResponse { factory DatabaseResponse.fromJson(Map json) { return DatabaseResponse( collectors: (json['Collectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CollectorShortInfoResponse.fromJson(e as Map)) .toList(), @@ -8304,7 +8304,7 @@ class DeleteFleetAdvisorDatabasesResponse { Map json) { return DeleteFleetAdvisorDatabasesResponse( databaseIds: (json['DatabaseIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8521,7 +8521,7 @@ class DescribeAccountAttributesResponse { Map json) { return DescribeAccountAttributesResponse( accountQuotas: (json['AccountQuotas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountQuota.fromJson(e as Map)) .toList(), uniqueAccountIdentifier: json['UniqueAccountIdentifier'] as String?, @@ -8565,7 +8565,7 @@ class DescribeApplicableIndividualAssessmentsResponse { Map json) { return DescribeApplicableIndividualAssessmentsResponse( individualAssessmentNames: (json['IndividualAssessmentNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), marker: json['Marker'] as String?, @@ -8599,7 +8599,7 @@ class DescribeCertificatesResponse { factory DescribeCertificatesResponse.fromJson(Map json) { return DescribeCertificatesResponse( certificates: (json['Certificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Certificate.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8634,7 +8634,7 @@ class DescribeConnectionsResponse { factory DescribeConnectionsResponse.fromJson(Map json) { return DescribeConnectionsResponse( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8706,7 +8706,7 @@ class DescribeDataProvidersResponse { factory DescribeDataProvidersResponse.fromJson(Map json) { return DescribeDataProvidersResponse( dataProviders: (json['DataProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataProvider.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8741,7 +8741,7 @@ class DescribeEndpointSettingsResponse { factory DescribeEndpointSettingsResponse.fromJson(Map json) { return DescribeEndpointSettingsResponse( endpointSettings: (json['EndpointSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointSetting.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8777,7 +8777,7 @@ class DescribeEndpointTypesResponse { return DescribeEndpointTypesResponse( marker: json['Marker'] as String?, supportedEndpointTypes: (json['SupportedEndpointTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedEndpointType.fromJson(e as Map)) .toList(), ); @@ -8812,7 +8812,7 @@ class DescribeEndpointsResponse { factory DescribeEndpointsResponse.fromJson(Map json) { return DescribeEndpointsResponse( endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8847,7 +8847,7 @@ class DescribeEngineVersionsResponse { factory DescribeEngineVersionsResponse.fromJson(Map json) { return DescribeEngineVersionsResponse( engineVersions: (json['EngineVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngineVersion.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8876,7 +8876,7 @@ class DescribeEventCategoriesResponse { factory DescribeEventCategoriesResponse.fromJson(Map json) { return DescribeEventCategoriesResponse( eventCategoryGroupList: (json['EventCategoryGroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventCategoryGroup.fromJson(e as Map)) .toList(), ); @@ -8910,7 +8910,7 @@ class DescribeEventSubscriptionsResponse { Map json) { return DescribeEventSubscriptionsResponse( eventSubscriptionsList: (json['EventSubscriptionsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSubscription.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8946,7 +8946,7 @@ class DescribeEventsResponse { factory DescribeEventsResponse.fromJson(Map json) { return DescribeEventsResponse( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8989,7 +8989,7 @@ class DescribeExtensionPackAssociationsResponse { return DescribeExtensionPackAssociationsResponse( marker: json['Marker'] as String?, requests: (json['Requests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConversionRequest.fromJson(e as Map)) .toList(), @@ -9026,7 +9026,7 @@ class DescribeFleetAdvisorCollectorsResponse { Map json) { return DescribeFleetAdvisorCollectorsResponse( collectors: (json['Collectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CollectorResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9063,7 +9063,7 @@ class DescribeFleetAdvisorDatabasesResponse { Map json) { return DescribeFleetAdvisorDatabasesResponse( databases: (json['Databases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatabaseResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9099,7 +9099,7 @@ class DescribeFleetAdvisorLsaAnalysisResponse { Map json) { return DescribeFleetAdvisorLsaAnalysisResponse( analysis: (json['Analysis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAdvisorLsaAnalysisResponse.fromJson( e as Map)) .toList(), @@ -9136,7 +9136,7 @@ class DescribeFleetAdvisorSchemaObjectSummaryResponse { Map json) { return DescribeFleetAdvisorSchemaObjectSummaryResponse( fleetAdvisorSchemaObjects: (json['FleetAdvisorSchemaObjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAdvisorSchemaObjectResponse.fromJson( e as Map)) .toList(), @@ -9174,7 +9174,7 @@ class DescribeFleetAdvisorSchemasResponse { Map json) { return DescribeFleetAdvisorSchemasResponse( fleetAdvisorSchemas: (json['FleetAdvisorSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9215,7 +9215,7 @@ class DescribeInstanceProfilesResponse { factory DescribeInstanceProfilesResponse.fromJson(Map json) { return DescribeInstanceProfilesResponse( instanceProfiles: (json['InstanceProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceProfile.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -9258,7 +9258,7 @@ class DescribeMetadataModelAssessmentsResponse { return DescribeMetadataModelAssessmentsResponse( marker: json['Marker'] as String?, requests: (json['Requests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConversionRequest.fromJson(e as Map)) .toList(), @@ -9300,7 +9300,7 @@ class DescribeMetadataModelConversionsResponse { return DescribeMetadataModelConversionsResponse( marker: json['Marker'] as String?, requests: (json['Requests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConversionRequest.fromJson(e as Map)) .toList(), @@ -9342,7 +9342,7 @@ class DescribeMetadataModelExportsAsScriptResponse { return DescribeMetadataModelExportsAsScriptResponse( marker: json['Marker'] as String?, requests: (json['Requests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConversionRequest.fromJson(e as Map)) .toList(), @@ -9384,7 +9384,7 @@ class DescribeMetadataModelExportsToTargetResponse { return DescribeMetadataModelExportsToTargetResponse( marker: json['Marker'] as String?, requests: (json['Requests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConversionRequest.fromJson(e as Map)) .toList(), @@ -9426,7 +9426,7 @@ class DescribeMetadataModelImportsResponse { return DescribeMetadataModelImportsResponse( marker: json['Marker'] as String?, requests: (json['Requests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConversionRequest.fromJson(e as Map)) .toList(), @@ -9468,7 +9468,7 @@ class DescribeMigrationProjectsResponse { return DescribeMigrationProjectsResponse( marker: json['Marker'] as String?, migrationProjects: (json['MigrationProjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MigrationProject.fromJson(e as Map)) .toList(), ); @@ -9505,7 +9505,7 @@ class DescribeOrderableReplicationInstancesResponse { marker: json['Marker'] as String?, orderableReplicationInstances: (json['OrderableReplicationInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrderableReplicationInstance.fromJson(e as Map)) .toList(), @@ -9543,7 +9543,7 @@ class DescribePendingMaintenanceActionsResponse { return DescribePendingMaintenanceActionsResponse( marker: json['Marker'] as String?, pendingMaintenanceActions: (json['PendingMaintenanceActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePendingMaintenanceActions.fromJson( e as Map)) .toList(), @@ -9582,7 +9582,7 @@ class DescribeRecommendationLimitationsResponse { Map json) { return DescribeRecommendationLimitationsResponse( limitations: (json['Limitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Limitation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9620,7 +9620,7 @@ class DescribeRecommendationsResponse { return DescribeRecommendationsResponse( nextToken: json['NextToken'] as String?, recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), ); @@ -9685,7 +9685,7 @@ class DescribeReplicationConfigsResponse { return DescribeReplicationConfigsResponse( marker: json['Marker'] as String?, replicationConfigs: (json['ReplicationConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationConfig.fromJson(e as Map)) .toList(), ); @@ -9727,7 +9727,7 @@ class DescribeReplicationInstanceTaskLogsResponse { replicationInstanceArn: json['ReplicationInstanceArn'] as String?, replicationInstanceTaskLogs: (json['ReplicationInstanceTaskLogs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationInstanceTaskLog.fromJson(e as Map)) .toList(), @@ -9768,7 +9768,7 @@ class DescribeReplicationInstancesResponse { return DescribeReplicationInstancesResponse( marker: json['Marker'] as String?, replicationInstances: (json['ReplicationInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationInstance.fromJson(e as Map)) .toList(), ); @@ -9805,7 +9805,7 @@ class DescribeReplicationSubnetGroupsResponse { return DescribeReplicationSubnetGroupsResponse( marker: json['Marker'] as String?, replicationSubnetGroups: (json['ReplicationSubnetGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ReplicationSubnetGroup.fromJson(e as Map)) .toList(), @@ -9849,7 +9849,7 @@ class DescribeReplicationTableStatisticsResponse { marker: json['Marker'] as String?, replicationConfigArn: json['ReplicationConfigArn'] as String?, replicationTableStatistics: (json['ReplicationTableStatistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableStatistics.fromJson(e as Map)) .toList(), ); @@ -9895,7 +9895,7 @@ class DescribeReplicationTaskAssessmentResultsResponse { marker: json['Marker'] as String?, replicationTaskAssessmentResults: (json['ReplicationTaskAssessmentResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationTaskAssessmentResult.fromJson( e as Map)) .toList(), @@ -9939,7 +9939,7 @@ class DescribeReplicationTaskAssessmentRunsResponse { marker: json['Marker'] as String?, replicationTaskAssessmentRuns: (json['ReplicationTaskAssessmentRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationTaskAssessmentRun.fromJson(e as Map)) .toList(), @@ -9980,7 +9980,7 @@ class DescribeReplicationTaskIndividualAssessmentsResponse { marker: json['Marker'] as String?, replicationTaskIndividualAssessments: (json['ReplicationTaskIndividualAssessments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationTaskIndividualAssessment.fromJson( e as Map)) .toList(), @@ -10019,7 +10019,7 @@ class DescribeReplicationTasksResponse { return DescribeReplicationTasksResponse( marker: json['Marker'] as String?, replicationTasks: (json['ReplicationTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationTask.fromJson(e as Map)) .toList(), ); @@ -10054,7 +10054,7 @@ class DescribeReplicationsResponse { return DescribeReplicationsResponse( marker: json['Marker'] as String?, replications: (json['Replications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Replication.fromJson(e as Map)) .toList(), ); @@ -10088,10 +10088,8 @@ class DescribeSchemasResponse { factory DescribeSchemasResponse.fromJson(Map json) { return DescribeSchemasResponse( marker: json['Marker'] as String?, - schemas: (json['Schemas'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + schemas: + (json['Schemas'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -10129,7 +10127,7 @@ class DescribeTableStatisticsResponse { marker: json['Marker'] as String?, replicationTaskArn: json['ReplicationTaskArn'] as String?, tableStatistics: (json['TableStatistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableStatistics.fromJson(e as Map)) .toList(), ); @@ -10965,7 +10963,7 @@ class EndpointSetting { applicability: json['Applicability'] as String?, defaultValue: json['DefaultValue'] as String?, enumValues: (json['EnumValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), intValueMax: json['IntValueMax'] as int?, @@ -11064,7 +11062,7 @@ class EngineVersion { return EngineVersion( autoUpgradeDate: timeStampFromJson(json['AutoUpgradeDate']), availableUpgrades: (json['AvailableUpgrades'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deprecationDate: timeStampFromJson(json['DeprecationDate']), @@ -11162,7 +11160,7 @@ class Event { return Event( date: timeStampFromJson(json['Date']), eventCategories: (json['EventCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), message: json['Message'] as String?, @@ -11209,7 +11207,7 @@ class EventCategoryGroup { factory EventCategoryGroup.fromJson(Map json) { return EventCategoryGroup( eventCategories: (json['EventCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceType: json['SourceType'] as String?, @@ -11287,12 +11285,12 @@ class EventSubscription { customerAwsId: json['CustomerAwsId'] as String?, enabled: json['Enabled'] as bool?, eventCategoriesList: (json['EventCategoriesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), snsTopicArn: json['SnsTopicArn'] as String?, sourceIdsList: (json['SourceIdsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceType: json['SourceType'] as String?, @@ -11982,7 +11980,7 @@ class InstanceProfile { publiclyAccessible: json['PubliclyAccessible'] as bool?, subnetGroupIdentifier: json['SubnetGroupIdentifier'] as String?, vpcSecurityGroups: (json['VpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12530,7 +12528,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -12942,13 +12940,13 @@ class MigrationProject { : null, sourceDataProviderDescriptors: (json['SourceDataProviderDescriptors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DataProviderDescriptor.fromJson(e as Map)) .toList(), targetDataProviderDescriptors: (json['TargetDataProviderDescriptors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DataProviderDescriptor.fromJson(e as Map)) .toList(), @@ -14438,7 +14436,7 @@ class OracleSettings { directPathParallelLoad: json['DirectPathParallelLoad'] as bool?, enableHomogenousTablespace: json['EnableHomogenousTablespace'] as bool?, extraArchivedLogDestIds: (json['ExtraArchivedLogDestIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), failTasksOnLobTruncation: json['FailTasksOnLobTruncation'] as bool?, @@ -14659,7 +14657,7 @@ class OrderableReplicationInstance { factory OrderableReplicationInstance.fromJson(Map json) { return OrderableReplicationInstance( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultAllocatedStorage: json['DefaultAllocatedStorage'] as int?, @@ -16441,7 +16439,7 @@ class Replication { cdcStartTime: timeStampFromJson(json['CdcStartTime']), cdcStopPosition: json['CdcStopPosition'] as String?, failureMessages: (json['FailureMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), provisionData: json['ProvisionData'] != null @@ -16874,21 +16872,21 @@ class ReplicationInstance { json['ReplicationInstanceIdentifier'] as String?, replicationInstanceIpv6Addresses: (json['ReplicationInstanceIpv6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), replicationInstancePrivateIpAddress: json['ReplicationInstancePrivateIpAddress'] as String?, replicationInstancePrivateIpAddresses: (json['ReplicationInstancePrivateIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), replicationInstancePublicIpAddress: json['ReplicationInstancePublicIpAddress'] as String?, replicationInstancePublicIpAddresses: (json['ReplicationInstancePublicIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), replicationInstanceStatus: json['ReplicationInstanceStatus'] as String?, @@ -16898,7 +16896,7 @@ class ReplicationInstance { : null, secondaryAvailabilityZone: json['SecondaryAvailabilityZone'] as String?, vpcSecurityGroups: (json['VpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcSecurityGroupMembership.fromJson(e as Map)) .toList(), @@ -17230,11 +17228,11 @@ class ReplicationSubnetGroup { json['ReplicationSubnetGroupIdentifier'] as String?, subnetGroupStatus: json['SubnetGroupStatus'] as String?, subnets: (json['Subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subnet.fromJson(e as Map)) .toList(), supportedNetworkTypes: (json['SupportedNetworkTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -18117,7 +18115,7 @@ class ResourcePendingMaintenanceActions { return ResourcePendingMaintenanceActions( pendingMaintenanceActionDetails: (json['PendingMaintenanceActionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingMaintenanceAction.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/dax/v2017_04_19.dart b/aws_client/lib/src/generated/dax/v2017_04_19.dart index ed2743703..e66ebd48f 100644 --- a/aws_client/lib/src/generated/dax/v2017_04_19.dart +++ b/aws_client/lib/src/generated/dax/v2017_04_19.dart @@ -1308,12 +1308,12 @@ class Cluster { description: json['Description'] as String?, iamRoleArn: json['IamRoleArn'] as String?, nodeIdsToRemove: (json['NodeIdsToRemove'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nodeType: json['NodeType'] as String?, nodes: (json['Nodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Node.fromJson(e as Map)) .toList(), notificationConfiguration: json['NotificationConfiguration'] != null @@ -1330,7 +1330,7 @@ class Cluster { json['SSEDescription'] as Map) : null, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityGroupMembership.fromJson(e as Map)) .toList(), @@ -1586,7 +1586,7 @@ class DescribeClustersResponse { factory DescribeClustersResponse.fromJson(Map json) { return DescribeClustersResponse( clusters: (json['Clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cluster.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1620,7 +1620,7 @@ class DescribeDefaultParametersResponse { return DescribeDefaultParametersResponse( nextToken: json['NextToken'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), ); @@ -1651,7 +1651,7 @@ class DescribeEventsResponse { factory DescribeEventsResponse.fromJson(Map json) { return DescribeEventsResponse( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1685,7 +1685,7 @@ class DescribeParameterGroupsResponse { return DescribeParameterGroupsResponse( nextToken: json['NextToken'] as String?, parameterGroups: (json['ParameterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterGroup.fromJson(e as Map)) .toList(), ); @@ -1718,7 +1718,7 @@ class DescribeParametersResponse { return DescribeParametersResponse( nextToken: json['NextToken'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), ); @@ -1751,7 +1751,7 @@ class DescribeSubnetGroupsResponse { return DescribeSubnetGroupsResponse( nextToken: json['NextToken'] as String?, subnetGroups: (json['SubnetGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubnetGroup.fromJson(e as Map)) .toList(), ); @@ -1913,7 +1913,7 @@ class ListTagsResponse { return ListTagsResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2117,7 +2117,7 @@ class Parameter { isModifiable: (json['IsModifiable'] as String?)?.let(IsModifiable.fromString), nodeTypeSpecificValues: (json['NodeTypeSpecificValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NodeTypeSpecificValue.fromJson(e as Map)) .toList(), parameterName: json['ParameterName'] as String?, @@ -2206,7 +2206,7 @@ class ParameterGroupStatus { factory ParameterGroupStatus.fromJson(Map json) { return ParameterGroupStatus( nodeIdsToReboot: (json['NodeIdsToReboot'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), parameterApplyStatus: json['ParameterApplyStatus'] as String?, @@ -2476,7 +2476,7 @@ class SubnetGroup { description: json['Description'] as String?, subnetGroupName: json['SubnetGroupName'] as String?, subnets: (json['Subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subnet.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -2548,7 +2548,7 @@ class TagResourceResponse { factory TagResourceResponse.fromJson(Map json) { return TagResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2573,7 +2573,7 @@ class UntagResourceResponse { factory UntagResourceResponse.fromJson(Map json) { return UntagResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/deadline/v2023_10_12.dart b/aws_client/lib/src/generated/deadline/v2023_10_12.dart index c8d8e99b3..a7e26fea5 100644 --- a/aws_client/lib/src/generated/deadline/v2023_10_12.dart +++ b/aws_client/lib/src/generated/deadline/v2023_10_12.dart @@ -4830,7 +4830,7 @@ class AssignedSession { json['logConfiguration'] as Map), queueId: json['queueId'] as String, sessionActions: (json['sessionActions'] as List) - .whereNotNull() + .nonNulls .map((e) => AssignedSessionAction.fromJson(e as Map)) .toList(), ); @@ -5184,7 +5184,7 @@ class Attachments { factory Attachments.fromJson(Map json) { return Attachments( manifests: (json['manifests'] as List) - .whereNotNull() + .nonNulls .map((e) => ManifestProperties.fromJson(e as Map)) .toList(), fileSystem: (json['fileSystem'] as String?) @@ -5292,11 +5292,11 @@ class BatchGetJobEntityResponse { factory BatchGetJobEntityResponse.fromJson(Map json) { return BatchGetJobEntityResponse( entities: (json['entities'] as List) - .whereNotNull() + .nonNulls .map((e) => JobEntity.fromJson(e as Map)) .toList(), errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => GetJobEntityError.fromJson(e as Map)) .toList(), ); @@ -5994,15 +5994,15 @@ class CustomerManagedWorkerCapabilities { json['acceleratorTotalMemoryMiB'] as Map) : null, acceleratorTypes: (json['acceleratorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AcceleratorType.fromString((e as String))) .toList(), customAmounts: (json['customAmounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAmountCapability.fromJson(e as Map)) .toList(), customAttributes: (json['customAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAttributeCapability.fromJson(e as Map)) .toList(), @@ -6895,10 +6895,8 @@ class FleetAttributeCapability { factory FleetAttributeCapability.fromJson(Map json) { return FleetAttributeCapability( name: json['name'] as String, - values: (json['values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -6928,11 +6926,11 @@ class FleetCapabilities { factory FleetCapabilities.fromJson(Map json) { return FleetCapabilities( amounts: (json['amounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAmountCapability.fromJson(e as Map)) .toList(), attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAttributeCapability.fromJson(e as Map)) .toList(), @@ -7252,7 +7250,7 @@ class GetBudgetResponse { factory GetBudgetResponse.fromJson(Map json) { return GetBudgetResponse( actions: (json['actions'] as List) - .whereNotNull() + .nonNulls .map((e) => ResponseBudgetAction.fromJson(e as Map)) .toList(), approximateDollarLimit: json['approximateDollarLimit'] as double, @@ -7784,11 +7782,11 @@ class GetLicenseEndpointResponse { statusMessage: json['statusMessage'] as String, dnsName: json['dnsName'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, @@ -8149,7 +8147,7 @@ class GetQueueResponse { queueId: json['queueId'] as String, status: QueueStatus.fromString((json['status'] as String)), allowedStorageProfileIds: (json['allowedStorageProfileIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), blockedReason: (json['blockedReason'] as String?) @@ -8164,7 +8162,7 @@ class GetQueueResponse { : null, requiredFileSystemLocationNames: (json['requiredFileSystemLocationNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), roleArn: json['roleArn'] as String?, @@ -8444,7 +8442,7 @@ class GetSessionsStatisticsAggregationResponse { (json['status'] as String)), nextToken: json['nextToken'] as String?, statistics: (json['statistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Statistics.fromJson(e as Map)) .toList(), statusMessage: json['statusMessage'] as String?, @@ -8644,7 +8642,7 @@ class GetStorageProfileForQueueResponse { (json['osFamily'] as String)), storageProfileId: json['storageProfileId'] as String, fileSystemLocations: (json['fileSystemLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemLocation.fromJson(e as Map)) .toList(), ); @@ -8710,7 +8708,7 @@ class GetStorageProfileResponse { (json['osFamily'] as String)), storageProfileId: json['storageProfileId'] as String, fileSystemLocations: (json['fileSystemLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemLocation.fromJson(e as Map)) .toList(), updatedAt: timeStampFromJson(json['updatedAt']), @@ -9018,11 +9016,11 @@ class IpAddresses { factory IpAddresses.fromJson(Map json) { return IpAddresses( ipV4Addresses: (json['ipV4Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ipV6Addresses: (json['ipV6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9221,7 +9219,7 @@ class JobDetailsEntity { parameters: (json['parameters'] as Map?)?.map((k, e) => MapEntry(k, JobParameter.fromJson(e as Map))), pathMappingRules: (json['pathMappingRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PathMappingRule.fromJson(e as Map)) .toList(), queueRoleArn: json['queueRoleArn'] as String?, @@ -10056,7 +10054,7 @@ class ListAvailableMeteredProductsResponse { Map json) { return ListAvailableMeteredProductsResponse( meteredProducts: (json['meteredProducts'] as List) - .whereNotNull() + .nonNulls .map((e) => MeteredProductSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10095,7 +10093,7 @@ class ListBudgetsResponse { factory ListBudgetsResponse.fromJson(Map json) { return ListBudgetsResponse( budgets: (json['budgets'] as List) - .whereNotNull() + .nonNulls .map((e) => BudgetSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10134,7 +10132,7 @@ class ListFarmMembersResponse { factory ListFarmMembersResponse.fromJson(Map json) { return ListFarmMembersResponse( members: (json['members'] as List) - .whereNotNull() + .nonNulls .map((e) => FarmMember.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10173,7 +10171,7 @@ class ListFarmsResponse { factory ListFarmsResponse.fromJson(Map json) { return ListFarmsResponse( farms: (json['farms'] as List) - .whereNotNull() + .nonNulls .map((e) => FarmSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10212,7 +10210,7 @@ class ListFleetMembersResponse { factory ListFleetMembersResponse.fromJson(Map json) { return ListFleetMembersResponse( members: (json['members'] as List) - .whereNotNull() + .nonNulls .map((e) => FleetMember.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10251,7 +10249,7 @@ class ListFleetsResponse { factory ListFleetsResponse.fromJson(Map json) { return ListFleetsResponse( fleets: (json['fleets'] as List) - .whereNotNull() + .nonNulls .map((e) => FleetSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10290,7 +10288,7 @@ class ListJobMembersResponse { factory ListJobMembersResponse.fromJson(Map json) { return ListJobMembersResponse( members: (json['members'] as List) - .whereNotNull() + .nonNulls .map((e) => JobMember.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10329,7 +10327,7 @@ class ListJobsResponse { factory ListJobsResponse.fromJson(Map json) { return ListJobsResponse( jobs: (json['jobs'] as List) - .whereNotNull() + .nonNulls .map((e) => JobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10368,7 +10366,7 @@ class ListLicenseEndpointsResponse { factory ListLicenseEndpointsResponse.fromJson(Map json) { return ListLicenseEndpointsResponse( licenseEndpoints: (json['licenseEndpoints'] as List) - .whereNotNull() + .nonNulls .map( (e) => LicenseEndpointSummary.fromJson(e as Map)) .toList(), @@ -10408,7 +10406,7 @@ class ListMeteredProductsResponse { factory ListMeteredProductsResponse.fromJson(Map json) { return ListMeteredProductsResponse( meteredProducts: (json['meteredProducts'] as List) - .whereNotNull() + .nonNulls .map((e) => MeteredProductSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10448,7 +10446,7 @@ class ListMonitorsResponse { factory ListMonitorsResponse.fromJson(Map json) { return ListMonitorsResponse( monitors: (json['monitors'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitorSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10487,7 +10485,7 @@ class ListQueueEnvironmentsResponse { factory ListQueueEnvironmentsResponse.fromJson(Map json) { return ListQueueEnvironmentsResponse( environments: (json['environments'] as List) - .whereNotNull() + .nonNulls .map((e) => QueueEnvironmentSummary.fromJson(e as Map)) .toList(), @@ -10528,7 +10526,7 @@ class ListQueueFleetAssociationsResponse { Map json) { return ListQueueFleetAssociationsResponse( queueFleetAssociations: (json['queueFleetAssociations'] as List) - .whereNotNull() + .nonNulls .map((e) => QueueFleetAssociationSummary.fromJson(e as Map)) .toList(), @@ -10568,7 +10566,7 @@ class ListQueueMembersResponse { factory ListQueueMembersResponse.fromJson(Map json) { return ListQueueMembersResponse( members: (json['members'] as List) - .whereNotNull() + .nonNulls .map((e) => QueueMember.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10607,7 +10605,7 @@ class ListQueuesResponse { factory ListQueuesResponse.fromJson(Map json) { return ListQueuesResponse( queues: (json['queues'] as List) - .whereNotNull() + .nonNulls .map((e) => QueueSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10646,7 +10644,7 @@ class ListSessionActionsResponse { factory ListSessionActionsResponse.fromJson(Map json) { return ListSessionActionsResponse( sessionActions: (json['sessionActions'] as List) - .whereNotNull() + .nonNulls .map((e) => SessionActionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10679,7 +10677,7 @@ class ListSessionsForWorkerResponse { factory ListSessionsForWorkerResponse.fromJson(Map json) { return ListSessionsForWorkerResponse( sessions: (json['sessions'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkerSessionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10718,7 +10716,7 @@ class ListSessionsResponse { factory ListSessionsResponse.fromJson(Map json) { return ListSessionsResponse( sessions: (json['sessions'] as List) - .whereNotNull() + .nonNulls .map((e) => SessionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10757,7 +10755,7 @@ class ListStepConsumersResponse { factory ListStepConsumersResponse.fromJson(Map json) { return ListStepConsumersResponse( consumers: (json['consumers'] as List) - .whereNotNull() + .nonNulls .map((e) => StepConsumer.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10796,7 +10794,7 @@ class ListStepDependenciesResponse { factory ListStepDependenciesResponse.fromJson(Map json) { return ListStepDependenciesResponse( dependencies: (json['dependencies'] as List) - .whereNotNull() + .nonNulls .map((e) => StepDependency.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10835,7 +10833,7 @@ class ListStepsResponse { factory ListStepsResponse.fromJson(Map json) { return ListStepsResponse( steps: (json['steps'] as List) - .whereNotNull() + .nonNulls .map((e) => StepSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10875,7 +10873,7 @@ class ListStorageProfilesForQueueResponse { Map json) { return ListStorageProfilesForQueueResponse( storageProfiles: (json['storageProfiles'] as List) - .whereNotNull() + .nonNulls .map((e) => StorageProfileSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10914,7 +10912,7 @@ class ListStorageProfilesResponse { factory ListStorageProfilesResponse.fromJson(Map json) { return ListStorageProfilesResponse( storageProfiles: (json['storageProfiles'] as List) - .whereNotNull() + .nonNulls .map((e) => StorageProfileSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10977,7 +10975,7 @@ class ListTasksResponse { factory ListTasksResponse.fromJson(Map json) { return ListTasksResponse( tasks: (json['tasks'] as List) - .whereNotNull() + .nonNulls .map((e) => TaskSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -11016,7 +11014,7 @@ class ListWorkersResponse { factory ListWorkersResponse.fromJson(Map json) { return ListWorkersResponse( workers: (json['workers'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkerSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -11131,7 +11129,7 @@ class ManifestProperties { inputManifestHash: json['inputManifestHash'] as String?, inputManifestPath: json['inputManifestPath'] as String?, outputRelativeDirectories: (json['outputRelativeDirectories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11415,7 +11413,7 @@ class ParameterSpace { factory ParameterSpace.fromJson(Map json) { return ParameterSpace( parameters: (json['parameters'] as List) - .whereNotNull() + .nonNulls .map((e) => StepParameter.fromJson(e as Map)) .toList(), combination: json['combination'] as String?, @@ -12034,7 +12032,7 @@ class SearchJobsResponse { factory SearchJobsResponse.fromJson(Map json) { return SearchJobsResponse( jobs: (json['jobs'] as List) - .whereNotNull() + .nonNulls .map((e) => JobSearchSummary.fromJson(e as Map)) .toList(), totalResults: json['totalResults'] as int, @@ -12103,7 +12101,7 @@ class SearchStepsResponse { factory SearchStepsResponse.fromJson(Map json) { return SearchStepsResponse( steps: (json['steps'] as List) - .whereNotNull() + .nonNulls .map((e) => StepSearchSummary.fromJson(e as Map)) .toList(), totalResults: json['totalResults'] as int, @@ -12143,7 +12141,7 @@ class SearchTasksResponse { factory SearchTasksResponse.fromJson(Map json) { return SearchTasksResponse( tasks: (json['tasks'] as List) - .whereNotNull() + .nonNulls .map((e) => TaskSearchSummary.fromJson(e as Map)) .toList(), totalResults: json['totalResults'] as int, @@ -12201,7 +12199,7 @@ class SearchWorkersResponse { return SearchWorkersResponse( totalResults: json['totalResults'] as int, workers: (json['workers'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkerSearchSummary.fromJson(e as Map)) .toList(), nextItemOffset: json['nextItemOffset'] as int?, @@ -12306,20 +12304,20 @@ class ServiceManagedEc2InstanceCapabilities { vCpuCount: VCpuCountRange.fromJson(json['vCpuCount'] as Map), allowedInstanceTypes: (json['allowedInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), customAmounts: (json['customAmounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAmountCapability.fromJson(e as Map)) .toList(), customAttributes: (json['customAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAttributeCapability.fromJson(e as Map)) .toList(), excludedInstanceTypes: (json['excludedInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rootEbsVolume: json['rootEbsVolume'] != null @@ -13018,14 +13016,10 @@ class StepAttributeCapability { factory StepAttributeCapability.fromJson(Map json) { return StepAttributeCapability( name: json['name'] as String, - allOf: (json['allOf'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - anyOf: (json['anyOf'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + allOf: + (json['allOf'] as List?)?.nonNulls.map((e) => e as String).toList(), + anyOf: + (json['anyOf'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -13131,7 +13125,7 @@ class StepDetailsEntity { factory StepDetailsEntity.fromJson(Map json) { return StepDetailsEntity( dependencies: (json['dependencies'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), jobId: json['jobId'] as String, @@ -13304,11 +13298,11 @@ class StepRequiredCapabilities { factory StepRequiredCapabilities.fromJson(Map json) { return StepRequiredCapabilities( amounts: (json['amounts'] as List) - .whereNotNull() + .nonNulls .map((e) => StepAmountCapability.fromJson(e as Map)) .toList(), attributes: (json['attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => StepAttributeCapability.fromJson(e as Map)) .toList(), @@ -14379,10 +14373,10 @@ class UpdateWorkerScheduleResponse { assignedSessions: (json['assignedSessions'] as Map).map( (k, e) => MapEntry(k, AssignedSession.fromJson(e as Map))), - cancelSessionActions: (json['cancelSessionActions'] - as Map) - .map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + cancelSessionActions: + (json['cancelSessionActions'] as Map).map((k, e) => + MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), updateIntervalSeconds: json['updateIntervalSeconds'] as int, desiredWorkerStatus: (json['desiredWorkerStatus'] as String?) ?.let(DesiredWorkerStatus.fromString), diff --git a/aws_client/lib/src/generated/detective/v2018_10_26.dart b/aws_client/lib/src/generated/detective/v2018_10_26.dart index d3ecf3162..0823dc146 100644 --- a/aws_client/lib/src/generated/detective/v2018_10_26.dart +++ b/aws_client/lib/src/generated/detective/v2018_10_26.dart @@ -1367,11 +1367,11 @@ class BatchGetGraphMemberDatasourcesResponse { Map json) { return BatchGetGraphMemberDatasourcesResponse( memberDatasources: (json['MemberDatasources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MembershipDatasources.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -1405,11 +1405,11 @@ class BatchGetMembershipDatasourcesResponse { Map json) { return BatchGetMembershipDatasourcesResponse( membershipDatasources: (json['MembershipDatasources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MembershipDatasources.fromJson(e as Map)) .toList(), unprocessedGraphs: (json['UnprocessedGraphs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedGraph.fromJson(e as Map)) .toList(), ); @@ -1469,11 +1469,11 @@ class CreateMembersResponse { factory CreateMembersResponse.fromJson(Map json) { return CreateMembersResponse( members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberDetail.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -1638,11 +1638,11 @@ class DeleteMembersResponse { factory DeleteMembersResponse.fromJson(Map json) { return DeleteMembersResponse( accountIds: (json['AccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -1900,11 +1900,11 @@ class GetMembersResponse { factory GetMembersResponse.fromJson(Map json) { return GetMembersResponse( memberDetails: (json['MemberDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberDetail.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -2317,7 +2317,7 @@ class ListGraphsResponse { factory ListGraphsResponse.fromJson(Map json) { return ListGraphsResponse( graphList: (json['GraphList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Graph.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2363,7 +2363,7 @@ class ListIndicatorsResponse { return ListIndicatorsResponse( graphArn: json['GraphArn'] as String?, indicators: (json['Indicators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Indicator.fromJson(e as Map)) .toList(), investigationId: json['InvestigationId'] as String?, @@ -2405,7 +2405,7 @@ class ListInvestigationsResponse { factory ListInvestigationsResponse.fromJson(Map json) { return ListInvestigationsResponse( investigationDetails: (json['InvestigationDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InvestigationDetail.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2440,7 +2440,7 @@ class ListInvitationsResponse { factory ListInvitationsResponse.fromJson(Map json) { return ListInvitationsResponse( invitations: (json['Invitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberDetail.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2482,7 +2482,7 @@ class ListMembersResponse { factory ListMembersResponse.fromJson(Map json) { return ListMembersResponse( memberDetails: (json['MemberDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberDetail.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2516,7 +2516,7 @@ class ListOrganizationAdminAccountsResponse { Map json) { return ListOrganizationAdminAccountsResponse( administrators: (json['Administrators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Administrator.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/dev_ops_guru/v2020_12_01.dart b/aws_client/lib/src/generated/dev_ops_guru/v2020_12_01.dart index ce32fb430..08826a7cb 100644 --- a/aws_client/lib/src/generated/dev_ops_guru/v2020_12_01.dart +++ b/aws_client/lib/src/generated/dev_ops_guru/v2020_12_01.dart @@ -1414,7 +1414,7 @@ class AnomalousLogGroup { impactEndTime: timeStampFromJson(json['ImpactEndTime']), impactStartTime: timeStampFromJson(json['ImpactStartTime']), logAnomalyShowcases: (json['LogAnomalyShowcases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogAnomalyShowcase.fromJson(e as Map)) .toList(), logGroupName: json['LogGroupName'] as String?, @@ -1545,12 +1545,12 @@ class AnomalySourceDetails { factory AnomalySourceDetails.fromJson(Map json) { return AnomalySourceDetails( cloudWatchMetrics: (json['CloudWatchMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchMetricsDetail.fromJson(e as Map)) .toList(), performanceInsightsMetrics: (json['PerformanceInsightsMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PerformanceInsightsMetricsDetail.fromJson( e as Map)) .toList(), @@ -1685,7 +1685,7 @@ class CloudFormationCollection { factory CloudFormationCollection.fromJson(Map json) { return CloudFormationCollection( stackNames: (json['StackNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1715,7 +1715,7 @@ class CloudFormationCollectionFilter { factory CloudFormationCollectionFilter.fromJson(Map json) { return CloudFormationCollectionFilter( stackNames: (json['StackNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1748,7 +1748,7 @@ class CloudFormationCostEstimationResourceCollectionFilter { Map json) { return CloudFormationCostEstimationResourceCollectionFilter( stackNames: (json['StackNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1844,7 +1844,7 @@ class CloudWatchMetricsDataSummary { ?.let(CloudWatchMetricDataStatusCode.fromString), timestampMetricValuePairList: (json['TimestampMetricValuePairList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimestampMetricValuePair.fromJson(e as Map)) .toList(), @@ -1905,7 +1905,7 @@ class CloudWatchMetricsDetail { factory CloudWatchMetricsDetail.fromJson(Map json) { return CloudWatchMetricsDetail( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchMetricsDimension.fromJson(e as Map)) .toList(), @@ -2066,7 +2066,7 @@ class CostEstimationResourceCollectionFilter { json['CloudFormation'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagCostEstimationResourceCollectionFilter.fromJson( e as Map)) .toList(), @@ -2526,20 +2526,20 @@ class DescribeOrganizationResourceCollectionHealthResponse { Map json) { return DescribeOrganizationResourceCollectionHealthResponse( account: (json['Account'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountHealth.fromJson(e as Map)) .toList(), cloudFormation: (json['CloudFormation'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudFormationHealth.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, service: (json['Service'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceHealth.fromJson(e as Map)) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagHealth.fromJson(e as Map)) .toList(), ); @@ -2630,16 +2630,16 @@ class DescribeResourceCollectionHealthResponse { Map json) { return DescribeResourceCollectionHealthResponse( cloudFormation: (json['CloudFormation'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudFormationHealth.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, service: (json['Service'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceHealth.fromJson(e as Map)) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagHealth.fromJson(e as Map)) .toList(), ); @@ -2761,7 +2761,7 @@ class Event { json['ResourceCollection'] as Map) : null, resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventResource.fromJson(e as Map)) .toList(), time: timeStampFromJson(json['Time']), @@ -2970,7 +2970,7 @@ class GetCostEstimationResponse { factory GetCostEstimationResponse.fromJson(Map json) { return GetCostEstimationResponse( costs: (json['Costs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceResourceCost.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3362,12 +3362,12 @@ class ListAnomaliesForInsightResponse { return ListAnomaliesForInsightResponse( nextToken: json['NextToken'] as String?, proactiveAnomalies: (json['ProactiveAnomalies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProactiveAnomalySummary.fromJson(e as Map)) .toList(), reactiveAnomalies: (json['ReactiveAnomalies'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ReactiveAnomalySummary.fromJson(e as Map)) .toList(), @@ -3406,7 +3406,7 @@ class ListAnomalousLogGroupsResponse { factory ListAnomalousLogGroupsResponse.fromJson(Map json) { return ListAnomalousLogGroupsResponse( anomalousLogGroups: (json['AnomalousLogGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => AnomalousLogGroup.fromJson(e as Map)) .toList(), insightId: json['InsightId'] as String, @@ -3491,7 +3491,7 @@ class ListEventsResponse { factory ListEventsResponse.fromJson(Map json) { return ListEventsResponse( events: (json['Events'] as List) - .whereNotNull() + .nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3597,12 +3597,12 @@ class ListInsightsResponse { return ListInsightsResponse( nextToken: json['NextToken'] as String?, proactiveInsights: (json['ProactiveInsights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProactiveInsightSummary.fromJson(e as Map)) .toList(), reactiveInsights: (json['ReactiveInsights'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ReactiveInsightSummary.fromJson(e as Map)) .toList(), @@ -3697,7 +3697,7 @@ class ListMonitoredResourcesResponse { return ListMonitoredResourcesResponse( monitoredResourceIdentifiers: (json['MonitoredResourceIdentifiers'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoredResourceIdentifier.fromJson(e as Map)) .toList(), @@ -3731,7 +3731,7 @@ class ListNotificationChannelsResponse { factory ListNotificationChannelsResponse.fromJson(Map json) { return ListNotificationChannelsResponse( channels: (json['Channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationChannel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3771,12 +3771,12 @@ class ListOrganizationInsightsResponse { return ListOrganizationInsightsResponse( nextToken: json['NextToken'] as String?, proactiveInsights: (json['ProactiveInsights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProactiveOrganizationInsightSummary.fromJson( e as Map)) .toList(), reactiveInsights: (json['ReactiveInsights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReactiveOrganizationInsightSummary.fromJson( e as Map)) .toList(), @@ -3812,7 +3812,7 @@ class ListRecommendationsResponse { return ListRecommendationsResponse( nextToken: json['NextToken'] as String?, recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), ); @@ -3935,7 +3935,7 @@ class LogAnomalyShowcase { factory LogAnomalyShowcase.fromJson(Map json) { return LogAnomalyShowcase( logAnomalyClasses: (json['LogAnomalyClasses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogAnomalyClass.fromJson(e as Map)) .toList(), ); @@ -4201,11 +4201,11 @@ class NotificationFilterConfig { factory NotificationFilterConfig.fromJson(Map json) { return NotificationFilterConfig( messageTypes: (json['MessageTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationMessageType.fromString((e as String))) .toList(), severities: (json['Severities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightSeverity.fromString((e as String))) .toList(), ); @@ -4480,7 +4480,7 @@ class PerformanceInsightsMetricDimensionGroup { Map json) { return PerformanceInsightsMetricDimensionGroup( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), group: json['Group'] as String?, @@ -4674,17 +4674,17 @@ class PerformanceInsightsMetricsDetail { json['MetricQuery'] as Map) : null, referenceData: (json['ReferenceData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PerformanceInsightsReferenceData.fromJson( e as Map)) .toList(), statsAtAnomaly: (json['StatsAtAnomaly'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PerformanceInsightsStat.fromJson(e as Map)) .toList(), statsAtBaseline: (json['StatsAtBaseline'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PerformanceInsightsStat.fromJson(e as Map)) .toList(), @@ -4977,7 +4977,7 @@ class ProactiveAnomaly { json['AnomalyReportedTimeRange'] as Map) : null, anomalyResources: (json['AnomalyResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalyResource.fromJson(e as Map)) .toList(), anomalyTimeRange: json['AnomalyTimeRange'] != null @@ -5119,7 +5119,7 @@ class ProactiveAnomalySummary { json['AnomalyReportedTimeRange'] as Map) : null, anomalyResources: (json['AnomalyResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalyResource.fromJson(e as Map)) .toList(), anomalyTimeRange: json['AnomalyTimeRange'] != null @@ -5319,7 +5319,7 @@ class ProactiveInsightSummary { factory ProactiveInsightSummary.fromJson(Map json) { return ProactiveInsightSummary( associatedResourceArns: (json['AssociatedResourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), id: json['Id'] as String?, @@ -5559,7 +5559,7 @@ class ReactiveAnomaly { json['AnomalyReportedTimeRange'] as Map) : null, anomalyResources: (json['AnomalyResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalyResource.fromJson(e as Map)) .toList(), anomalyTimeRange: json['AnomalyTimeRange'] != null @@ -5698,7 +5698,7 @@ class ReactiveAnomalySummary { json['AnomalyReportedTimeRange'] as Map) : null, anomalyResources: (json['AnomalyResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalyResource.fromJson(e as Map)) .toList(), anomalyTimeRange: json['AnomalyTimeRange'] != null @@ -5877,7 +5877,7 @@ class ReactiveInsightSummary { factory ReactiveInsightSummary.fromJson(Map json) { return ReactiveInsightSummary( associatedResourceArns: (json['AssociatedResourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), id: json['Id'] as String?, @@ -6054,12 +6054,12 @@ class Recommendation { name: json['Name'] as String?, reason: json['Reason'] as String?, relatedAnomalies: (json['RelatedAnomalies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationRelatedAnomaly.fromJson(e as Map)) .toList(), relatedEvents: (json['RelatedEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationRelatedEvent.fromJson(e as Map)) .toList(), @@ -6109,12 +6109,12 @@ class RecommendationRelatedAnomaly { return RecommendationRelatedAnomaly( anomalyId: json['AnomalyId'] as String?, resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationRelatedAnomalyResource.fromJson( e as Map)) .toList(), sourceDetails: (json['SourceDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationRelatedAnomalySourceDetail.fromJson( e as Map)) .toList(), @@ -6188,7 +6188,7 @@ class RecommendationRelatedAnomalySourceDetail { Map json) { return RecommendationRelatedAnomalySourceDetail( cloudWatchMetrics: (json['CloudWatchMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationRelatedCloudWatchMetricsSourceDetail.fromJson( e as Map)) @@ -6257,7 +6257,7 @@ class RecommendationRelatedEvent { return RecommendationRelatedEvent( name: json['Name'] as String?, resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationRelatedEventResource.fromJson( e as Map)) .toList(), @@ -6388,7 +6388,7 @@ class ResourceCollection { json['CloudFormation'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagCollection.fromJson(e as Map)) .toList(), ); @@ -6469,7 +6469,7 @@ class ResourceCollectionFilter { json['CloudFormation'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagCollectionFilter.fromJson(e as Map)) .toList(), ); @@ -6617,12 +6617,12 @@ class SearchInsightsResponse { return SearchInsightsResponse( nextToken: json['NextToken'] as String?, proactiveInsights: (json['ProactiveInsights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProactiveInsightSummary.fromJson(e as Map)) .toList(), reactiveInsights: (json['ReactiveInsights'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ReactiveInsightSummary.fromJson(e as Map)) .toList(), @@ -6699,12 +6699,12 @@ class SearchOrganizationInsightsResponse { return SearchOrganizationInsightsResponse( nextToken: json['NextToken'] as String?, proactiveInsights: (json['ProactiveInsights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProactiveInsightSummary.fromJson(e as Map)) .toList(), reactiveInsights: (json['ReactiveInsights'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ReactiveInsightSummary.fromJson(e as Map)) .toList(), @@ -6751,7 +6751,7 @@ class ServiceCollection { factory ServiceCollection.fromJson(Map json) { return ServiceCollection( serviceNames: (json['ServiceNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceName.fromString((e as String))) .toList(), ); @@ -7154,10 +7154,8 @@ class TagCollection { factory TagCollection.fromJson(Map json) { return TagCollection( appBoundaryKey: json['AppBoundaryKey'] as String, - tagValues: (json['TagValues'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tagValues: + (json['TagValues'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -7212,10 +7210,8 @@ class TagCollectionFilter { factory TagCollectionFilter.fromJson(Map json) { return TagCollectionFilter( appBoundaryKey: json['AppBoundaryKey'] as String, - tagValues: (json['TagValues'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tagValues: + (json['TagValues'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -7276,10 +7272,8 @@ class TagCostEstimationResourceCollectionFilter { Map json) { return TagCostEstimationResourceCollectionFilter( appBoundaryKey: json['AppBoundaryKey'] as String, - tagValues: (json['TagValues'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tagValues: + (json['TagValues'] as List).nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/device_farm/v2015_06_23.dart b/aws_client/lib/src/generated/device_farm/v2015_06_23.dart index a943a286f..535393a21 100644 --- a/aws_client/lib/src/generated/device_farm/v2015_06_23.dart +++ b/aws_client/lib/src/generated/device_farm/v2015_06_23.dart @@ -4457,15 +4457,15 @@ class CustomerArtifactPaths { factory CustomerArtifactPaths.fromJson(Map json) { return CustomerArtifactPaths( androidPaths: (json['androidPaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deviceHostPaths: (json['deviceHostPaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), iosPaths: (json['iosPaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4731,7 +4731,7 @@ class Device { heapSize: json['heapSize'] as int?, image: json['image'] as String?, instances: (json['instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceInstance.fromJson(e as Map)) .toList(), manufacturer: json['manufacturer'] as String?, @@ -4968,10 +4968,8 @@ class DeviceFilter { attribute: DeviceFilterAttribute.fromString((json['attribute'] as String)), operator: RuleOperator.fromString((json['operator'] as String)), - values: (json['values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -5064,10 +5062,8 @@ class DeviceInstance { ? InstanceProfile.fromJson( json['instanceProfile'] as Map) : null, - labels: (json['labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['labels'] as List?)?.nonNulls.map((e) => e as String).toList(), status: (json['status'] as String?)?.let(InstanceStatus.fromString), udid: json['udid'] as String?, ); @@ -5202,7 +5198,7 @@ class DevicePool { maxDevices: json['maxDevices'] as int?, name: json['name'] as String?, rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), type: (json['type'] as String?)?.let(DevicePoolType.fromString), @@ -5251,7 +5247,7 @@ class DevicePoolCompatibilityResult { ? Device.fromJson(json['device'] as Map) : null, incompatibilityMessages: (json['incompatibilityMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => IncompatibilityMessage.fromJson(e as Map)) .toList(), @@ -5444,7 +5440,7 @@ class DeviceSelectionResult { factory DeviceSelectionResult.fromJson(Map json) { return DeviceSelectionResult( filters: (json['filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceFilter.fromJson(e as Map)) .toList(), matchedDevicesCount: json['matchedDevicesCount'] as int?, @@ -5641,12 +5637,12 @@ class GetDevicePoolCompatibilityResult { factory GetDevicePoolCompatibilityResult.fromJson(Map json) { return GetDevicePoolCompatibilityResult( compatibleDevices: (json['compatibleDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DevicePoolCompatibilityResult.fromJson(e as Map)) .toList(), incompatibleDevices: (json['incompatibleDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DevicePoolCompatibilityResult.fromJson(e as Map)) .toList(), @@ -6178,7 +6174,7 @@ class InstanceProfile { description: json['description'] as String?, excludeAppPackagesFromCleanup: (json['excludeAppPackagesFromCleanup'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -6504,7 +6500,7 @@ class ListArtifactsResult { factory ListArtifactsResult.fromJson(Map json) { return ListArtifactsResult( artifacts: (json['artifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Artifact.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6537,7 +6533,7 @@ class ListDeviceInstancesResult { factory ListDeviceInstancesResult.fromJson(Map json) { return ListDeviceInstancesResult( deviceInstances: (json['deviceInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceInstance.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6572,7 +6568,7 @@ class ListDevicePoolsResult { factory ListDevicePoolsResult.fromJson(Map json) { return ListDevicePoolsResult( devicePools: (json['devicePools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DevicePool.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6607,7 +6603,7 @@ class ListDevicesResult { factory ListDevicesResult.fromJson(Map json) { return ListDevicesResult( devices: (json['devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Device.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6640,7 +6636,7 @@ class ListInstanceProfilesResult { factory ListInstanceProfilesResult.fromJson(Map json) { return ListInstanceProfilesResult( instanceProfiles: (json['instanceProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceProfile.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6675,7 +6671,7 @@ class ListJobsResult { factory ListJobsResult.fromJson(Map json) { return ListJobsResult( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6708,7 +6704,7 @@ class ListNetworkProfilesResult { factory ListNetworkProfilesResult.fromJson(Map json) { return ListNetworkProfilesResult( networkProfiles: (json['networkProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkProfile.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6742,7 +6738,7 @@ class ListOfferingPromotionsResult { return ListOfferingPromotionsResult( nextToken: json['nextToken'] as String?, offeringPromotions: (json['offeringPromotions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OfferingPromotion.fromJson(e as Map)) .toList(), ); @@ -6777,7 +6773,7 @@ class ListOfferingTransactionsResult { return ListOfferingTransactionsResult( nextToken: json['nextToken'] as String?, offeringTransactions: (json['offeringTransactions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OfferingTransaction.fromJson(e as Map)) .toList(), ); @@ -6812,7 +6808,7 @@ class ListOfferingsResult { return ListOfferingsResult( nextToken: json['nextToken'] as String?, offerings: (json['offerings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Offering.fromJson(e as Map)) .toList(), ); @@ -6847,7 +6843,7 @@ class ListProjectsResult { return ListProjectsResult( nextToken: json['nextToken'] as String?, projects: (json['projects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Project.fromJson(e as Map)) .toList(), ); @@ -6883,7 +6879,7 @@ class ListRemoteAccessSessionsResult { return ListRemoteAccessSessionsResult( nextToken: json['nextToken'] as String?, remoteAccessSessions: (json['remoteAccessSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemoteAccessSession.fromJson(e as Map)) .toList(), ); @@ -6919,7 +6915,7 @@ class ListRunsResult { return ListRunsResult( nextToken: json['nextToken'] as String?, runs: (json['runs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Run.fromJson(e as Map)) .toList(), ); @@ -6954,7 +6950,7 @@ class ListSamplesResult { return ListSamplesResult( nextToken: json['nextToken'] as String?, samples: (json['samples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Sample.fromJson(e as Map)) .toList(), ); @@ -6989,7 +6985,7 @@ class ListSuitesResult { return ListSuitesResult( nextToken: json['nextToken'] as String?, suites: (json['suites'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Suite.fromJson(e as Map)) .toList(), ); @@ -7018,7 +7014,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7049,7 +7045,7 @@ class ListTestGridProjectsResult { return ListTestGridProjectsResult( nextToken: json['nextToken'] as String?, testGridProjects: (json['testGridProjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestGridProject.fromJson(e as Map)) .toList(), ); @@ -7080,7 +7076,7 @@ class ListTestGridSessionActionsResult { factory ListTestGridSessionActionsResult.fromJson(Map json) { return ListTestGridSessionActionsResult( actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestGridSessionAction.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7113,7 +7109,7 @@ class ListTestGridSessionArtifactsResult { Map json) { return ListTestGridSessionArtifactsResult( artifacts: (json['artifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestGridSessionArtifact.fromJson(e as Map)) .toList(), @@ -7148,7 +7144,7 @@ class ListTestGridSessionsResult { return ListTestGridSessionsResult( nextToken: json['nextToken'] as String?, testGridSessions: (json['testGridSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestGridSession.fromJson(e as Map)) .toList(), ); @@ -7183,7 +7179,7 @@ class ListTestsResult { return ListTestsResult( nextToken: json['nextToken'] as String?, tests: (json['tests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Test.fromJson(e as Map)) .toList(), ); @@ -7247,7 +7243,7 @@ class ListUniqueProblemsResult { (k, e) => MapEntry( ExecutionResult.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => UniqueProblem.fromJson(e as Map)) .toList())), ); @@ -7283,7 +7279,7 @@ class ListUploadsResult { return ListUploadsResult( nextToken: json['nextToken'] as String?, uploads: (json['uploads'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Upload.fromJson(e as Map)) .toList(), ); @@ -7317,7 +7313,7 @@ class ListVPCEConfigurationsResult { return ListVPCEConfigurationsResult( nextToken: json['nextToken'] as String?, vpceConfigurations: (json['vpceConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VPCEConfiguration.fromJson(e as Map)) .toList(), ); @@ -7554,7 +7550,7 @@ class Offering { id: json['id'] as String?, platform: (json['platform'] as String?)?.let(DevicePlatform.fromString), recurringCharges: (json['recurringCharges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecurringCharge.fromJson(e as Map)) .toList(), type: (json['type'] as String?)?.let(OfferingType.fromString), @@ -10239,13 +10235,11 @@ class TestGridVpcConfig { factory TestGridVpcConfig.fromJson(Map json) { return TestGridVpcConfig( securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['vpcId'] as String, ); } @@ -10342,7 +10336,7 @@ class UniqueProblem { return UniqueProblem( message: json['message'] as String?, problems: (json['problems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Problem.fromJson(e as Map)) .toList(), ); @@ -10941,13 +10935,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['vpcId'] as String, ); } diff --git a/aws_client/lib/src/generated/direct_connect/v2012_10_25.dart b/aws_client/lib/src/generated/direct_connect/v2012_10_25.dart index e2ed16269..401917379 100644 --- a/aws_client/lib/src/generated/direct_connect/v2012_10_25.dart +++ b/aws_client/lib/src/generated/direct_connect/v2012_10_25.dart @@ -3092,7 +3092,7 @@ class AssociateMacSecKeyResponse { return AssociateMacSecKeyResponse( connectionId: json['connectionId'] as String?, macSecKeys: (json['macSecKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MacSecKey.fromJson(e as Map)) .toList(), ); @@ -3758,7 +3758,7 @@ class Connection { location: json['location'] as String?, macSecCapable: json['macSecCapable'] as bool?, macSecKeys: (json['macSecKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MacSecKey.fromJson(e as Map)) .toList(), ownerAccount: json['ownerAccount'] as String?, @@ -3767,7 +3767,7 @@ class Connection { providerName: json['providerName'] as String?, region: json['region'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vlan: json['vlan'] as int?, @@ -3860,7 +3860,7 @@ class Connections { factory Connections.fromJson(Map json) { return Connections( connections: (json['connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), ); @@ -4328,7 +4328,7 @@ class DescribeCustomerMetadataResponse { factory DescribeCustomerMetadataResponse.fromJson(Map json) { return DescribeCustomerMetadataResponse( agreements: (json['agreements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomerAgreement.fromJson(e as Map)) .toList(), nniPartnerType: @@ -4365,7 +4365,7 @@ class DescribeDirectConnectGatewayAssociationProposalsResult { return DescribeDirectConnectGatewayAssociationProposalsResult( directConnectGatewayAssociationProposals: (json['directConnectGatewayAssociationProposals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectConnectGatewayAssociationProposal.fromJson( e as Map)) .toList(), @@ -4403,7 +4403,7 @@ class DescribeDirectConnectGatewayAssociationsResult { return DescribeDirectConnectGatewayAssociationsResult( directConnectGatewayAssociations: (json['directConnectGatewayAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectConnectGatewayAssociation.fromJson( e as Map)) .toList(), @@ -4440,7 +4440,7 @@ class DescribeDirectConnectGatewayAttachmentsResult { return DescribeDirectConnectGatewayAttachmentsResult( directConnectGatewayAttachments: (json['directConnectGatewayAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectConnectGatewayAttachment.fromJson( e as Map)) .toList(), @@ -4476,7 +4476,7 @@ class DescribeDirectConnectGatewaysResult { Map json) { return DescribeDirectConnectGatewaysResult( directConnectGateways: (json['directConnectGateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectConnectGateway.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4577,7 +4577,7 @@ class DescribeTagsResponse { factory DescribeTagsResponse.fromJson(Map json) { return DescribeTagsResponse( resourceTags: (json['resourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), ); @@ -4753,7 +4753,7 @@ class DirectConnectGatewayAssociation { return DirectConnectGatewayAssociation( allowedPrefixesToDirectConnectGateway: (json['allowedPrefixesToDirectConnectGateway'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteFilterPrefix.fromJson(e as Map)) .toList(), associatedGateway: json['associatedGateway'] != null @@ -4870,7 +4870,7 @@ class DirectConnectGatewayAssociationProposal { json['directConnectGatewayOwnerAccount'] as String?, existingAllowedPrefixesToDirectConnectGateway: (json['existingAllowedPrefixesToDirectConnectGateway'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteFilterPrefix.fromJson(e as Map)) .toList(), proposalId: json['proposalId'] as String?, @@ -4878,7 +4878,7 @@ class DirectConnectGatewayAssociationProposal { ?.let(DirectConnectGatewayAssociationProposalState.fromString), requestedAllowedPrefixesToDirectConnectGateway: (json['requestedAllowedPrefixesToDirectConnectGateway'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteFilterPrefix.fromJson(e as Map)) .toList(), ); @@ -5107,7 +5107,7 @@ class DisassociateMacSecKeyResponse { return DisassociateMacSecKeyResponse( connectionId: json['connectionId'] as String?, macSecKeys: (json['macSecKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MacSecKey.fromJson(e as Map)) .toList(), ); @@ -5268,7 +5268,7 @@ class Interconnect { providerName: json['providerName'] as String?, region: json['region'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5344,7 +5344,7 @@ class Interconnects { factory Interconnects.fromJson(Map json) { return Interconnects( interconnects: (json['interconnects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Interconnect.fromJson(e as Map)) .toList(), ); @@ -5489,7 +5489,7 @@ class Lag { awsDeviceV2: json['awsDeviceV2'] as String?, awsLogicalDeviceId: json['awsLogicalDeviceId'] as String?, connections: (json['connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), connectionsBandwidth: json['connectionsBandwidth'] as String?, @@ -5503,7 +5503,7 @@ class Lag { location: json['location'] as String?, macSecCapable: json['macSecCapable'] as bool?, macSecKeys: (json['macSecKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MacSecKey.fromJson(e as Map)) .toList(), minimumLinks: json['minimumLinks'] as int?, @@ -5512,7 +5512,7 @@ class Lag { providerName: json['providerName'] as String?, region: json['region'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5600,7 +5600,7 @@ class Lags { factory Lags.fromJson(Map json) { return Lags( lags: (json['lags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Lag.fromJson(e as Map)) .toList(), ); @@ -5633,7 +5633,7 @@ class ListVirtualInterfaceTestHistoryResponse { nextToken: json['nextToken'] as String?, virtualInterfaceTestHistory: (json['virtualInterfaceTestHistory'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VirtualInterfaceTestHistory.fromJson(e as Map)) .toList(), @@ -5731,15 +5731,15 @@ class Location { factory Location.fromJson(Map json) { return Location( availableMacSecPortSpeeds: (json['availableMacSecPortSpeeds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), availablePortSpeeds: (json['availablePortSpeeds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), availableProviders: (json['availableProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), locationCode: json['locationCode'] as String?, @@ -5779,7 +5779,7 @@ class Locations { factory Locations.fromJson(Map json) { return Locations( locations: (json['locations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Location.fromJson(e as Map)) .toList(), ); @@ -6406,7 +6406,7 @@ class ResourceTag { return ResourceTag( resourceArn: json['resourceArn'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6730,7 +6730,7 @@ class VirtualGateways { factory VirtualGateways.fromJson(Map json) { return VirtualGateways( virtualGateways: (json['virtualGateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VirtualGateway.fromJson(e as Map)) .toList(), ); @@ -6918,7 +6918,7 @@ class VirtualInterface { awsDeviceV2: json['awsDeviceV2'] as String?, awsLogicalDeviceId: json['awsLogicalDeviceId'] as String?, bgpPeers: (json['bgpPeers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BGPPeer.fromJson(e as Map)) .toList(), connectionId: json['connectionId'] as String?, @@ -6931,12 +6931,12 @@ class VirtualInterface { ownerAccount: json['ownerAccount'] as String?, region: json['region'] as String?, routeFilterPrefixes: (json['routeFilterPrefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteFilterPrefix.fromJson(e as Map)) .toList(), siteLinkEnabled: json['siteLinkEnabled'] as bool?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), virtualGatewayId: json['virtualGatewayId'] as String?, @@ -7076,7 +7076,7 @@ class VirtualInterfaceTestHistory { factory VirtualInterfaceTestHistory.fromJson(Map json) { return VirtualInterfaceTestHistory( bgpPeers: (json['bgpPeers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), endTime: timeStampFromJson(json['endTime']), @@ -7123,7 +7123,7 @@ class VirtualInterfaces { factory VirtualInterfaces.fromJson(Map json) { return VirtualInterfaces( virtualInterfaces: (json['virtualInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VirtualInterface.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/directory_service/v2015_04_16.dart b/aws_client/lib/src/generated/directory_service/v2015_04_16.dart index 4a0c76754..48c185cc6 100644 --- a/aws_client/lib/src/generated/directory_service/v2015_04_16.dart +++ b/aws_client/lib/src/generated/directory_service/v2015_04_16.dart @@ -3652,7 +3652,7 @@ class Computer { factory Computer.fromJson(Map json) { return Computer( computerAttributes: (json['ComputerAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), computerId: json['ComputerId'] as String?, @@ -3699,7 +3699,7 @@ class ConditionalForwarder { factory ConditionalForwarder.fromJson(Map json) { return ConditionalForwarder( dnsIpAddrs: (json['DnsIpAddrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), remoteDomainName: json['RemoteDomainName'] as String?, @@ -4082,7 +4082,7 @@ class DescribeClientAuthenticationSettingsResult { return DescribeClientAuthenticationSettingsResult( clientAuthenticationSettingsInfo: (json['ClientAuthenticationSettingsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClientAuthenticationSettingInfo.fromJson( e as Map)) .toList(), @@ -4115,7 +4115,7 @@ class DescribeConditionalForwardersResult { Map json) { return DescribeConditionalForwardersResult( conditionalForwarders: (json['ConditionalForwarders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConditionalForwarder.fromJson(e as Map)) .toList(), ); @@ -4153,7 +4153,7 @@ class DescribeDirectoriesResult { factory DescribeDirectoriesResult.fromJson(Map json) { return DescribeDirectoriesResult( directoryDescriptions: (json['DirectoryDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectoryDescription.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4188,7 +4188,7 @@ class DescribeDomainControllersResult { factory DescribeDomainControllersResult.fromJson(Map json) { return DescribeDomainControllersResult( domainControllers: (json['DomainControllers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainController.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4218,7 +4218,7 @@ class DescribeEventTopicsResult { factory DescribeEventTopicsResult.fromJson(Map json) { return DescribeEventTopicsResult( eventTopics: (json['EventTopics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventTopic.fromJson(e as Map)) .toList(), ); @@ -4250,7 +4250,7 @@ class DescribeLDAPSSettingsResult { factory DescribeLDAPSSettingsResult.fromJson(Map json) { return DescribeLDAPSSettingsResult( lDAPSSettingsInfo: (json['LDAPSSettingsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LDAPSSettingInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4286,7 +4286,7 @@ class DescribeRegionsResult { return DescribeRegionsResult( nextToken: json['NextToken'] as String?, regionsDescription: (json['RegionsDescription'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegionDescription.fromJson(e as Map)) .toList(), ); @@ -4330,7 +4330,7 @@ class DescribeSettingsResult { directoryId: json['DirectoryId'] as String?, nextToken: json['NextToken'] as String?, settingEntries: (json['SettingEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SettingEntry.fromJson(e as Map)) .toList(), ); @@ -4366,7 +4366,7 @@ class DescribeSharedDirectoriesResult { return DescribeSharedDirectoriesResult( nextToken: json['NextToken'] as String?, sharedDirectories: (json['SharedDirectories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SharedDirectory.fromJson(e as Map)) .toList(), ); @@ -4405,7 +4405,7 @@ class DescribeSnapshotsResult { return DescribeSnapshotsResult( nextToken: json['NextToken'] as String?, snapshots: (json['Snapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Snapshot.fromJson(e as Map)) .toList(), ); @@ -4445,7 +4445,7 @@ class DescribeTrustsResult { return DescribeTrustsResult( nextToken: json['NextToken'] as String?, trusts: (json['Trusts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trust.fromJson(e as Map)) .toList(), ); @@ -4478,7 +4478,7 @@ class DescribeUpdateDirectoryResult { return DescribeUpdateDirectoryResult( nextToken: json['NextToken'] as String?, updateActivities: (json['UpdateActivities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateInfoEntry.fromJson(e as Map)) .toList(), ); @@ -4596,17 +4596,17 @@ class DirectoryConnectSettingsDescription { Map json) { return DirectoryConnectSettingsDescription( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), connectIps: (json['ConnectIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), customerUserName: json['CustomerUserName'] as String?, securityGroupId: json['SecurityGroupId'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -4774,7 +4774,7 @@ class DirectoryDescription { json['DesiredNumberOfDomainControllers'] as int?, directoryId: json['DirectoryId'] as String?, dnsIpAddrs: (json['DnsIpAddrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), edition: (json['Edition'] as String?)?.let(DirectoryEdition.fromString), @@ -5067,10 +5067,8 @@ class DirectoryVpcSettings { factory DirectoryVpcSettings.fromJson(Map json) { return DirectoryVpcSettings( - subnetIds: (json['SubnetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnetIds: + (json['SubnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String, ); } @@ -5109,12 +5107,12 @@ class DirectoryVpcSettingsDescription { factory DirectoryVpcSettingsDescription.fromJson(Map json) { return DirectoryVpcSettingsDescription( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupId: json['SecurityGroupId'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -5647,7 +5645,7 @@ class ListCertificatesResult { factory ListCertificatesResult.fromJson(Map json) { return ListCertificatesResult( certificatesInfo: (json['CertificatesInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5681,7 +5679,7 @@ class ListIpRoutesResult { factory ListIpRoutesResult.fromJson(Map json) { return ListIpRoutesResult( ipRoutesInfo: (json['IpRoutesInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpRouteInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5714,7 +5712,7 @@ class ListLogSubscriptionsResult { factory ListLogSubscriptionsResult.fromJson(Map json) { return ListLogSubscriptionsResult( logSubscriptions: (json['LogSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogSubscription.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5749,7 +5747,7 @@ class ListSchemaExtensionsResult { return ListSchemaExtensionsResult( nextToken: json['NextToken'] as String?, schemaExtensionsInfo: (json['SchemaExtensionsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaExtensionInfo.fromJson(e as Map)) .toList(), ); @@ -5782,7 +5780,7 @@ class ListTagsForResourceResult { return ListTagsForResourceResult( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5914,7 +5912,7 @@ class OwnerDirectoryDescription { accountId: json['AccountId'] as String?, directoryId: json['DirectoryId'] as String?, dnsIpAddrs: (json['DnsIpAddrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), radiusSettings: json['RadiusSettings'] != null @@ -6016,7 +6014,7 @@ class RadiusSettings { radiusPort: json['RadiusPort'] as int?, radiusRetries: json['RadiusRetries'] as int?, radiusServers: (json['RadiusServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), radiusTimeout: json['RadiusTimeout'] as int?, @@ -6184,7 +6182,7 @@ class RegionsInfo { factory RegionsInfo.fromJson(Map json) { return RegionsInfo( additionalRegions: (json['AdditionalRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), primaryRegion: json['PrimaryRegion'] as String?, diff --git a/aws_client/lib/src/generated/dlm/v2018_01_12.dart b/aws_client/lib/src/generated/dlm/v2018_01_12.dart index 8e96d3525..99e04e8dc 100644 --- a/aws_client/lib/src/generated/dlm/v2018_01_12.dart +++ b/aws_client/lib/src/generated/dlm/v2018_01_12.dart @@ -575,7 +575,7 @@ class Action { factory Action.fromJson(Map json) { return Action( crossRegionCopy: (json['CrossRegionCopy'] as List) - .whereNotNull() + .nonNulls .map((e) => CrossRegionCopyAction.fromJson(e as Map)) .toList(), name: json['Name'] as String, @@ -743,13 +743,11 @@ class CreateRule { (json['IntervalUnit'] as String?)?.let(IntervalUnitValues.fromString), location: (json['Location'] as String?)?.let(LocationValues.fromString), scripts: (json['Scripts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Script.fromJson(e as Map)) .toList(), - times: (json['Times'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + times: + (json['Times'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -1171,7 +1169,7 @@ class EventParameters { descriptionRegex: json['DescriptionRegex'] as String, eventType: EventTypeValues.fromString((json['EventType'] as String)), snapshotOwner: (json['SnapshotOwner'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -1282,11 +1280,11 @@ class Exclusions { return Exclusions( excludeBootVolumes: json['ExcludeBootVolumes'] as bool?, excludeTags: (json['ExcludeTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), excludeVolumeTypes: (json['ExcludeVolumeTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1345,7 +1343,7 @@ class FastRestoreRule { factory FastRestoreRule.fromJson(Map json) { return FastRestoreRule( availabilityZones: (json['AvailabilityZones'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), count: json['Count'] as int?, @@ -1380,7 +1378,7 @@ class GetLifecyclePoliciesResponse { factory GetLifecyclePoliciesResponse.fromJson(Map json) { return GetLifecyclePoliciesResponse( policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => LifecyclePolicySummary.fromJson(e as Map)) .toList(), @@ -1717,7 +1715,7 @@ class Parameters { return Parameters( excludeBootVolume: json['ExcludeBootVolume'] as bool?, excludeDataVolumeTags: (json['ExcludeDataVolumeTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), noReboot: json['NoReboot'] as bool?, @@ -1907,13 +1905,13 @@ class PolicyDetails { factory PolicyDetails.fromJson(Map json) { return PolicyDetails( actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), copyTags: json['CopyTags'] as bool?, createInterval: json['CreateInterval'] as int?, crossRegionCopyTargets: (json['CrossRegionCopyTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CrossRegionCopyTarget.fromJson(e as Map)) .toList(), eventSource: json['EventSource'] != null @@ -1931,22 +1929,22 @@ class PolicyDetails { policyType: (json['PolicyType'] as String?)?.let(PolicyTypeValues.fromString), resourceLocations: (json['ResourceLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceLocationValues.fromString((e as String))) .toList(), resourceType: (json['ResourceType'] as String?)?.let(ResourceTypeValues.fromString), resourceTypes: (json['ResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTypeValues.fromString((e as String))) .toList(), retainInterval: json['RetainInterval'] as int?, schedules: (json['Schedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Schedule.fromJson(e as Map)) .toList(), targetTags: (json['TargetTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2305,7 +2303,7 @@ class Schedule { ? CreateRule.fromJson(json['CreateRule'] as Map) : null, crossRegionCopyRules: (json['CrossRegionCopyRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CrossRegionCopyRule.fromJson(e as Map)) .toList(), deprecateRule: json['DeprecateRule'] != null @@ -2321,15 +2319,15 @@ class Schedule { ? RetainRule.fromJson(json['RetainRule'] as Map) : null, shareRules: (json['ShareRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ShareRule.fromJson(e as Map)) .toList(), tagsToAdd: (json['TagsToAdd'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), variableTags: (json['VariableTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2503,7 +2501,7 @@ class Script { executionTimeout: json['ExecutionTimeout'] as int?, maximumRetryCount: json['MaximumRetryCount'] as int?, stages: (json['Stages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StageValues.fromString((e as String))) .toList(), ); @@ -2568,7 +2566,7 @@ class ShareRule { factory ShareRule.fromJson(Map json) { return ShareRule( targetAccounts: (json['TargetAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), unshareInterval: json['UnshareInterval'] as int?, diff --git a/aws_client/lib/src/generated/doc_db/v2014_10_31.dart b/aws_client/lib/src/generated/doc_db/v2014_10_31.dart index 6f10fea76..99396672a 100644 --- a/aws_client/lib/src/generated/doc_db/v2014_10_31.dart +++ b/aws_client/lib/src/generated/doc_db/v2014_10_31.dart @@ -6731,7 +6731,7 @@ class Event { sourceIdentifier: _s.extractXmlStringValue(elem, 'SourceIdentifier'), sourceType: _s .extractXmlStringValue(elem, 'SourceType') - ?.let(SourceType.fromString) /* Nullability(true, true) */, + ?.let(SourceType.fromString), ); } @@ -7509,7 +7509,7 @@ class Parameter { allowedValues: _s.extractXmlStringValue(elem, 'AllowedValues'), applyMethod: _s .extractXmlStringValue(elem, 'ApplyMethod') - ?.let(ApplyMethod.fromString) /* Nullability(true, true) */, + ?.let(ApplyMethod.fromString), applyType: _s.extractXmlStringValue(elem, 'ApplyType'), dataType: _s.extractXmlStringValue(elem, 'DataType'), description: _s.extractXmlStringValue(elem, 'Description'), diff --git a/aws_client/lib/src/generated/doc_db_elastic/v2022_11_28.dart b/aws_client/lib/src/generated/doc_db_elastic/v2022_11_28.dart index 2f98fee8f..3bec5022f 100644 --- a/aws_client/lib/src/generated/doc_db_elastic/v2022_11_28.dart +++ b/aws_client/lib/src/generated/doc_db_elastic/v2022_11_28.dart @@ -964,19 +964,17 @@ class Cluster { shardCapacity: json['shardCapacity'] as int, shardCount: json['shardCount'] as int, status: Status.fromString((json['status'] as String)), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcSecurityGroupIds: (json['vpcSecurityGroupIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), backupRetentionPeriod: json['backupRetentionPeriod'] as int?, preferredBackupWindow: json['preferredBackupWindow'] as String?, shardInstanceCount: json['shardInstanceCount'] as int?, shards: (json['shards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Shard.fromJson(e as Map)) .toList(), ); @@ -1140,12 +1138,10 @@ class ClusterSnapshot { snapshotCreationTime: json['snapshotCreationTime'] as String, snapshotName: json['snapshotName'] as String, status: Status.fromString((json['status'] as String)), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcSecurityGroupIds: (json['vpcSecurityGroupIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), snapshotType: @@ -1411,7 +1407,7 @@ class ListClusterSnapshotsOutput { return ListClusterSnapshotsOutput( nextToken: json['nextToken'] as String?, snapshots: (json['snapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterSnapshotInList.fromJson(e as Map)) .toList(), ); @@ -1447,7 +1443,7 @@ class ListClustersOutput { factory ListClustersOutput.fromJson(Map json) { return ListClustersOutput( clusters: (json['clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterInList.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/drs/v2020_02_26.dart b/aws_client/lib/src/generated/drs/v2020_02_26.dart index 18469d49a..a03882f4e 100644 --- a/aws_client/lib/src/generated/drs/v2020_02_26.dart +++ b/aws_client/lib/src/generated/drs/v2020_02_26.dart @@ -2232,7 +2232,7 @@ class ConversionProperties { ?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ProductCode.fromJson(e as Map)) .toList())), volumeToVolumeSize: (json['volumeToVolumeSize'] as Map?) @@ -2447,7 +2447,7 @@ class DataReplicationInfo { etaDateTime: json['etaDateTime'] as String?, lagDuration: json['lagDuration'] as String?, replicatedDisks: (json['replicatedDisks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataReplicationInfoReplicatedDisk.fromJson( e as Map)) .toList(), @@ -2567,7 +2567,7 @@ class DataReplicationInitiation { nextAttemptDateTime: json['nextAttemptDateTime'] as String?, startDateTime: json['startDateTime'] as String?, steps: (json['steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataReplicationInitiationStep.fromJson(e as Map)) .toList(), @@ -2773,7 +2773,7 @@ class DescribeJobLogItemsResponse { factory DescribeJobLogItemsResponse.fromJson(Map json) { return DescribeJobLogItemsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobLog.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2834,7 +2834,7 @@ class DescribeJobsResponse { factory DescribeJobsResponse.fromJson(Map json) { return DescribeJobsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2867,7 +2867,7 @@ class DescribeLaunchConfigurationTemplatesResponse { Map json) { return DescribeLaunchConfigurationTemplatesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchConfigurationTemplate.fromJson(e as Map)) .toList(), @@ -2927,7 +2927,7 @@ class DescribeRecoveryInstancesResponse { Map json) { return DescribeRecoveryInstancesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryInstance.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2983,7 +2983,7 @@ class DescribeRecoverySnapshotsResponse { Map json) { return DescribeRecoverySnapshotsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoverySnapshot.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3016,7 +3016,7 @@ class DescribeReplicationConfigurationTemplatesResponse { Map json) { return DescribeReplicationConfigurationTemplatesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationConfigurationTemplate.fromJson( e as Map)) .toList(), @@ -3079,7 +3079,7 @@ class DescribeSourceNetworksResponse { factory DescribeSourceNetworksResponse.fromJson(Map json) { return DescribeSourceNetworksResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceNetwork.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3143,7 +3143,7 @@ class DescribeSourceServersResponse { factory DescribeSourceServersResponse.fromJson(Map json) { return DescribeSourceServersResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceServer.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3531,11 +3531,11 @@ class Job { initiatedBy: (json['initiatedBy'] as String?)?.let(InitiatedBy.fromString), participatingResources: (json['participatingResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParticipatingResource.fromJson(e as Map)) .toList(), participatingServers: (json['participatingServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParticipatingServer.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(JobStatus.fromString), @@ -4037,7 +4037,7 @@ class LaunchActionsStatus { factory LaunchActionsStatus.fromJson(Map json) { return LaunchActionsStatus( runs: (json['runs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchActionRun.fromJson(e as Map)) .toList(), ssmAgentDiscoveryDatetime: json['ssmAgentDiscoveryDatetime'] as String?, @@ -4496,7 +4496,7 @@ class ListExtensibleSourceServersResponse { Map json) { return ListExtensibleSourceServersResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StagingSourceServer.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4528,7 +4528,7 @@ class ListLaunchActionsResponse { factory ListLaunchActionsResponse.fromJson(Map json) { return ListLaunchActionsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchAction.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4560,7 +4560,7 @@ class ListStagingAccountsResponse { factory ListStagingAccountsResponse.fromJson(Map json) { return ListStagingAccountsResponse( accounts: (json['accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Account.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4619,10 +4619,7 @@ class NetworkInterface { factory NetworkInterface.fromJson(Map json) { return NetworkInterface( - ips: (json['ips'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ips: (json['ips'] as List?)?.nonNulls.map((e) => e as String).toList(), isPrimary: json['isPrimary'] as bool?, macAddress: json['macAddress'] as String?, ); @@ -5221,7 +5218,7 @@ class RecoveryInstanceDataReplicationInfo { etaDateTime: json['etaDateTime'] as String?, lagDuration: json['lagDuration'] as String?, replicatedDisks: (json['replicatedDisks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryInstanceDataReplicationInfoReplicatedDisk.fromJson( e as Map)) @@ -5330,7 +5327,7 @@ class RecoveryInstanceDataReplicationInitiation { return RecoveryInstanceDataReplicationInitiation( startDateTime: json['startDateTime'] as String?, steps: (json['steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryInstanceDataReplicationInitiationStep.fromJson( e as Map)) .toList(), @@ -5637,11 +5634,11 @@ class RecoveryInstanceProperties { factory RecoveryInstanceProperties.fromJson(Map json) { return RecoveryInstanceProperties( cpus: (json['cpus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CPU.fromJson(e as Map)) .toList(), disks: (json['disks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryInstanceDisk.fromJson(e as Map)) .toList(), identificationHints: json['identificationHints'] != null @@ -5650,7 +5647,7 @@ class RecoveryInstanceProperties { : null, lastUpdatedDateTime: json['lastUpdatedDateTime'] as String?, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), os: json['os'] != null @@ -5773,7 +5770,7 @@ class RecoverySnapshot { snapshotID: json['snapshotID'] as String, sourceServerID: json['sourceServerID'] as String, ebsSnapshots: (json['ebsSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), timestamp: json['timestamp'] as String?, @@ -5906,11 +5903,11 @@ class ReplicationConfiguration { ebsEncryptionKeyArn: json['ebsEncryptionKeyArn'] as String?, name: json['name'] as String?, pitPolicy: (json['pitPolicy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PITPolicyRule.fromJson(e as Map)) .toList(), replicatedDisks: (json['replicatedDisks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationConfigurationReplicatedDisk.fromJson( e as Map)) .toList(), @@ -5918,7 +5915,7 @@ class ReplicationConfiguration { json['replicationServerInstanceType'] as String?, replicationServersSecurityGroupsIDs: (json['replicationServersSecurityGroupsIDs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceServerID: json['sourceServerID'] as String?, @@ -6215,14 +6212,14 @@ class ReplicationConfigurationTemplate { ?.let(ReplicationConfigurationEbsEncryption.fromString), ebsEncryptionKeyArn: json['ebsEncryptionKeyArn'] as String?, pitPolicy: (json['pitPolicy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PITPolicyRule.fromJson(e as Map)) .toList(), replicationServerInstanceType: json['replicationServerInstanceType'] as String?, replicationServersSecurityGroupsIDs: (json['replicationServersSecurityGroupsIDs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stagingAreaSubnetId: json['stagingAreaSubnetId'] as String?, @@ -6592,11 +6589,11 @@ class SourceProperties { factory SourceProperties.fromJson(Map json) { return SourceProperties( cpus: (json['cpus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CPU.fromJson(e as Map)) .toList(), disks: (json['disks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Disk.fromJson(e as Map)) .toList(), identificationHints: json['identificationHints'] != null @@ -6605,7 +6602,7 @@ class SourceProperties { : null, lastUpdatedDateTime: json['lastUpdatedDateTime'] as String?, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), os: json['os'] != null diff --git a/aws_client/lib/src/generated/dynamo_db/v2011_12_05.dart b/aws_client/lib/src/generated/dynamo_db/v2011_12_05.dart index e38ccdfe4..9aa1e9fff 100644 --- a/aws_client/lib/src/generated/dynamo_db/v2011_12_05.dart +++ b/aws_client/lib/src/generated/dynamo_db/v2011_12_05.dart @@ -744,19 +744,13 @@ class AttributeValue { return AttributeValue( b: _s.decodeNullableUint8List(json['B'] as String?), bs: (json['BS'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => _s.decodeUint8List(e as String)) .toList(), n: json['N'] as String?, - ns: (json['NS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ns: (json['NS'] as List?)?.nonNulls.map((e) => e as String).toList(), s: json['S'] as String?, - ss: (json['SS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ss: (json['SS'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -850,7 +844,7 @@ class BatchResponse { return BatchResponse( consumedCapacityUnits: json['ConsumedCapacityUnits'] as double?, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), @@ -892,7 +886,7 @@ class BatchWriteItemOutput { ?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => WriteRequest.fromJson(e as Map)) .toList())), ); @@ -1313,11 +1307,11 @@ class KeysAndAttributes { factory KeysAndAttributes.fromJson(Map json) { return KeysAndAttributes( keys: (json['Keys'] as List) - .whereNotNull() + .nonNulls .map((e) => Key.fromJson(e as Map)) .toList(), attributesToGet: (json['AttributesToGet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), consistentRead: json['ConsistentRead'] as bool?, @@ -1353,7 +1347,7 @@ class ListTablesOutput { return ListTablesOutput( lastEvaluatedTableName: json['LastEvaluatedTableName'] as String?, tableNames: (json['TableNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1530,7 +1524,7 @@ class QueryOutput { consumedCapacityUnits: json['ConsumedCapacityUnits'] as double?, count: json['Count'] as int?, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), @@ -1637,7 +1631,7 @@ class ScanOutput { consumedCapacityUnits: json['ConsumedCapacityUnits'] as double?, count: json['Count'] as int?, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), diff --git a/aws_client/lib/src/generated/dynamo_db/v2012_08_10.dart b/aws_client/lib/src/generated/dynamo_db/v2012_08_10.dart index 683791184..20a9853ab 100644 --- a/aws_client/lib/src/generated/dynamo_db/v2012_08_10.dart +++ b/aws_client/lib/src/generated/dynamo_db/v2012_08_10.dart @@ -5919,26 +5919,20 @@ class AttributeValue { b: _s.decodeNullableUint8List(json['B'] as String?), boolValue: json['BOOL'] as bool?, bs: (json['BS'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => _s.decodeUint8List(e as String)) .toList(), l: (json['L'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeValue.fromJson(e as Map)) .toList(), m: (json['M'] as Map?)?.map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map))), n: json['N'] as String?, - ns: (json['NS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ns: (json['NS'] as List?)?.nonNulls.map((e) => e as String).toList(), nullValue: json['NULL'] as bool?, s: json['S'] as String?, - ss: (json['SS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ss: (json['SS'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6192,7 +6186,7 @@ class AutoScalingSettingsDescription { maximumUnits: json['MaximumUnits'] as int?, minimumUnits: json['MinimumUnits'] as int?, scalingPolicies: (json['ScalingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingPolicyDescription.fromJson(e as Map)) .toList(), @@ -6687,11 +6681,11 @@ class BatchExecuteStatementOutput { factory BatchExecuteStatementOutput.fromJson(Map json) { return BatchExecuteStatementOutput( consumedCapacity: (json['ConsumedCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsumedCapacity.fromJson(e as Map)) .toList(), responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BatchStatementResponse.fromJson(e as Map)) .toList(), @@ -6767,14 +6761,14 @@ class BatchGetItemOutput { factory BatchGetItemOutput.fromJson(Map json) { return BatchGetItemOutput( consumedCapacity: (json['ConsumedCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsumedCapacity.fromJson(e as Map)) .toList(), responses: (json['Responses'] as Map?)?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) @@ -7043,7 +7037,7 @@ class BatchWriteItemOutput { factory BatchWriteItemOutput.fromJson(Map json) { return BatchWriteItemOutput( consumedCapacity: (json['ConsumedCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsumedCapacity.fromJson(e as Map)) .toList(), itemCollectionMetrics: (json['ItemCollectionMetrics'] @@ -7051,7 +7045,7 @@ class BatchWriteItemOutput { ?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ItemCollectionMetrics.fromJson(e as Map)) .toList())), @@ -7059,7 +7053,7 @@ class BatchWriteItemOutput { ?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => WriteRequest.fromJson(e as Map)) .toList())), ); @@ -7957,7 +7951,7 @@ class CsvOptions { return CsvOptions( delimiter: json['Delimiter'] as String?, headerList: (json['HeaderList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8375,7 +8369,7 @@ class DescribeContributorInsightsOutput { return DescribeContributorInsightsOutput( contributorInsightsRuleList: (json['ContributorInsightsRuleList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), contributorInsightsStatus: (json['ContributorInsightsStatus'] as String?) @@ -8422,7 +8416,7 @@ class DescribeEndpointsResponse { factory DescribeEndpointsResponse.fromJson(Map json) { return DescribeEndpointsResponse( endpoints: (json['Endpoints'] as List) - .whereNotNull() + .nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), ); @@ -8504,7 +8498,7 @@ class DescribeGlobalTableSettingsOutput { return DescribeGlobalTableSettingsOutput( globalTableName: json['GlobalTableName'] as String?, replicaSettings: (json['ReplicaSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaSettingsDescription.fromJson(e as Map)) .toList(), @@ -8563,7 +8557,7 @@ class DescribeKinesisStreamingDestinationOutput { return DescribeKinesisStreamingDestinationOutput( kinesisDataStreamDestinations: (json['KinesisDataStreamDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KinesisDataStreamDestination.fromJson(e as Map)) .toList(), @@ -8832,7 +8826,7 @@ class ExecuteStatementOutput { json['ConsumedCapacity'] as Map) : null, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), @@ -8873,11 +8867,11 @@ class ExecuteTransactionOutput { factory ExecuteTransactionOutput.fromJson(Map json) { return ExecuteTransactionOutput( consumedCapacity: (json['ConsumedCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsumedCapacity.fromJson(e as Map)) .toList(), responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ItemResponse.fromJson(e as Map)) .toList(), ); @@ -9704,7 +9698,7 @@ class GlobalSecondaryIndex { return GlobalSecondaryIndex( indexName: json['IndexName'] as String, keySchema: (json['KeySchema'] as List) - .whereNotNull() + .nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), projection: @@ -9882,7 +9876,7 @@ class GlobalSecondaryIndexDescription { (json['IndexStatus'] as String?)?.let(IndexStatus.fromString), itemCount: json['ItemCount'] as int?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), onDemandThroughput: json['OnDemandThroughput'] != null @@ -9977,7 +9971,7 @@ class GlobalSecondaryIndexInfo { return GlobalSecondaryIndexInfo( indexName: json['IndexName'] as String?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), onDemandThroughput: json['OnDemandThroughput'] != null @@ -10090,7 +10084,7 @@ class GlobalTable { return GlobalTable( globalTableName: json['GlobalTableName'] as String?, replicationGroup: (json['ReplicationGroup'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Replica.fromJson(e as Map)) .toList(), ); @@ -10154,7 +10148,7 @@ class GlobalTableDescription { globalTableStatus: (json['GlobalTableStatus'] as String?) ?.let(GlobalTableStatus.fromString), replicationGroup: (json['ReplicationGroup'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaDescription.fromJson(e as Map)) .toList(), ); @@ -10687,7 +10681,7 @@ class ItemCollectionMetrics { ?.map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map))), sizeEstimateRangeGB: (json['SizeEstimateRangeGB'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -10904,12 +10898,12 @@ class KeysAndAttributes { factory KeysAndAttributes.fromJson(Map json) { return KeysAndAttributes( keys: (json['Keys'] as List) - .whereNotNull() + .nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), attributesToGet: (json['AttributesToGet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), consistentRead: json['ConsistentRead'] as bool?, @@ -11075,7 +11069,7 @@ class ListBackupsOutput { factory ListBackupsOutput.fromJson(Map json) { return ListBackupsOutput( backupSummaries: (json['BackupSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupSummary.fromJson(e as Map)) .toList(), lastEvaluatedBackupArn: json['LastEvaluatedBackupArn'] as String?, @@ -11109,7 +11103,7 @@ class ListContributorInsightsOutput { return ListContributorInsightsOutput( contributorInsightsSummaries: (json['ContributorInsightsSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContributorInsightsSummary.fromJson(e as Map)) .toList(), @@ -11145,7 +11139,7 @@ class ListExportsOutput { factory ListExportsOutput.fromJson(Map json) { return ListExportsOutput( exportSummaries: (json['ExportSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11177,7 +11171,7 @@ class ListGlobalTablesOutput { factory ListGlobalTablesOutput.fromJson(Map json) { return ListGlobalTablesOutput( globalTables: (json['GlobalTables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlobalTable.fromJson(e as Map)) .toList(), lastEvaluatedGlobalTableName: @@ -11213,7 +11207,7 @@ class ListImportsOutput { factory ListImportsOutput.fromJson(Map json) { return ListImportsOutput( importSummaryList: (json['ImportSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11258,7 +11252,7 @@ class ListTablesOutput { return ListTablesOutput( lastEvaluatedTableName: json['LastEvaluatedTableName'] as String?, tableNames: (json['TableNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11293,7 +11287,7 @@ class ListTagsOfResourceOutput { return ListTagsOfResourceOutput( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11423,7 +11417,7 @@ class LocalSecondaryIndexDescription { indexSizeBytes: json['IndexSizeBytes'] as int?, itemCount: json['ItemCount'] as int?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), projection: json['Projection'] != null @@ -11494,7 +11488,7 @@ class LocalSecondaryIndexInfo { return LocalSecondaryIndexInfo( indexName: json['IndexName'] as String?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), projection: json['Projection'] != null @@ -11754,7 +11748,7 @@ class Projection { factory Projection.fromJson(Map json) { return Projection( nonKeyAttributes: (json['NonKeyAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), projectionType: @@ -12195,7 +12189,7 @@ class QueryOutput { : null, count: json['Count'] as int?, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), @@ -12287,7 +12281,7 @@ class ReplicaAutoScalingDescription { factory ReplicaAutoScalingDescription.fromJson(Map json) { return ReplicaAutoScalingDescription( globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaGlobalSecondaryIndexAutoScalingDescription.fromJson( e as Map)) @@ -12452,7 +12446,7 @@ class ReplicaDescription { factory ReplicaDescription.fromJson(Map json) { return ReplicaDescription( globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaGlobalSecondaryIndexDescription.fromJson( e as Map)) .toList(), @@ -12913,7 +12907,7 @@ class ReplicaSettingsDescription { : null, replicaGlobalSecondaryIndexSettings: (json['ReplicaGlobalSecondaryIndexSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaGlobalSecondaryIndexSettingsDescription.fromJson( e as Map)) @@ -13621,7 +13615,7 @@ class ScanOutput { : null, count: json['Count'] as int?, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), @@ -13724,7 +13718,7 @@ class SourceTableDetails { factory SourceTableDetails.fromJson(Map json) { return SourceTableDetails( keySchema: (json['KeySchema'] as List) - .whereNotNull() + .nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), provisionedThroughput: ProvisionedThroughput.fromJson( @@ -13805,12 +13799,12 @@ class SourceTableFeatureDetails { factory SourceTableFeatureDetails.fromJson(Map json) { return SourceTableFeatureDetails( globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlobalSecondaryIndexInfo.fromJson(e as Map)) .toList(), localSecondaryIndexes: (json['LocalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocalSecondaryIndexInfo.fromJson(e as Map)) .toList(), @@ -13953,7 +13947,7 @@ class TableAutoScalingDescription { factory TableAutoScalingDescription.fromJson(Map json) { return TableAutoScalingDescription( replicas: (json['Replicas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaAutoScalingDescription.fromJson(e as Map)) .toList(), @@ -14058,18 +14052,18 @@ class TableCreationParameters { factory TableCreationParameters.fromJson(Map json) { return TableCreationParameters( attributeDefinitions: (json['AttributeDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => AttributeDefinition.fromJson(e as Map)) .toList(), keySchema: (json['KeySchema'] as List) - .whereNotNull() + .nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), tableName: json['TableName'] as String, billingMode: (json['BillingMode'] as String?)?.let(BillingMode.fromString), globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlobalSecondaryIndex.fromJson(e as Map)) .toList(), onDemandThroughput: json['OnDemandThroughput'] != null @@ -14479,7 +14473,7 @@ class TableDescription { json['ArchivalSummary'] as Map) : null, attributeDefinitions: (json['AttributeDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeDefinition.fromJson(e as Map)) .toList(), billingModeSummary: json['BillingModeSummary'] != null @@ -14489,20 +14483,20 @@ class TableDescription { creationDateTime: timeStampFromJson(json['CreationDateTime']), deletionProtectionEnabled: json['DeletionProtectionEnabled'] as bool?, globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlobalSecondaryIndexDescription.fromJson( e as Map)) .toList(), globalTableVersion: json['GlobalTableVersion'] as String?, itemCount: json['ItemCount'] as int?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), latestStreamArn: json['LatestStreamArn'] as String?, latestStreamLabel: json['LatestStreamLabel'] as String?, localSecondaryIndexes: (json['LocalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocalSecondaryIndexDescription.fromJson( e as Map)) .toList(), @@ -14515,7 +14509,7 @@ class TableDescription { json['ProvisionedThroughput'] as Map) : null, replicas: (json['Replicas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaDescription.fromJson(e as Map)) .toList(), restoreSummary: json['RestoreSummary'] != null @@ -14795,11 +14789,11 @@ class TransactGetItemsOutput { factory TransactGetItemsOutput.fromJson(Map json) { return TransactGetItemsOutput( consumedCapacity: (json['ConsumedCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsumedCapacity.fromJson(e as Map)) .toList(), responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ItemResponse.fromJson(e as Map)) .toList(), ); @@ -14871,7 +14865,7 @@ class TransactWriteItemsOutput { factory TransactWriteItemsOutput.fromJson(Map json) { return TransactWriteItemsOutput( consumedCapacity: (json['ConsumedCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsumedCapacity.fromJson(e as Map)) .toList(), itemCollectionMetrics: (json['ItemCollectionMetrics'] @@ -14879,7 +14873,7 @@ class TransactWriteItemsOutput { ?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ItemCollectionMetrics.fromJson(e as Map)) .toList())), @@ -15110,7 +15104,7 @@ class UpdateGlobalTableSettingsOutput { return UpdateGlobalTableSettingsOutput( globalTableName: json['GlobalTableName'] as String?, replicaSettings: (json['ReplicaSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaSettingsDescription.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/dynamo_db_streams/v2012_08_10.dart b/aws_client/lib/src/generated/dynamo_db_streams/v2012_08_10.dart index 89b4fcf92..10b0dac88 100644 --- a/aws_client/lib/src/generated/dynamo_db_streams/v2012_08_10.dart +++ b/aws_client/lib/src/generated/dynamo_db_streams/v2012_08_10.dart @@ -386,26 +386,20 @@ class AttributeValue { b: _s.decodeNullableUint8List(json['B'] as String?), boolValue: json['BOOL'] as bool?, bs: (json['BS'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => _s.decodeUint8List(e as String)) .toList(), l: (json['L'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeValue.fromJson(e as Map)) .toList(), m: (json['M'] as Map?)?.map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map))), n: json['N'] as String?, - ns: (json['NS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ns: (json['NS'] as List?)?.nonNulls.map((e) => e as String).toList(), nullValue: json['NULL'] as bool?, s: json['S'] as String?, - ss: (json['SS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ss: (json['SS'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -484,7 +478,7 @@ class GetRecordsOutput { return GetRecordsOutput( nextShardIterator: json['NextShardIterator'] as String?, records: (json['Records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), ); @@ -659,7 +653,7 @@ class ListStreamsOutput { return ListStreamsOutput( lastEvaluatedStreamArn: json['LastEvaluatedStreamArn'] as String?, streams: (json['Streams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Stream.fromJson(e as Map)) .toList(), ); @@ -1054,12 +1048,12 @@ class StreamDescription { creationRequestDateTime: timeStampFromJson(json['CreationRequestDateTime']), keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), lastEvaluatedShardId: json['LastEvaluatedShardId'] as String?, shards: (json['Shards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Shard.fromJson(e as Map)) .toList(), streamArn: json['StreamArn'] as String?, diff --git a/aws_client/lib/src/generated/ebs/v2019_11_02.dart b/aws_client/lib/src/generated/ebs/v2019_11_02.dart index b8c0aeb4a..7c31c0e9e 100644 --- a/aws_client/lib/src/generated/ebs/v2019_11_02.dart +++ b/aws_client/lib/src/generated/ebs/v2019_11_02.dart @@ -872,7 +872,7 @@ class ListChangedBlocksResponse { return ListChangedBlocksResponse( blockSize: json['BlockSize'] as int?, changedBlocks: (json['ChangedBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangedBlock.fromJson(e as Map)) .toList(), expiryTime: timeStampFromJson(json['ExpiryTime']), @@ -926,7 +926,7 @@ class ListSnapshotBlocksResponse { return ListSnapshotBlocksResponse( blockSize: json['BlockSize'] as int?, blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), expiryTime: timeStampFromJson(json['ExpiryTime']), @@ -1050,7 +1050,7 @@ class StartSnapshotResponse { startTime: timeStampFromJson(json['StartTime']), status: (json['Status'] as String?)?.let(Status.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), volumeSize: json['VolumeSize'] as int?, diff --git a/aws_client/lib/src/generated/ecr/v2015_09_21.dart b/aws_client/lib/src/generated/ecr/v2015_09_21.dart index e4c5d5b6e..f8bf4f951 100644 --- a/aws_client/lib/src/generated/ecr/v2015_09_21.dart +++ b/aws_client/lib/src/generated/ecr/v2015_09_21.dart @@ -2397,7 +2397,7 @@ class AwsEcrContainerImageDetails { author: json['author'] as String?, imageHash: json['imageHash'] as String?, imageTags: (json['imageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), platform: json['platform'] as String?, @@ -2446,11 +2446,11 @@ class BatchCheckLayerAvailabilityResponse { Map json) { return BatchCheckLayerAvailabilityResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LayerFailure.fromJson(e as Map)) .toList(), layers: (json['layers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Layer.fromJson(e as Map)) .toList(), ); @@ -2481,11 +2481,11 @@ class BatchDeleteImageResponse { factory BatchDeleteImageResponse.fromJson(Map json) { return BatchDeleteImageResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageFailure.fromJson(e as Map)) .toList(), imageIds: (json['imageIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageIdentifier.fromJson(e as Map)) .toList(), ); @@ -2517,11 +2517,11 @@ class BatchGetImageResponse { factory BatchGetImageResponse.fromJson(Map json) { return BatchGetImageResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageFailure.fromJson(e as Map)) .toList(), images: (json['images'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Image.fromJson(e as Map)) .toList(), ); @@ -2553,12 +2553,12 @@ class BatchGetRepositoryScanningConfigurationResponse { Map json) { return BatchGetRepositoryScanningConfigurationResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryScanningConfigurationFailure.fromJson( e as Map)) .toList(), scanningConfigurations: (json['scanningConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryScanningConfiguration.fromJson( e as Map)) .toList(), @@ -2812,7 +2812,7 @@ class CvssScoreDetails { factory CvssScoreDetails.fromJson(Map json) { return CvssScoreDetails( adjustments: (json['adjustments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CvssScoreAdjustment.fromJson(e as Map)) .toList(), score: json['score'] as double?, @@ -3048,7 +3048,7 @@ class DescribeImageReplicationStatusResponse { ? ImageIdentifier.fromJson(json['imageId'] as Map) : null, replicationStatuses: (json['replicationStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ImageReplicationStatus.fromJson(e as Map)) .toList(), @@ -3176,7 +3176,7 @@ class DescribeImagesResponse { factory DescribeImagesResponse.fromJson(Map json) { return DescribeImagesResponse( imageDetails: (json['imageDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3214,7 +3214,7 @@ class DescribePullThroughCacheRulesResponse { return DescribePullThroughCacheRulesResponse( nextToken: json['nextToken'] as String?, pullThroughCacheRules: (json['pullThroughCacheRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PullThroughCacheRule.fromJson(e as Map)) .toList(), ); @@ -3284,7 +3284,7 @@ class DescribeRepositoriesResponse { return DescribeRepositoriesResponse( nextToken: json['nextToken'] as String?, repositories: (json['repositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Repository.fromJson(e as Map)) .toList(), ); @@ -3466,7 +3466,7 @@ class EnhancedImageScanFinding { ? Remediation.fromJson(json['remediation'] as Map) : null, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), score: json['score'] as double?, @@ -3551,7 +3551,7 @@ class GetAuthorizationTokenResponse { factory GetAuthorizationTokenResponse.fromJson(Map json) { return GetAuthorizationTokenResponse( authorizationData: (json['authorizationData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorizationData.fromJson(e as Map)) .toList(), ); @@ -3637,7 +3637,7 @@ class GetLifecyclePolicyPreviewResponse { lifecyclePolicyText: json['lifecyclePolicyText'] as String?, nextToken: json['nextToken'] as String?, previewResults: (json['previewResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecyclePolicyPreviewResult.fromJson(e as Map)) .toList(), @@ -3974,7 +3974,7 @@ class ImageDetail { : null, imageSizeInBytes: json['imageSizeInBytes'] as int?, imageTags: (json['imageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastRecordedPullTime: timeStampFromJson(json['lastRecordedPullTime']), @@ -4182,7 +4182,7 @@ class ImageScanFinding { factory ImageScanFinding.fromJson(Map json) { return ImageScanFinding( attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), description: json['description'] as String?, @@ -4236,7 +4236,7 @@ class ImageScanFindings { factory ImageScanFindings.fromJson(Map json) { return ImageScanFindings( enhancedFindings: (json['enhancedFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnhancedImageScanFinding.fromJson(e as Map)) .toList(), @@ -4244,7 +4244,7 @@ class ImageScanFindings { as Map?) ?.map((k, e) => MapEntry(FindingSeverity.fromString(k), e as int)), findings: (json['findings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageScanFinding.fromJson(e as Map)) .toList(), imageScanCompletedAt: timeStampFromJson(json['imageScanCompletedAt']), @@ -4592,7 +4592,7 @@ class LifecyclePolicyPreviewResult { imageDigest: json['imageDigest'] as String?, imagePushedAt: timeStampFromJson(json['imagePushedAt']), imageTags: (json['imageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4718,7 +4718,7 @@ class ListImagesResponse { factory ListImagesResponse.fromJson(Map json) { return ListImagesResponse( imageIds: (json['imageIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageIdentifier.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4746,7 +4746,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4810,15 +4810,15 @@ class PackageVulnerabilityDetails { factory PackageVulnerabilityDetails.fromJson(Map json) { return PackageVulnerabilityDetails( cvss: (json['cvss'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CvssScore.fromJson(e as Map)) .toList(), referenceUrls: (json['referenceUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), relatedVulnerabilities: (json['relatedVulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), source: json['source'] as String?, @@ -4828,7 +4828,7 @@ class PackageVulnerabilityDetails { vendorUpdatedAt: timeStampFromJson(json['vendorUpdatedAt']), vulnerabilityId: json['vulnerabilityId'] as String?, vulnerablePackages: (json['vulnerablePackages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VulnerablePackage.fromJson(e as Map)) .toList(), ); @@ -5206,7 +5206,7 @@ class RegistryScanningConfiguration { factory RegistryScanningConfiguration.fromJson(Map json) { return RegistryScanningConfiguration( rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegistryScanningRule.fromJson(e as Map)) .toList(), scanType: (json['scanType'] as String?)?.let(ScanType.fromString), @@ -5245,7 +5245,7 @@ class RegistryScanningRule { factory RegistryScanningRule.fromJson(Map json) { return RegistryScanningRule( repositoryFilters: (json['repositoryFilters'] as List) - .whereNotNull() + .nonNulls .map((e) => ScanningRepositoryFilter.fromJson(e as Map)) .toList(), @@ -5304,7 +5304,7 @@ class ReplicationConfiguration { factory ReplicationConfiguration.fromJson(Map json) { return ReplicationConfiguration( rules: (json['rules'] as List) - .whereNotNull() + .nonNulls .map((e) => ReplicationRule.fromJson(e as Map)) .toList(), ); @@ -5369,12 +5369,12 @@ class ReplicationRule { factory ReplicationRule.fromJson(Map json) { return ReplicationRule( destinations: (json['destinations'] as List) - .whereNotNull() + .nonNulls .map( (e) => ReplicationDestination.fromJson(e as Map)) .toList(), repositoryFilters: (json['repositoryFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryFilter.fromJson(e as Map)) .toList(), ); @@ -5574,7 +5574,7 @@ class RepositoryScanningConfiguration { factory RepositoryScanningConfiguration.fromJson(Map json) { return RepositoryScanningConfiguration( appliedScanFilters: (json['appliedScanFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScanningRepositoryFilter.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/ecr_public/v2020_10_30.dart b/aws_client/lib/src/generated/ecr_public/v2020_10_30.dart index 47f6e7b30..7de26edff 100644 --- a/aws_client/lib/src/generated/ecr_public/v2020_10_30.dart +++ b/aws_client/lib/src/generated/ecr_public/v2020_10_30.dart @@ -1289,11 +1289,11 @@ class BatchCheckLayerAvailabilityResponse { Map json) { return BatchCheckLayerAvailabilityResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LayerFailure.fromJson(e as Map)) .toList(), layers: (json['layers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Layer.fromJson(e as Map)) .toList(), ); @@ -1324,11 +1324,11 @@ class BatchDeleteImageResponse { factory BatchDeleteImageResponse.fromJson(Map json) { return BatchDeleteImageResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageFailure.fromJson(e as Map)) .toList(), imageIds: (json['imageIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageIdentifier.fromJson(e as Map)) .toList(), ); @@ -1499,7 +1499,7 @@ class DescribeImageTagsResponse { factory DescribeImageTagsResponse.fromJson(Map json) { return DescribeImageTagsResponse( imageTagDetails: (json['imageTagDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageTagDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1535,7 +1535,7 @@ class DescribeImagesResponse { factory DescribeImagesResponse.fromJson(Map json) { return DescribeImagesResponse( imageDetails: (json['imageDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1571,7 +1571,7 @@ class DescribeRegistriesResponse { factory DescribeRegistriesResponse.fromJson(Map json) { return DescribeRegistriesResponse( registries: (json['registries'] as List) - .whereNotNull() + .nonNulls .map((e) => Registry.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1608,7 +1608,7 @@ class DescribeRepositoriesResponse { return DescribeRepositoriesResponse( nextToken: json['nextToken'] as String?, repositories: (json['repositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Repository.fromJson(e as Map)) .toList(), ); @@ -1848,7 +1848,7 @@ class ImageDetail { imagePushedAt: timeStampFromJson(json['imagePushedAt']), imageSizeInBytes: json['imageSizeInBytes'] as int?, imageTags: (json['imageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), registryId: json['registryId'] as String?, @@ -2167,7 +2167,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2350,7 +2350,7 @@ class Registry { factory Registry.fromJson(Map json) { return Registry( aliases: (json['aliases'] as List) - .whereNotNull() + .nonNulls .map((e) => RegistryAlias.fromJson(e as Map)) .toList(), registryArn: json['registryArn'] as String, @@ -2584,14 +2584,14 @@ class RepositoryCatalogData { return RepositoryCatalogData( aboutText: json['aboutText'] as String?, architectures: (json['architectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, logoUrl: json['logoUrl'] as String?, marketplaceCertified: json['marketplaceCertified'] as bool?, operatingSystems: (json['operatingSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), usageText: json['usageText'] as String?, diff --git a/aws_client/lib/src/generated/ecs/v2014_11_13.dart b/aws_client/lib/src/generated/ecs/v2014_11_13.dart index 9bc84bb70..c201cccd6 100644 --- a/aws_client/lib/src/generated/ecs/v2014_11_13.dart +++ b/aws_client/lib/src/generated/ecs/v2014_11_13.dart @@ -5891,7 +5891,7 @@ class Attachment { factory Attachment.fromJson(Map json) { return Attachment( details: (json['details'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), id: json['id'] as String?, @@ -6145,14 +6145,12 @@ class AwsVpcConfiguration { factory AwsVpcConfiguration.fromJson(Map json) { return AwsVpcConfiguration( - subnets: (json['subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['subnets'] as List).nonNulls.map((e) => e as String).toList(), assignPublicIp: (json['assignPublicIp'] as String?)?.let(AssignPublicIp.fromString), securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6278,7 +6276,7 @@ class CapacityProvider { status: (json['status'] as String?)?.let(CapacityProviderStatus.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), updateStatus: (json['updateStatus'] as String?) @@ -6635,12 +6633,12 @@ class Cluster { return Cluster( activeServicesCount: json['activeServicesCount'] as int?, attachments: (json['attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attachment.fromJson(e as Map)) .toList(), attachmentsStatus: json['attachmentsStatus'] as String?, capacityProviders: (json['capacityProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clusterArn: json['clusterArn'] as String?, @@ -6651,7 +6649,7 @@ class Cluster { : null, defaultCapacityProviderStrategy: (json['defaultCapacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -6664,16 +6662,16 @@ class Cluster { json['serviceConnectDefaults'] as Map) : null, settings: (json['settings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterSetting.fromJson(e as Map)) .toList(), statistics: (json['statistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), status: json['status'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7036,28 +7034,26 @@ class Container { containerArn: json['containerArn'] as String?, cpu: json['cpu'] as String?, exitCode: json['exitCode'] as int?, - gpuIds: (json['gpuIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + gpuIds: + (json['gpuIds'] as List?)?.nonNulls.map((e) => e as String).toList(), healthStatus: (json['healthStatus'] as String?)?.let(HealthStatus.fromString), image: json['image'] as String?, imageDigest: json['imageDigest'] as String?, lastStatus: json['lastStatus'] as String?, managedAgents: (json['managedAgents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedAgent.fromJson(e as Map)) .toList(), memory: json['memory'] as String?, memoryReservation: json['memoryReservation'] as String?, name: json['name'] as String?, networkBindings: (json['networkBindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkBinding.fromJson(e as Map)) .toList(), networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), reason: json['reason'] as String?, @@ -8024,49 +8020,47 @@ class ContainerDefinition { factory ContainerDefinition.fromJson(Map json) { return ContainerDefinition( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), cpu: json['cpu'] as int?, credentialSpecs: (json['credentialSpecs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dependsOn: (json['dependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerDependency.fromJson(e as Map)) .toList(), disableNetworking: json['disableNetworking'] as bool?, dnsSearchDomains: (json['dnsSearchDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dnsServers: (json['dnsServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dockerLabels: (json['dockerLabels'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), dockerSecurityOptions: (json['dockerSecurityOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), entryPoint: (json['entryPoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), environment: (json['environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), environmentFiles: (json['environmentFiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentFile.fromJson(e as Map)) .toList(), essential: json['essential'] as bool?, extraHosts: (json['extraHosts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HostEntry.fromJson(e as Map)) .toList(), firelensConfiguration: json['firelensConfiguration'] != null @@ -8079,10 +8073,8 @@ class ContainerDefinition { hostname: json['hostname'] as String?, image: json['image'] as String?, interactive: json['interactive'] as bool?, - links: (json['links'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + links: + (json['links'] as List?)?.nonNulls.map((e) => e as String).toList(), linuxParameters: json['linuxParameters'] != null ? LinuxParameters.fromJson( json['linuxParameters'] as Map) @@ -8094,12 +8086,12 @@ class ContainerDefinition { memory: json['memory'] as int?, memoryReservation: json['memoryReservation'] as int?, mountPoints: (json['mountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MountPoint.fromJson(e as Map)) .toList(), name: json['name'] as String?, portMappings: (json['portMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortMapping.fromJson(e as Map)) .toList(), privileged: json['privileged'] as bool?, @@ -8110,26 +8102,26 @@ class ContainerDefinition { json['repositoryCredentials'] as Map) : null, resourceRequirements: (json['resourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceRequirement.fromJson(e as Map)) .toList(), secrets: (json['secrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), startTimeout: json['startTimeout'] as int?, stopTimeout: json['stopTimeout'] as int?, systemControls: (json['systemControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SystemControl.fromJson(e as Map)) .toList(), ulimits: (json['ulimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ulimit.fromJson(e as Map)) .toList(), user: json['user'] as String?, volumesFrom: (json['volumesFrom'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeFrom.fromJson(e as Map)) .toList(), workingDirectory: json['workingDirectory'] as String?, @@ -8493,11 +8485,11 @@ class ContainerInstance { agentUpdateStatus: (json['agentUpdateStatus'] as String?) ?.let(AgentUpdateStatus.fromString), attachments: (json['attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attachment.fromJson(e as Map)) .toList(), attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), capacityProviderName: json['capacityProviderName'] as String?, @@ -8510,18 +8502,18 @@ class ContainerInstance { pendingTasksCount: json['pendingTasksCount'] as int?, registeredAt: timeStampFromJson(json['registeredAt']), registeredResources: (json['registeredResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), remainingResources: (json['remainingResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), runningTasksCount: json['runningTasksCount'] as int?, status: json['status'] as String?, statusReason: json['statusReason'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), version: json['version'] as int?, @@ -8611,7 +8603,7 @@ class ContainerInstanceHealthStatus { factory ContainerInstanceHealthStatus.fromJson(Map json) { return ContainerInstanceHealthStatus( details: (json['details'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceHealthCheckResult.fromJson(e as Map)) .toList(), @@ -8711,24 +8703,22 @@ class ContainerOverride { factory ContainerOverride.fromJson(Map json) { return ContainerOverride( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), cpu: json['cpu'] as int?, environment: (json['environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), environmentFiles: (json['environmentFiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentFile.fromJson(e as Map)) .toList(), memory: json['memory'] as int?, memoryReservation: json['memoryReservation'] as int?, name: json['name'] as String?, resourceRequirements: (json['resourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceRequirement.fromJson(e as Map)) .toList(), ); @@ -8960,7 +8950,7 @@ class DeleteAttributesResponse { factory DeleteAttributesResponse.fromJson(Map json) { return DeleteAttributesResponse( attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), ); @@ -9062,11 +9052,11 @@ class DeleteTaskDefinitionsResponse { factory DeleteTaskDefinitionsResponse.fromJson(Map json) { return DeleteTaskDefinitionsResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), taskDefinitions: (json['taskDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskDefinition.fromJson(e as Map)) .toList(), ); @@ -9261,7 +9251,7 @@ class Deployment { factory Deployment.fromJson(Map json) { return Deployment( capacityProviderStrategy: (json['capacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -9286,7 +9276,7 @@ class Deployment { json['serviceConnectConfiguration'] as Map) : null, serviceConnectResources: (json['serviceConnectResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceConnectServiceResource.fromJson(e as Map)) .toList(), @@ -9294,7 +9284,7 @@ class Deployment { taskDefinition: json['taskDefinition'] as String?, updatedAt: timeStampFromJson(json['updatedAt']), volumeConfigurations: (json['volumeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceVolumeConfiguration.fromJson(e as Map)) .toList(), @@ -9389,7 +9379,7 @@ class DeploymentAlarms { factory DeploymentAlarms.fromJson(Map json) { return DeploymentAlarms( alarmNames: (json['alarmNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), enable: json['enable'] as bool, @@ -9768,11 +9758,11 @@ class DescribeCapacityProvidersResponse { Map json) { return DescribeCapacityProvidersResponse( capacityProviders: (json['capacityProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProvider.fromJson(e as Map)) .toList(), failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9806,11 +9796,11 @@ class DescribeClustersResponse { factory DescribeClustersResponse.fromJson(Map json) { return DescribeClustersResponse( clusters: (json['clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cluster.fromJson(e as Map)) .toList(), failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), ); @@ -9842,11 +9832,11 @@ class DescribeContainerInstancesResponse { Map json) { return DescribeContainerInstancesResponse( containerInstances: (json['containerInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerInstance.fromJson(e as Map)) .toList(), failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), ); @@ -9877,11 +9867,11 @@ class DescribeServicesResponse { factory DescribeServicesResponse.fromJson(Map json) { return DescribeServicesResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), services: (json['services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Service.fromJson(e as Map)) .toList(), ); @@ -9948,7 +9938,7 @@ class DescribeTaskDefinitionResponse { factory DescribeTaskDefinitionResponse.fromJson(Map json) { return DescribeTaskDefinitionResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskDefinition: json['taskDefinition'] != null @@ -9983,11 +9973,11 @@ class DescribeTaskSetsResponse { factory DescribeTaskSetsResponse.fromJson(Map json) { return DescribeTaskSetsResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), taskSets: (json['taskSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskSet.fromJson(e as Map)) .toList(), ); @@ -10018,11 +10008,11 @@ class DescribeTasksResponse { factory DescribeTasksResponse.fromJson(Map json) { return DescribeTasksResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Task.fromJson(e as Map)) .toList(), ); @@ -10078,7 +10068,7 @@ class Device { hostPath: json['hostPath'] as String, containerPath: json['containerPath'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceCgroupPermission.fromString((e as String))) .toList(), ); @@ -10286,7 +10276,7 @@ class EBSTagSpecification { propagateTags: (json['propagateTags'] as String?)?.let(PropagateTags.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11018,11 +11008,11 @@ class GetTaskProtectionResponse { factory GetTaskProtectionResponse.fromJson(Map json) { return GetTaskProtectionResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), protectedTasks: (json['protectedTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectedTask.fromJson(e as Map)) .toList(), ); @@ -11244,10 +11234,8 @@ class HealthCheck { factory HealthCheck.fromJson(Map json) { return HealthCheck( - command: (json['command'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List).nonNulls.map((e) => e as String).toList(), interval: json['interval'] as int?, retries: json['retries'] as int?, startPeriod: json['startPeriod'] as int?, @@ -11580,14 +11568,8 @@ class KernelCapabilities { factory KernelCapabilities.fromJson(Map json) { return KernelCapabilities( - add: (json['add'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - drop: (json['drop'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + add: (json['add'] as List?)?.nonNulls.map((e) => e as String).toList(), + drop: (json['drop'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -11764,7 +11746,7 @@ class LinuxParameters { json['capabilities'] as Map) : null, devices: (json['devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Device.fromJson(e as Map)) .toList(), initProcessEnabled: json['initProcessEnabled'] as bool?, @@ -11772,7 +11754,7 @@ class LinuxParameters { sharedMemorySize: json['sharedMemorySize'] as int?, swappiness: json['swappiness'] as int?, tmpfs: (json['tmpfs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tmpfs.fromJson(e as Map)) .toList(), ); @@ -11818,7 +11800,7 @@ class ListAccountSettingsResponse { return ListAccountSettingsResponse( nextToken: json['nextToken'] as String?, settings: (json['settings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Setting.fromJson(e as Map)) .toList(), ); @@ -11853,7 +11835,7 @@ class ListAttributesResponse { factory ListAttributesResponse.fromJson(Map json) { return ListAttributesResponse( attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -11890,7 +11872,7 @@ class ListClustersResponse { factory ListClustersResponse.fromJson(Map json) { return ListClustersResponse( clusterArns: (json['clusterArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -11927,7 +11909,7 @@ class ListContainerInstancesResponse { factory ListContainerInstancesResponse.fromJson(Map json) { return ListContainerInstancesResponse( containerInstanceArns: (json['containerInstanceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -11966,7 +11948,7 @@ class ListServicesByNamespaceResponse { return ListServicesByNamespaceResponse( nextToken: json['nextToken'] as String?, serviceArns: (json['serviceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12003,7 +11985,7 @@ class ListServicesResponse { return ListServicesResponse( nextToken: json['nextToken'] as String?, serviceArns: (json['serviceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12030,7 +12012,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -12066,7 +12048,7 @@ class ListTaskDefinitionFamiliesResponse { Map json) { return ListTaskDefinitionFamiliesResponse( families: (json['families'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -12104,7 +12086,7 @@ class ListTaskDefinitionsResponse { return ListTaskDefinitionsResponse( nextToken: json['nextToken'] as String?, taskDefinitionArns: (json['taskDefinitionArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12140,7 +12122,7 @@ class ListTasksResponse { return ListTasksResponse( nextToken: json['nextToken'] as String?, taskArns: (json['taskArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12364,7 +12346,7 @@ class LogConfiguration { options: (json['options'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), secretOptions: (json['secretOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), ); @@ -13457,7 +13439,7 @@ class ProxyConfiguration { return ProxyConfiguration( containerName: json['containerName'] as String, properties: (json['properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), type: (json['type'] as String?)?.let(ProxyConfigurationType.fromString), @@ -13549,7 +13531,7 @@ class PutAttributesResponse { factory PutAttributesResponse.fromJson(Map json) { return PutAttributesResponse( attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), ); @@ -13629,7 +13611,7 @@ class RegisterTaskDefinitionResponse { factory RegisterTaskDefinitionResponse.fromJson(Map json) { return RegisterTaskDefinitionResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskDefinition: json['taskDefinition'] != null @@ -13722,7 +13704,7 @@ class Resource { longValue: json['longValue'] as int?, name: json['name'] as String?, stringSetValue: (json['stringSetValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: json['type'] as String?, @@ -13835,11 +13817,11 @@ class RunTaskResponse { factory RunTaskResponse.fromJson(Map json) { return RunTaskResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Task.fromJson(e as Map)) .toList(), ); @@ -14273,7 +14255,7 @@ class Service { factory Service.fromJson(Map json) { return Service( capacityProviderStrategy: (json['capacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -14289,21 +14271,21 @@ class Service { json['deploymentController'] as Map) : null, deployments: (json['deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Deployment.fromJson(e as Map)) .toList(), desiredCount: json['desiredCount'] as int?, enableECSManagedTags: json['enableECSManagedTags'] as bool?, enableExecuteCommand: json['enableExecuteCommand'] as bool?, events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceEvent.fromJson(e as Map)) .toList(), healthCheckGracePeriodSeconds: json['healthCheckGracePeriodSeconds'] as int?, launchType: (json['launchType'] as String?)?.let(LaunchType.fromString), loadBalancers: (json['loadBalancers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancer.fromJson(e as Map)) .toList(), networkConfiguration: json['networkConfiguration'] != null @@ -14312,11 +14294,11 @@ class Service { : null, pendingCount: json['pendingCount'] as int?, placementConstraints: (json['placementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementConstraint.fromJson(e as Map)) .toList(), placementStrategy: (json['placementStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementStrategy.fromJson(e as Map)) .toList(), platformFamily: json['platformFamily'] as String?, @@ -14330,17 +14312,17 @@ class Service { serviceArn: json['serviceArn'] as String?, serviceName: json['serviceName'] as String?, serviceRegistries: (json['serviceRegistries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceRegistry.fromJson(e as Map)) .toList(), status: json['status'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskDefinition: json['taskDefinition'] as String?, taskSets: (json['taskSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskSet.fromJson(e as Map)) .toList(), ); @@ -14546,7 +14528,7 @@ class ServiceConnectConfiguration { : null, namespace: json['namespace'] as String?, services: (json['services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceConnectService.fromJson(e as Map)) .toList(), ); @@ -14633,7 +14615,7 @@ class ServiceConnectService { return ServiceConnectService( portName: json['portName'] as String, clientAliases: (json['clientAliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceConnectClientAlias.fromJson(e as Map)) .toList(), @@ -15019,7 +15001,7 @@ class ServiceManagedEBSVolumeConfiguration { sizeInGiB: json['sizeInGiB'] as int?, snapshotId: json['snapshotId'] as String?, tagSpecifications: (json['tagSpecifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EBSTagSpecification.fromJson(e as Map)) .toList(), throughput: json['throughput'] as int?, @@ -15335,11 +15317,11 @@ class StartTaskResponse { factory StartTaskResponse.fromJson(Map json) { return StartTaskResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Task.fromJson(e as Map)) .toList(), ); @@ -15970,11 +15952,11 @@ class Task { factory Task.fromJson(Map json) { return Task( attachments: (json['attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attachment.fromJson(e as Map)) .toList(), attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), availabilityZone: json['availabilityZone'] as String?, @@ -15985,7 +15967,7 @@ class Task { connectivityAt: timeStampFromJson(json['connectivityAt']), containerInstanceArn: json['containerInstanceArn'] as String?, containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Container.fromJson(e as Map)) .toList(), cpu: json['cpu'] as String?, @@ -16001,7 +15983,7 @@ class Task { healthStatus: (json['healthStatus'] as String?)?.let(HealthStatus.fromString), inferenceAccelerators: (json['inferenceAccelerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceAccelerator.fromJson(e as Map)) .toList(), lastStatus: json['lastStatus'] as String?, @@ -16021,7 +16003,7 @@ class Task { stoppedReason: json['stoppedReason'] as String?, stoppingAt: timeStampFromJson(json['stoppingAt']), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskArn: json['taskArn'] as String?, @@ -16499,11 +16481,11 @@ class TaskDefinition { factory TaskDefinition.fromJson(Map json) { return TaskDefinition( compatibilities: (json['compatibilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Compatibility.fromString((e as String))) .toList(), containerDefinitions: (json['containerDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerDefinition.fromJson(e as Map)) .toList(), cpu: json['cpu'] as String?, @@ -16515,7 +16497,7 @@ class TaskDefinition { executionRoleArn: json['executionRoleArn'] as String?, family: json['family'] as String?, inferenceAccelerators: (json['inferenceAccelerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceAccelerator.fromJson(e as Map)) .toList(), ipcMode: (json['ipcMode'] as String?)?.let(IpcMode.fromString), @@ -16524,7 +16506,7 @@ class TaskDefinition { (json['networkMode'] as String?)?.let(NetworkMode.fromString), pidMode: (json['pidMode'] as String?)?.let(PidMode.fromString), placementConstraints: (json['placementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskDefinitionPlacementConstraint.fromJson( e as Map)) .toList(), @@ -16535,11 +16517,11 @@ class TaskDefinition { registeredAt: timeStampFromJson(json['registeredAt']), registeredBy: json['registeredBy'] as String?, requiresAttributes: (json['requiresAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), requiresCompatibilities: (json['requiresCompatibilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Compatibility.fromString((e as String))) .toList(), revision: json['revision'] as int?, @@ -16551,7 +16533,7 @@ class TaskDefinition { taskDefinitionArn: json['taskDefinitionArn'] as String?, taskRoleArn: json['taskRoleArn'] as String?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -17035,7 +17017,7 @@ class TaskOverride { factory TaskOverride.fromJson(Map json) { return TaskOverride( containerOverrides: (json['containerOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerOverride.fromJson(e as Map)) .toList(), cpu: json['cpu'] as String?, @@ -17046,7 +17028,7 @@ class TaskOverride { executionRoleArn: json['executionRoleArn'] as String?, inferenceAcceleratorOverrides: (json['inferenceAcceleratorOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceAcceleratorOverride.fromJson(e as Map)) .toList(), @@ -17286,7 +17268,7 @@ class TaskSet { factory TaskSet.fromJson(Map json) { return TaskSet( capacityProviderStrategy: (json['capacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -17297,7 +17279,7 @@ class TaskSet { id: json['id'] as String?, launchType: (json['launchType'] as String?)?.let(LaunchType.fromString), loadBalancers: (json['loadBalancers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancer.fromJson(e as Map)) .toList(), networkConfiguration: json['networkConfiguration'] != null @@ -17313,7 +17295,7 @@ class TaskSet { : null, serviceArn: json['serviceArn'] as String?, serviceRegistries: (json['serviceRegistries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceRegistry.fromJson(e as Map)) .toList(), stabilityStatus: @@ -17322,7 +17304,7 @@ class TaskSet { startedBy: json['startedBy'] as String?, status: json['status'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskDefinition: json['taskDefinition'] as String?, @@ -17529,7 +17511,7 @@ class Tmpfs { containerPath: json['containerPath'] as String, size: json['size'] as int, mountOptions: (json['mountOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -17762,11 +17744,11 @@ class UpdateContainerInstancesStateResponse { Map json) { return UpdateContainerInstancesStateResponse( containerInstances: (json['containerInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerInstance.fromJson(e as Map)) .toList(), failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), ); @@ -17861,11 +17843,11 @@ class UpdateTaskProtectionResponse { factory UpdateTaskProtectionResponse.fromJson(Map json) { return UpdateTaskProtectionResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), protectedTasks: (json['protectedTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectedTask.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/efs/v2015_02_01.dart b/aws_client/lib/src/generated/efs/v2015_02_01.dart index 3cae5320a..50c04a0ad 100644 --- a/aws_client/lib/src/generated/efs/v2015_02_01.dart +++ b/aws_client/lib/src/generated/efs/v2015_02_01.dart @@ -2084,7 +2084,7 @@ class AccessPointDescription { json['RootDirectory'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2260,7 +2260,7 @@ class DescribeAccessPointsResponse { factory DescribeAccessPointsResponse.fromJson(Map json) { return DescribeAccessPointsResponse( accessPoints: (json['AccessPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AccessPointDescription.fromJson(e as Map)) .toList(), @@ -2337,7 +2337,7 @@ class DescribeFileSystemsResponse { factory DescribeFileSystemsResponse.fromJson(Map json) { return DescribeFileSystemsResponse( fileSystems: (json['FileSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemDescription.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -2369,7 +2369,7 @@ class DescribeMountTargetSecurityGroupsResponse { Map json) { return DescribeMountTargetSecurityGroupsResponse( securityGroups: (json['SecurityGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -2408,7 +2408,7 @@ class DescribeMountTargetsResponse { return DescribeMountTargetsResponse( marker: json['Marker'] as String?, mountTargets: (json['MountTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MountTargetDescription.fromJson(e as Map)) .toList(), @@ -2446,7 +2446,7 @@ class DescribeReplicationConfigurationsResponse { return DescribeReplicationConfigurationsResponse( nextToken: json['NextToken'] as String?, replications: (json['Replications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationConfigurationDescription.fromJson( e as Map)) .toList(), @@ -2488,7 +2488,7 @@ class DescribeTagsResponse { factory DescribeTagsResponse.fromJson(Map json) { return DescribeTagsResponse( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -2766,7 +2766,7 @@ class FileSystemDescription { sizeInBytes: FileSystemSize.fromJson(json['SizeInBytes'] as Map), tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), availabilityZoneId: json['AvailabilityZoneId'] as String?, @@ -3002,7 +3002,7 @@ class LifecycleConfigurationDescription { Map json) { return LifecycleConfigurationDescription( lifecyclePolicies: (json['LifecyclePolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecyclePolicy.fromJson(e as Map)) .toList(), ); @@ -3100,7 +3100,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3254,7 +3254,7 @@ class PosixUser { gid: json['Gid'] as int, uid: json['Uid'] as int, secondaryGids: (json['SecondaryGids'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -3335,7 +3335,7 @@ class ReplicationConfigurationDescription { creationTime: nonNullableTimeStampFromJson(json['CreationTime'] as Object), destinations: (json['Destinations'] as List) - .whereNotNull() + .nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), originalSourceFileSystemArn: @@ -3435,7 +3435,7 @@ class ResourceIdPreference { resourceIdType: (json['ResourceIdType'] as String?)?.let(ResourceIdType.fromString), resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromString((e as String))) .toList(), ); diff --git a/aws_client/lib/src/generated/eks/v2017_11_01.dart b/aws_client/lib/src/generated/eks/v2017_11_01.dart index 109add329..7636e66cf 100644 --- a/aws_client/lib/src/generated/eks/v2017_11_01.dart +++ b/aws_client/lib/src/generated/eks/v2017_11_01.dart @@ -3472,7 +3472,7 @@ class AccessEntry { clusterName: json['clusterName'] as String?, createdAt: timeStampFromJson(json['createdAt']), kubernetesGroups: (json['kubernetesGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), modifiedAt: timeStampFromJson(json['modifiedAt']), @@ -3568,7 +3568,7 @@ class AccessScope { factory AccessScope.fromJson(Map json) { return AccessScope( namespaces: (json['namespaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(AccessScopeType.fromString), @@ -3696,7 +3696,7 @@ class Addon { modifiedAt: timeStampFromJson(json['modifiedAt']), owner: json['owner'] as String?, podIdentityAssociations: (json['podIdentityAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), publisher: json['publisher'] as String?, @@ -3759,7 +3759,7 @@ class AddonHealth { factory AddonHealth.fromJson(Map json) { return AddonHealth( issues: (json['issues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddonIssue.fromJson(e as Map)) .toList(), ); @@ -3807,7 +3807,7 @@ class AddonInfo { return AddonInfo( addonName: json['addonName'] as String?, addonVersions: (json['addonVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddonVersionInfo.fromJson(e as Map)) .toList(), marketplaceInformation: json['marketplaceInformation'] != null @@ -3861,7 +3861,7 @@ class AddonIssue { code: (json['code'] as String?)?.let(AddonIssueCode.fromString), message: json['message'] as String?, resourceIds: (json['resourceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3949,7 +3949,7 @@ class AddonPodIdentityConfiguration { factory AddonPodIdentityConfiguration.fromJson(Map json) { return AddonPodIdentityConfiguration( recommendedManagedPolicies: (json['recommendedManagedPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serviceAccount: json['serviceAccount'] as String?, @@ -4017,11 +4017,11 @@ class AddonVersionInfo { return AddonVersionInfo( addonVersion: json['addonVersion'] as String?, architecture: (json['architecture'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), compatibilities: (json['compatibilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Compatibility.fromJson(e as Map)) .toList(), requiresConfiguration: json['requiresConfiguration'] as bool?, @@ -4455,7 +4455,7 @@ class Cluster { : null, createdAt: timeStampFromJson(json['createdAt']), encryptionConfig: (json['encryptionConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EncryptionConfig.fromJson(e as Map)) .toList(), endpoint: json['endpoint'] as String?, @@ -4553,7 +4553,7 @@ class ClusterHealth { factory ClusterHealth.fromJson(Map json) { return ClusterHealth( issues: (json['issues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterIssue.fromJson(e as Map)) .toList(), ); @@ -4589,7 +4589,7 @@ class ClusterIssue { code: (json['code'] as String?)?.let(ClusterIssueCode.fromString), message: json['message'] as String?, resourceIds: (json['resourceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4680,7 +4680,7 @@ class Compatibility { clusterVersion: json['clusterVersion'] as String?, defaultVersion: json['defaultVersion'] as bool?, platformVersions: (json['platformVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5245,7 +5245,7 @@ class DeprecationDetail { factory DeprecationDetail.fromJson(Map json) { return DeprecationDetail( clientStats: (json['clientStats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClientStat.fromJson(e as Map)) .toList(), replacedWith: json['replacedWith'] as String?, @@ -5352,7 +5352,7 @@ class DescribeAddonConfigurationResponse { addonVersion: json['addonVersion'] as String?, configurationSchema: json['configurationSchema'] as String?, podIdentityConfiguration: (json['podIdentityConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddonPodIdentityConfiguration.fromJson(e as Map)) .toList(), @@ -5422,7 +5422,7 @@ class DescribeAddonVersionsResponse { factory DescribeAddonVersionsResponse.fromJson(Map json) { return DescribeAddonVersionsResponse( addons: (json['addons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddonInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5747,7 +5747,7 @@ class EksAnywhereSubscription { expirationDate: timeStampFromJson(json['expirationDate']), id: json['id'] as String?, licenseArns: (json['licenseArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), licenseQuantity: json['licenseQuantity'] as int?, @@ -5897,7 +5897,7 @@ class EncryptionConfig { ? Provider.fromJson(json['provider'] as Map) : null, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5994,7 +5994,7 @@ class ErrorDetail { errorCode: (json['errorCode'] as String?)?.let(ErrorCode.fromString), errorMessage: json['errorMessage'] as String?, resourceIds: (json['resourceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6067,15 +6067,13 @@ class FargateProfile { fargateProfileName: json['fargateProfileName'] as String?, podExecutionRoleArn: json['podExecutionRoleArn'] as String?, selectors: (json['selectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FargateProfileSelector.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(FargateProfileStatus.fromString), - subnets: (json['subnets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), ); @@ -6320,7 +6318,7 @@ class Insight { name: json['name'] as String?, recommendation: json['recommendation'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightResourceDetail.fromJson(e as Map)) .toList(), ); @@ -6374,7 +6372,7 @@ class InsightCategorySpecificSummary { factory InsightCategorySpecificSummary.fromJson(Map json) { return InsightCategorySpecificSummary( deprecationDetails: (json['deprecationDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeprecationDetail.fromJson(e as Map)) .toList(), ); @@ -6705,7 +6703,7 @@ class Issue { code: (json['code'] as String?)?.let(NodegroupIssueCode.fromString), message: json['message'] as String?, resourceIds: (json['resourceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6928,7 +6926,7 @@ class ListAccessEntriesResponse { factory ListAccessEntriesResponse.fromJson(Map json) { return ListAccessEntriesResponse( accessEntries: (json['accessEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -6971,7 +6969,7 @@ class ListAccessPoliciesResponse { factory ListAccessPoliciesResponse.fromJson(Map json) { return ListAccessPoliciesResponse( accessPolicies: (json['accessPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessPolicy.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7010,10 +7008,8 @@ class ListAddonsResponse { factory ListAddonsResponse.fromJson(Map json) { return ListAddonsResponse( - addons: (json['addons'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + addons: + (json['addons'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -7060,7 +7056,7 @@ class ListAssociatedAccessPoliciesResponse { Map json) { return ListAssociatedAccessPoliciesResponse( associatedAccessPolicies: (json['associatedAccessPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AssociatedAccessPolicy.fromJson(e as Map)) .toList(), @@ -7109,7 +7105,7 @@ class ListClustersResponse { factory ListClustersResponse.fromJson(Map json) { return ListClustersResponse( clusters: (json['clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -7147,7 +7143,7 @@ class ListEksAnywhereSubscriptionsResponse { return ListEksAnywhereSubscriptionsResponse( nextToken: json['nextToken'] as String?, subscriptions: (json['subscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksAnywhereSubscription.fromJson(e as Map)) .toList(), @@ -7187,7 +7183,7 @@ class ListFargateProfilesResponse { factory ListFargateProfilesResponse.fromJson(Map json) { return ListFargateProfilesResponse( fargateProfileNames: (json['fargateProfileNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -7230,7 +7226,7 @@ class ListIdentityProviderConfigsResponse { Map json) { return ListIdentityProviderConfigsResponse( identityProviderConfigs: (json['identityProviderConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => IdentityProviderConfig.fromJson(e as Map)) .toList(), @@ -7268,7 +7264,7 @@ class ListInsightsResponse { factory ListInsightsResponse.fromJson(Map json) { return ListInsightsResponse( insights: (json['insights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7309,7 +7305,7 @@ class ListNodegroupsResponse { return ListNodegroupsResponse( nextToken: json['nextToken'] as String?, nodegroups: (json['nodegroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7370,7 +7366,7 @@ class ListPodIdentityAssociationsResponse { Map json) { return ListPodIdentityAssociationsResponse( associations: (json['associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PodIdentityAssociationSummary.fromJson(e as Map)) .toList(), @@ -7435,7 +7431,7 @@ class ListUpdatesResponse { return ListUpdatesResponse( nextToken: json['nextToken'] as String?, updateIds: (json['updateIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7472,7 +7468,7 @@ class LogSetup { return LogSetup( enabled: json['enabled'] as bool?, types: (json['types'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogType.fromString((e as String))) .toList(), ); @@ -7518,7 +7514,7 @@ class Logging { factory Logging.fromJson(Map json) { return Logging( clusterLogging: (json['clusterLogging'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogSetup.fromJson(e as Map)) .toList(), ); @@ -7706,7 +7702,7 @@ class Nodegroup { ? NodegroupHealth.fromJson(json['health'] as Map) : null, instanceTypes: (json['instanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), labels: (json['labels'] as Map?) @@ -7733,14 +7729,12 @@ class Nodegroup { json['scalingConfig'] as Map) : null, status: (json['status'] as String?)?.let(NodegroupStatus.fromString), - subnets: (json['subnets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), taints: (json['taints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Taint.fromJson(e as Map)) .toList(), updateConfig: json['updateConfig'] != null @@ -7815,7 +7809,7 @@ class NodegroupHealth { factory NodegroupHealth.fromJson(Map json) { return NodegroupHealth( issues: (json['issues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Issue.fromJson(e as Map)) .toList(), ); @@ -7898,7 +7892,7 @@ class NodegroupResources { factory NodegroupResources.fromJson(Map json) { return NodegroupResources( autoScalingGroups: (json['autoScalingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingGroup.fromJson(e as Map)) .toList(), remoteAccessSecurityGroup: json['remoteAccessSecurityGroup'] as String?, @@ -8345,7 +8339,7 @@ class OutpostConfigResponse { return OutpostConfigResponse( controlPlaneInstanceType: json['controlPlaneInstanceType'] as String, outpostArns: (json['outpostArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), controlPlanePlacement: json['controlPlanePlacement'] != null @@ -8665,7 +8659,7 @@ class RemoteAccessConfig { return RemoteAccessConfig( ec2SshKey: json['ec2SshKey'] as String?, sourceSecurityGroups: (json['sourceSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8810,12 +8804,12 @@ class Update { return Update( createdAt: timeStampFromJson(json['createdAt']), errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetail.fromJson(e as Map)) .toList(), id: json['id'] as String?, params: (json['params'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateParam.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(UpdateStatus.fromString), @@ -9345,15 +9339,15 @@ class VpcConfigResponse { endpointPrivateAccess: json['endpointPrivateAccess'] as bool?, endpointPublicAccess: json['endpointPublicAccess'] as bool?, publicAccessCidrs: (json['publicAccessCidrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, diff --git a/aws_client/lib/src/generated/elasti_cache/v2015_02_02.dart b/aws_client/lib/src/generated/elasti_cache/v2015_02_02.dart index cd2b85dcb..225dddc56 100644 --- a/aws_client/lib/src/generated/elasti_cache/v2015_02_02.dart +++ b/aws_client/lib/src/generated/elasti_cache/v2015_02_02.dart @@ -6845,7 +6845,7 @@ class Authentication { passwordCount: _s.extractXmlIntValue(elem, 'PasswordCount'), type: _s .extractXmlStringValue(elem, 'Type') - ?.let(AuthenticationType.fromString) /* Nullability(true, true) */, + ?.let(AuthenticationType.fromString), ); } @@ -7372,7 +7372,7 @@ class CacheCluster { engineVersion: _s.extractXmlStringValue(elem, 'EngineVersion'), ipDiscovery: _s .extractXmlStringValue(elem, 'IpDiscovery') - ?.let(IpDiscovery.fromString) /* Nullability(true, true) */, + ?.let(IpDiscovery.fromString), logDeliveryConfigurations: _s .extractXmlChild(elem, 'LogDeliveryConfigurations') ?.let((elem) => elem @@ -7381,7 +7381,7 @@ class CacheCluster { .toList()), networkType: _s .extractXmlStringValue(elem, 'NetworkType') - ?.let(NetworkType.fromString) /* Nullability(true, true) */, + ?.let(NetworkType.fromString), notificationConfiguration: _s .extractXmlChild(elem, 'NotificationConfiguration') ?.let(NotificationConfiguration.fromXml), @@ -7410,7 +7410,7 @@ class CacheCluster { _s.extractXmlBoolValue(elem, 'TransitEncryptionEnabled'), transitEncryptionMode: _s .extractXmlStringValue(elem, 'TransitEncryptionMode') - ?.let(TransitEncryptionMode.fromString) /* Nullability(true, true) */, + ?.let(TransitEncryptionMode.fromString), ); } @@ -7920,7 +7920,7 @@ class CacheNodeTypeSpecificParameter { .toList()), changeType: _s .extractXmlStringValue(elem, 'ChangeType') - ?.let(ChangeType.fromString) /* Nullability(true, true) */, + ?.let(ChangeType.fromString), dataType: _s.extractXmlStringValue(elem, 'DataType'), description: _s.extractXmlStringValue(elem, 'Description'), isModifiable: _s.extractXmlBoolValue(elem, 'IsModifiable'), @@ -8030,14 +8030,14 @@ class CacheNodeUpdateStatus { nodeUpdateEndDate: _s.extractXmlDateTimeValue(elem, 'NodeUpdateEndDate'), nodeUpdateInitiatedBy: _s .extractXmlStringValue(elem, 'NodeUpdateInitiatedBy') - ?.let(NodeUpdateInitiatedBy.fromString) /* Nullability(true, true) */, + ?.let(NodeUpdateInitiatedBy.fromString), nodeUpdateInitiatedDate: _s.extractXmlDateTimeValue(elem, 'NodeUpdateInitiatedDate'), nodeUpdateStartDate: _s.extractXmlDateTimeValue(elem, 'NodeUpdateStartDate'), nodeUpdateStatus: _s .extractXmlStringValue(elem, 'NodeUpdateStatus') - ?.let(NodeUpdateStatus.fromString) /* Nullability(true, true) */, + ?.let(NodeUpdateStatus.fromString), nodeUpdateStatusModifiedDate: _s.extractXmlDateTimeValue(elem, 'NodeUpdateStatusModifiedDate'), ); @@ -9061,7 +9061,7 @@ class DataStorage { return DataStorage( unit: _s .extractXmlStringValue(elem, 'Unit')! - .let(DataStorageUnit.fromString) /* Nullability(true, false) */, + .let(DataStorageUnit.fromString), maximum: _s.extractXmlIntValue(elem, 'Maximum'), minimum: _s.extractXmlIntValue(elem, 'Minimum'), ); @@ -9820,7 +9820,7 @@ class Event { sourceIdentifier: _s.extractXmlStringValue(elem, 'SourceIdentifier'), sourceType: _s .extractXmlStringValue(elem, 'SourceType') - ?.let(SourceType.fromString) /* Nullability(true, true) */, + ?.let(SourceType.fromString), ); } @@ -10195,8 +10195,7 @@ class GlobalReplicationGroupMember { return GlobalReplicationGroupMember( automaticFailover: _s .extractXmlStringValue(elem, 'AutomaticFailover') - ?.let( - AutomaticFailoverStatus.fromString) /* Nullability(true, true) */, + ?.let(AutomaticFailoverStatus.fromString), replicationGroupId: _s.extractXmlStringValue(elem, 'ReplicationGroupId'), replicationGroupRegion: _s.extractXmlStringValue(elem, 'ReplicationGroupRegion'), @@ -10368,17 +10367,16 @@ class LogDeliveryConfiguration { ?.let(DestinationDetails.fromXml), destinationType: _s .extractXmlStringValue(elem, 'DestinationType') - ?.let(DestinationType.fromString) /* Nullability(true, true) */, + ?.let(DestinationType.fromString), logFormat: _s .extractXmlStringValue(elem, 'LogFormat') - ?.let(LogFormat.fromString) /* Nullability(true, true) */, - logType: _s - .extractXmlStringValue(elem, 'LogType') - ?.let(LogType.fromString) /* Nullability(true, true) */, + ?.let(LogFormat.fromString), + logType: + _s.extractXmlStringValue(elem, 'LogType')?.let(LogType.fromString), message: _s.extractXmlStringValue(elem, 'Message'), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - LogDeliveryConfigurationStatus - .fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(LogDeliveryConfigurationStatus.fromString), ); } @@ -10974,14 +10972,14 @@ class NodeGroupMemberUpdateStatus { nodeUpdateEndDate: _s.extractXmlDateTimeValue(elem, 'NodeUpdateEndDate'), nodeUpdateInitiatedBy: _s .extractXmlStringValue(elem, 'NodeUpdateInitiatedBy') - ?.let(NodeUpdateInitiatedBy.fromString) /* Nullability(true, true) */, + ?.let(NodeUpdateInitiatedBy.fromString), nodeUpdateInitiatedDate: _s.extractXmlDateTimeValue(elem, 'NodeUpdateInitiatedDate'), nodeUpdateStartDate: _s.extractXmlDateTimeValue(elem, 'NodeUpdateStartDate'), nodeUpdateStatus: _s .extractXmlStringValue(elem, 'NodeUpdateStatus') - ?.let(NodeUpdateStatus.fromString) /* Nullability(true, true) */, + ?.let(NodeUpdateStatus.fromString), nodeUpdateStatusModifiedDate: _s.extractXmlDateTimeValue(elem, 'NodeUpdateStatusModifiedDate'), ); @@ -11257,7 +11255,7 @@ class Parameter { allowedValues: _s.extractXmlStringValue(elem, 'AllowedValues'), changeType: _s .extractXmlStringValue(elem, 'ChangeType') - ?.let(ChangeType.fromString) /* Nullability(true, true) */, + ?.let(ChangeType.fromString), dataType: _s.extractXmlStringValue(elem, 'DataType'), description: _s.extractXmlStringValue(elem, 'Description'), isModifiable: _s.extractXmlBoolValue(elem, 'IsModifiable'), @@ -11371,13 +11369,12 @@ class PendingLogDeliveryConfiguration { ?.let(DestinationDetails.fromXml), destinationType: _s .extractXmlStringValue(elem, 'DestinationType') - ?.let(DestinationType.fromString) /* Nullability(true, true) */, + ?.let(DestinationType.fromString), logFormat: _s .extractXmlStringValue(elem, 'LogFormat') - ?.let(LogFormat.fromString) /* Nullability(true, true) */, - logType: _s - .extractXmlStringValue(elem, 'LogType') - ?.let(LogType.fromString) /* Nullability(true, true) */, + ?.let(LogFormat.fromString), + logType: + _s.extractXmlStringValue(elem, 'LogType')?.let(LogType.fromString), ); } @@ -11441,7 +11438,7 @@ class PendingModifiedValues { return PendingModifiedValues( authTokenStatus: _s .extractXmlStringValue(elem, 'AuthTokenStatus') - ?.let(AuthTokenUpdateStatus.fromString) /* Nullability(true, true) */, + ?.let(AuthTokenUpdateStatus.fromString), cacheNodeIdsToRemove: _s .extractXmlChild(elem, 'CacheNodeIdsToRemove') ?.let((elem) => _s.extractXmlStringListValues(elem, 'CacheNodeId')), @@ -11458,7 +11455,7 @@ class PendingModifiedValues { _s.extractXmlBoolValue(elem, 'TransitEncryptionEnabled'), transitEncryptionMode: _s .extractXmlStringValue(elem, 'TransitEncryptionMode') - ?.let(TransitEncryptionMode.fromString) /* Nullability(true, true) */, + ?.let(TransitEncryptionMode.fromString), ); } @@ -11516,7 +11513,7 @@ class ProcessedUpdateAction { serviceUpdateName: _s.extractXmlStringValue(elem, 'ServiceUpdateName'), updateActionStatus: _s .extractXmlStringValue(elem, 'UpdateActionStatus') - ?.let(UpdateActionStatus.fromString) /* Nullability(true, true) */, + ?.let(UpdateActionStatus.fromString), ); } @@ -11896,26 +11893,25 @@ class ReplicationGroup { _s.extractXmlBoolValue(elem, 'AutoMinorVersionUpgrade'), automaticFailover: _s .extractXmlStringValue(elem, 'AutomaticFailover') - ?.let( - AutomaticFailoverStatus.fromString) /* Nullability(true, true) */, + ?.let(AutomaticFailoverStatus.fromString), cacheNodeType: _s.extractXmlStringValue(elem, 'CacheNodeType'), clusterEnabled: _s.extractXmlBoolValue(elem, 'ClusterEnabled'), clusterMode: _s .extractXmlStringValue(elem, 'ClusterMode') - ?.let(ClusterMode.fromString) /* Nullability(true, true) */, + ?.let(ClusterMode.fromString), configurationEndpoint: _s .extractXmlChild(elem, 'ConfigurationEndpoint') ?.let(Endpoint.fromXml), dataTiering: _s .extractXmlStringValue(elem, 'DataTiering') - ?.let(DataTieringStatus.fromString) /* Nullability(true, true) */, + ?.let(DataTieringStatus.fromString), description: _s.extractXmlStringValue(elem, 'Description'), globalReplicationGroupInfo: _s .extractXmlChild(elem, 'GlobalReplicationGroupInfo') ?.let(GlobalReplicationGroupInfo.fromXml), ipDiscovery: _s .extractXmlStringValue(elem, 'IpDiscovery') - ?.let(IpDiscovery.fromString) /* Nullability(true, true) */, + ?.let(IpDiscovery.fromString), kmsKeyId: _s.extractXmlStringValue(elem, 'KmsKeyId'), logDeliveryConfigurations: _s .extractXmlChild(elem, 'LogDeliveryConfigurations') @@ -11932,10 +11928,10 @@ class ReplicationGroup { elem, 'ReplicationGroupOutpostArn')), multiAZ: _s .extractXmlStringValue(elem, 'MultiAZ') - ?.let(MultiAZStatus.fromString) /* Nullability(true, true) */, + ?.let(MultiAZStatus.fromString), networkType: _s .extractXmlStringValue(elem, 'NetworkType') - ?.let(NetworkType.fromString) /* Nullability(true, true) */, + ?.let(NetworkType.fromString), nodeGroups: _s.extractXmlChild(elem, 'NodeGroups')?.let((elem) => elem.findElements('NodeGroup').map(NodeGroup.fromXml).toList()), pendingModifiedValues: _s @@ -11954,7 +11950,7 @@ class ReplicationGroup { _s.extractXmlBoolValue(elem, 'TransitEncryptionEnabled'), transitEncryptionMode: _s .extractXmlStringValue(elem, 'TransitEncryptionMode') - ?.let(TransitEncryptionMode.fromString) /* Nullability(true, true) */, + ?.let(TransitEncryptionMode.fromString), userGroupIds: _s .extractXmlChild(elem, 'UserGroupIds') ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), @@ -12130,14 +12126,13 @@ class ReplicationGroupPendingModifiedValues { return ReplicationGroupPendingModifiedValues( authTokenStatus: _s .extractXmlStringValue(elem, 'AuthTokenStatus') - ?.let(AuthTokenUpdateStatus.fromString) /* Nullability(true, true) */, + ?.let(AuthTokenUpdateStatus.fromString), automaticFailoverStatus: _s .extractXmlStringValue(elem, 'AutomaticFailoverStatus') - ?.let(PendingAutomaticFailoverStatus - .fromString) /* Nullability(true, true) */, + ?.let(PendingAutomaticFailoverStatus.fromString), clusterMode: _s .extractXmlStringValue(elem, 'ClusterMode') - ?.let(ClusterMode.fromString) /* Nullability(true, true) */, + ?.let(ClusterMode.fromString), logDeliveryConfigurations: _s .extractXmlChild(elem, 'PendingLogDeliveryConfiguration') ?.let((elem) => elem @@ -12151,7 +12146,7 @@ class ReplicationGroupPendingModifiedValues { _s.extractXmlBoolValue(elem, 'TransitEncryptionEnabled'), transitEncryptionMode: _s .extractXmlStringValue(elem, 'TransitEncryptionMode') - ?.let(TransitEncryptionMode.fromString) /* Nullability(true, true) */, + ?.let(TransitEncryptionMode.fromString), userGroups: _s .extractXmlChild(elem, 'UserGroups') ?.let(UserGroupsUpdateStatus.fromXml), @@ -13203,13 +13198,13 @@ class ServiceUpdate { _s.extractXmlDateTimeValue(elem, 'ServiceUpdateReleaseDate'), serviceUpdateSeverity: _s .extractXmlStringValue(elem, 'ServiceUpdateSeverity') - ?.let(ServiceUpdateSeverity.fromString) /* Nullability(true, true) */, + ?.let(ServiceUpdateSeverity.fromString), serviceUpdateStatus: _s .extractXmlStringValue(elem, 'ServiceUpdateStatus') - ?.let(ServiceUpdateStatus.fromString) /* Nullability(true, true) */, + ?.let(ServiceUpdateStatus.fromString), serviceUpdateType: _s .extractXmlStringValue(elem, 'ServiceUpdateType') - ?.let(ServiceUpdateType.fromString) /* Nullability(true, true) */, + ?.let(ServiceUpdateType.fromString), ); } @@ -13698,8 +13693,7 @@ class Snapshot { _s.extractXmlBoolValue(elem, 'AutoMinorVersionUpgrade'), automaticFailover: _s .extractXmlStringValue(elem, 'AutomaticFailover') - ?.let( - AutomaticFailoverStatus.fromString) /* Nullability(true, true) */, + ?.let(AutomaticFailoverStatus.fromString), cacheClusterCreateTime: _s.extractXmlDateTimeValue(elem, 'CacheClusterCreateTime'), cacheClusterId: _s.extractXmlStringValue(elem, 'CacheClusterId'), @@ -13710,7 +13704,7 @@ class Snapshot { _s.extractXmlStringValue(elem, 'CacheSubnetGroupName'), dataTiering: _s .extractXmlStringValue(elem, 'DataTiering') - ?.let(DataTieringStatus.fromString) /* Nullability(true, true) */, + ?.let(DataTieringStatus.fromString), engine: _s.extractXmlStringValue(elem, 'Engine'), engineVersion: _s.extractXmlStringValue(elem, 'EngineVersion'), kmsKeyId: _s.extractXmlStringValue(elem, 'KmsKeyId'), @@ -14253,21 +14247,19 @@ class UpdateAction { _s.extractXmlDateTimeValue(elem, 'ServiceUpdateReleaseDate'), serviceUpdateSeverity: _s .extractXmlStringValue(elem, 'ServiceUpdateSeverity') - ?.let(ServiceUpdateSeverity.fromString) /* Nullability(true, true) */, + ?.let(ServiceUpdateSeverity.fromString), serviceUpdateStatus: _s .extractXmlStringValue(elem, 'ServiceUpdateStatus') - ?.let(ServiceUpdateStatus.fromString) /* Nullability(true, true) */, + ?.let(ServiceUpdateStatus.fromString), serviceUpdateType: _s .extractXmlStringValue(elem, 'ServiceUpdateType') - ?.let(ServiceUpdateType.fromString) /* Nullability(true, true) */, - slaMet: _s - .extractXmlStringValue(elem, 'SlaMet') - ?.let(SlaMet.fromString) /* Nullability(true, true) */, + ?.let(ServiceUpdateType.fromString), + slaMet: _s.extractXmlStringValue(elem, 'SlaMet')?.let(SlaMet.fromString), updateActionAvailableDate: _s.extractXmlDateTimeValue(elem, 'UpdateActionAvailableDate'), updateActionStatus: _s .extractXmlStringValue(elem, 'UpdateActionStatus') - ?.let(UpdateActionStatus.fromString) /* Nullability(true, true) */, + ?.let(UpdateActionStatus.fromString), updateActionStatusModifiedDate: _s.extractXmlDateTimeValue(elem, 'UpdateActionStatusModifiedDate'), ); diff --git a/aws_client/lib/src/generated/elastic_beanstalk/v2010_12_01.dart b/aws_client/lib/src/generated/elastic_beanstalk/v2010_12_01.dart index 93b06358a..4905948a8 100644 --- a/aws_client/lib/src/generated/elastic_beanstalk/v2010_12_01.dart +++ b/aws_client/lib/src/generated/elastic_beanstalk/v2010_12_01.dart @@ -3101,8 +3101,9 @@ class ApplicationVersionDescription { ?.let(SourceBuildInformation.fromXml), sourceBundle: _s.extractXmlChild(elem, 'SourceBundle')?.let(S3Location.fromXml), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - ApplicationVersionStatus.fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(ApplicationVersionStatus.fromString), versionLabel: _s.extractXmlStringValue(elem, 'VersionLabel'), ); } @@ -3291,7 +3292,7 @@ class ApplyEnvironmentManagedActionResult { actionId: _s.extractXmlStringValue(elem, 'ActionId'), actionType: _s .extractXmlStringValue(elem, 'ActionType') - ?.let(ActionType.fromString) /* Nullability(true, true) */, + ?.let(ActionType.fromString), status: _s.extractXmlStringValue(elem, 'Status'), ); } @@ -3721,9 +3722,9 @@ class ConfigurationOptionDescription { valueOptions: _s .extractXmlChild(elem, 'ValueOptions') ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), - valueType: _s.extractXmlStringValue(elem, 'ValueType')?.let( - ConfigurationOptionValueType - .fromString) /* Nullability(true, true) */, + valueType: _s + .extractXmlStringValue(elem, 'ValueType') + ?.let(ConfigurationOptionValueType.fromString), ); } @@ -3943,9 +3944,9 @@ class ConfigurationSettingsDescription { applicationName: _s.extractXmlStringValue(elem, 'ApplicationName'), dateCreated: _s.extractXmlDateTimeValue(elem, 'DateCreated'), dateUpdated: _s.extractXmlDateTimeValue(elem, 'DateUpdated'), - deploymentStatus: _s.extractXmlStringValue(elem, 'DeploymentStatus')?.let( - ConfigurationDeploymentStatus - .fromString) /* Nullability(true, true) */, + deploymentStatus: _s + .extractXmlStringValue(elem, 'DeploymentStatus') + ?.let(ConfigurationDeploymentStatus.fromString), description: _s.extractXmlStringValue(elem, 'Description'), environmentName: _s.extractXmlStringValue(elem, 'EnvironmentName'), optionSettings: _s.extractXmlChild(elem, 'OptionSettings')?.let((elem) => @@ -4284,7 +4285,7 @@ class DescribeEnvironmentHealthResult { refreshedAt: _s.extractXmlDateTimeValue(elem, 'RefreshedAt'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(EnvironmentHealth.fromString) /* Nullability(true, true) */, + ?.let(EnvironmentHealth.fromString), ); } @@ -4605,9 +4606,10 @@ class EnvironmentDescription { environmentName: _s.extractXmlStringValue(elem, 'EnvironmentName'), health: _s .extractXmlStringValue(elem, 'Health') - ?.let(EnvironmentHealth.fromString) /* Nullability(true, true) */, - healthStatus: _s.extractXmlStringValue(elem, 'HealthStatus')?.let( - EnvironmentHealthStatus.fromString) /* Nullability(true, true) */, + ?.let(EnvironmentHealth.fromString), + healthStatus: _s + .extractXmlStringValue(elem, 'HealthStatus') + ?.let(EnvironmentHealthStatus.fromString), operationsRole: _s.extractXmlStringValue(elem, 'OperationsRole'), platformArn: _s.extractXmlStringValue(elem, 'PlatformArn'), resources: _s @@ -4616,7 +4618,7 @@ class EnvironmentDescription { solutionStackName: _s.extractXmlStringValue(elem, 'SolutionStackName'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(EnvironmentStatus.fromString) /* Nullability(true, true) */, + ?.let(EnvironmentStatus.fromString), templateName: _s.extractXmlStringValue(elem, 'TemplateName'), tier: _s.extractXmlChild(elem, 'Tier')?.let(EnvironmentTier.fromXml), versionLabel: _s.extractXmlStringValue(elem, 'VersionLabel'), @@ -4794,7 +4796,7 @@ class EnvironmentInfoDescription { ec2InstanceId: _s.extractXmlStringValue(elem, 'Ec2InstanceId'), infoType: _s .extractXmlStringValue(elem, 'InfoType') - ?.let(EnvironmentInfoType.fromString) /* Nullability(true, true) */, + ?.let(EnvironmentInfoType.fromString), message: _s.extractXmlStringValue(elem, 'Message'), sampleTimestamp: _s.extractXmlDateTimeValue(elem, 'SampleTimestamp'), ); @@ -5145,7 +5147,7 @@ class EventDescription { requestId: _s.extractXmlStringValue(elem, 'RequestId'), severity: _s .extractXmlStringValue(elem, 'Severity') - ?.let(EventSeverity.fromString) /* Nullability(true, true) */, + ?.let(EventSeverity.fromString), templateName: _s.extractXmlStringValue(elem, 'TemplateName'), versionLabel: _s.extractXmlStringValue(elem, 'VersionLabel'), ); @@ -5725,10 +5727,10 @@ class ManagedAction { actionId: _s.extractXmlStringValue(elem, 'ActionId'), actionType: _s .extractXmlStringValue(elem, 'ActionType') - ?.let(ActionType.fromString) /* Nullability(true, true) */, + ?.let(ActionType.fromString), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(ActionStatus.fromString) /* Nullability(true, true) */, + ?.let(ActionStatus.fromString), windowStartTime: _s.extractXmlDateTimeValue(elem, 'WindowStartTime'), ); } @@ -5792,16 +5794,16 @@ class ManagedActionHistoryItem { actionId: _s.extractXmlStringValue(elem, 'ActionId'), actionType: _s .extractXmlStringValue(elem, 'ActionType') - ?.let(ActionType.fromString) /* Nullability(true, true) */, + ?.let(ActionType.fromString), executedTime: _s.extractXmlDateTimeValue(elem, 'ExecutedTime'), failureDescription: _s.extractXmlStringValue(elem, 'FailureDescription'), failureType: _s .extractXmlStringValue(elem, 'FailureType') - ?.let(FailureType.fromString) /* Nullability(true, true) */, + ?.let(FailureType.fromString), finishedTime: _s.extractXmlDateTimeValue(elem, 'FinishedTime'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(ActionHistoryStatus.fromString) /* Nullability(true, true) */, + ?.let(ActionHistoryStatus.fromString), ); } @@ -6186,7 +6188,7 @@ class PlatformDescription { platformOwner: _s.extractXmlStringValue(elem, 'PlatformOwner'), platformStatus: _s .extractXmlStringValue(elem, 'PlatformStatus') - ?.let(PlatformStatus.fromString) /* Nullability(true, true) */, + ?.let(PlatformStatus.fromString), platformVersion: _s.extractXmlStringValue(elem, 'PlatformVersion'), programmingLanguages: _s .extractXmlChild(elem, 'ProgrammingLanguages') @@ -6489,7 +6491,7 @@ class PlatformSummary { platformOwner: _s.extractXmlStringValue(elem, 'PlatformOwner'), platformStatus: _s .extractXmlStringValue(elem, 'PlatformStatus') - ?.let(PlatformStatus.fromString) /* Nullability(true, true) */, + ?.let(PlatformStatus.fromString), platformVersion: _s.extractXmlStringValue(elem, 'PlatformVersion'), supportedAddonList: _s .extractXmlChild(elem, 'SupportedAddonList') @@ -6988,10 +6990,10 @@ class SourceBuildInformation { sourceLocation: _s.extractXmlStringValue(elem, 'SourceLocation')!, sourceRepository: _s .extractXmlStringValue(elem, 'SourceRepository')! - .let(SourceRepository.fromString) /* Nullability(true, false) */, + .let(SourceRepository.fromString), sourceType: _s .extractXmlStringValue(elem, 'SourceType')! - .let(SourceType.fromString) /* Nullability(true, false) */, + .let(SourceType.fromString), ); } @@ -7263,7 +7265,7 @@ class ValidationMessage { optionName: _s.extractXmlStringValue(elem, 'OptionName'), severity: _s .extractXmlStringValue(elem, 'Severity') - ?.let(ValidationSeverity.fromString) /* Nullability(true, true) */, + ?.let(ValidationSeverity.fromString), ); } diff --git a/aws_client/lib/src/generated/elastic_inference/v2017_07_25.dart b/aws_client/lib/src/generated/elastic_inference/v2017_07_25.dart index 968661770..783291cef 100644 --- a/aws_client/lib/src/generated/elastic_inference/v2017_07_25.dart +++ b/aws_client/lib/src/generated/elastic_inference/v2017_07_25.dart @@ -311,7 +311,7 @@ class AcceleratorType { ? MemoryInfo.fromJson(json['memoryInfo'] as Map) : null, throughputInfo: (json['throughputInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), ); @@ -386,7 +386,7 @@ class DescribeAcceleratorOfferingsResponse { Map json) { return DescribeAcceleratorOfferingsResponse( acceleratorTypeOfferings: (json['acceleratorTypeOfferings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AcceleratorTypeOffering.fromJson(e as Map)) .toList(), @@ -413,7 +413,7 @@ class DescribeAcceleratorTypesResponse { factory DescribeAcceleratorTypesResponse.fromJson(Map json) { return DescribeAcceleratorTypesResponse( acceleratorTypes: (json['acceleratorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AcceleratorType.fromJson(e as Map)) .toList(), ); @@ -443,7 +443,7 @@ class DescribeAcceleratorsResponse { factory DescribeAcceleratorsResponse.fromJson(Map json) { return DescribeAcceleratorsResponse( acceleratorSet: (json['acceleratorSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ElasticInferenceAccelerator.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/elastic_load_balancing_v2/v2015_12_01.dart b/aws_client/lib/src/generated/elastic_load_balancing_v2/v2015_12_01.dart index 4c1b4e08b..aba81d37b 100644 --- a/aws_client/lib/src/generated/elastic_load_balancing_v2/v2015_12_01.dart +++ b/aws_client/lib/src/generated/elastic_load_balancing_v2/v2015_12_01.dart @@ -2881,7 +2881,7 @@ class Action { return Action( type: _s .extractXmlStringValue(elem, 'Type')! - .let(ActionTypeEnum.fromString) /* Nullability(true, false) */, + .let(ActionTypeEnum.fromString), authenticateCognitoConfig: _s .extractXmlChild(elem, 'AuthenticateCognitoConfig') ?.let(AuthenticateCognitoActionConfig.fromXml), @@ -3054,11 +3054,10 @@ class AnomalyDetection { return AnomalyDetection( mitigationInEffect: _s .extractXmlStringValue(elem, 'MitigationInEffect') - ?.let( - MitigationInEffectEnum.fromString) /* Nullability(true, true) */, + ?.let(MitigationInEffectEnum.fromString), result: _s .extractXmlStringValue(elem, 'Result') - ?.let(AnomalyResultEnum.fromString) /* Nullability(true, true) */, + ?.let(AnomalyResultEnum.fromString), ); } @@ -3184,8 +3183,7 @@ class AuthenticateCognitoActionConfig { ), onUnauthenticatedRequest: _s .extractXmlStringValue(elem, 'OnUnauthenticatedRequest') - ?.let(AuthenticateCognitoActionConditionalBehaviorEnum - .fromString) /* Nullability(true, true) */, + ?.let(AuthenticateCognitoActionConditionalBehaviorEnum.fromString), scope: _s.extractXmlStringValue(elem, 'Scope'), sessionCookieName: _s.extractXmlStringValue(elem, 'SessionCookieName'), sessionTimeout: _s.extractXmlIntValue(elem, 'SessionTimeout'), @@ -3370,8 +3368,7 @@ class AuthenticateOidcActionConfig { clientSecret: _s.extractXmlStringValue(elem, 'ClientSecret'), onUnauthenticatedRequest: _s .extractXmlStringValue(elem, 'OnUnauthenticatedRequest') - ?.let(AuthenticateOidcActionConditionalBehaviorEnum - .fromString) /* Nullability(true, true) */, + ?.let(AuthenticateOidcActionConditionalBehaviorEnum.fromString), scope: _s.extractXmlStringValue(elem, 'Scope'), sessionCookieName: _s.extractXmlStringValue(elem, 'SessionCookieName'), sessionTimeout: _s.extractXmlIntValue(elem, 'SessionTimeout'), @@ -4150,7 +4147,7 @@ class DescribeTrustStoreRevocation { revocationId: _s.extractXmlIntValue(elem, 'RevocationId'), revocationType: _s .extractXmlStringValue(elem, 'RevocationType') - ?.let(RevocationType.fromString) /* Nullability(true, true) */, + ?.let(RevocationType.fromString), trustStoreArn: _s.extractXmlStringValue(elem, 'TrustStoreArn'), ); } @@ -4730,7 +4727,7 @@ class Listener { port: _s.extractXmlIntValue(elem, 'Port'), protocol: _s .extractXmlStringValue(elem, 'Protocol') - ?.let(ProtocolEnum.fromString) /* Nullability(true, true) */, + ?.let(ProtocolEnum.fromString), sslPolicy: _s.extractXmlStringValue(elem, 'SslPolicy'), ); } @@ -4858,18 +4855,19 @@ class LoadBalancer { elem, 'EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic'), ipAddressType: _s .extractXmlStringValue(elem, 'IpAddressType') - ?.let(IpAddressType.fromString) /* Nullability(true, true) */, + ?.let(IpAddressType.fromString), loadBalancerArn: _s.extractXmlStringValue(elem, 'LoadBalancerArn'), loadBalancerName: _s.extractXmlStringValue(elem, 'LoadBalancerName'), - scheme: _s.extractXmlStringValue(elem, 'Scheme')?.let( - LoadBalancerSchemeEnum.fromString) /* Nullability(true, true) */, + scheme: _s + .extractXmlStringValue(elem, 'Scheme') + ?.let(LoadBalancerSchemeEnum.fromString), securityGroups: _s .extractXmlChild(elem, 'SecurityGroups') ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), state: _s.extractXmlChild(elem, 'State')?.let(LoadBalancerState.fromXml), type: _s .extractXmlStringValue(elem, 'Type') - ?.let(LoadBalancerTypeEnum.fromString) /* Nullability(true, true) */, + ?.let(LoadBalancerTypeEnum.fromString), vpcId: _s.extractXmlStringValue(elem, 'VpcId'), ); } @@ -5191,7 +5189,7 @@ class LoadBalancerState { return LoadBalancerState( code: _s .extractXmlStringValue(elem, 'Code') - ?.let(LoadBalancerStateEnum.fromString) /* Nullability(true, true) */, + ?.let(LoadBalancerStateEnum.fromString), reason: _s.extractXmlStringValue(elem, 'Reason'), ); } @@ -5714,9 +5712,9 @@ class RedirectActionConfig { }); factory RedirectActionConfig.fromXml(_s.XmlElement elem) { return RedirectActionConfig( - statusCode: _s.extractXmlStringValue(elem, 'StatusCode')!.let( - RedirectActionStatusCodeEnum - .fromString) /* Nullability(true, false) */, + statusCode: _s + .extractXmlStringValue(elem, 'StatusCode')! + .let(RedirectActionStatusCodeEnum.fromString), host: _s.extractXmlStringValue(elem, 'Host'), path: _s.extractXmlStringValue(elem, 'Path'), port: _s.extractXmlStringValue(elem, 'Port'), @@ -6199,7 +6197,7 @@ class SetIpAddressTypeOutput { return SetIpAddressTypeOutput( ipAddressType: _s .extractXmlStringValue(elem, 'IpAddressType') - ?.let(IpAddressType.fromString) /* Nullability(true, true) */, + ?.let(IpAddressType.fromString), ); } @@ -6252,7 +6250,7 @@ class SetSecurityGroupsOutput { .extractXmlStringValue( elem, 'EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic') ?.let(EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum - .fromString) /* Nullability(true, true) */, + .fromString), securityGroupIds: _s .extractXmlChild(elem, 'SecurityGroupIds') ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), @@ -6296,7 +6294,7 @@ class SetSubnetsOutput { .toList()), ipAddressType: _s .extractXmlStringValue(elem, 'IpAddressType') - ?.let(IpAddressType.fromString) /* Nullability(true, true) */, + ?.let(IpAddressType.fromString), ); } @@ -6705,14 +6703,14 @@ class TargetGroup { healthCheckPort: _s.extractXmlStringValue(elem, 'HealthCheckPort'), healthCheckProtocol: _s .extractXmlStringValue(elem, 'HealthCheckProtocol') - ?.let(ProtocolEnum.fromString) /* Nullability(true, true) */, + ?.let(ProtocolEnum.fromString), healthCheckTimeoutSeconds: _s.extractXmlIntValue(elem, 'HealthCheckTimeoutSeconds'), healthyThresholdCount: _s.extractXmlIntValue(elem, 'HealthyThresholdCount'), - ipAddressType: _s.extractXmlStringValue(elem, 'IpAddressType')?.let( - TargetGroupIpAddressTypeEnum - .fromString) /* Nullability(true, true) */, + ipAddressType: _s + .extractXmlStringValue(elem, 'IpAddressType') + ?.let(TargetGroupIpAddressTypeEnum.fromString), loadBalancerArns: _s .extractXmlChild(elem, 'LoadBalancerArns') ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), @@ -6720,13 +6718,13 @@ class TargetGroup { port: _s.extractXmlIntValue(elem, 'Port'), protocol: _s .extractXmlStringValue(elem, 'Protocol') - ?.let(ProtocolEnum.fromString) /* Nullability(true, true) */, + ?.let(ProtocolEnum.fromString), protocolVersion: _s.extractXmlStringValue(elem, 'ProtocolVersion'), targetGroupArn: _s.extractXmlStringValue(elem, 'TargetGroupArn'), targetGroupName: _s.extractXmlStringValue(elem, 'TargetGroupName'), targetType: _s .extractXmlStringValue(elem, 'TargetType') - ?.let(TargetTypeEnum.fromString) /* Nullability(true, true) */, + ?.let(TargetTypeEnum.fromString), unhealthyThresholdCount: _s.extractXmlIntValue(elem, 'UnhealthyThresholdCount'), vpcId: _s.extractXmlStringValue(elem, 'VpcId'), @@ -7213,11 +7211,12 @@ class TargetHealth { factory TargetHealth.fromXml(_s.XmlElement elem) { return TargetHealth( description: _s.extractXmlStringValue(elem, 'Description'), - reason: _s.extractXmlStringValue(elem, 'Reason')?.let( - TargetHealthReasonEnum.fromString) /* Nullability(true, true) */, + reason: _s + .extractXmlStringValue(elem, 'Reason') + ?.let(TargetHealthReasonEnum.fromString), state: _s .extractXmlStringValue(elem, 'State') - ?.let(TargetHealthStateEnum.fromString) /* Nullability(true, true) */, + ?.let(TargetHealthStateEnum.fromString), ); } @@ -7377,7 +7376,7 @@ class TrustStore { _s.extractXmlIntValue(elem, 'NumberOfCaCertificates'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(TrustStoreStatus.fromString) /* Nullability(true, true) */, + ?.let(TrustStoreStatus.fromString), totalRevokedEntries: _s.extractXmlIntValue(elem, 'TotalRevokedEntries'), trustStoreArn: _s.extractXmlStringValue(elem, 'TrustStoreArn'), ); @@ -7450,7 +7449,7 @@ class TrustStoreRevocation { revocationId: _s.extractXmlIntValue(elem, 'RevocationId'), revocationType: _s .extractXmlStringValue(elem, 'RevocationType') - ?.let(RevocationType.fromString) /* Nullability(true, true) */, + ?.let(RevocationType.fromString), trustStoreArn: _s.extractXmlStringValue(elem, 'TrustStoreArn'), ); } diff --git a/aws_client/lib/src/generated/elastic_transcoder/v2012_09_25.dart b/aws_client/lib/src/generated/elastic_transcoder/v2012_09_25.dart index def7bb9f6..657ae2a22 100644 --- a/aws_client/lib/src/generated/elastic_transcoder/v2012_09_25.dart +++ b/aws_client/lib/src/generated/elastic_transcoder/v2012_09_25.dart @@ -2005,11 +2005,11 @@ class Captions { factory Captions.fromJson(Map json) { return Captions( captionFormats: (json['CaptionFormats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionFormat.fromJson(e as Map)) .toList(), captionSources: (json['CaptionSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionSource.fromJson(e as Map)) .toList(), mergePolicy: json['MergePolicy'] as String?, @@ -2415,7 +2415,7 @@ class CreatePipelineResponse { ? Pipeline.fromJson(json['Pipeline'] as Map) : null, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -2786,7 +2786,7 @@ class InputCaptions { factory InputCaptions.fromJson(Map json) { return InputCaptions( captionSources: (json['CaptionSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionSource.fromJson(e as Map)) .toList(), mergePolicy: json['MergePolicy'] as String?, @@ -2921,7 +2921,7 @@ class Job { ? JobInput.fromJson(json['Input'] as Map) : null, inputs: (json['Inputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobInput.fromJson(e as Map)) .toList(), output: json['Output'] != null @@ -2929,12 +2929,12 @@ class Job { : null, outputKeyPrefix: json['OutputKeyPrefix'] as String?, outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobOutput.fromJson(e as Map)) .toList(), pipelineId: json['PipelineId'] as String?, playlists: (json['Playlists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Playlist.fromJson(e as Map)) .toList(), status: json['Status'] as String?, @@ -3015,7 +3015,7 @@ class JobAlbumArt { factory JobAlbumArt.fromJson(Map json) { return JobAlbumArt( artwork: (json['Artwork'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Artwork.fromJson(e as Map)) .toList(), mergePolicy: json['MergePolicy'] as String?, @@ -3503,7 +3503,7 @@ class JobOutput { ? Captions.fromJson(json['Captions'] as Map) : null, composition: (json['Composition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Clip.fromJson(e as Map)) .toList(), duration: json['Duration'] as int?, @@ -3527,7 +3527,7 @@ class JobOutput { : null, thumbnailPattern: json['ThumbnailPattern'] as String?, watermarks: (json['Watermarks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobWatermark.fromJson(e as Map)) .toList(), width: json['Width'] as int?, @@ -3654,7 +3654,7 @@ class ListJobsByPipelineResponse { factory ListJobsByPipelineResponse.fromJson(Map json) { return ListJobsByPipelineResponse( jobs: (json['Jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -3690,7 +3690,7 @@ class ListJobsByStatusResponse { factory ListJobsByStatusResponse.fromJson(Map json) { return ListJobsByStatusResponse( jobs: (json['Jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -3727,7 +3727,7 @@ class ListPipelinesResponse { return ListPipelinesResponse( nextPageToken: json['NextPageToken'] as String?, pipelines: (json['Pipelines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Pipeline.fromJson(e as Map)) .toList(), ); @@ -3763,7 +3763,7 @@ class ListPresetsResponse { return ListPresetsResponse( nextPageToken: json['NextPageToken'] as String?, presets: (json['Presets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Preset.fromJson(e as Map)) .toList(), ); @@ -3893,10 +3893,8 @@ class Permission { factory Permission.fromJson(Map json) { return Permission( - access: (json['Access'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + access: + (json['Access'] as List?)?.nonNulls.map((e) => e as String).toList(), grantee: json['Grantee'] as String?, granteeType: json['GranteeType'] as String?, ); @@ -4264,7 +4262,7 @@ class PipelineOutputConfig { return PipelineOutputConfig( bucket: json['Bucket'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromJson(e as Map)) .toList(), storageClass: json['StorageClass'] as String?, @@ -4481,7 +4479,7 @@ class Playlist { : null, name: json['Name'] as String?, outputKeys: (json['OutputKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), playReadyDrm: json['PlayReadyDrm'] != null @@ -4928,7 +4926,7 @@ class ReadPipelineResponse { ? Pipeline.fromJson(json['Pipeline'] as Map) : null, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -4989,7 +4987,7 @@ class TestRoleResponse { factory TestRoleResponse.fromJson(Map json) { return TestRoleResponse( messages: (json['Messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), success: json['Success'] as String?, @@ -5283,7 +5281,7 @@ class UpdatePipelineResponse { ? Pipeline.fromJson(json['Pipeline'] as Map) : null, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -5924,7 +5922,7 @@ class VideoParameters { resolution: json['Resolution'] as String?, sizingPolicy: json['SizingPolicy'] as String?, watermarks: (json['Watermarks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PresetWatermark.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/elasticsearch_service/v2015_01_01.dart b/aws_client/lib/src/generated/elasticsearch_service/v2015_01_01.dart index 59785968f..be1cda26e 100644 --- a/aws_client/lib/src/generated/elasticsearch_service/v2015_01_01.dart +++ b/aws_client/lib/src/generated/elasticsearch_service/v2015_01_01.dart @@ -2013,7 +2013,7 @@ class AdditionalLimit { return AdditionalLimit( limitName: json['LimitName'] as String?, limitValues: (json['LimitValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2462,7 +2462,7 @@ class AutoTuneOptions { desiredState: (json['DesiredState'] as String?) ?.let(AutoTuneDesiredState.fromString), maintenanceSchedules: (json['MaintenanceSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoTuneMaintenanceSchedule.fromJson(e as Map)) .toList(), @@ -2701,11 +2701,11 @@ class CancelDomainConfigChangeResponse { factory CancelDomainConfigChangeResponse.fromJson(Map json) { return CancelDomainConfigChangeResponse( cancelledChangeIds: (json['CancelledChangeIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cancelledChangeProperties: (json['CancelledChangeProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CancelledChangeProperty.fromJson(e as Map)) .toList(), @@ -2958,11 +2958,11 @@ class ChangeProgressStatusDetails { return ChangeProgressStatusDetails( changeId: json['ChangeId'] as String?, changeProgressStages: (json['ChangeProgressStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeProgressStage.fromJson(e as Map)) .toList(), completedProperties: (json['CompletedProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), configChangeStatus: (json['ConfigChangeStatus'] as String?) @@ -2971,7 +2971,7 @@ class ChangeProgressStatusDetails { (json['InitiatedBy'] as String?)?.let(InitiatedBy.fromString), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), pendingProperties: (json['PendingProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -3130,7 +3130,7 @@ class CompatibleVersionsMap { return CompatibleVersionsMap( sourceVersion: json['SourceVersion'] as String?, targetVersions: (json['TargetVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3503,7 +3503,7 @@ class DescribeDomainAutoTunesResponse { factory DescribeDomainAutoTunesResponse.fromJson(Map json) { return DescribeDomainAutoTunesResponse( autoTunes: (json['AutoTunes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoTune.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3618,7 +3618,7 @@ class DescribeElasticsearchDomainsResponse { Map json) { return DescribeElasticsearchDomainsResponse( domainStatusList: (json['DomainStatusList'] as List) - .whereNotNull() + .nonNulls .map((e) => ElasticsearchDomainStatus.fromJson(e as Map)) .toList(), @@ -3682,7 +3682,7 @@ class DescribeInboundCrossClusterSearchConnectionsResponse { return DescribeInboundCrossClusterSearchConnectionsResponse( crossClusterSearchConnections: (json['CrossClusterSearchConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InboundCrossClusterSearchConnection.fromJson( e as Map)) .toList(), @@ -3725,7 +3725,7 @@ class DescribeOutboundCrossClusterSearchConnectionsResponse { return DescribeOutboundCrossClusterSearchConnectionsResponse( crossClusterSearchConnections: (json['CrossClusterSearchConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutboundCrossClusterSearchConnection.fromJson( e as Map)) .toList(), @@ -3800,7 +3800,7 @@ class DescribePackagesResponse { return DescribePackagesResponse( nextToken: json['NextToken'] as String?, packageDetailsList: (json['PackageDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageDetails.fromJson(e as Map)) .toList(), ); @@ -3837,7 +3837,7 @@ class DescribeReservedElasticsearchInstanceOfferingsResponse { nextToken: json['NextToken'] as String?, reservedElasticsearchInstanceOfferings: (json['ReservedElasticsearchInstanceOfferings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservedElasticsearchInstanceOffering.fromJson( e as Map)) .toList(), @@ -3877,7 +3877,7 @@ class DescribeReservedElasticsearchInstancesResponse { nextToken: json['NextToken'] as String?, reservedElasticsearchInstances: (json['ReservedElasticsearchInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservedElasticsearchInstance.fromJson(e as Map)) .toList(), @@ -3915,11 +3915,11 @@ class DescribeVpcEndpointsResponse { factory DescribeVpcEndpointsResponse.fromJson(Map json) { return DescribeVpcEndpointsResponse( vpcEndpointErrors: (json['VpcEndpointErrors'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpointError.fromJson(e as Map)) .toList(), vpcEndpoints: (json['VpcEndpoints'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpoint.fromJson(e as Map)) .toList(), ); @@ -4771,7 +4771,7 @@ class ElasticsearchDomainConfig { json['LogPublishingOptions'] as Map) : null, modifyingProperties: (json['ModifyingProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModifyingProperties.fromJson(e as Map)) .toList(), nodeToNodeEncryptionOptions: json['NodeToNodeEncryptionOptions'] != null @@ -5023,7 +5023,7 @@ class ElasticsearchDomainStatus { MapEntry(LogType.fromString(k), LogPublishingOption.fromJson(e as Map))), modifyingProperties: (json['ModifyingProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModifyingProperties.fromJson(e as Map)) .toList(), nodeToNodeEncryptionOptions: json['NodeToNodeEncryptionOptions'] != null @@ -5295,7 +5295,7 @@ class GetCompatibleElasticsearchVersionsResponse { return GetCompatibleElasticsearchVersionsResponse( compatibleElasticsearchVersions: (json['CompatibleElasticsearchVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CompatibleVersionsMap.fromJson(e as Map)) .toList(), ); @@ -5331,7 +5331,7 @@ class GetPackageVersionHistoryResponse { nextToken: json['NextToken'] as String?, packageID: json['PackageID'] as String?, packageVersionHistoryList: (json['PackageVersionHistoryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageVersionHistory.fromJson(e as Map)) .toList(), ); @@ -5371,7 +5371,7 @@ class GetUpgradeHistoryResponse { return GetUpgradeHistoryResponse( nextToken: json['NextToken'] as String?, upgradeHistories: (json['UpgradeHistories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpgradeHistory.fromJson(e as Map)) .toList(), ); @@ -5658,7 +5658,7 @@ class Limits { factory Limits.fromJson(Map json) { return Limits( additionalLimits: (json['AdditionalLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalLimit.fromJson(e as Map)) .toList(), instanceLimits: json['InstanceLimits'] != null @@ -5666,7 +5666,7 @@ class Limits { json['InstanceLimits'] as Map) : null, storageTypes: (json['StorageTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageType.fromJson(e as Map)) .toList(), ); @@ -5697,7 +5697,7 @@ class ListDomainNamesResponse { factory ListDomainNamesResponse.fromJson(Map json) { return ListDomainNamesResponse( domainNames: (json['DomainNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainInfo.fromJson(e as Map)) .toList(), ); @@ -5726,7 +5726,7 @@ class ListDomainsForPackageResponse { factory ListDomainsForPackageResponse.fromJson(Map json) { return ListDomainsForPackageResponse( domainPackageDetailsList: (json['DomainPackageDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainPackageDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5765,7 +5765,7 @@ class ListElasticsearchInstanceTypesResponse { Map json) { return ListElasticsearchInstanceTypesResponse( elasticsearchInstanceTypes: (json['ElasticsearchInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ESPartitionInstanceType.fromString((e as String))) .toList(), nextToken: json['NextToken'] as String?, @@ -5799,7 +5799,7 @@ class ListElasticsearchVersionsResponse { Map json) { return ListElasticsearchVersionsResponse( elasticsearchVersions: (json['ElasticsearchVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -5835,7 +5835,7 @@ class ListPackagesForDomainResponse { factory ListPackagesForDomainResponse.fromJson(Map json) { return ListPackagesForDomainResponse( domainPackageDetailsList: (json['DomainPackageDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainPackageDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5866,7 +5866,7 @@ class ListTagsResponse { factory ListTagsResponse.fromJson(Map json) { return ListTagsResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5899,7 +5899,7 @@ class ListVpcEndpointAccessResponse { factory ListVpcEndpointAccessResponse.fromJson(Map json) { return ListVpcEndpointAccessResponse( authorizedPrincipalList: (json['AuthorizedPrincipalList'] as List) - .whereNotNull() + .nonNulls .map((e) => AuthorizedPrincipal.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String, @@ -5937,7 +5937,7 @@ class ListVpcEndpointsForDomainResponse { return ListVpcEndpointsForDomainResponse( nextToken: json['NextToken'] as String, vpcEndpointSummaryList: (json['VpcEndpointSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpointSummary.fromJson(e as Map)) .toList(), ); @@ -5972,7 +5972,7 @@ class ListVpcEndpointsResponse { return ListVpcEndpointsResponse( nextToken: json['NextToken'] as String, vpcEndpointSummaryList: (json['VpcEndpointSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpointSummary.fromJson(e as Map)) .toList(), ); @@ -6847,7 +6847,7 @@ class ReservedElasticsearchInstance { paymentOption: (json['PaymentOption'] as String?) ?.let(ReservedElasticsearchInstancePaymentOption.fromString), recurringCharges: (json['RecurringCharges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecurringCharge.fromJson(e as Map)) .toList(), reservationName: json['ReservationName'] as String?, @@ -6952,7 +6952,7 @@ class ReservedElasticsearchInstanceOffering { paymentOption: (json['PaymentOption'] as String?) ?.let(ReservedElasticsearchInstancePaymentOption.fromString), recurringCharges: (json['RecurringCharges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecurringCharge.fromJson(e as Map)) .toList(), reservedElasticsearchInstanceOfferingId: @@ -7450,7 +7450,7 @@ class StorageType { return StorageType( storageSubTypeName: json['StorageSubTypeName'] as String?, storageTypeLimits: (json['StorageTypeLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageTypeLimit.fromJson(e as Map)) .toList(), storageTypeName: json['StorageTypeName'] as String?, @@ -7500,7 +7500,7 @@ class StorageTypeLimit { return StorageTypeLimit( limitName: json['LimitName'] as String?, limitValues: (json['LimitValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7753,7 +7753,7 @@ class UpgradeHistory { return UpgradeHistory( startTimestamp: timeStampFromJson(json['StartTimestamp']), stepsList: (json['StepsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpgradeStepItem.fromJson(e as Map)) .toList(), upgradeName: json['UpgradeName'] as String?, @@ -7848,10 +7848,8 @@ class UpgradeStepItem { factory UpgradeStepItem.fromJson(Map json) { return UpgradeStepItem( - issues: (json['Issues'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + issues: + (json['Issues'] as List?)?.nonNulls.map((e) => e as String).toList(), progressPercent: json['ProgressPercent'] as double?, upgradeStep: (json['UpgradeStep'] as String?)?.let(UpgradeStep.fromString), @@ -7904,15 +7902,15 @@ class VPCDerivedInfo { factory VPCDerivedInfo.fromJson(Map json) { return VPCDerivedInfo( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vPCId: json['VPCId'] as String?, diff --git a/aws_client/lib/src/generated/emr/v2009_03_31.dart b/aws_client/lib/src/generated/emr/v2009_03_31.dart index 945b3c63b..677fc31ad 100644 --- a/aws_client/lib/src/generated/emr/v2009_03_31.dart +++ b/aws_client/lib/src/generated/emr/v2009_03_31.dart @@ -2977,7 +2977,7 @@ class AddInstanceGroupsOutput { return AddInstanceGroupsOutput( clusterArn: json['ClusterArn'] as String?, instanceGroupIds: (json['InstanceGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), jobFlowId: json['JobFlowId'] as String?, @@ -3007,10 +3007,8 @@ class AddJobFlowStepsOutput { factory AddJobFlowStepsOutput.fromJson(Map json) { return AddJobFlowStepsOutput( - stepIds: (json['StepIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + stepIds: + (json['StepIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -3089,10 +3087,7 @@ class Application { return Application( additionalInfo: (json['AdditionalInfo'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), - args: (json['Args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['Args'] as List?)?.nonNulls.map((e) => e as String).toList(), name: json['Name'] as String?, version: json['Version'] as String?, ); @@ -3185,7 +3180,7 @@ class AutoScalingPolicyDescription { json['Constraints'] as Map) : null, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingRule.fromJson(e as Map)) .toList(), status: json['Status'] != null @@ -3380,7 +3375,7 @@ class BlockPublicAccessConfiguration { json['BlockPublicSecurityGroupRules'] as bool, permittedPublicSecurityGroupRuleRanges: (json['PermittedPublicSecurityGroupRuleRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRange.fromJson(e as Map)) .toList(), ); @@ -3545,7 +3540,7 @@ class CancelStepsOutput { factory CancelStepsOutput.fromJson(Map json) { return CancelStepsOutput( cancelStepsInfoList: (json['CancelStepsInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CancelStepsInfo.fromJson(e as Map)) .toList(), ); @@ -3636,7 +3631,7 @@ class CloudWatchAlarmDefinition { period: json['Period'] as int, threshold: json['Threshold'] as double, dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDimension.fromJson(e as Map)) .toList(), evaluationPeriods: json['EvaluationPeriods'] as int?, @@ -3884,14 +3879,14 @@ class Cluster { factory Cluster.fromJson(Map json) { return Cluster( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), autoScalingRole: json['AutoScalingRole'] as String?, autoTerminate: json['AutoTerminate'] as bool?, clusterArn: json['ClusterArn'] as String?, configurations: (json['Configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), customAmiId: json['CustomAmiId'] as String?, @@ -3917,7 +3912,7 @@ class Cluster { oSReleaseLabel: json['OSReleaseLabel'] as String?, outpostArn: json['OutpostArn'] as String?, placementGroups: (json['PlacementGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementGroupConfig.fromJson(e as Map)) .toList(), releaseLabel: json['ReleaseLabel'] as String?, @@ -3934,7 +3929,7 @@ class Cluster { : null, stepConcurrencyLevel: json['StepConcurrencyLevel'] as int?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), terminationProtected: json['TerminationProtected'] as bool?, @@ -4129,7 +4124,7 @@ class ClusterStatus { factory ClusterStatus.fromJson(Map json) { return ClusterStatus( errorDetails: (json['ErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetail.fromJson(e as Map)) .toList(), state: (json['State'] as String?)?.let(ClusterState.fromString), @@ -4281,10 +4276,7 @@ class Command { factory Command.fromJson(Map json) { return Command( - args: (json['Args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['Args'] as List?)?.nonNulls.map((e) => e as String).toList(), name: json['Name'] as String?, scriptPath: json['ScriptPath'] as String?, ); @@ -4439,7 +4431,7 @@ class Configuration { return Configuration( classification: json['Classification'] as String?, configurations: (json['Configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), properties: (json['Properties'] as Map?) @@ -4595,7 +4587,7 @@ class DescribeJobFlowsOutput { factory DescribeJobFlowsOutput.fromJson(Map json) { return DescribeJobFlowsOutput( jobFlows: (json['JobFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobFlowDetail.fromJson(e as Map)) .toList(), ); @@ -4663,11 +4655,11 @@ class DescribeReleaseLabelOutput { factory DescribeReleaseLabelOutput.fromJson(Map json) { return DescribeReleaseLabelOutput( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimplifiedApplication.fromJson(e as Map)) .toList(), availableOSReleases: (json['AvailableOSReleases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OSRelease.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4975,12 +4967,12 @@ class Ec2InstanceAttributes { return Ec2InstanceAttributes( additionalMasterSecurityGroups: (json['AdditionalMasterSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), additionalSlaveSecurityGroups: (json['AdditionalSlaveSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ec2AvailabilityZone: json['Ec2AvailabilityZone'] as String?, @@ -4993,11 +4985,11 @@ class Ec2InstanceAttributes { iamInstanceProfile: json['IamInstanceProfile'] as String?, requestedEc2AvailabilityZones: (json['RequestedEc2AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), requestedEc2SubnetIds: (json['RequestedEc2SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serviceAccessSecurityGroup: json['ServiceAccessSecurityGroup'] as String?, @@ -5063,7 +5055,7 @@ class ErrorDetail { return ErrorDetail( errorCode: json['ErrorCode'] as String?, errorData: (json['ErrorData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -5394,13 +5386,10 @@ class HadoopJarStepConfig { factory HadoopJarStepConfig.fromJson(Map json) { return HadoopJarStepConfig( jar: json['Jar'] as String, - args: (json['Args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['Args'] as List?)?.nonNulls.map((e) => e as String).toList(), mainClass: json['MainClass'] as String?, properties: (json['Properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValue.fromJson(e as Map)) .toList(), ); @@ -5448,10 +5437,7 @@ class HadoopStepConfig { factory HadoopStepConfig.fromJson(Map json) { return HadoopStepConfig( - args: (json['Args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['Args'] as List?)?.nonNulls.map((e) => e as String).toList(), jar: json['Jar'] as String?, mainClass: json['MainClass'] as String?, properties: (json['Properties'] as Map?) @@ -5561,7 +5547,7 @@ class Instance { factory Instance.fromJson(Map json) { return Instance( ebsVolumes: (json['EbsVolumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EbsVolume.fromJson(e as Map)) .toList(), ec2InstanceId: json['Ec2InstanceId'] as String?, @@ -5735,7 +5721,7 @@ class InstanceFleet { instanceFleetType: (json['InstanceFleetType'] as String?) ?.let(InstanceFleetType.fromString), instanceTypeSpecifications: (json['InstanceTypeSpecifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceTypeSpecification.fromJson(e as Map)) .toList(), @@ -6344,13 +6330,13 @@ class InstanceGroup { : null, bidPrice: json['BidPrice'] as String?, configurations: (json['Configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), configurationsVersion: json['ConfigurationsVersion'] as int?, customAmiId: json['CustomAmiId'] as String?, ebsBlockDevices: (json['EbsBlockDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EbsBlockDevice.fromJson(e as Map)) .toList(), ebsOptimized: json['EbsOptimized'] as bool?, @@ -6360,7 +6346,7 @@ class InstanceGroup { instanceType: json['InstanceType'] as String?, lastSuccessfullyAppliedConfigurations: (json['LastSuccessfullyAppliedConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), lastSuccessfullyAppliedConfigurationsVersion: @@ -6888,11 +6874,11 @@ class InstanceResizePolicy { return InstanceResizePolicy( instanceTerminationTimeout: json['InstanceTerminationTimeout'] as int?, instancesToProtect: (json['InstancesToProtect'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), instancesToTerminate: (json['InstancesToTerminate'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7214,12 +7200,12 @@ class InstanceTypeSpecification { bidPriceAsPercentageOfOnDemandPrice: json['BidPriceAsPercentageOfOnDemandPrice'] as double?, configurations: (json['Configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), customAmiId: json['CustomAmiId'] as String?, ebsBlockDevices: (json['EbsBlockDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EbsBlockDevice.fromJson(e as Map)) .toList(), ebsOptimized: json['EbsOptimized'] as bool?, @@ -7364,7 +7350,7 @@ class JobFlowDetail { amiVersion: json['AmiVersion'] as String?, autoScalingRole: json['AutoScalingRole'] as String?, bootstrapActions: (json['BootstrapActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BootstrapActionDetail.fromJson(e as Map)) .toList(), jobFlowRole: json['JobFlowRole'] as String?, @@ -7374,11 +7360,11 @@ class JobFlowDetail { ?.let(ScaleDownBehavior.fromString), serviceRole: json['ServiceRole'] as String?, steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StepDetail.fromJson(e as Map)) .toList(), supportedProducts: (json['SupportedProducts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), visibleToAllUsers: json['VisibleToAllUsers'] as bool?, @@ -7760,7 +7746,7 @@ class JobFlowInstancesDetail { ec2SubnetId: json['Ec2SubnetId'] as String?, hadoopVersion: json['HadoopVersion'] as String?, instanceGroups: (json['InstanceGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceGroupDetail.fromJson(e as Map)) .toList(), keepJobFlowAliveWhenNoSteps: json['KeepJobFlowAliveWhenNoSteps'] as bool?, @@ -7924,7 +7910,7 @@ class ListBootstrapActionsOutput { factory ListBootstrapActionsOutput.fromJson(Map json) { return ListBootstrapActionsOutput( bootstrapActions: (json['BootstrapActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Command.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -7958,7 +7944,7 @@ class ListClustersOutput { factory ListClustersOutput.fromJson(Map json) { return ListClustersOutput( clusters: (json['Clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterSummary.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -7990,7 +7976,7 @@ class ListInstanceFleetsOutput { factory ListInstanceFleetsOutput.fromJson(Map json) { return ListInstanceFleetsOutput( instanceFleets: (json['InstanceFleets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceFleet.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8023,7 +8009,7 @@ class ListInstanceGroupsOutput { factory ListInstanceGroupsOutput.fromJson(Map json) { return ListInstanceGroupsOutput( instanceGroups: (json['InstanceGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceGroup.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8056,7 +8042,7 @@ class ListInstancesOutput { factory ListInstancesOutput.fromJson(Map json) { return ListInstancesOutput( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Instance.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8090,7 +8076,7 @@ class ListNotebookExecutionsOutput { return ListNotebookExecutionsOutput( marker: json['Marker'] as String?, notebookExecutions: (json['NotebookExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookExecutionSummary.fromJson(e as Map)) .toList(), @@ -8124,7 +8110,7 @@ class ListReleaseLabelsOutput { return ListReleaseLabelsOutput( nextToken: json['NextToken'] as String?, releaseLabels: (json['ReleaseLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8158,7 +8144,7 @@ class ListSecurityConfigurationsOutput { return ListSecurityConfigurationsOutput( marker: json['Marker'] as String?, securityConfigurations: (json['SecurityConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityConfigurationSummary.fromJson(e as Map)) .toList(), @@ -8198,7 +8184,7 @@ class ListStepsOutput { return ListStepsOutput( marker: json['Marker'] as String?, steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StepSummary.fromJson(e as Map)) .toList(), ); @@ -8232,7 +8218,7 @@ class ListStudioSessionMappingsOutput { return ListStudioSessionMappingsOutput( marker: json['Marker'] as String?, sessionMappings: (json['SessionMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SessionMappingSummary.fromJson(e as Map)) .toList(), ); @@ -8264,7 +8250,7 @@ class ListStudiosOutput { return ListStudiosOutput( marker: json['Marker'] as String?, studios: (json['Studios'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StudioSummary.fromJson(e as Map)) .toList(), ); @@ -8298,7 +8284,7 @@ class ListSupportedInstanceTypesOutput { return ListSupportedInstanceTypesOutput( marker: json['Marker'] as String?, supportedInstanceTypes: (json['SupportedInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedInstanceType.fromJson(e as Map)) .toList(), ); @@ -8578,7 +8564,7 @@ class NotebookExecution { status: (json['Status'] as String?)?.let(NotebookExecutionStatus.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -9204,7 +9190,7 @@ class PlacementType { return PlacementType( availabilityZone: json['AvailabilityZone'] as String?, availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9650,10 +9636,7 @@ class ScriptBootstrapActionConfig { factory ScriptBootstrapActionConfig.fromJson(Map json) { return ScriptBootstrapActionConfig( path: json['Path'] as String, - args: (json['Args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['Args'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -10788,11 +10771,11 @@ class Studio { studioArn: json['StudioArn'] as String?, studioId: json['StudioId'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trustedIdentityPropagationEnabled: diff --git a/aws_client/lib/src/generated/emr_containers/v2020_10_01.dart b/aws_client/lib/src/generated/emr_containers/v2020_10_01.dart index 058d3258c..4c5d7ff86 100644 --- a/aws_client/lib/src/generated/emr_containers/v2020_10_01.dart +++ b/aws_client/lib/src/generated/emr_containers/v2020_10_01.dart @@ -1173,7 +1173,7 @@ class Configuration { return Configuration( classification: json['classification'] as String, configurations: (json['configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), properties: (json['properties'] as Map?) @@ -1210,7 +1210,7 @@ class ConfigurationOverrides { factory ConfigurationOverrides.fromJson(Map json) { return ConfigurationOverrides( applicationConfiguration: (json['applicationConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), monitoringConfiguration: json['monitoringConfiguration'] != null @@ -1879,7 +1879,7 @@ class Endpoint { state: (json['state'] as String?)?.let(EndpointState.fromString), stateDetails: json['stateDetails'] as String?, subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -2464,7 +2464,7 @@ class ListJobRunsResponse { factory ListJobRunsResponse.fromJson(Map json) { return ListJobRunsResponse( jobRuns: (json['jobRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobRun.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2497,7 +2497,7 @@ class ListJobTemplatesResponse { return ListJobTemplatesResponse( nextToken: json['nextToken'] as String?, templates: (json['templates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobTemplate.fromJson(e as Map)) .toList(), ); @@ -2528,7 +2528,7 @@ class ListManagedEndpointsResponse { factory ListManagedEndpointsResponse.fromJson(Map json) { return ListManagedEndpointsResponse( endpoints: (json['endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2562,7 +2562,7 @@ class ListSecurityConfigurationsResponse { return ListSecurityConfigurationsResponse( nextToken: json['nextToken'] as String?, securityConfigurations: (json['securityConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityConfiguration.fromJson(e as Map)) .toList(), ); @@ -2618,7 +2618,7 @@ class ListVirtualClustersResponse { return ListVirtualClustersResponse( nextToken: json['nextToken'] as String?, virtualClusters: (json['virtualClusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VirtualCluster.fromJson(e as Map)) .toList(), ); @@ -2749,7 +2749,7 @@ class ParametricConfigurationOverrides { factory ParametricConfigurationOverrides.fromJson(Map json) { return ParametricConfigurationOverrides( applicationConfiguration: (json['applicationConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), monitoringConfiguration: json['monitoringConfiguration'] != null @@ -3115,7 +3115,7 @@ class SparkSubmitJobDriver { return SparkSubmitJobDriver( entryPoint: json['entryPoint'] as String, entryPointArguments: (json['entryPointArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sparkSubmitParameters: json['sparkSubmitParameters'] as String?, diff --git a/aws_client/lib/src/generated/emr_serverless/v2021_07_13.dart b/aws_client/lib/src/generated/emr_serverless/v2021_07_13.dart index 45731b61a..e06247ae6 100644 --- a/aws_client/lib/src/generated/emr_serverless/v2021_07_13.dart +++ b/aws_client/lib/src/generated/emr_serverless/v2021_07_13.dart @@ -963,7 +963,7 @@ class Application { json['networkConfiguration'] as Map) : null, runtimeConfiguration: (json['runtimeConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), stateDetails: json['stateDetails'] as String?, @@ -1291,8 +1291,7 @@ class CloudWatchLoggingConfiguration { logGroupName: json['logGroupName'] as String?, logStreamNamePrefix: json['logStreamNamePrefix'] as String?, logTypes: (json['logTypes'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -1338,7 +1337,7 @@ class Configuration { return Configuration( classification: json['classification'] as String, configurations: (json['configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), properties: (json['properties'] as Map?) @@ -1375,7 +1374,7 @@ class ConfigurationOverrides { factory ConfigurationOverrides.fromJson(Map json) { return ConfigurationOverrides( applicationConfiguration: (json['applicationConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), monitoringConfiguration: json['monitoringConfiguration'] != null @@ -2225,7 +2224,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applications: (json['applications'] as List) - .whereNotNull() + .nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2259,7 +2258,7 @@ class ListJobRunAttemptsResponse { factory ListJobRunAttemptsResponse.fromJson(Map json) { return ListJobRunAttemptsResponse( jobRunAttempts: (json['jobRunAttempts'] as List) - .whereNotNull() + .nonNulls .map((e) => JobRunAttemptSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2293,7 +2292,7 @@ class ListJobRunsResponse { factory ListJobRunsResponse.fromJson(Map json) { return ListJobRunsResponse( jobRuns: (json['jobRuns'] as List) - .whereNotNull() + .nonNulls .map((e) => JobRunSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2490,11 +2489,11 @@ class NetworkConfiguration { factory NetworkConfiguration.fromJson(Map json) { return NetworkConfiguration( securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2662,7 +2661,7 @@ class SparkSubmit { return SparkSubmit( entryPoint: json['entryPoint'] as String, entryPointArguments: (json['entryPointArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sparkSubmitParameters: json['sparkSubmitParameters'] as String?, diff --git a/aws_client/lib/src/generated/entity_resolution/v2018_05_10.dart b/aws_client/lib/src/generated/entity_resolution/v2018_05_10.dart index cd2d6eeab..472fb263a 100644 --- a/aws_client/lib/src/generated/entity_resolution/v2018_05_10.dart +++ b/aws_client/lib/src/generated/entity_resolution/v2018_05_10.dart @@ -1526,15 +1526,15 @@ class BatchDeleteUniqueIdOutput { factory BatchDeleteUniqueIdOutput.fromJson(Map json) { return BatchDeleteUniqueIdOutput( deleted: (json['deleted'] as List) - .whereNotNull() + .nonNulls .map((e) => DeletedUniqueId.fromJson(e as Map)) .toList(), disconnectedUniqueIds: (json['disconnectedUniqueIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => DeleteUniqueIdError.fromJson(e as Map)) .toList(), status: DeleteUniqueIdStatus.fromString((json['status'] as String)), @@ -1597,7 +1597,7 @@ class CreateIdMappingWorkflowOutput { idMappingTechniques: IdMappingTechniques.fromJson( json['idMappingTechniques'] as Map), inputSourceConfig: (json['inputSourceConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => IdMappingWorkflowInputSource.fromJson(e as Map)) .toList(), @@ -1606,7 +1606,7 @@ class CreateIdMappingWorkflowOutput { workflowName: json['workflowName'] as String, description: json['description'] as String?, outputSourceConfig: (json['outputSourceConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdMappingWorkflowOutputSource.fromJson(e as Map)) .toList(), @@ -1700,12 +1700,12 @@ class CreateIdNamespaceOutput { description: json['description'] as String?, idMappingWorkflowProperties: (json['idMappingWorkflowProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdNamespaceIdMappingWorkflowProperties.fromJson( e as Map)) .toList(), inputSourceConfig: (json['inputSourceConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => IdNamespaceInputSource.fromJson(e as Map)) .toList(), @@ -1788,11 +1788,11 @@ class CreateMatchingWorkflowOutput { factory CreateMatchingWorkflowOutput.fromJson(Map json) { return CreateMatchingWorkflowOutput( inputSourceConfig: (json['inputSourceConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => InputSource.fromJson(e as Map)) .toList(), outputSourceConfig: (json['outputSourceConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => OutputSource.fromJson(e as Map)) .toList(), resolutionTechniques: ResolutionTechniques.fromJson( @@ -1858,7 +1858,7 @@ class CreateSchemaMappingOutput { return CreateSchemaMappingOutput( description: json['description'] as String, mappedInputFields: (json['mappedInputFields'] as List) - .whereNotNull() + .nonNulls .map((e) => SchemaInputAttribute.fromJson(e as Map)) .toList(), schemaArn: json['schemaArn'] as String, @@ -2168,7 +2168,7 @@ class GetIdMappingJobOutput { json['metrics'] as Map) : null, outputSourceConfig: (json['outputSourceConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdMappingJobOutputSource.fromJson(e as Map)) .toList(), @@ -2250,7 +2250,7 @@ class GetIdMappingWorkflowOutput { idMappingTechniques: IdMappingTechniques.fromJson( json['idMappingTechniques'] as Map), inputSourceConfig: (json['inputSourceConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => IdMappingWorkflowInputSource.fromJson(e as Map)) .toList(), @@ -2260,7 +2260,7 @@ class GetIdMappingWorkflowOutput { workflowName: json['workflowName'] as String, description: json['description'] as String?, outputSourceConfig: (json['outputSourceConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdMappingWorkflowOutputSource.fromJson(e as Map)) .toList(), @@ -2362,12 +2362,12 @@ class GetIdNamespaceOutput { description: json['description'] as String?, idMappingWorkflowProperties: (json['idMappingWorkflowProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdNamespaceIdMappingWorkflowProperties.fromJson( e as Map)) .toList(), inputSourceConfig: (json['inputSourceConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => IdNamespaceInputSource.fromJson(e as Map)) .toList(), @@ -2479,7 +2479,7 @@ class GetMatchingJobOutput { ? JobMetrics.fromJson(json['metrics'] as Map) : null, outputSourceConfig: (json['outputSourceConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobOutputSource.fromJson(e as Map)) .toList(), ); @@ -2564,11 +2564,11 @@ class GetMatchingWorkflowOutput { return GetMatchingWorkflowOutput( createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), inputSourceConfig: (json['inputSourceConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => InputSource.fromJson(e as Map)) .toList(), outputSourceConfig: (json['outputSourceConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => OutputSource.fromJson(e as Map)) .toList(), resolutionTechniques: ResolutionTechniques.fromJson( @@ -2841,7 +2841,7 @@ class GetSchemaMappingOutput { createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), hasWorkflows: json['hasWorkflows'] as bool, mappedInputFields: (json['mappedInputFields'] as List) - .whereNotNull() + .nonNulls .map((e) => SchemaInputAttribute.fromJson(e as Map)) .toList(), schemaArn: json['schemaArn'] as String, @@ -3551,7 +3551,7 @@ class ListIdMappingJobsOutput { factory ListIdMappingJobsOutput.fromJson(Map json) { return ListIdMappingJobsOutput( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3584,7 +3584,7 @@ class ListIdMappingWorkflowsOutput { return ListIdMappingWorkflowsOutput( nextToken: json['nextToken'] as String?, workflowSummaries: (json['workflowSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdMappingWorkflowSummary.fromJson(e as Map)) .toList(), @@ -3616,7 +3616,7 @@ class ListIdNamespacesOutput { factory ListIdNamespacesOutput.fromJson(Map json) { return ListIdNamespacesOutput( idNamespaceSummaries: (json['idNamespaceSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdNamespaceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3650,7 +3650,7 @@ class ListMatchingJobsOutput { factory ListMatchingJobsOutput.fromJson(Map json) { return ListMatchingJobsOutput( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3685,7 +3685,7 @@ class ListMatchingWorkflowsOutput { return ListMatchingWorkflowsOutput( nextToken: json['nextToken'] as String?, workflowSummaries: (json['workflowSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchingWorkflowSummary.fromJson(e as Map)) .toList(), @@ -3718,7 +3718,7 @@ class ListProviderServicesOutput { return ListProviderServicesOutput( nextToken: json['nextToken'] as String?, providerServiceSummaries: (json['providerServiceSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ProviderServiceSummary.fromJson(e as Map)) .toList(), @@ -3754,7 +3754,7 @@ class ListSchemaMappingsOutput { return ListSchemaMappingsOutput( nextToken: json['nextToken'] as String?, schemaList: (json['schemaList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaMappingSummary.fromJson(e as Map)) .toList(), ); @@ -3954,7 +3954,7 @@ class OutputSource { factory OutputSource.fromJson(Map json) { return OutputSource( output: (json['output'] as List) - .whereNotNull() + .nonNulls .map((e) => OutputAttribute.fromJson(e as Map)) .toList(), outputS3Path: json['outputS3Path'] as String, @@ -3993,14 +3993,13 @@ class ProviderComponentSchema { factory ProviderComponentSchema.fromJson(Map json) { return ProviderComponentSchema( providerSchemaAttributes: (json['providerSchemaAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProviderSchemaAttribute.fromJson(e as Map)) .toList(), schemas: (json['schemas'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -4113,11 +4112,11 @@ class ProviderIntermediateDataAccessConfiguration { Map json) { return ProviderIntermediateDataAccessConfiguration( awsAccountIds: (json['awsAccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), requiredBucketActions: (json['requiredBucketActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4448,7 +4447,7 @@ class Rule { factory Rule.fromJson(Map json) { return Rule( matchingKeys: (json['matchingKeys'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ruleName: json['ruleName'] as String, @@ -4495,7 +4494,7 @@ class RuleBasedProperties { attributeMatchingModel: AttributeMatchingModel.fromString( (json['attributeMatchingModel'] as String)), rules: (json['rules'] as List) - .whereNotNull() + .nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), ); @@ -4692,7 +4691,7 @@ class StartIdMappingJobOutput { return StartIdMappingJobOutput( jobId: json['jobId'] as String, outputSourceConfig: (json['outputSourceConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdMappingJobOutputSource.fromJson(e as Map)) .toList(), @@ -4812,7 +4811,7 @@ class UpdateIdMappingWorkflowOutput { idMappingTechniques: IdMappingTechniques.fromJson( json['idMappingTechniques'] as Map), inputSourceConfig: (json['inputSourceConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => IdMappingWorkflowInputSource.fromJson(e as Map)) .toList(), @@ -4821,7 +4820,7 @@ class UpdateIdMappingWorkflowOutput { workflowName: json['workflowName'] as String, description: json['description'] as String?, outputSourceConfig: (json['outputSourceConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdMappingWorkflowOutputSource.fromJson(e as Map)) .toList(), @@ -4911,12 +4910,12 @@ class UpdateIdNamespaceOutput { description: json['description'] as String?, idMappingWorkflowProperties: (json['idMappingWorkflowProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdNamespaceIdMappingWorkflowProperties.fromJson( e as Map)) .toList(), inputSourceConfig: (json['inputSourceConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => IdNamespaceInputSource.fromJson(e as Map)) .toList(), @@ -4990,11 +4989,11 @@ class UpdateMatchingWorkflowOutput { factory UpdateMatchingWorkflowOutput.fromJson(Map json) { return UpdateMatchingWorkflowOutput( inputSourceConfig: (json['inputSourceConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => InputSource.fromJson(e as Map)) .toList(), outputSourceConfig: (json['outputSourceConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => OutputSource.fromJson(e as Map)) .toList(), resolutionTechniques: ResolutionTechniques.fromJson( @@ -5056,7 +5055,7 @@ class UpdateSchemaMappingOutput { factory UpdateSchemaMappingOutput.fromJson(Map json) { return UpdateSchemaMappingOutput( mappedInputFields: (json['mappedInputFields'] as List) - .whereNotNull() + .nonNulls .map((e) => SchemaInputAttribute.fromJson(e as Map)) .toList(), schemaArn: json['schemaArn'] as String, diff --git a/aws_client/lib/src/generated/event_bridge/v2015_10_07.dart b/aws_client/lib/src/generated/event_bridge/v2015_10_07.dart index a74e0084b..95394dbf5 100644 --- a/aws_client/lib/src/generated/event_bridge/v2015_10_07.dart +++ b/aws_client/lib/src/generated/event_bridge/v2015_10_07.dart @@ -3417,14 +3417,12 @@ class AwsVpcConfiguration { factory AwsVpcConfiguration.fromJson(Map json) { return AwsVpcConfiguration( - subnets: (json['Subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), assignPublicIp: (json['AssignPublicIp'] as String?)?.let(AssignPublicIp.fromString), securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3981,17 +3979,17 @@ class ConnectionHttpParameters { factory ConnectionHttpParameters.fromJson(Map json) { return ConnectionHttpParameters( bodyParameters: (json['BodyParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionBodyParameter.fromJson(e as Map)) .toList(), headerParameters: (json['HeaderParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionHeaderParameter.fromJson(e as Map)) .toList(), queryStringParameters: (json['QueryStringParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionQueryStringParameter.fromJson( e as Map)) .toList(), @@ -4495,7 +4493,7 @@ class CreateEndpointResponse { return CreateEndpointResponse( arn: json['Arn'] as String?, eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointEventBus.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -5137,7 +5135,7 @@ class DescribeEndpointResponse { endpointId: json['EndpointId'] as String?, endpointUrl: json['EndpointUrl'] as String?, eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointEventBus.fromJson(e as Map)) .toList(), lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), @@ -5678,7 +5676,7 @@ class EcsParameters { return EcsParameters( taskDefinitionArn: json['TaskDefinitionArn'] as String, capacityProviderStrategy: (json['CapacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -5691,11 +5689,11 @@ class EcsParameters { json['NetworkConfiguration'] as Map) : null, placementConstraints: (json['PlacementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementConstraint.fromJson(e as Map)) .toList(), placementStrategy: (json['PlacementStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementStrategy.fromJson(e as Map)) .toList(), platformVersion: json['PlatformVersion'] as String?, @@ -5703,7 +5701,7 @@ class EcsParameters { (json['PropagateTags'] as String?)?.let(PropagateTags.fromString), referenceId: json['ReferenceId'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskCount: json['TaskCount'] as int?, @@ -5824,7 +5822,7 @@ class Endpoint { endpointId: json['EndpointId'] as String?, endpointUrl: json['EndpointUrl'] as String?, eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointEventBus.fromJson(e as Map)) .toList(), lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), @@ -6130,7 +6128,7 @@ class HttpParameters { headerParameters: (json['HeaderParameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), pathParameterValues: (json['PathParameterValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), queryStringParameters: @@ -6311,7 +6309,7 @@ class ListApiDestinationsResponse { factory ListApiDestinationsResponse.fromJson(Map json) { return ListApiDestinationsResponse( apiDestinations: (json['ApiDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiDestination.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6344,7 +6342,7 @@ class ListArchivesResponse { factory ListArchivesResponse.fromJson(Map json) { return ListArchivesResponse( archives: (json['Archives'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Archive.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6377,7 +6375,7 @@ class ListConnectionsResponse { factory ListConnectionsResponse.fromJson(Map json) { return ListConnectionsResponse( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6414,7 +6412,7 @@ class ListEndpointsResponse { factory ListEndpointsResponse.fromJson(Map json) { return ListEndpointsResponse( endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6447,7 +6445,7 @@ class ListEventBusesResponse { factory ListEventBusesResponse.fromJson(Map json) { return ListEventBusesResponse( eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBus.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6480,7 +6478,7 @@ class ListEventSourcesResponse { factory ListEventSourcesResponse.fromJson(Map json) { return ListEventSourcesResponse( eventSources: (json['EventSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6515,7 +6513,7 @@ class ListPartnerEventSourceAccountsResponse { return ListPartnerEventSourceAccountsResponse( nextToken: json['NextToken'] as String?, partnerEventSourceAccounts: (json['PartnerEventSourceAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartnerEventSourceAccount.fromJson(e as Map)) .toList(), @@ -6550,7 +6548,7 @@ class ListPartnerEventSourcesResponse { return ListPartnerEventSourcesResponse( nextToken: json['NextToken'] as String?, partnerEventSources: (json['PartnerEventSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartnerEventSource.fromJson(e as Map)) .toList(), ); @@ -6584,7 +6582,7 @@ class ListReplaysResponse { return ListReplaysResponse( nextToken: json['NextToken'] as String?, replays: (json['Replays'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Replay.fromJson(e as Map)) .toList(), ); @@ -6617,7 +6615,7 @@ class ListRuleNamesByTargetResponse { return ListRuleNamesByTargetResponse( nextToken: json['NextToken'] as String?, ruleNames: (json['RuleNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6650,7 +6648,7 @@ class ListRulesResponse { return ListRulesResponse( nextToken: json['NextToken'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), ); @@ -6677,7 +6675,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6708,7 +6706,7 @@ class ListTargetsByRuleResponse { return ListTargetsByRuleResponse( nextToken: json['NextToken'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); @@ -7111,7 +7109,7 @@ class PutEventsResponse { factory PutEventsResponse.fromJson(Map json) { return PutEventsResponse( entries: (json['Entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutEventsResultEntry.fromJson(e as Map)) .toList(), failedEntryCount: json['FailedEntryCount'] as int?, @@ -7327,7 +7325,7 @@ class PutPartnerEventsResponse { factory PutPartnerEventsResponse.fromJson(Map json) { return PutPartnerEventsResponse( entries: (json['Entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutPartnerEventsResultEntry.fromJson(e as Map)) .toList(), @@ -7422,7 +7420,7 @@ class PutTargetsResponse { factory PutTargetsResponse.fromJson(Map json) { return PutTargetsResponse( failedEntries: (json['FailedEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutTargetsResultEntry.fromJson(e as Map)) .toList(), failedEntryCount: json['FailedEntryCount'] as int?, @@ -7528,10 +7526,7 @@ class RedshiftDataParameters { dbUser: json['DbUser'] as String?, secretManagerArn: json['SecretManagerArn'] as String?, sql: json['Sql'] as String?, - sqls: (json['Sqls'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + sqls: (json['Sqls'] as List?)?.nonNulls.map((e) => e as String).toList(), statementName: json['StatementName'] as String?, withEvent: json['WithEvent'] as bool?, ); @@ -7572,7 +7567,7 @@ class RemoveTargetsResponse { factory RemoveTargetsResponse.fromJson(Map json) { return RemoveTargetsResponse( failedEntries: (json['FailedEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemoveTargetsResultEntry.fromJson(e as Map)) .toList(), @@ -7735,7 +7730,7 @@ class ReplayDestination { return ReplayDestination( arn: json['Arn'] as String, filterArns: (json['FilterArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8027,7 +8022,7 @@ class RunCommandParameters { factory RunCommandParameters.fromJson(Map json) { return RunCommandParameters( runCommandTargets: (json['RunCommandTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => RunCommandTarget.fromJson(e as Map)) .toList(), ); @@ -8061,10 +8056,8 @@ class RunCommandTarget { factory RunCommandTarget.fromJson(Map json) { return RunCommandTarget( key: json['Key'] as String, - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -8124,7 +8117,7 @@ class SageMakerPipelineParameters { factory SageMakerPipelineParameters.fromJson(Map json) { return SageMakerPipelineParameters( pipelineParameterList: (json['PipelineParameterList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SageMakerPipelineParameter.fromJson(e as Map)) .toList(), @@ -8887,7 +8880,7 @@ class UpdateEndpointResponse { endpointId: json['EndpointId'] as String?, endpointUrl: json['EndpointUrl'] as String?, eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointEventBus.fromJson(e as Map)) .toList(), name: json['Name'] as String?, diff --git a/aws_client/lib/src/generated/evidently/v2021_02_01.dart b/aws_client/lib/src/generated/evidently/v2021_02_01.dart index 964b3509d..8759e4c38 100644 --- a/aws_client/lib/src/generated/evidently/v2021_02_01.dart +++ b/aws_client/lib/src/generated/evidently/v2021_02_01.dart @@ -1971,7 +1971,7 @@ class BatchEvaluateFeatureResponse { factory BatchEvaluateFeatureResponse.fromJson(Map json) { return BatchEvaluateFeatureResponse( results: (json['results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationResult.fromJson(e as Map)) .toList(), ); @@ -2575,7 +2575,7 @@ class Experiment { json['execution'] as Map) : null, metricGoals: (json['metricGoals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricGoal.fromJson(e as Map)) .toList(), onlineAbDefinition: json['onlineAbDefinition'] != null @@ -2594,7 +2594,7 @@ class Experiment { tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), treatments: (json['treatments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Treatment.fromJson(e as Map)) .toList(), ); @@ -2813,10 +2813,8 @@ class ExperimentResultsData { resultStat: (json['resultStat'] as String?) ?.let(ExperimentResultResponseType.fromString), treatmentName: json['treatmentName'] as String?, - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as double) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as double).toList(), ); } @@ -3002,7 +3000,7 @@ class Feature { status: FeatureStatus.fromString((json['status'] as String)), valueType: VariationValueType.fromString((json['valueType'] as String)), variations: (json['variations'] as List) - .whereNotNull() + .nonNulls .map((e) => Variation.fromJson(e as Map)) .toList(), defaultVariation: json['defaultVariation'] as String?, @@ -3010,7 +3008,7 @@ class Feature { entityOverrides: (json['entityOverrides'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), evaluationRules: (json['evaluationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationRule.fromJson(e as Map)) .toList(), project: json['project'] as String?, @@ -3146,7 +3144,7 @@ class FeatureSummary { status: FeatureStatus.fromString((json['status'] as String)), defaultVariation: json['defaultVariation'] as String?, evaluationRules: (json['evaluationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationRule.fromJson(e as Map)) .toList(), project: json['project'] as String?, @@ -3233,15 +3231,15 @@ class GetExperimentResultsResponse { return GetExperimentResultsResponse( details: json['details'] as String?, reports: (json['reports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperimentReport.fromJson(e as Map)) .toList(), resultsData: (json['resultsData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperimentResultsData.fromJson(e as Map)) .toList(), timestamps: (json['timestamps'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), ); @@ -3439,11 +3437,11 @@ class Launch { ? LaunchExecution.fromJson(json['execution'] as Map) : null, groups: (json['groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchGroup.fromJson(e as Map)) .toList(), metricMonitors: (json['metricMonitors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricMonitor.fromJson(e as Map)) .toList(), project: json['project'] as String?, @@ -3664,7 +3662,7 @@ class ListExperimentsResponse { factory ListExperimentsResponse.fromJson(Map json) { return ListExperimentsResponse( experiments: (json['experiments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Experiment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3698,7 +3696,7 @@ class ListFeaturesResponse { factory ListFeaturesResponse.fromJson(Map json) { return ListFeaturesResponse( features: (json['features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3732,7 +3730,7 @@ class ListLaunchesResponse { factory ListLaunchesResponse.fromJson(Map json) { return ListLaunchesResponse( launches: (json['launches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Launch.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3767,7 +3765,7 @@ class ListProjectsResponse { return ListProjectsResponse( nextToken: json['nextToken'] as String?, projects: (json['projects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSummary.fromJson(e as Map)) .toList(), ); @@ -3801,7 +3799,7 @@ class ListSegmentReferencesResponse { return ListSegmentReferencesResponse( nextToken: json['nextToken'] as String?, referencedBy: (json['referencedBy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RefResource.fromJson(e as Map)) .toList(), ); @@ -3835,7 +3833,7 @@ class ListSegmentsResponse { return ListSegmentsResponse( nextToken: json['nextToken'] as String?, segments: (json['segments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Segment.fromJson(e as Map)) .toList(), ); @@ -4563,7 +4561,7 @@ class PutProjectEventsResponse { factory PutProjectEventsResponse.fromJson(Map json) { return PutProjectEventsResponse( eventResults: (json['eventResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutProjectEventsResultEntry.fromJson(e as Map)) .toList(), @@ -4786,7 +4784,7 @@ class ScheduledSplit { groupWeights: (json['groupWeights'] as Map?) ?.map((k, e) => MapEntry(k, e as int)), segmentOverrides: (json['segmentOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentOverride.fromJson(e as Map)) .toList(), ); @@ -4890,7 +4888,7 @@ class ScheduledSplitsLaunchDefinition { factory ScheduledSplitsLaunchDefinition.fromJson(Map json) { return ScheduledSplitsLaunchDefinition( steps: (json['steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduledSplit.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/f_sx/v2018_03_01.dart b/aws_client/lib/src/generated/f_sx/v2018_03_01.dart index 46cfbc205..c388240dc 100644 --- a/aws_client/lib/src/generated/f_sx/v2018_03_01.dart +++ b/aws_client/lib/src/generated/f_sx/v2018_03_01.dart @@ -3917,7 +3917,7 @@ class AggregateConfiguration { factory AggregateConfiguration.fromJson(Map json) { return AggregateConfiguration( aggregates: (json['Aggregates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), totalConstituents: json['TotalConstituents'] as int?, @@ -4048,7 +4048,7 @@ class AssociateFileSystemAliasesResponse { Map json) { return AssociateFileSystemAliasesResponse( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), ); @@ -4099,7 +4099,7 @@ class AutoExportPolicy { factory AutoExportPolicy.fromJson(Map json) { return AutoExportPolicy( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventType.fromString((e as String))) .toList(), ); @@ -4149,7 +4149,7 @@ class AutoImportPolicy { factory AutoImportPolicy.fromJson(Map json) { return AutoImportPolicy( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventType.fromString((e as String))) .toList(), ); @@ -4375,7 +4375,7 @@ class Backup { sourceBackupId: json['SourceBackupId'] as String?, sourceBackupRegion: json['SourceBackupRegion'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), volume: json['Volume'] != null @@ -4683,7 +4683,7 @@ class CopySnapshotAndUpdateVolumeResponse { Map json) { return CopySnapshotAndUpdateVolumeResponse( administrativeActions: (json['AdministrativeActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdministrativeAction.fromJson(e as Map)) .toList(), lifecycle: @@ -6551,7 +6551,7 @@ class DataRepositoryAssociation { dataRepositoryPath: json['DataRepositoryPath'] as String?, dataRepositorySubdirectories: (json['DataRepositorySubdirectories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failureDetails: json['FailureDetails'] != null @@ -6575,7 +6575,7 @@ class DataRepositoryAssociation { json['S3'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6960,10 +6960,8 @@ class DataRepositoryTask { : null, fileCacheId: json['FileCacheId'] as String?, fileSystemId: json['FileSystemId'] as String?, - paths: (json['Paths'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + paths: + (json['Paths'] as List?)?.nonNulls.map((e) => e as String).toList(), releaseConfiguration: json['ReleaseConfiguration'] != null ? ReleaseConfiguration.fromJson( json['ReleaseConfiguration'] as Map) @@ -6978,7 +6976,7 @@ class DataRepositoryTask { json['Status'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7359,7 +7357,7 @@ class DeleteFileSystemLustreResponse { return DeleteFileSystemLustreResponse( finalBackupId: json['FinalBackupId'] as String?, finalBackupTags: (json['FinalBackupTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7441,7 +7439,7 @@ class DeleteFileSystemOpenZFSResponse { return DeleteFileSystemOpenZFSResponse( finalBackupId: json['FinalBackupId'] as String?, finalBackupTags: (json['FinalBackupTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7562,7 +7560,7 @@ class DeleteFileSystemWindowsResponse { return DeleteFileSystemWindowsResponse( finalBackupId: json['FinalBackupId'] as String?, finalBackupTags: (json['FinalBackupTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7711,7 +7709,7 @@ class DeleteVolumeOntapResponse { return DeleteVolumeOntapResponse( finalBackupId: json['FinalBackupId'] as String?, finalBackupTags: (json['FinalBackupTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7806,7 +7804,7 @@ class DescribeBackupsResponse { factory DescribeBackupsResponse.fromJson(Map json) { return DescribeBackupsResponse( backups: (json['Backups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Backup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7837,7 +7835,7 @@ class DescribeDataRepositoryAssociationsResponse { Map json) { return DescribeDataRepositoryAssociationsResponse( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataRepositoryAssociation.fromJson(e as Map)) .toList(), @@ -7869,7 +7867,7 @@ class DescribeDataRepositoryTasksResponse { Map json) { return DescribeDataRepositoryTasksResponse( dataRepositoryTasks: (json['DataRepositoryTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataRepositoryTask.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7900,7 +7898,7 @@ class DescribeFileCachesResponse { factory DescribeFileCachesResponse.fromJson(Map json) { return DescribeFileCachesResponse( fileCaches: (json['FileCaches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileCache.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7937,7 +7935,7 @@ class DescribeFileSystemAliasesResponse { Map json) { return DescribeFileSystemAliasesResponse( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7972,7 +7970,7 @@ class DescribeFileSystemsResponse { factory DescribeFileSystemsResponse.fromJson(Map json) { return DescribeFileSystemsResponse( fileSystems: (json['FileSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8032,7 +8030,7 @@ class DescribeSnapshotsResponse { return DescribeSnapshotsResponse( nextToken: json['NextToken'] as String?, snapshots: (json['Snapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Snapshot.fromJson(e as Map)) .toList(), ); @@ -8065,7 +8063,7 @@ class DescribeStorageVirtualMachinesResponse { return DescribeStorageVirtualMachinesResponse( nextToken: json['NextToken'] as String?, storageVirtualMachines: (json['StorageVirtualMachines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageVirtualMachine.fromJson(e as Map)) .toList(), ); @@ -8098,7 +8096,7 @@ class DescribeVolumesResponse { return DescribeVolumesResponse( nextToken: json['NextToken'] as String?, volumes: (json['Volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -8131,7 +8129,7 @@ class DisassociateFileSystemAliasesResponse { Map json) { return DisassociateFileSystemAliasesResponse( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), ); @@ -8375,7 +8373,7 @@ class FileCache { dNSName: json['DNSName'] as String?, dataRepositoryAssociationIds: (json['DataRepositoryAssociationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failureDetails: json['FailureDetails'] != null @@ -8394,14 +8392,14 @@ class FileCache { json['LustreConfiguration'] as Map) : null, networkInterfaceIds: (json['NetworkInterfaceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ownerId: json['OwnerId'] as String?, resourceARN: json['ResourceARN'] as String?, storageCapacity: json['StorageCapacity'] as int?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -8551,7 +8549,7 @@ class FileCacheCreating { dNSName: json['DNSName'] as String?, dataRepositoryAssociationIds: (json['DataRepositoryAssociationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failureDetails: json['FailureDetails'] != null @@ -8570,18 +8568,18 @@ class FileCacheCreating { json['LustreConfiguration'] as Map) : null, networkInterfaceIds: (json['NetworkInterfaceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ownerId: json['OwnerId'] as String?, resourceARN: json['ResourceARN'] as String?, storageCapacity: json['StorageCapacity'] as int?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -9104,7 +9102,7 @@ class FileSystem { factory FileSystem.fromJson(Map json) { return FileSystem( administrativeActions: (json['AdministrativeActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdministrativeAction.fromJson(e as Map)) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -9125,7 +9123,7 @@ class FileSystem { json['LustreConfiguration'] as Map) : null, networkInterfaceIds: (json['NetworkInterfaceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ontapConfiguration: json['OntapConfiguration'] != null @@ -9142,11 +9140,11 @@ class FileSystem { storageType: (json['StorageType'] as String?)?.let(StorageType.fromString), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -9231,7 +9229,7 @@ class FileSystemEndpoint { return FileSystemEndpoint( dNSName: json['DNSName'] as String?, ipAddresses: (json['IpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9483,7 +9481,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -9904,7 +9902,7 @@ class LustreRootSquashConfiguration { factory LustreRootSquashConfiguration.fromJson(Map json) { return LustreRootSquashConfiguration( noSquashNids: (json['NoSquashNids'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rootSquash: json['RootSquash'] as String?, @@ -9951,10 +9949,8 @@ class NFSDataRepositoryConfiguration { ? AutoExportPolicy.fromJson( json['AutoExportPolicy'] as Map) : null, - dnsIps: (json['DnsIps'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + dnsIps: + (json['DnsIps'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -10156,7 +10152,7 @@ class OntapFileSystemConfiguration { hAPairs: json['HAPairs'] as int?, preferredSubnetId: json['PreferredSubnetId'] as String?, routeTableIds: (json['RouteTableIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), throughputCapacity: json['ThroughputCapacity'] as int?, @@ -10484,10 +10480,8 @@ class OpenZFSClientConfiguration { factory OpenZFSClientConfiguration.fromJson(Map json) { return OpenZFSClientConfiguration( clients: json['Clients'] as String, - options: (json['Options'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + options: + (json['Options'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -10724,7 +10718,7 @@ class OpenZFSFileSystemConfiguration { preferredSubnetId: json['PreferredSubnetId'] as String?, rootVolumeId: json['RootVolumeId'] as String?, routeTableIds: (json['RouteTableIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), throughputCapacity: json['ThroughputCapacity'] as int?, @@ -10783,7 +10777,7 @@ class OpenZFSNfsExport { factory OpenZFSNfsExport.fromJson(Map json) { return OpenZFSNfsExport( clientConfigurations: (json['ClientConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => OpenZFSClientConfiguration.fromJson(e as Map)) .toList(), @@ -11051,7 +11045,7 @@ class OpenZFSVolumeConfiguration { deleteIntermediateSnaphots: json['DeleteIntermediateSnaphots'] as bool?, destinationSnapshot: json['DestinationSnapshot'] as String?, nfsExports: (json['NfsExports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpenZFSNfsExport.fromJson(e as Map)) .toList(), originSnapshot: json['OriginSnapshot'] != null @@ -11067,7 +11061,7 @@ class OpenZFSVolumeConfiguration { storageCapacityReservationGiB: json['StorageCapacityReservationGiB'] as int?, userAndGroupQuotas: (json['UserAndGroupQuotas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpenZFSUserOrGroupQuota.fromJson(e as Map)) .toList(), @@ -11290,7 +11284,7 @@ class RestoreVolumeFromSnapshotResponse { Map json) { return RestoreVolumeFromSnapshotResponse( administrativeActions: (json['AdministrativeActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdministrativeAction.fromJson(e as Map)) .toList(), lifecycle: @@ -11498,10 +11492,8 @@ class SelfManagedActiveDirectoryAttributes { factory SelfManagedActiveDirectoryAttributes.fromJson( Map json) { return SelfManagedActiveDirectoryAttributes( - dnsIps: (json['DnsIps'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + dnsIps: + (json['DnsIps'] as List?)?.nonNulls.map((e) => e as String).toList(), domainName: json['DomainName'] as String?, fileSystemAdministratorsGroup: json['FileSystemAdministratorsGroup'] as String?, @@ -11910,7 +11902,7 @@ class Snapshot { factory Snapshot.fromJson(Map json) { return Snapshot( administrativeActions: (json['AdministrativeActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdministrativeAction.fromJson(e as Map)) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -11924,7 +11916,7 @@ class Snapshot { resourceARN: json['ResourceARN'] as String?, snapshotId: json['SnapshotId'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), volumeId: json['VolumeId'] as String?, @@ -12173,7 +12165,7 @@ class StorageVirtualMachine { subtype: (json['Subtype'] as String?) ?.let(StorageVirtualMachineSubtype.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), uuid: json['UUID'] as String?, @@ -12369,7 +12361,7 @@ class SvmEndpoint { return SvmEndpoint( dNSName: json['DNSName'] as String?, ipAddresses: (json['IpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -13641,7 +13633,7 @@ class Volume { factory Volume.fromJson(Map json) { return Volume( administrativeActions: (json['AdministrativeActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdministrativeAction.fromJson(e as Map)) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -13663,7 +13655,7 @@ class Volume { : null, resourceARN: json['ResourceARN'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), volumeId: json['VolumeId'] as String?, @@ -14153,7 +14145,7 @@ class WindowsFileSystemConfiguration { return WindowsFileSystemConfiguration( activeDirectoryId: json['ActiveDirectoryId'] as String?, aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), auditLogConfiguration: json['AuditLogConfiguration'] != null @@ -14173,7 +14165,7 @@ class WindowsFileSystemConfiguration { : null, maintenanceOperationsInProgress: (json['MaintenanceOperationsInProgress'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemMaintenanceOperation.fromString((e as String))) .toList(), preferredFileServerIp: json['PreferredFileServerIp'] as String?, diff --git a/aws_client/lib/src/generated/finspace/v2021_03_12.dart b/aws_client/lib/src/generated/finspace/v2021_03_12.dart index e5101f299..4951ac9b5 100644 --- a/aws_client/lib/src/generated/finspace/v2021_03_12.dart +++ b/aws_client/lib/src/generated/finspace/v2021_03_12.dart @@ -2849,7 +2849,7 @@ class CreateKxChangesetResponse { factory CreateKxChangesetResponse.fromJson(Map json) { return CreateKxChangesetResponse( changeRequests: (json['changeRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeRequest.fromJson(e as Map)) .toList(), changesetId: json['changesetId'] as String?, @@ -3089,7 +3089,7 @@ class CreateKxClusterResponse { availabilityZoneId: json['availabilityZoneId'] as String?, azMode: (json['azMode'] as String?)?.let(KxAzMode.fromString), cacheStorageConfigurations: (json['cacheStorageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxCacheStorageConfiguration.fromJson(e as Map)) .toList(), @@ -3105,12 +3105,12 @@ class CreateKxClusterResponse { ? CodeConfiguration.fromJson(json['code'] as Map) : null, commandLineArguments: (json['commandLineArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxCommandLineArgument.fromJson(e as Map)) .toList(), createdTimestamp: timeStampFromJson(json['createdTimestamp']), databases: (json['databases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDatabaseConfiguration.fromJson(e as Map)) .toList(), @@ -3134,7 +3134,7 @@ class CreateKxClusterResponse { json['tickerplantLogConfiguration'] as Map) : null, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), vpcConfiguration: json['vpcConfiguration'] != null @@ -3366,7 +3366,7 @@ class CreateKxDataviewResponse { lastModifiedTimestamp: timeStampFromJson(json['lastModifiedTimestamp']), readWrite: json['readWrite'] as bool?, segmentConfigurations: (json['segmentConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDataviewSegmentConfiguration.fromJson( e as Map)) .toList(), @@ -3707,7 +3707,7 @@ class CreateKxVolumeResponse { factory CreateKxVolumeResponse.fromJson(Map json) { return CreateKxVolumeResponse( availabilityZoneIds: (json['availabilityZoneIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), azMode: (json['azMode'] as String?)?.let(KxAzMode.fromString), @@ -4260,7 +4260,7 @@ class GetKxChangesetResponse { return GetKxChangesetResponse( activeFromTimestamp: timeStampFromJson(json['activeFromTimestamp']), changeRequests: (json['changeRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeRequest.fromJson(e as Map)) .toList(), changesetId: json['changesetId'] as String?, @@ -4497,7 +4497,7 @@ class GetKxClusterResponse { availabilityZoneId: json['availabilityZoneId'] as String?, azMode: (json['azMode'] as String?)?.let(KxAzMode.fromString), cacheStorageConfigurations: (json['cacheStorageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxCacheStorageConfiguration.fromJson(e as Map)) .toList(), @@ -4513,12 +4513,12 @@ class GetKxClusterResponse { ? CodeConfiguration.fromJson(json['code'] as Map) : null, commandLineArguments: (json['commandLineArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxCommandLineArgument.fromJson(e as Map)) .toList(), createdTimestamp: timeStampFromJson(json['createdTimestamp']), databases: (json['databases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDatabaseConfiguration.fromJson(e as Map)) .toList(), @@ -4541,7 +4541,7 @@ class GetKxClusterResponse { json['tickerplantLogConfiguration'] as Map) : null, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), vpcConfiguration: json['vpcConfiguration'] != null @@ -4820,7 +4820,7 @@ class GetKxDataviewResponse { factory GetKxDataviewResponse.fromJson(Map json) { return GetKxDataviewResponse( activeVersions: (json['activeVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDataviewActiveVersion.fromJson(e as Map)) .toList(), @@ -4836,7 +4836,7 @@ class GetKxDataviewResponse { lastModifiedTimestamp: timeStampFromJson(json['lastModifiedTimestamp']), readWrite: json['readWrite'] as bool?, segmentConfigurations: (json['segmentConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDataviewSegmentConfiguration.fromJson( e as Map)) .toList(), @@ -4961,14 +4961,14 @@ class GetKxEnvironmentResponse { factory GetKxEnvironmentResponse.fromJson(Map json) { return GetKxEnvironmentResponse( availabilityZoneIds: (json['availabilityZoneIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), awsAccountId: json['awsAccountId'] as String?, certificateAuthorityArn: json['certificateAuthorityArn'] as String?, creationTimestamp: timeStampFromJson(json['creationTimestamp']), customDNSConfiguration: (json['customDNSConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomDNSServer.fromJson(e as Map)) .toList(), dedicatedServiceAccountId: json['dedicatedServiceAccountId'] as String?, @@ -5142,7 +5142,7 @@ class GetKxScalingGroupResponse { return GetKxScalingGroupResponse( availabilityZoneId: json['availabilityZoneId'] as String?, clusters: (json['clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdTimestamp: timeStampFromJson(json['createdTimestamp']), @@ -5325,11 +5325,11 @@ class GetKxVolumeResponse { factory GetKxVolumeResponse.fromJson(Map json) { return GetKxVolumeResponse( attachedClusters: (json['attachedClusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxAttachedCluster.fromJson(e as Map)) .toList(), availabilityZoneIds: (json['availabilityZoneIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), azMode: (json['azMode'] as String?)?.let(KxAzMode.fromString), @@ -5788,7 +5788,7 @@ class KxCluster { status: (json['status'] as String?)?.let(KxClusterStatus.fromString), statusReason: json['statusReason'] as String?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -5984,10 +5984,8 @@ class KxDatabaseCacheConfiguration { factory KxDatabaseCacheConfiguration.fromJson(Map json) { return KxDatabaseCacheConfiguration( cacheType: json['cacheType'] as String, - dbPaths: (json['dbPaths'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + dbPaths: + (json['dbPaths'] as List).nonNulls.map((e) => e as String).toList(), dataviewName: json['dataviewName'] as String?, ); } @@ -6035,7 +6033,7 @@ class KxDatabaseConfiguration { return KxDatabaseConfiguration( databaseName: json['databaseName'] as String, cacheConfigurations: (json['cacheConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDatabaseCacheConfiguration.fromJson(e as Map)) .toList(), @@ -6143,13 +6141,13 @@ class KxDataviewActiveVersion { factory KxDataviewActiveVersion.fromJson(Map json) { return KxDataviewActiveVersion( attachedClusters: (json['attachedClusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), changesetId: json['changesetId'] as String?, createdTimestamp: timeStampFromJson(json['createdTimestamp']), segmentConfigurations: (json['segmentConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDataviewSegmentConfiguration.fromJson( e as Map)) .toList(), @@ -6202,7 +6200,7 @@ class KxDataviewConfiguration { dataviewName: json['dataviewName'] as String?, dataviewVersionId: json['dataviewVersionId'] as String?, segmentConfigurations: (json['segmentConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDataviewSegmentConfiguration.fromJson( e as Map)) .toList(), @@ -6304,7 +6302,7 @@ class KxDataviewListEntry { factory KxDataviewListEntry.fromJson(Map json) { return KxDataviewListEntry( activeVersions: (json['activeVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDataviewActiveVersion.fromJson(e as Map)) .toList(), @@ -6320,7 +6318,7 @@ class KxDataviewListEntry { lastModifiedTimestamp: timeStampFromJson(json['lastModifiedTimestamp']), readWrite: json['readWrite'] as bool?, segmentConfigurations: (json['segmentConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDataviewSegmentConfiguration.fromJson( e as Map)) .toList(), @@ -6397,10 +6395,8 @@ class KxDataviewSegmentConfiguration { factory KxDataviewSegmentConfiguration.fromJson(Map json) { return KxDataviewSegmentConfiguration( - dbPaths: (json['dbPaths'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + dbPaths: + (json['dbPaths'] as List).nonNulls.map((e) => e as String).toList(), volumeName: json['volumeName'] as String, onDemand: json['onDemand'] as bool?, ); @@ -6602,14 +6598,14 @@ class KxEnvironment { factory KxEnvironment.fromJson(Map json) { return KxEnvironment( availabilityZoneIds: (json['availabilityZoneIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), awsAccountId: json['awsAccountId'] as String?, certificateAuthorityArn: json['certificateAuthorityArn'] as String?, creationTimestamp: timeStampFromJson(json['creationTimestamp']), customDNSConfiguration: (json['customDNSConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomDNSServer.fromJson(e as Map)) .toList(), dedicatedServiceAccountId: json['dedicatedServiceAccountId'] as String?, @@ -6934,7 +6930,7 @@ class KxScalingGroup { return KxScalingGroup( availabilityZoneId: json['availabilityZoneId'] as String?, clusters: (json['clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdTimestamp: timeStampFromJson(json['createdTimestamp']), @@ -7181,7 +7177,7 @@ class KxVolume { factory KxVolume.fromJson(Map json) { return KxVolume( availabilityZoneIds: (json['availabilityZoneIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), azMode: (json['azMode'] as String?)?.let(KxAzMode.fromString), @@ -7274,7 +7270,7 @@ class ListEnvironmentsResponse { factory ListEnvironmentsResponse.fromJson(Map json) { return ListEnvironmentsResponse( environments: (json['environments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Environment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7306,7 +7302,7 @@ class ListKxChangesetsResponse { factory ListKxChangesetsResponse.fromJson(Map json) { return ListKxChangesetsResponse( kxChangesets: (json['kxChangesets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxChangesetListEntry.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7339,7 +7335,7 @@ class ListKxClusterNodesResponse { return ListKxClusterNodesResponse( nextToken: json['nextToken'] as String?, nodes: (json['nodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxNode.fromJson(e as Map)) .toList(), ); @@ -7370,7 +7366,7 @@ class ListKxClustersResponse { factory ListKxClustersResponse.fromJson(Map json) { return ListKxClustersResponse( kxClusterSummaries: (json['kxClusterSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxCluster.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7402,7 +7398,7 @@ class ListKxDatabasesResponse { factory ListKxDatabasesResponse.fromJson(Map json) { return ListKxDatabasesResponse( kxDatabases: (json['kxDatabases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDatabaseListEntry.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7434,7 +7430,7 @@ class ListKxDataviewsResponse { factory ListKxDataviewsResponse.fromJson(Map json) { return ListKxDataviewsResponse( kxDataviews: (json['kxDataviews'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDataviewListEntry.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7466,7 +7462,7 @@ class ListKxEnvironmentsResponse { factory ListKxEnvironmentsResponse.fromJson(Map json) { return ListKxEnvironmentsResponse( environments: (json['environments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxEnvironment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7499,7 +7495,7 @@ class ListKxScalingGroupsResponse { return ListKxScalingGroupsResponse( nextToken: json['nextToken'] as String?, scalingGroups: (json['scalingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxScalingGroup.fromJson(e as Map)) .toList(), ); @@ -7531,7 +7527,7 @@ class ListKxUsersResponse { return ListKxUsersResponse( nextToken: json['nextToken'] as String?, users: (json['users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxUser.fromJson(e as Map)) .toList(), ); @@ -7562,7 +7558,7 @@ class ListKxVolumesResponse { factory ListKxVolumesResponse.fromJson(Map json) { return ListKxVolumesResponse( kxVolumeSummaries: (json['kxVolumeSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxVolume.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7773,7 +7769,7 @@ class TickerplantLogConfiguration { factory TickerplantLogConfiguration.fromJson(Map json) { return TickerplantLogConfiguration( tickerplantLogVolumes: (json['tickerplantLogVolumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7817,7 +7813,7 @@ class TransitGatewayConfiguration { transitGatewayID: json['transitGatewayID'] as String, attachmentNetworkAclConfiguration: (json['attachmentNetworkAclConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkACLEntry.fromJson(e as Map)) .toList(), ); @@ -8032,7 +8028,7 @@ class UpdateKxDataviewResponse { factory UpdateKxDataviewResponse.fromJson(Map json) { return UpdateKxDataviewResponse( activeVersions: (json['activeVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDataviewActiveVersion.fromJson(e as Map)) .toList(), @@ -8048,7 +8044,7 @@ class UpdateKxDataviewResponse { lastModifiedTimestamp: timeStampFromJson(json['lastModifiedTimestamp']), readWrite: json['readWrite'] as bool?, segmentConfigurations: (json['segmentConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxDataviewSegmentConfiguration.fromJson( e as Map)) .toList(), @@ -8166,13 +8162,13 @@ class UpdateKxEnvironmentNetworkResponse { Map json) { return UpdateKxEnvironmentNetworkResponse( availabilityZoneIds: (json['availabilityZoneIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), awsAccountId: json['awsAccountId'] as String?, creationTimestamp: timeStampFromJson(json['creationTimestamp']), customDNSConfiguration: (json['customDNSConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomDNSServer.fromJson(e as Map)) .toList(), dedicatedServiceAccountId: json['dedicatedServiceAccountId'] as String?, @@ -8309,13 +8305,13 @@ class UpdateKxEnvironmentResponse { factory UpdateKxEnvironmentResponse.fromJson(Map json) { return UpdateKxEnvironmentResponse( availabilityZoneIds: (json['availabilityZoneIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), awsAccountId: json['awsAccountId'] as String?, creationTimestamp: timeStampFromJson(json['creationTimestamp']), customDNSConfiguration: (json['customDNSConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomDNSServer.fromJson(e as Map)) .toList(), dedicatedServiceAccountId: json['dedicatedServiceAccountId'] as String?, @@ -8524,11 +8520,11 @@ class UpdateKxVolumeResponse { factory UpdateKxVolumeResponse.fromJson(Map json) { return UpdateKxVolumeResponse( attachedClusters: (json['attachedClusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KxAttachedCluster.fromJson(e as Map)) .toList(), availabilityZoneIds: (json['availabilityZoneIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), azMode: (json['azMode'] as String?)?.let(KxAzMode.fromString), @@ -8663,11 +8659,11 @@ class VpcConfiguration { ipAddressType: (json['ipAddressType'] as String?)?.let(IPAddressType.fromString), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, diff --git a/aws_client/lib/src/generated/finspace_data/v2020_07_13.dart b/aws_client/lib/src/generated/finspace_data/v2020_07_13.dart index c8c4329ac..c19fe0152 100644 --- a/aws_client/lib/src/generated/finspace_data/v2020_07_13.dart +++ b/aws_client/lib/src/generated/finspace_data/v2020_07_13.dart @@ -2426,11 +2426,11 @@ class DataViewSummary { : null, lastModifiedTime: json['lastModifiedTime'] as int?, partitionColumns: (json['partitionColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sortColumns: (json['sortColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(DataViewStatus.fromString), @@ -3033,11 +3033,11 @@ class GetDataViewResponse { : null, lastModifiedTime: json['lastModifiedTime'] as int?, partitionColumns: (json['partitionColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sortColumns: (json['sortColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(DataViewStatus.fromString), @@ -3507,7 +3507,7 @@ class ListChangesetsResponse { factory ListChangesetsResponse.fromJson(Map json) { return ListChangesetsResponse( changesets: (json['changesets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangesetSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3539,7 +3539,7 @@ class ListDataViewsResponse { factory ListDataViewsResponse.fromJson(Map json) { return ListDataViewsResponse( dataViews: (json['dataViews'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataViewSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3572,7 +3572,7 @@ class ListDatasetsResponse { factory ListDatasetsResponse.fromJson(Map json) { return ListDatasetsResponse( datasets: (json['datasets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Dataset.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3606,7 +3606,7 @@ class ListPermissionGroupsByUserResponse { return ListPermissionGroupsByUserResponse( nextToken: json['nextToken'] as String?, permissionGroups: (json['permissionGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PermissionGroupByUser.fromJson(e as Map)) .toList(), ); @@ -3638,7 +3638,7 @@ class ListPermissionGroupsResponse { return ListPermissionGroupsResponse( nextToken: json['nextToken'] as String?, permissionGroups: (json['permissionGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PermissionGroup.fromJson(e as Map)) .toList(), ); @@ -3671,7 +3671,7 @@ class ListUsersByPermissionGroupResponse { return ListUsersByPermissionGroupResponse( nextToken: json['nextToken'] as String?, users: (json['users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserByPermissionGroup.fromJson(e as Map)) .toList(), ); @@ -3703,7 +3703,7 @@ class ListUsersResponse { return ListUsersResponse( nextToken: json['nextToken'] as String?, users: (json['users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -3808,7 +3808,7 @@ class PermissionGroup { factory PermissionGroup.fromJson(Map json) { return PermissionGroup( applicationPermissions: (json['applicationPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationPermission.fromString((e as String))) .toList(), createTime: json['createTime'] as int?, @@ -4065,11 +4065,11 @@ class SchemaDefinition { factory SchemaDefinition.fromJson(Map json) { return SchemaDefinition( columns: (json['columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnDefinition.fromJson(e as Map)) .toList(), primaryKeyColumns: (json['primaryKeyColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/firehose/v2015_08_04.dart b/aws_client/lib/src/generated/firehose/v2015_08_04.dart index 55f4bf5c4..928ae5c6c 100644 --- a/aws_client/lib/src/generated/firehose/v2015_08_04.dart +++ b/aws_client/lib/src/generated/firehose/v2015_08_04.dart @@ -2323,7 +2323,7 @@ class DeliveryStreamDescription { deliveryStreamType: DeliveryStreamType.fromString((json['DeliveryStreamType'] as String)), destinations: (json['Destinations'] as List) - .whereNotNull() + .nonNulls .map( (e) => DestinationDescription.fromJson(e as Map)) .toList(), @@ -3925,7 +3925,7 @@ class HiveJsonSerDe { factory HiveJsonSerDe.fromJson(Map json) { return HiveJsonSerDe( timestampFormats: (json['TimestampFormats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4360,7 +4360,7 @@ class HttpEndpointRequestConfiguration { factory HttpEndpointRequestConfiguration.fromJson(Map json) { return HttpEndpointRequestConfiguration( commonAttributes: (json['CommonAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpEndpointCommonAttribute.fromJson(e as Map)) .toList(), @@ -4582,7 +4582,7 @@ class ListDeliveryStreamsOutput { factory ListDeliveryStreamsOutput.fromJson(Map json) { return ListDeliveryStreamsOutput( deliveryStreamNames: (json['DeliveryStreamNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), hasMoreDeliveryStreams: json['HasMoreDeliveryStreams'] as bool, @@ -4619,7 +4619,7 @@ class ListTagsForDeliveryStreamOutput { return ListTagsForDeliveryStreamOutput( hasMoreTags: json['HasMoreTags'] as bool, tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4898,7 +4898,7 @@ class OrcSerDe { return OrcSerDe( blockSizeBytes: json['BlockSizeBytes'] as int?, bloomFilterColumns: (json['BloomFilterColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), bloomFilterFalsePositiveProbability: @@ -5095,7 +5095,7 @@ class ProcessingConfiguration { return ProcessingConfiguration( enabled: json['Enabled'] as bool?, processors: (json['Processors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Processor.fromJson(e as Map)) .toList(), ); @@ -5134,7 +5134,7 @@ class Processor { return Processor( type: ProcessorType.fromString((json['Type'] as String)), parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProcessorParameter.fromJson(e as Map)) .toList(), ); @@ -5254,7 +5254,7 @@ class PutRecordBatchOutput { return PutRecordBatchOutput( failedPutCount: json['FailedPutCount'] as int, requestResponses: (json['RequestResponses'] as List) - .whereNotNull() + .nonNulls .map((e) => PutRecordBatchResponseEntry.fromJson(e as Map)) .toList(), @@ -7374,13 +7374,11 @@ class VpcConfigurationDescription { return VpcConfigurationDescription( roleARN: json['RoleARN'] as String, securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['SubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['SubnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String, ); } diff --git a/aws_client/lib/src/generated/fis/v2020_12_01.dart b/aws_client/lib/src/generated/fis/v2020_12_01.dart index 9ef39a214..9903c8f03 100644 --- a/aws_client/lib/src/generated/fis/v2020_12_01.dart +++ b/aws_client/lib/src/generated/fis/v2020_12_01.dart @@ -1452,7 +1452,7 @@ class Experiment { ? ExperimentState.fromJson(json['state'] as Map) : null, stopConditions: (json['stopConditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperimentStopCondition.fromJson(e as Map)) .toList(), @@ -1550,7 +1550,7 @@ class ExperimentAction { parameters: (json['parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), startAfter: (json['startAfter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), startTime: timeStampFromJson(json['startTime']), @@ -1965,14 +1965,14 @@ class ExperimentTarget { factory ExperimentTarget.fromJson(Map json) { return ExperimentTarget( filters: (json['filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ExperimentTargetFilter.fromJson(e as Map)) .toList(), parameters: (json['parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), resourceArns: (json['resourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resourceTags: (json['resourceTags'] as Map?) @@ -2092,10 +2092,8 @@ class ExperimentTargetFilter { factory ExperimentTargetFilter.fromJson(Map json) { return ExperimentTargetFilter( path: json['path'] as String?, - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2186,7 +2184,7 @@ class ExperimentTemplate { : null, roleArn: json['roleArn'] as String?, stopConditions: (json['stopConditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperimentTemplateStopCondition.fromJson( e as Map)) .toList(), @@ -2269,7 +2267,7 @@ class ExperimentTemplateAction { parameters: (json['parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), startAfter: (json['startAfter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), targets: (json['targets'] as Map?) @@ -2595,14 +2593,14 @@ class ExperimentTemplateTarget { factory ExperimentTemplateTarget.fromJson(Map json) { return ExperimentTemplateTarget( filters: (json['filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperimentTemplateTargetFilter.fromJson( e as Map)) .toList(), parameters: (json['parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), resourceArns: (json['resourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resourceTags: (json['resourceTags'] as Map?) @@ -2646,10 +2644,8 @@ class ExperimentTemplateTargetFilter { factory ExperimentTemplateTargetFilter.fromJson(Map json) { return ExperimentTemplateTargetFilter( path: json['path'] as String?, - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2859,7 +2855,7 @@ class ListActionsResponse { factory ListActionsResponse.fromJson(Map json) { return ListActionsResponse( actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2894,7 +2890,7 @@ class ListExperimentResolvedTargetsResponse { return ListExperimentResolvedTargetsResponse( nextToken: json['nextToken'] as String?, resolvedTargets: (json['resolvedTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolvedTarget.fromJson(e as Map)) .toList(), ); @@ -2930,7 +2926,7 @@ class ListExperimentTargetAccountConfigurationsResponse { nextToken: json['nextToken'] as String?, targetAccountConfigurations: (json['targetAccountConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperimentTargetAccountConfigurationSummary.fromJson( e as Map)) .toList(), @@ -2964,7 +2960,7 @@ class ListExperimentTemplatesResponse { factory ListExperimentTemplatesResponse.fromJson(Map json) { return ListExperimentTemplatesResponse( experimentTemplates: (json['experimentTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperimentTemplateSummary.fromJson(e as Map)) .toList(), @@ -2999,7 +2995,7 @@ class ListExperimentsResponse { factory ListExperimentsResponse.fromJson(Map json) { return ListExperimentsResponse( experiments: (json['experiments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperimentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3058,7 +3054,7 @@ class ListTargetAccountConfigurationsResponse { nextToken: json['nextToken'] as String?, targetAccountConfigurations: (json['targetAccountConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetAccountConfigurationSummary.fromJson( e as Map)) .toList(), @@ -3093,7 +3089,7 @@ class ListTargetResourceTypesResponse { return ListTargetResourceTypesResponse( nextToken: json['nextToken'] as String?, targetResourceTypes: (json['targetResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetResourceTypeSummary.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/fms/v2018_01_01.dart b/aws_client/lib/src/generated/fms/v2018_01_01.dart index 3e0817700..7c6d9903f 100644 --- a/aws_client/lib/src/generated/fms/v2018_01_01.dart +++ b/aws_client/lib/src/generated/fms/v2018_01_01.dart @@ -1990,7 +1990,7 @@ class AccountScope { factory AccountScope.fromJson(Map json) { return AccountScope( accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allAccountsEnabled: json['AllAccountsEnabled'] as bool?, @@ -2255,7 +2255,7 @@ class AppsListData { factory AppsListData.fromJson(Map json) { return AppsListData( appsList: (json['AppsList'] as List) - .whereNotNull() + .nonNulls .map((e) => App.fromJson(e as Map)) .toList(), listName: json['ListName'] as String, @@ -2267,7 +2267,7 @@ class AppsListData { ?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => App.fromJson(e as Map)) .toList())), ); @@ -2319,7 +2319,7 @@ class AppsListDataSummary { factory AppsListDataSummary.fromJson(Map json) { return AppsListDataSummary( appsList: (json['AppsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => App.fromJson(e as Map)) .toList(), listArn: json['ListArn'] as String?, @@ -2408,7 +2408,7 @@ class AwsEc2InstanceViolation { return AwsEc2InstanceViolation( awsEc2NetworkInterfaceViolations: (json['AwsEc2NetworkInterfaceViolations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2NetworkInterfaceViolation.fromJson( e as Map)) .toList(), @@ -2445,7 +2445,7 @@ class AwsEc2NetworkInterfaceViolation { factory AwsEc2NetworkInterfaceViolation.fromJson(Map json) { return AwsEc2NetworkInterfaceViolation( violatingSecurityGroups: (json['ViolatingSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), violationTarget: json['ViolationTarget'] as String?, @@ -2491,12 +2491,12 @@ class AwsVPCSecurityGroupViolation { factory AwsVPCSecurityGroupViolation.fromJson(Map json) { return AwsVPCSecurityGroupViolation( partialMatches: (json['PartialMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartialMatch.fromJson(e as Map)) .toList(), possibleSecurityGroupRemediationActions: (json['PossibleSecurityGroupRemediationActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityGroupRemediationAction.fromJson( e as Map)) .toList(), @@ -2539,7 +2539,7 @@ class BatchAssociateResourceResponse { factory BatchAssociateResourceResponse.fromJson(Map json) { return BatchAssociateResourceResponse( failedItems: (json['FailedItems'] as List) - .whereNotNull() + .nonNulls .map((e) => FailedItem.fromJson(e as Map)) .toList(), resourceSetIdentifier: json['ResourceSetIdentifier'] as String, @@ -2573,7 +2573,7 @@ class BatchDisassociateResourceResponse { Map json) { return BatchDisassociateResourceResponse( failedItems: (json['FailedItems'] as List) - .whereNotNull() + .nonNulls .map((e) => FailedItem.fromJson(e as Map)) .toList(), resourceSetIdentifier: json['ResourceSetIdentifier'] as String, @@ -2715,7 +2715,7 @@ class CreateNetworkAclEntriesAction { fMSCanRemediate: json['FMSCanRemediate'] as bool?, networkAclEntriesToBeCreated: (json['NetworkAclEntriesToBeCreated'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntryDescription.fromJson(e as Map)) .toList(), networkAclId: json['NetworkAclId'] != null @@ -2800,7 +2800,7 @@ class DeleteNetworkAclEntriesAction { fMSCanRemediate: json['FMSCanRemediate'] as bool?, networkAclEntriesToBeDeleted: (json['NetworkAclEntriesToBeDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntryDescription.fromJson(e as Map)) .toList(), networkAclId: json['NetworkAclId'] != null @@ -3042,7 +3042,7 @@ class DnsRuleGroupPriorityConflictViolation { conflictingPolicyId: json['ConflictingPolicyId'] as String?, conflictingPriority: json['ConflictingPriority'] as int?, unavailablePriorities: (json['UnavailablePriorities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), violationTarget: json['ViolationTarget'] as String?, @@ -3551,7 +3551,7 @@ class EntryViolation { return EntryViolation( actualEvaluationOrder: json['ActualEvaluationOrder'] as String?, entriesWithConflicts: (json['EntriesWithConflicts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntryDescription.fromJson(e as Map)) .toList(), entryAtExpectedEvaluationOrder: json['EntryAtExpectedEvaluationOrder'] != @@ -3560,7 +3560,7 @@ class EntryViolation { json['EntryAtExpectedEvaluationOrder'] as Map) : null, entryViolationReasons: (json['EntryViolationReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntryViolationReason.fromString((e as String))) .toList(), expectedEntry: json['ExpectedEntry'] != null @@ -3690,11 +3690,11 @@ class ExpectedRoute { factory ExpectedRoute.fromJson(Map json) { return ExpectedRoute( allowedTargets: (json['AllowedTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), contributingSubnets: (json['ContributingSubnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ipV4Cidr: json['IpV4Cidr'] as String?, @@ -4402,7 +4402,7 @@ class InvalidNetworkAclEntriesViolation { currentAssociatedNetworkAcl: json['CurrentAssociatedNetworkAcl'] as String?, entryViolations: (json['EntryViolations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntryViolation.fromJson(e as Map)) .toList(), subnet: json['Subnet'] as String?, @@ -4451,7 +4451,7 @@ class ListAdminAccountsForOrganizationResponse { Map json) { return ListAdminAccountsForOrganizationResponse( adminAccounts: (json['AdminAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdminAccountSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4489,7 +4489,7 @@ class ListAdminsManagingAccountResponse { Map json) { return ListAdminsManagingAccountResponse( adminAccounts: (json['AdminAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -4524,7 +4524,7 @@ class ListAppsListsResponse { factory ListAppsListsResponse.fromJson(Map json) { return ListAppsListsResponse( appsLists: (json['AppsLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppsListDataSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4563,7 +4563,7 @@ class ListComplianceStatusResponse { return ListComplianceStatusResponse( nextToken: json['NextToken'] as String?, policyComplianceStatusList: (json['PolicyComplianceStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => PolicyComplianceStatus.fromJson(e as Map)) .toList(), @@ -4600,7 +4600,7 @@ class ListDiscoveredResourcesResponse { factory ListDiscoveredResourcesResponse.fromJson(Map json) { return ListDiscoveredResourcesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DiscoveredResource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4637,7 +4637,7 @@ class ListMemberAccountsResponse { factory ListMemberAccountsResponse.fromJson(Map json) { return ListMemberAccountsResponse( memberAccounts: (json['MemberAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -4675,7 +4675,7 @@ class ListPoliciesResponse { return ListPoliciesResponse( nextToken: json['NextToken'] as String?, policyList: (json['PolicyList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicySummary.fromJson(e as Map)) .toList(), ); @@ -4710,7 +4710,7 @@ class ListProtocolsListsResponse { return ListProtocolsListsResponse( nextToken: json['NextToken'] as String?, protocolsLists: (json['ProtocolsLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtocolsListDataSummary.fromJson(e as Map)) .toList(), @@ -4746,7 +4746,7 @@ class ListResourceSetResourcesResponse { factory ListResourceSetResourcesResponse.fromJson(Map json) { return ListResourceSetResourcesResponse( items: (json['Items'] as List) - .whereNotNull() + .nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4783,7 +4783,7 @@ class ListResourceSetsResponse { return ListResourceSetsResponse( nextToken: json['NextToken'] as String?, resourceSets: (json['ResourceSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceSetSummary.fromJson(e as Map)) .toList(), ); @@ -4810,7 +4810,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4848,7 +4848,7 @@ class ListThirdPartyFirewallFirewallPoliciesResponse { nextToken: json['NextToken'] as String?, thirdPartyFirewallFirewallPolicies: (json['ThirdPartyFirewallFirewallPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThirdPartyFirewallFirewallPolicy.fromJson( e as Map)) .toList(), @@ -5064,11 +5064,11 @@ class NetworkAclEntrySet { forceRemediateForLastEntries: json['ForceRemediateForLastEntries'] as bool, firstEntries: (json['FirstEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkAclEntry.fromJson(e as Map)) .toList(), lastEntries: (json['LastEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkAclEntry.fromJson(e as Map)) .toList(), ); @@ -5190,7 +5190,7 @@ class NetworkFirewallBlackHoleRouteDetectedViolation { return NetworkFirewallBlackHoleRouteDetectedViolation( routeTableId: json['RouteTableId'] as String?, violatingRoutes: (json['ViolatingRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), violationTarget: json['ViolationTarget'] as String?, @@ -5283,12 +5283,12 @@ class NetworkFirewallInternetTrafficNotInspectedViolation { Map json) { return NetworkFirewallInternetTrafficNotInspectedViolation( actualFirewallSubnetRoutes: (json['ActualFirewallSubnetRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), actualInternetGatewayRoutes: (json['ActualInternetGatewayRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), currentFirewallSubnetRouteTable: @@ -5298,12 +5298,12 @@ class NetworkFirewallInternetTrafficNotInspectedViolation { expectedFirewallEndpoint: json['ExpectedFirewallEndpoint'] as String?, expectedFirewallSubnetRoutes: (json['ExpectedFirewallSubnetRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpectedRoute.fromJson(e as Map)) .toList(), expectedInternetGatewayRoutes: (json['ExpectedInternetGatewayRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpectedRoute.fromJson(e as Map)) .toList(), firewallSubnetId: json['FirewallSubnetId'] as String?, @@ -5314,7 +5314,7 @@ class NetworkFirewallInternetTrafficNotInspectedViolation { subnetAvailabilityZone: json['SubnetAvailabilityZone'] as String?, subnetId: json['SubnetId'] as String?, violatingRoutes: (json['ViolatingRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -5446,16 +5446,16 @@ class NetworkFirewallInvalidRouteConfigurationViolation { actualFirewallEndpoint: json['ActualFirewallEndpoint'] as String?, actualFirewallSubnetId: json['ActualFirewallSubnetId'] as String?, actualFirewallSubnetRoutes: (json['ActualFirewallSubnetRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), actualInternetGatewayRoutes: (json['ActualInternetGatewayRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), affectedSubnets: (json['AffectedSubnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), currentFirewallSubnetRouteTable: @@ -5466,12 +5466,12 @@ class NetworkFirewallInvalidRouteConfigurationViolation { expectedFirewallSubnetId: json['ExpectedFirewallSubnetId'] as String?, expectedFirewallSubnetRoutes: (json['ExpectedFirewallSubnetRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpectedRoute.fromJson(e as Map)) .toList(), expectedInternetGatewayRoutes: (json['ExpectedInternetGatewayRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpectedRoute.fromJson(e as Map)) .toList(), internetGatewayId: json['InternetGatewayId'] as String?, @@ -5612,7 +5612,7 @@ class NetworkFirewallMissingExpectedRoutesViolation { Map json) { return NetworkFirewallMissingExpectedRoutesViolation( expectedRoutes: (json['ExpectedRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpectedRoute.fromJson(e as Map)) .toList(), violationTarget: json['ViolationTarget'] as String?, @@ -5834,7 +5834,7 @@ class NetworkFirewallPolicyDescription { factory NetworkFirewallPolicyDescription.fromJson(Map json) { return NetworkFirewallPolicyDescription( statefulDefaultActions: (json['StatefulDefaultActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statefulEngineOptions: json['StatefulEngineOptions'] != null @@ -5842,24 +5842,24 @@ class NetworkFirewallPolicyDescription { json['StatefulEngineOptions'] as Map) : null, statefulRuleGroups: (json['StatefulRuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StatefulRuleGroup.fromJson(e as Map)) .toList(), statelessCustomActions: (json['StatelessCustomActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statelessDefaultActions: (json['StatelessDefaultActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statelessFragmentDefaultActions: (json['StatelessFragmentDefaultActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statelessRuleGroups: (json['StatelessRuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StatelessRuleGroup.fromJson(e as Map)) .toList(), ); @@ -6000,7 +6000,7 @@ class NetworkFirewallUnexpectedFirewallRoutesViolation { firewallSubnetId: json['FirewallSubnetId'] as String?, routeTableId: json['RouteTableId'] as String?, violatingRoutes: (json['ViolatingRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -6051,7 +6051,7 @@ class NetworkFirewallUnexpectedGatewayRoutesViolation { gatewayId: json['GatewayId'] as String?, routeTableId: json['RouteTableId'] as String?, violatingRoutes: (json['ViolatingRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -6139,7 +6139,7 @@ class OrganizationalUnitScope { excludeSpecifiedOrganizationalUnits: json['ExcludeSpecifiedOrganizationalUnits'] as bool?, organizationalUnits: (json['OrganizationalUnits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6181,7 +6181,7 @@ class PartialMatch { return PartialMatch( reference: json['Reference'] as String?, targetViolationReasons: (json['TargetViolationReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6409,25 +6409,25 @@ class Policy { json['DeleteUnusedFMManagedResources'] as bool?, excludeMap: (json['ExcludeMap'] as Map?)?.map((k, e) => MapEntry(CustomerPolicyScopeIdType.fromString(k), - (e as List).whereNotNull().map((e) => e as String).toList())), + (e as List).nonNulls.map((e) => e as String).toList())), includeMap: (json['IncludeMap'] as Map?)?.map((k, e) => MapEntry(CustomerPolicyScopeIdType.fromString(k), - (e as List).whereNotNull().map((e) => e as String).toList())), + (e as List).nonNulls.map((e) => e as String).toList())), policyDescription: json['PolicyDescription'] as String?, policyId: json['PolicyId'] as String?, policyStatus: (json['PolicyStatus'] as String?) ?.let(CustomerPolicyStatus.fromString), policyUpdateToken: json['PolicyUpdateToken'] as String?, resourceSetIds: (json['ResourceSetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), resourceTypeList: (json['ResourceTypeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6522,7 +6522,7 @@ class PolicyComplianceDetail { policyId: json['PolicyId'] as String?, policyOwner: json['PolicyOwner'] as String?, violators: (json['Violators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComplianceViolator.fromJson(e as Map)) .toList(), ); @@ -6590,7 +6590,7 @@ class PolicyComplianceStatus { factory PolicyComplianceStatus.fromJson(Map json) { return PolicyComplianceStatus( evaluationResults: (json['EvaluationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationResult.fromJson(e as Map)) .toList(), issueInfoMap: (json['IssueInfoMap'] as Map?)?.map( @@ -6816,7 +6816,7 @@ class PolicyTypeScope { return PolicyTypeScope( allPolicyTypesEnabled: json['AllPolicyTypesEnabled'] as bool?, policyTypes: (json['PolicyTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityServiceType.fromString((e as String))) .toList(), ); @@ -6854,7 +6854,7 @@ class PossibleRemediationAction { factory PossibleRemediationAction.fromJson(Map json) { return PossibleRemediationAction( orderedRemediationActions: (json['OrderedRemediationActions'] as List) - .whereNotNull() + .nonNulls .map((e) => RemediationActionWithOrder.fromJson(e as Map)) .toList(), @@ -6892,7 +6892,7 @@ class PossibleRemediationActions { factory PossibleRemediationActions.fromJson(Map json) { return PossibleRemediationActions( actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PossibleRemediationAction.fromJson(e as Map)) .toList(), @@ -6949,17 +6949,17 @@ class ProtocolsListData { return ProtocolsListData( listName: json['ListName'] as String, protocolsList: (json['ProtocolsList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), createTime: timeStampFromJson(json['CreateTime']), lastUpdateTime: timeStampFromJson(json['LastUpdateTime']), listId: json['ListId'] as String?, listUpdateToken: json['ListUpdateToken'] as String?, - previousProtocolsList: (json['PreviousProtocolsList'] - as Map?) - ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + previousProtocolsList: + (json['PreviousProtocolsList'] as Map?)?.map( + (k, e) => MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -7012,7 +7012,7 @@ class ProtocolsListDataSummary { listId: json['ListId'] as String?, listName: json['ListName'] as String?, protocolsList: (json['ProtocolsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7175,10 +7175,8 @@ class RegionScope { factory RegionScope.fromJson(Map json) { return RegionScope( allRegionsEnabled: json['AllRegionsEnabled'] as bool?, - regions: (json['Regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['Regions'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -7571,7 +7569,7 @@ class ResourceSet { return ResourceSet( name: json['Name'] as String, resourceTypeList: (json['ResourceTypeList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), description: json['Description'] as String?, @@ -8238,12 +8236,12 @@ class RouteHasOutOfScopeEndpointViolation { json['CurrentInternetGatewayRouteTable'] as String?, firewallSubnetId: json['FirewallSubnetId'] as String?, firewallSubnetRoutes: (json['FirewallSubnetRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), internetGatewayId: json['InternetGatewayId'] as String?, internetGatewayRoutes: (json['InternetGatewayRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), routeTableId: json['RouteTableId'] as String?, @@ -8251,7 +8249,7 @@ class RouteHasOutOfScopeEndpointViolation { subnetAvailabilityZoneId: json['SubnetAvailabilityZoneId'] as String?, subnetId: json['SubnetId'] as String?, violatingRoutes: (json['ViolatingRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -9400,12 +9398,12 @@ class ViolationDetail { resourceId: json['ResourceId'] as String, resourceType: json['ResourceType'] as String, resourceViolations: (json['ResourceViolations'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceViolation.fromJson(e as Map)) .toList(), resourceDescription: json['ResourceDescription'] as String?, resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/forecast/v2018_06_26.dart b/aws_client/lib/src/generated/forecast/v2018_06_26.dart index 0a362277e..f72dd3379 100644 --- a/aws_client/lib/src/generated/forecast/v2018_06_26.dart +++ b/aws_client/lib/src/generated/forecast/v2018_06_26.dart @@ -4869,9 +4869,9 @@ class AdditionalDataset { factory AdditionalDataset.fromJson(Map json) { return AdditionalDataset( name: json['Name'] as String, - configuration: (json['Configuration'] as Map?)?.map( - (k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + configuration: (json['Configuration'] as Map?)?.map((k, + e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -5089,10 +5089,8 @@ class CategoricalParameterRange { factory CategoricalParameterRange.fromJson(Map json) { return CategoricalParameterRange( name: json['Name'] as String, - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -5529,11 +5527,11 @@ class DataConfig { return DataConfig( datasetGroupArn: json['DatasetGroupArn'] as String, additionalDatasets: (json['AdditionalDatasets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalDataset.fromJson(e as Map)) .toList(), attributeConfigs: (json['AttributeConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeConfig.fromJson(e as Map)) .toList(), ); @@ -6020,7 +6018,7 @@ class DescribeAutoPredictorResponse { ? DataConfig.fromJson(json['DataConfig'] as Map) : null, datasetImportJobArns: (json['DatasetImportJobArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), encryptionConfig: json['EncryptionConfig'] != null @@ -6034,13 +6032,13 @@ class DescribeAutoPredictorResponse { json['ExplainabilityInfo'] as Map) : null, forecastDimensions: (json['ForecastDimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), forecastFrequency: json['ForecastFrequency'] as String?, forecastHorizon: json['ForecastHorizon'] as int?, forecastTypes: (json['ForecastTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastModificationTime: timeStampFromJson(json['LastModificationTime']), @@ -6182,7 +6180,7 @@ class DescribeDatasetGroupResponse { return DescribeDatasetGroupResponse( creationTime: timeStampFromJson(json['CreationTime']), datasetArns: (json['DatasetArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), datasetGroupArn: json['DatasetGroupArn'] as String?, @@ -7068,7 +7066,7 @@ class DescribeForecastResponse { forecastArn: json['ForecastArn'] as String?, forecastName: json['ForecastName'] as String?, forecastTypes: (json['ForecastTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastModificationTime: timeStampFromJson(json['LastModificationTime']), @@ -7510,14 +7508,14 @@ class DescribePredictorResponse { return DescribePredictorResponse( algorithmArn: json['AlgorithmArn'] as String?, autoMLAlgorithmArns: (json['AutoMLAlgorithmArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), autoMLOverrideStrategy: (json['AutoMLOverrideStrategy'] as String?) ?.let(AutoMLOverrideStrategy.fromString), creationTime: timeStampFromJson(json['CreationTime']), datasetImportJobArns: (json['DatasetImportJobArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), encryptionConfig: json['EncryptionConfig'] != null @@ -7536,7 +7534,7 @@ class DescribePredictorResponse { : null, forecastHorizon: json['ForecastHorizon'] as int?, forecastTypes: (json['ForecastTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), hPOConfig: json['HPOConfig'] != null @@ -7854,7 +7852,7 @@ class DescribeWhatIfForecastExportResponse { message: json['Message'] as String?, status: json['Status'] as String?, whatIfForecastArns: (json['WhatIfForecastArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), whatIfForecastExportArn: json['WhatIfForecastExportArn'] as String?, @@ -7995,7 +7993,7 @@ class DescribeWhatIfForecastResponse { estimatedTimeRemainingInMinutes: json['EstimatedTimeRemainingInMinutes'] as int?, forecastTypes: (json['ForecastTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastModificationTime: timeStampFromJson(json['LastModificationTime']), @@ -8008,7 +8006,7 @@ class DescribeWhatIfForecastResponse { as Map) : null, timeSeriesTransformations: (json['TimeSeriesTransformations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesTransformation.fromJson(e as Map)) .toList(), @@ -8227,7 +8225,7 @@ class EvaluationResult { return EvaluationResult( algorithmArn: json['AlgorithmArn'] as String?, testWindows: (json['TestWindows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WindowSummary.fromJson(e as Map)) .toList(), ); @@ -8636,7 +8634,7 @@ class Featurization { return Featurization( attributeName: json['AttributeName'] as String, featurizationPipeline: (json['FeaturizationPipeline'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeaturizationMethod.fromJson(e as Map)) .toList(), ); @@ -8741,11 +8739,11 @@ class FeaturizationConfig { return FeaturizationConfig( forecastFrequency: json['ForecastFrequency'] as String, featurizations: (json['Featurizations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Featurization.fromJson(e as Map)) .toList(), forecastDimensions: (json['ForecastDimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9201,7 +9199,7 @@ class GetAccuracyMetricsResponse { optimizationMetric: (json['OptimizationMetric'] as String?) ?.let(OptimizationMetric.fromString), predictorEvaluationResults: (json['PredictorEvaluationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationResult.fromJson(e as Map)) .toList(), ); @@ -9300,7 +9298,7 @@ class InputDataConfig { return InputDataConfig( datasetGroupArn: json['DatasetGroupArn'] as String, supplementaryFeatures: (json['SupplementaryFeatures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupplementaryFeature.fromJson(e as Map)) .toList(), ); @@ -9400,7 +9398,7 @@ class ListDatasetGroupsResponse { factory ListDatasetGroupsResponse.fromJson(Map json) { return ListDatasetGroupsResponse( datasetGroups: (json['DatasetGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9433,7 +9431,7 @@ class ListDatasetImportJobsResponse { factory ListDatasetImportJobsResponse.fromJson(Map json) { return ListDatasetImportJobsResponse( datasetImportJobs: (json['DatasetImportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetImportJobSummary.fromJson(e as Map)) .toList(), @@ -9467,7 +9465,7 @@ class ListDatasetsResponse { factory ListDatasetsResponse.fromJson(Map json) { return ListDatasetsResponse( datasets: (json['Datasets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9501,7 +9499,7 @@ class ListExplainabilitiesResponse { factory ListExplainabilitiesResponse.fromJson(Map json) { return ListExplainabilitiesResponse( explainabilities: (json['Explainabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExplainabilitySummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9536,7 +9534,7 @@ class ListExplainabilityExportsResponse { Map json) { return ListExplainabilityExportsResponse( explainabilityExports: (json['ExplainabilityExports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExplainabilityExportSummary.fromJson(e as Map)) .toList(), @@ -9571,7 +9569,7 @@ class ListForecastExportJobsResponse { factory ListForecastExportJobsResponse.fromJson(Map json) { return ListForecastExportJobsResponse( forecastExportJobs: (json['ForecastExportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ForecastExportJobSummary.fromJson(e as Map)) .toList(), @@ -9605,7 +9603,7 @@ class ListForecastsResponse { factory ListForecastsResponse.fromJson(Map json) { return ListForecastsResponse( forecasts: (json['Forecasts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ForecastSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9649,7 +9647,7 @@ class ListMonitorEvaluationsResponse { nextToken: json['NextToken'] as String?, predictorMonitorEvaluations: (json['PredictorMonitorEvaluations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictorMonitorEvaluation.fromJson(e as Map)) .toList(), @@ -9683,7 +9681,7 @@ class ListMonitorsResponse { factory ListMonitorsResponse.fromJson(Map json) { return ListMonitorsResponse( monitors: (json['Monitors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MonitorSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9720,7 +9718,7 @@ class ListPredictorBacktestExportJobsResponse { nextToken: json['NextToken'] as String?, predictorBacktestExportJobs: (json['PredictorBacktestExportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictorBacktestExportJobSummary.fromJson( e as Map)) .toList(), @@ -9755,7 +9753,7 @@ class ListPredictorsResponse { return ListPredictorsResponse( nextToken: json['NextToken'] as String?, predictors: (json['Predictors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictorSummary.fromJson(e as Map)) .toList(), ); @@ -9782,7 +9780,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -9814,7 +9812,7 @@ class ListWhatIfAnalysesResponse { return ListWhatIfAnalysesResponse( nextToken: json['NextToken'] as String?, whatIfAnalyses: (json['WhatIfAnalyses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WhatIfAnalysisSummary.fromJson(e as Map)) .toList(), ); @@ -9849,7 +9847,7 @@ class ListWhatIfForecastExportsResponse { return ListWhatIfForecastExportsResponse( nextToken: json['NextToken'] as String?, whatIfForecastExports: (json['WhatIfForecastExports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WhatIfForecastExportSummary.fromJson(e as Map)) .toList(), @@ -9886,7 +9884,7 @@ class ListWhatIfForecastsResponse { return ListWhatIfForecastsResponse( nextToken: json['NextToken'] as String?, whatIfForecasts: (json['WhatIfForecasts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WhatIfForecastSummary.fromJson(e as Map)) .toList(), ); @@ -9969,12 +9967,12 @@ class Metrics { averageWeightedQuantileLoss: json['AverageWeightedQuantileLoss'] as double?, errorMetrics: (json['ErrorMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorMetric.fromJson(e as Map)) .toList(), rmse: json['RMSE'] as double?, weightedQuantileLosses: (json['WeightedQuantileLosses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WeightedQuantileLoss.fromJson(e as Map)) .toList(), ); @@ -10285,17 +10283,17 @@ class ParameterRanges { factory ParameterRanges.fromJson(Map json) { return ParameterRanges( categoricalParameterRanges: (json['CategoricalParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CategoricalParameterRange.fromJson(e as Map)) .toList(), continuousParameterRanges: (json['ContinuousParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContinuousParameterRange.fromJson(e as Map)) .toList(), integerParameterRanges: (json['IntegerParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegerParameterRange.fromJson(e as Map)) .toList(), ); @@ -10446,7 +10444,7 @@ class PredictorBaseline { factory PredictorBaseline.fromJson(Map json) { return PredictorBaseline( baselineMetrics: (json['BaselineMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BaselineMetric.fromJson(e as Map)) .toList(), ); @@ -10512,7 +10510,7 @@ class PredictorExecution { return PredictorExecution( algorithmArn: json['AlgorithmArn'] as String?, testWindows: (json['TestWindows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestWindowSummary.fromJson(e as Map)) .toList(), ); @@ -10546,7 +10544,7 @@ class PredictorExecutionDetails { factory PredictorExecutionDetails.fromJson(Map json) { return PredictorExecutionDetails( predictorExecutions: (json['PredictorExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictorExecution.fromJson(e as Map)) .toList(), ); @@ -10622,7 +10620,7 @@ class PredictorMonitorEvaluation { evaluationTime: timeStampFromJson(json['EvaluationTime']), message: json['Message'] as String?, metricResults: (json['MetricResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricResult.fromJson(e as Map)) .toList(), monitorArn: json['MonitorArn'] as String?, @@ -10913,7 +10911,7 @@ class Schema { factory Schema.fromJson(Map json) { return Schema( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaAttribute.fromJson(e as Map)) .toList(), ); @@ -11791,7 +11789,7 @@ class TimeSeriesTransformation { ? Action.fromJson(json['Action'] as Map) : null, timeSeriesConditions: (json['TimeSeriesConditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesCondition.fromJson(e as Map)) .toList(), ); @@ -12071,7 +12069,7 @@ class WhatIfForecastExportSummary { message: json['Message'] as String?, status: json['Status'] as String?, whatIfForecastArns: (json['WhatIfForecastArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), whatIfForecastExportArn: json['WhatIfForecastExportArn'] as String?, diff --git a/aws_client/lib/src/generated/forecastquery/v2018_06_26.dart b/aws_client/lib/src/generated/forecastquery/v2018_06_26.dart index b7fe81921..6968ae950 100644 --- a/aws_client/lib/src/generated/forecastquery/v2018_06_26.dart +++ b/aws_client/lib/src/generated/forecastquery/v2018_06_26.dart @@ -258,7 +258,7 @@ class Forecast { MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => DataPoint.fromJson(e as Map)) .toList())), ); diff --git a/aws_client/lib/src/generated/fraud_detector/v2019_11_15.dart b/aws_client/lib/src/generated/fraud_detector/v2019_11_15.dart index a932f8ba6..8f427897a 100644 --- a/aws_client/lib/src/generated/fraud_detector/v2019_11_15.dart +++ b/aws_client/lib/src/generated/fraud_detector/v2019_11_15.dart @@ -3696,7 +3696,7 @@ class ATITrainingMetricsValue { factory ATITrainingMetricsValue.fromJson(Map json) { return ATITrainingMetricsValue( metricDataPoints: (json['metricDataPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ATIMetricDataPoint.fromJson(e as Map)) .toList(), modelPerformance: json['modelPerformance'] != null @@ -3742,7 +3742,7 @@ class AggregatedLogOddsMetric { aggregatedVariablesImportance: json['aggregatedVariablesImportance'] as double, variableNames: (json['variableNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -3799,7 +3799,7 @@ class AggregatedVariablesImpactExplanation { Map json) { return AggregatedVariablesImpactExplanation( eventVariableNames: (json['eventVariableNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), logOddsImpact: json['logOddsImpact'] as double?, @@ -3839,7 +3839,7 @@ class AggregatedVariablesImportanceMetrics { Map json) { return AggregatedVariablesImportanceMetrics( logOddsMetrics: (json['logOddsMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregatedLogOddsMetric.fromJson(e as Map)) .toList(), @@ -3979,7 +3979,7 @@ class BatchCreateVariableResult { factory BatchCreateVariableResult.fromJson(Map json) { return BatchCreateVariableResult( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchCreateVariableError.fromJson(e as Map)) .toList(), @@ -4046,11 +4046,11 @@ class BatchGetVariableResult { factory BatchGetVariableResult.fromJson(Map json) { return BatchGetVariableResult( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchGetVariableError.fromJson(e as Map)) .toList(), variables: (json['variables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Variable.fromJson(e as Map)) .toList(), ); @@ -4533,12 +4533,12 @@ class DataValidationMetrics { factory DataValidationMetrics.fromJson(Map json) { return DataValidationMetrics( fieldLevelMessages: (json['fieldLevelMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FieldValidationMessage.fromJson(e as Map)) .toList(), fileLevelMessages: (json['fileLevelMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileValidationMessage.fromJson(e as Map)) .toList(), ); @@ -4789,7 +4789,7 @@ class DescribeDetectorResult { arn: json['arn'] as String?, detectorId: json['detectorId'] as String?, detectorVersionSummaries: (json['detectorVersionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DetectorVersionSummary.fromJson(e as Map)) .toList(), @@ -4827,7 +4827,7 @@ class DescribeModelVersionsResult { factory DescribeModelVersionsResult.fromJson(Map json) { return DescribeModelVersionsResult( modelVersionDetails: (json['modelVersionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelVersionDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5120,7 +5120,7 @@ class EvaluatedModelVersion { factory EvaluatedModelVersion.fromJson(Map json) { return EvaluatedModelVersion( evaluations: (json['evaluations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ModelVersionEvaluation.fromJson(e as Map)) .toList(), @@ -5184,7 +5184,7 @@ class EvaluatedRule { expressionWithValues: json['expressionWithValues'] as String?, matched: json['matched'] as bool?, outcomes: (json['outcomes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ruleId: json['ruleId'] as String?, @@ -5254,7 +5254,7 @@ class Event { return Event( currentLabel: json['currentLabel'] as String?, entities: (json['entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), eventId: json['eventId'] as String?, @@ -5442,7 +5442,7 @@ class EventType { createdTime: json['createdTime'] as String?, description: json['description'] as String?, entityTypes: (json['entityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), eventIngestion: @@ -5452,17 +5452,15 @@ class EventType { json['eventOrchestration'] as Map) : null, eventVariables: (json['eventVariables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ingestedEventStatistics: json['ingestedEventStatistics'] != null ? IngestedEventStatistics.fromJson( json['ingestedEventStatistics'] as Map) : null, - labels: (json['labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['labels'] as List?)?.nonNulls.map((e) => e as String).toList(), lastUpdatedTime: json['lastUpdatedTime'] as String?, name: json['name'] as String?, ); @@ -5842,7 +5840,7 @@ class GetBatchImportJobsResult { factory GetBatchImportJobsResult.fromJson(Map json) { return GetBatchImportJobsResult( batchImports: (json['batchImports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchImport.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5874,7 +5872,7 @@ class GetBatchPredictionJobsResult { factory GetBatchPredictionJobsResult.fromJson(Map json) { return GetBatchPredictionJobsResult( batchPredictions: (json['batchPredictions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPrediction.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5988,18 +5986,18 @@ class GetDetectorVersionResult { detectorId: json['detectorId'] as String?, detectorVersionId: json['detectorVersionId'] as String?, externalModelEndpoints: (json['externalModelEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedTime: json['lastUpdatedTime'] as String?, modelVersions: (json['modelVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelVersion.fromJson(e as Map)) .toList(), ruleExecutionMode: (json['ruleExecutionMode'] as String?) ?.let(RuleExecutionMode.fromString), rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), status: @@ -6052,7 +6050,7 @@ class GetDetectorsResult { factory GetDetectorsResult.fromJson(Map json) { return GetDetectorsResult( detectors: (json['detectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Detector.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6084,7 +6082,7 @@ class GetEntityTypesResult { factory GetEntityTypesResult.fromJson(Map json) { return GetEntityTypesResult( entityTypes: (json['entityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityType.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6176,30 +6174,30 @@ class GetEventPredictionMetadataResult { entityId: json['entityId'] as String?, entityType: json['entityType'] as String?, evaluatedExternalModels: (json['evaluatedExternalModels'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => EvaluatedExternalModel.fromJson(e as Map)) .toList(), evaluatedModelVersions: (json['evaluatedModelVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluatedModelVersion.fromJson(e as Map)) .toList(), eventId: json['eventId'] as String?, eventTimestamp: json['eventTimestamp'] as String?, eventTypeName: json['eventTypeName'] as String?, eventVariables: (json['eventVariables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventVariableSummary.fromJson(e as Map)) .toList(), outcomes: (json['outcomes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), predictionTimestamp: json['predictionTimestamp'] as String?, ruleExecutionMode: (json['ruleExecutionMode'] as String?) ?.let(RuleExecutionMode.fromString), rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluatedRule.fromJson(e as Map)) .toList(), ); @@ -6269,15 +6267,15 @@ class GetEventPredictionResult { factory GetEventPredictionResult.fromJson(Map json) { return GetEventPredictionResult( externalModelOutputs: (json['externalModelOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExternalModelOutputs.fromJson(e as Map)) .toList(), modelScores: (json['modelScores'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelScores.fromJson(e as Map)) .toList(), ruleResults: (json['ruleResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleResult.fromJson(e as Map)) .toList(), ); @@ -6335,7 +6333,7 @@ class GetEventTypesResult { factory GetEventTypesResult.fromJson(Map json) { return GetEventTypesResult( eventTypes: (json['eventTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventType.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6367,7 +6365,7 @@ class GetExternalModelsResult { factory GetExternalModelsResult.fromJson(Map json) { return GetExternalModelsResult( externalModels: (json['externalModels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExternalModel.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6423,7 +6421,7 @@ class GetLabelsResult { factory GetLabelsResult.fromJson(Map json) { return GetLabelsResult( labels: (json['labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Label.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6455,7 +6453,7 @@ class GetListElementsResult { factory GetListElementsResult.fromJson(Map json) { return GetListElementsResult( elements: (json['elements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -6487,7 +6485,7 @@ class GetListsMetadataResult { factory GetListsMetadataResult.fromJson(Map json) { return GetListsMetadataResult( lists: (json['lists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AllowDenyList.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6646,7 +6644,7 @@ class GetModelsResult { factory GetModelsResult.fromJson(Map json) { return GetModelsResult( models: (json['models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Model.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6679,7 +6677,7 @@ class GetOutcomesResult { return GetOutcomesResult( nextToken: json['nextToken'] as String?, outcomes: (json['outcomes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Outcome.fromJson(e as Map)) .toList(), ); @@ -6711,7 +6709,7 @@ class GetRulesResult { return GetRulesResult( nextToken: json['nextToken'] as String?, ruleDetails: (json['ruleDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleDetail.fromJson(e as Map)) .toList(), ); @@ -6743,7 +6741,7 @@ class GetVariablesResult { return GetVariablesResult( nextToken: json['nextToken'] as String?, variables: (json['variables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Variable.fromJson(e as Map)) .toList(), ); @@ -6988,8 +6986,7 @@ class LabelSchema { factory LabelSchema.fromJson(Map json) { return LabelSchema( labelMapper: (json['labelMapper'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), unlabeledEventsTreatment: (json['unlabeledEventsTreatment'] as String?) ?.let(UnlabeledEventsTreatment.fromString), ); @@ -7036,7 +7033,7 @@ class ListEventPredictionsResult { factory ListEventPredictionsResult.fromJson(Map json) { return ListEventPredictionsResult( eventPredictionSummaries: (json['eventPredictionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => EventPredictionSummary.fromJson(e as Map)) .toList(), @@ -7071,7 +7068,7 @@ class ListTagsForResourceResult { return ListTagsForResourceResult( nextToken: json['nextToken'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7823,7 +7820,7 @@ class OFITrainingMetricsValue { factory OFITrainingMetricsValue.fromJson(Map json) { return OFITrainingMetricsValue( metricDataPoints: (json['metricDataPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OFIMetricDataPoint.fromJson(e as Map)) .toList(), modelPerformance: json['modelPerformance'] != null @@ -7920,12 +7917,12 @@ class PredictionExplanations { return PredictionExplanations( aggregatedVariablesImpactExplanations: (json['aggregatedVariablesImpactExplanations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregatedVariablesImpactExplanation.fromJson( e as Map)) .toList(), variableImpactExplanations: (json['variableImpactExplanations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VariableImpactExplanation.fromJson(e as Map)) .toList(), @@ -8145,7 +8142,7 @@ class RuleDetail { language: (json['language'] as String?)?.let(Language.fromString), lastUpdatedTime: json['lastUpdatedTime'] as String?, outcomes: (json['outcomes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ruleId: json['ruleId'] as String?, @@ -8210,7 +8207,7 @@ class RuleResult { factory RuleResult.fromJson(Map json) { return RuleResult( outcomes: (json['outcomes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ruleId: json['ruleId'] as String?, @@ -8341,7 +8338,7 @@ class TFITrainingMetricsValue { factory TFITrainingMetricsValue.fromJson(Map json) { return TFITrainingMetricsValue( metricDataPoints: (json['metricDataPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TFIMetricDataPoint.fromJson(e as Map)) .toList(), modelPerformance: json['modelPerformance'] != null @@ -8417,7 +8414,7 @@ class TrainingDataSchema { factory TrainingDataSchema.fromJson(Map json) { return TrainingDataSchema( modelVariables: (json['modelVariables'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), labelSchema: json['labelSchema'] != null @@ -8471,7 +8468,7 @@ class TrainingMetrics { return TrainingMetrics( auc: json['auc'] as double?, metricDataPoints: (json['metricDataPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDataPoint.fromJson(e as Map)) .toList(), ); @@ -9095,7 +9092,7 @@ class VariableImportanceMetrics { factory VariableImportanceMetrics.fromJson(Map json) { return VariableImportanceMetrics( logOddsMetrics: (json['logOddsMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogOddsMetric.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/free_tier/v2023_09_07.dart b/aws_client/lib/src/generated/free_tier/v2023_09_07.dart index abd284717..1db6bfe27 100644 --- a/aws_client/lib/src/generated/free_tier/v2023_09_07.dart +++ b/aws_client/lib/src/generated/free_tier/v2023_09_07.dart @@ -360,7 +360,7 @@ class GetFreeTierUsageResponse { factory GetFreeTierUsageResponse.fromJson(Map json) { return GetFreeTierUsageResponse( freeTierUsages: (json['freeTierUsages'] as List) - .whereNotNull() + .nonNulls .map((e) => FreeTierUsage.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/game_lift/v2015_10_01.dart b/aws_client/lib/src/generated/game_lift/v2015_10_01.dart index d11848a20..99bbf7749 100644 --- a/aws_client/lib/src/generated/game_lift/v2015_10_01.dart +++ b/aws_client/lib/src/generated/game_lift/v2015_10_01.dart @@ -9517,10 +9517,7 @@ class AttributeValue { s: json['S'] as String?, sdm: (json['SDM'] as Map?) ?.map((k, e) => MapEntry(k, e as double)), - sl: (json['SL'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + sl: (json['SL'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -10135,7 +10132,7 @@ class ContainerAttributes { factory ContainerAttributes.fromJson(Map json) { return ContainerAttributes( containerPortMappings: (json['ContainerPortMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerPortMapping.fromJson(e as Map)) .toList(), ); @@ -10259,21 +10256,19 @@ class ContainerDefinition { return ContainerDefinition( containerName: json['ContainerName'] as String, imageUri: json['ImageUri'] as String, - command: (json['Command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['Command'] as List?)?.nonNulls.map((e) => e as String).toList(), cpu: json['Cpu'] as int?, dependsOn: (json['DependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerDependency.fromJson(e as Map)) .toList(), entryPoint: (json['EntryPoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), environment: (json['Environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerEnvironment.fromJson(e as Map)) .toList(), essential: json['Essential'] as bool?, @@ -10788,7 +10783,7 @@ class ContainerGroupDefinition { factory ContainerGroupDefinition.fromJson(Map json) { return ContainerGroupDefinition( containerDefinitions: (json['ContainerDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerDefinition.fromJson(e as Map)) .toList(), containerGroupDefinitionArn: @@ -10936,7 +10931,7 @@ class ContainerGroupsAttributes { : null, containerGroupDefinitionProperties: (json['ContainerGroupDefinitionProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerGroupDefinitionProperty.fromJson( e as Map)) .toList(), @@ -11143,10 +11138,8 @@ class ContainerHealthCheck { factory ContainerHealthCheck.fromJson(Map json) { return ContainerHealthCheck( - command: (json['Command'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['Command'] as List).nonNulls.map((e) => e as String).toList(), interval: json['Interval'] as int?, retries: json['Retries'] as int?, startPeriod: json['StartPeriod'] as int?, @@ -11242,7 +11235,7 @@ class ContainerPortConfiguration { factory ContainerPortConfiguration.fromJson(Map json) { return ContainerPortConfiguration( containerPortRanges: (json['ContainerPortRanges'] as List) - .whereNotNull() + .nonNulls .map((e) => ContainerPortRange.fromJson(e as Map)) .toList(), ); @@ -11491,7 +11484,7 @@ class CreateFleetLocationsOutput { fleetArn: json['FleetArn'] as String?, fleetId: json['FleetId'] as String?, locationStates: (json['LocationStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocationState.fromJson(e as Map)) .toList(), ); @@ -11534,7 +11527,7 @@ class CreateFleetOutput { json['FleetAttributes'] as Map) : null, locationStates: (json['LocationStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocationState.fromJson(e as Map)) .toList(), ); @@ -11737,7 +11730,7 @@ class CreatePlayerSessionsOutput { factory CreatePlayerSessionsOutput.fromJson(Map json) { return CreatePlayerSessionsOutput( playerSessions: (json['PlayerSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlayerSession.fromJson(e as Map)) .toList(), ); @@ -11847,7 +11840,7 @@ class DeleteFleetLocationsOutput { fleetArn: json['FleetArn'] as String?, fleetId: json['FleetId'] as String?, locationStates: (json['LocationStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocationState.fromJson(e as Map)) .toList(), ); @@ -12086,7 +12079,7 @@ class DescribeEC2InstanceLimitsOutput { factory DescribeEC2InstanceLimitsOutput.fromJson(Map json) { return DescribeEC2InstanceLimitsOutput( eC2InstanceLimits: (json['EC2InstanceLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EC2InstanceLimit.fromJson(e as Map)) .toList(), ); @@ -12119,7 +12112,7 @@ class DescribeFleetAttributesOutput { factory DescribeFleetAttributesOutput.fromJson(Map json) { return DescribeFleetAttributesOutput( fleetAttributes: (json['FleetAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAttributes.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12156,7 +12149,7 @@ class DescribeFleetCapacityOutput { factory DescribeFleetCapacityOutput.fromJson(Map json) { return DescribeFleetCapacityOutput( fleetCapacity: (json['FleetCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetCapacity.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12191,7 +12184,7 @@ class DescribeFleetEventsOutput { factory DescribeFleetEventsOutput.fromJson(Map json) { return DescribeFleetEventsOutput( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12241,7 +12234,7 @@ class DescribeFleetLocationAttributesOutput { fleetArn: json['FleetArn'] as String?, fleetId: json['FleetId'] as String?, locationAttributes: (json['LocationAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocationAttributes.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12354,7 +12347,7 @@ class DescribeFleetPortSettingsOutput { fleetArn: json['FleetArn'] as String?, fleetId: json['FleetId'] as String?, inboundPermissions: (json['InboundPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpPermission.fromJson(e as Map)) .toList(), location: json['Location'] as String?, @@ -12398,7 +12391,7 @@ class DescribeFleetUtilizationOutput { factory DescribeFleetUtilizationOutput.fromJson(Map json) { return DescribeFleetUtilizationOutput( fleetUtilization: (json['FleetUtilization'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetUtilization.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12459,7 +12452,7 @@ class DescribeGameServerInstancesOutput { Map json) { return DescribeGameServerInstancesOutput( gameServerInstances: (json['GameServerInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameServerInstance.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12518,7 +12511,7 @@ class DescribeGameSessionDetailsOutput { factory DescribeGameSessionDetailsOutput.fromJson(Map json) { return DescribeGameSessionDetailsOutput( gameSessionDetails: (json['GameSessionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameSessionDetail.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12579,7 +12572,7 @@ class DescribeGameSessionQueuesOutput { factory DescribeGameSessionQueuesOutput.fromJson(Map json) { return DescribeGameSessionQueuesOutput( gameSessionQueues: (json['GameSessionQueues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameSessionQueue.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12613,7 +12606,7 @@ class DescribeGameSessionsOutput { factory DescribeGameSessionsOutput.fromJson(Map json) { return DescribeGameSessionsOutput( gameSessions: (json['GameSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameSession.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12647,7 +12640,7 @@ class DescribeInstancesOutput { factory DescribeInstancesOutput.fromJson(Map json) { return DescribeInstancesOutput( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Instance.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12682,7 +12675,7 @@ class DescribeMatchmakingConfigurationsOutput { Map json) { return DescribeMatchmakingConfigurationsOutput( configurations: (json['Configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchmakingConfiguration.fromJson(e as Map)) .toList(), @@ -12711,7 +12704,7 @@ class DescribeMatchmakingOutput { factory DescribeMatchmakingOutput.fromJson(Map json) { return DescribeMatchmakingOutput( ticketList: (json['TicketList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchmakingTicket.fromJson(e as Map)) .toList(), ); @@ -12743,7 +12736,7 @@ class DescribeMatchmakingRuleSetsOutput { Map json) { return DescribeMatchmakingRuleSetsOutput( ruleSets: (json['RuleSets'] as List) - .whereNotNull() + .nonNulls .map((e) => MatchmakingRuleSet.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12779,7 +12772,7 @@ class DescribePlayerSessionsOutput { return DescribePlayerSessionsOutput( nextToken: json['NextToken'] as String?, playerSessions: (json['PlayerSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlayerSession.fromJson(e as Map)) .toList(), ); @@ -12842,7 +12835,7 @@ class DescribeScalingPoliciesOutput { return DescribeScalingPoliciesOutput( nextToken: json['NextToken'] as String?, scalingPolicies: (json['ScalingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingPolicy.fromJson(e as Map)) .toList(), ); @@ -12895,7 +12888,7 @@ class DescribeVpcPeeringAuthorizationsOutput { Map json) { return DescribeVpcPeeringAuthorizationsOutput( vpcPeeringAuthorizations: (json['VpcPeeringAuthorizations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcPeeringAuthorization.fromJson(e as Map)) .toList(), @@ -12923,7 +12916,7 @@ class DescribeVpcPeeringConnectionsOutput { Map json) { return DescribeVpcPeeringConnectionsOutput( vpcPeeringConnections: (json['VpcPeeringConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcPeeringConnection.fromJson(e as Map)) .toList(), ); @@ -13629,7 +13622,7 @@ class FilterConfiguration { factory FilterConfiguration.fromJson(Map json) { return FilterConfiguration( allowedLocations: (json['AllowedLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -13952,11 +13945,11 @@ class FleetAttributes { instanceType: (json['InstanceType'] as String?)?.let(EC2InstanceType.fromString), logPaths: (json['LogPaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), metricGroups: (json['MetricGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -13975,7 +13968,7 @@ class FleetAttributes { serverLaunchPath: json['ServerLaunchPath'] as String?, status: (json['Status'] as String?)?.let(FleetStatus.fromString), stoppedActions: (json['StoppedActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAction.fromString((e as String))) .toList(), terminationTime: timeStampFromJson(json['TerminationTime']), @@ -14629,7 +14622,7 @@ class GameServerGroup { (json['GameServerProtectionPolicy'] as String?) ?.let(GameServerProtectionPolicy.fromString), instanceDefinitions: (json['InstanceDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceDefinition.fromJson(e as Map)) .toList(), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), @@ -14638,7 +14631,7 @@ class GameServerGroup { (json['Status'] as String?)?.let(GameServerGroupStatus.fromString), statusReason: json['StatusReason'] as String?, suspendedActions: (json['SuspendedActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameServerGroupAction.fromString((e as String))) .toList(), ); @@ -15143,7 +15136,7 @@ class GameSession { fleetArn: json['FleetArn'] as String?, fleetId: json['FleetId'] as String?, gameProperties: (json['GameProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameProperty.fromJson(e as Map)) .toList(), gameSessionData: json['GameSessionData'] as String?, @@ -15267,7 +15260,7 @@ class GameSessionConnectionInfo { gameSessionArn: json['GameSessionArn'] as String?, ipAddress: json['IpAddress'] as String?, matchedPlayerSessions: (json['MatchedPlayerSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchedPlayerSession.fromJson(e as Map)) .toList(), port: json['Port'] as int?, @@ -15499,7 +15492,7 @@ class GameSessionPlacement { dnsName: json['DnsName'] as String?, endTime: timeStampFromJson(json['EndTime']), gameProperties: (json['GameProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameProperty.fromJson(e as Map)) .toList(), gameSessionArn: json['GameSessionArn'] as String?, @@ -15512,12 +15505,12 @@ class GameSessionPlacement { matchmakerData: json['MatchmakerData'] as String?, maximumPlayerSessionCount: json['MaximumPlayerSessionCount'] as int?, placedPlayerSessions: (json['PlacedPlayerSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacedPlayerSession.fromJson(e as Map)) .toList(), placementId: json['PlacementId'] as String?, playerLatencies: (json['PlayerLatencies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlayerLatency.fromJson(e as Map)) .toList(), port: json['Port'] as int?, @@ -15665,7 +15658,7 @@ class GameSessionQueue { return GameSessionQueue( customEventData: json['CustomEventData'] as String?, destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameSessionQueueDestination.fromJson(e as Map)) .toList(), @@ -15677,7 +15670,7 @@ class GameSessionQueue { name: json['Name'] as String?, notificationTarget: json['NotificationTarget'] as String?, playerLatencyPolicies: (json['PlayerLatencyPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlayerLatencyPolicy.fromJson(e as Map)) .toList(), priorityConfiguration: json['PriorityConfiguration'] != null @@ -16396,7 +16389,7 @@ class ListAliasesOutput { factory ListAliasesOutput.fromJson(Map json) { return ListAliasesOutput( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -16430,7 +16423,7 @@ class ListBuildsOutput { factory ListBuildsOutput.fromJson(Map json) { return ListBuildsOutput( builds: (json['Builds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Build.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -16464,7 +16457,7 @@ class ListComputeOutput { factory ListComputeOutput.fromJson(Map json) { return ListComputeOutput( computeList: (json['ComputeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Compute.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -16499,7 +16492,7 @@ class ListContainerGroupDefinitionsOutput { Map json) { return ListContainerGroupDefinitionsOutput( containerGroupDefinitions: (json['ContainerGroupDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerGroupDefinition.fromJson(e as Map)) .toList(), @@ -16535,7 +16528,7 @@ class ListFleetsOutput { factory ListFleetsOutput.fromJson(Map json) { return ListFleetsOutput( fleetIds: (json['FleetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -16568,7 +16561,7 @@ class ListGameServerGroupsOutput { factory ListGameServerGroupsOutput.fromJson(Map json) { return ListGameServerGroupsOutput( gameServerGroups: (json['GameServerGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameServerGroup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -16602,7 +16595,7 @@ class ListGameServersOutput { factory ListGameServersOutput.fromJson(Map json) { return ListGameServersOutput( gameServers: (json['GameServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameServer.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -16636,7 +16629,7 @@ class ListLocationsOutput { factory ListLocationsOutput.fromJson(Map json) { return ListLocationsOutput( locations: (json['Locations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocationModel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -16671,7 +16664,7 @@ class ListScriptsOutput { return ListScriptsOutput( nextToken: json['NextToken'] as String?, scripts: (json['Scripts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Script.fromJson(e as Map)) .toList(), ); @@ -16698,7 +16691,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -16739,7 +16732,7 @@ class LocationAttributes { json['LocationState'] as Map) : null, stoppedActions: (json['StoppedActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAction.fromString((e as String))) .toList(), updateStatus: (json['UpdateStatus'] as String?) @@ -17103,12 +17096,12 @@ class MatchmakingConfiguration { flexMatchMode: (json['FlexMatchMode'] as String?)?.let(FlexMatchMode.fromString), gameProperties: (json['GameProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameProperty.fromJson(e as Map)) .toList(), gameSessionData: json['GameSessionData'] as String?, gameSessionQueueArns: (json['GameSessionQueueArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -17401,7 +17394,7 @@ class MatchmakingTicket { json['GameSessionConnectionInfo'] as Map) : null, players: (json['Players'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Player.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -17942,11 +17935,11 @@ class PriorityConfiguration { factory PriorityConfiguration.fromJson(Map json) { return PriorityConfiguration( locationOrder: (json['LocationOrder'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), priorityOrder: (json['PriorityOrder'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PriorityType.fromString((e as String))) .toList(), ); @@ -18383,7 +18376,7 @@ class RuntimeConfiguration { maxConcurrentGameSessionActivations: json['MaxConcurrentGameSessionActivations'] as int?, serverProcesses: (json['ServerProcesses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerProcess.fromJson(e as Map)) .toList(), ); @@ -18843,7 +18836,7 @@ class SearchGameSessionsOutput { factory SearchGameSessionsOutput.fromJson(Map json) { return SearchGameSessionsOutput( gameSessions: (json['GameSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameSession.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/game_sparks/v2021_08_17.dart b/aws_client/lib/src/generated/game_sparks/v2021_08_17.dart index 338b0df4e..cb0859a3c 100644 --- a/aws_client/lib/src/generated/game_sparks/v2021_08_17.dart +++ b/aws_client/lib/src/generated/game_sparks/v2021_08_17.dart @@ -1430,11 +1430,11 @@ class DisconnectPlayerResult { factory DisconnectPlayerResult.fromJson(Map json) { return DisconnectPlayerResult( disconnectFailures: (json['DisconnectFailures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), disconnectSuccesses: (json['DisconnectSuccesses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1986,7 +1986,7 @@ class GetPlayerConnectionStatusResult { factory GetPlayerConnectionStatusResult.fromJson(Map json) { return GetPlayerConnectionStatusResult( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), ); @@ -2133,7 +2133,7 @@ class ListExtensionVersionsResult { factory ListExtensionVersionsResult.fromJson(Map json) { return ListExtensionVersionsResult( extensionVersions: (json['ExtensionVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtensionVersionDetails.fromJson(e as Map)) .toList(), @@ -2169,7 +2169,7 @@ class ListExtensionsResult { factory ListExtensionsResult.fromJson(Map json) { return ListExtensionsResult( extensions: (json['Extensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtensionDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2204,7 +2204,7 @@ class ListGamesResult { factory ListGamesResult.fromJson(Map json) { return ListGamesResult( games: (json['Games'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2239,7 +2239,7 @@ class ListGeneratedCodeJobsResult { factory ListGeneratedCodeJobsResult.fromJson(Map json) { return ListGeneratedCodeJobsResult( generatedCodeJobs: (json['GeneratedCodeJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GeneratedCodeJobDetails.fromJson(e as Map)) .toList(), @@ -2277,7 +2277,7 @@ class ListSnapshotsResult { return ListSnapshotsResult( nextToken: json['NextToken'] as String?, snapshots: (json['Snapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotSummary.fromJson(e as Map)) .toList(), ); @@ -2314,7 +2314,7 @@ class ListStageDeploymentsResult { return ListStageDeploymentsResult( nextToken: json['NextToken'] as String?, stageDeployments: (json['StageDeployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => StageDeploymentSummary.fromJson(e as Map)) .toList(), @@ -2351,7 +2351,7 @@ class ListStagesResult { return ListStagesResult( nextToken: json['NextToken'] as String?, stages: (json['Stages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StageSummary.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/glacier/v2012_06_01.dart b/aws_client/lib/src/generated/glacier/v2012_06_01.dart index e3dd9a7c5..fa4f1c3e3 100644 --- a/aws_client/lib/src/generated/glacier/v2012_06_01.dart +++ b/aws_client/lib/src/generated/glacier/v2012_06_01.dart @@ -2352,7 +2352,7 @@ class DataRetrievalPolicy { factory DataRetrievalPolicy.fromJson(Map json) { return DataRetrievalPolicy( rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataRetrievalRule.fromJson(e as Map)) .toList(), ); @@ -3364,7 +3364,7 @@ class ListJobsOutput { factory ListJobsOutput.fromJson(Map json) { return ListJobsOutput( jobList: (json['JobList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlacierJobDescription.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -3401,7 +3401,7 @@ class ListMultipartUploadsOutput { return ListMultipartUploadsOutput( marker: json['Marker'] as String?, uploadsList: (json['UploadsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UploadListElement.fromJson(e as Map)) .toList(), ); @@ -3465,7 +3465,7 @@ class ListPartsOutput { multipartUploadId: json['MultipartUploadId'] as String?, partSizeInBytes: json['PartSizeInBytes'] as int?, parts: (json['Parts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartListElement.fromJson(e as Map)) .toList(), vaultARN: json['VaultARN'] as String?, @@ -3503,7 +3503,7 @@ class ListProvisionedCapacityOutput { factory ListProvisionedCapacityOutput.fromJson(Map json) { return ListProvisionedCapacityOutput( provisionedCapacityList: (json['ProvisionedCapacityList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisionedCapacityDescription.fromJson( e as Map)) .toList(), @@ -3561,7 +3561,7 @@ class ListVaultsOutput { return ListVaultsOutput( marker: json['Marker'] as String?, vaultList: (json['VaultList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DescribeVaultOutput.fromJson(e as Map)) .toList(), ); @@ -3785,7 +3785,7 @@ class S3Location { factory S3Location.fromJson(Map json) { return S3Location( accessControlList: (json['AccessControlList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Grant.fromJson(e as Map)) .toList(), bucketName: json['BucketName'] as String?, @@ -4049,10 +4049,8 @@ class VaultNotificationConfig { factory VaultNotificationConfig.fromJson(Map json) { return VaultNotificationConfig( - events: (json['Events'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + events: + (json['Events'] as List?)?.nonNulls.map((e) => e as String).toList(), sNSTopic: json['SNSTopic'] as String?, ); } diff --git a/aws_client/lib/src/generated/global_accelerator/v2018_08_08.dart b/aws_client/lib/src/generated/global_accelerator/v2018_08_08.dart index 62eee593b..d11691581 100644 --- a/aws_client/lib/src/generated/global_accelerator/v2018_08_08.dart +++ b/aws_client/lib/src/generated/global_accelerator/v2018_08_08.dart @@ -3168,13 +3168,13 @@ class Accelerator { dualStackDnsName: json['DualStackDnsName'] as String?, enabled: json['Enabled'] as bool?, events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AcceleratorEvent.fromJson(e as Map)) .toList(), ipAddressType: (json['IpAddressType'] as String?)?.let(IpAddressType.fromString), ipSets: (json['IpSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpSet.fromJson(e as Map)) .toList(), lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), @@ -3333,7 +3333,7 @@ class AddCustomRoutingEndpointsResponse { Map json) { return AddCustomRoutingEndpointsResponse( endpointDescriptions: (json['EndpointDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingEndpointDescription.fromJson( e as Map)) .toList(), @@ -3367,7 +3367,7 @@ class AddEndpointsResponse { factory AddEndpointsResponse.fromJson(Map json) { return AddEndpointsResponse( endpointDescriptions: (json['EndpointDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointDescription.fromJson(e as Map)) .toList(), endpointGroupArn: json['EndpointGroupArn'] as String?, @@ -3447,11 +3447,11 @@ class Attachment { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), name: json['Name'] as String?, principals: (json['Principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -3563,7 +3563,7 @@ class ByoipCidr { return ByoipCidr( cidr: json['Cidr'] as String?, events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ByoipCidrEvent.fromJson(e as Map)) .toList(), state: (json['State'] as String?)?.let(ByoipCidrState.fromString), @@ -3995,7 +3995,7 @@ class CustomRoutingAccelerator { ipAddressType: (json['IpAddressType'] as String?)?.let(IpAddressType.fromString), ipSets: (json['IpSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpSet.fromJson(e as Map)) .toList(), lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), @@ -4161,7 +4161,7 @@ class CustomRoutingDestinationDescription { return CustomRoutingDestinationDescription( fromPort: json['FromPort'] as int?, protocols: (json['Protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Protocol.fromString((e as String))) .toList(), toPort: json['ToPort'] as int?, @@ -4278,12 +4278,12 @@ class CustomRoutingEndpointGroup { factory CustomRoutingEndpointGroup.fromJson(Map json) { return CustomRoutingEndpointGroup( destinationDescriptions: (json['DestinationDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingDestinationDescription.fromJson( e as Map)) .toList(), endpointDescriptions: (json['EndpointDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingEndpointDescription.fromJson( e as Map)) .toList(), @@ -4330,7 +4330,7 @@ class CustomRoutingListener { return CustomRoutingListener( listenerArn: json['ListenerArn'] as String?, portRanges: (json['PortRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRange.fromJson(e as Map)) .toList(), ); @@ -4664,7 +4664,7 @@ class DestinationPortMapping { return DestinationPortMapping( acceleratorArn: json['AcceleratorArn'] as String?, acceleratorSocketAddresses: (json['AcceleratorSocketAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SocketAddress.fromJson(e as Map)) .toList(), destinationSocketAddress: json['DestinationSocketAddress'] != null @@ -4933,7 +4933,7 @@ class EndpointGroup { factory EndpointGroup.fromJson(Map json) { return EndpointGroup( endpointDescriptions: (json['EndpointDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointDescription.fromJson(e as Map)) .toList(), endpointGroupArn: json['EndpointGroupArn'] as String?, @@ -4944,7 +4944,7 @@ class EndpointGroup { healthCheckProtocol: (json['HealthCheckProtocol'] as String?) ?.let(HealthCheckProtocol.fromString), portOverrides: (json['PortOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortOverride.fromJson(e as Map)) .toList(), thresholdCount: json['ThresholdCount'] as int?, @@ -5103,7 +5103,7 @@ class IpSet { ipAddressFamily: (json['IpAddressFamily'] as String?)?.let(IpAddressFamily.fromString), ipAddresses: (json['IpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ipFamily: json['IpFamily'] as String?, @@ -5138,7 +5138,7 @@ class ListAcceleratorsResponse { factory ListAcceleratorsResponse.fromJson(Map json) { return ListAcceleratorsResponse( accelerators: (json['Accelerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Accelerator.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5170,7 +5170,7 @@ class ListByoipCidrsResponse { factory ListByoipCidrsResponse.fromJson(Map json) { return ListByoipCidrsResponse( byoipCidrs: (json['ByoipCidrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ByoipCidr.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5204,7 +5204,7 @@ class ListCrossAccountAttachmentsResponse { Map json) { return ListCrossAccountAttachmentsResponse( crossAccountAttachments: (json['CrossAccountAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5235,7 +5235,7 @@ class ListCrossAccountResourceAccountsResponse { Map json) { return ListCrossAccountResourceAccountsResponse( resourceOwnerAwsAccountIds: (json['ResourceOwnerAwsAccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5267,7 +5267,7 @@ class ListCrossAccountResourcesResponse { Map json) { return ListCrossAccountResourcesResponse( crossAccountResources: (json['CrossAccountResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CrossAccountResource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5302,7 +5302,7 @@ class ListCustomRoutingAcceleratorsResponse { Map json) { return ListCustomRoutingAcceleratorsResponse( accelerators: (json['Accelerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingAccelerator.fromJson(e as Map)) .toList(), @@ -5338,7 +5338,7 @@ class ListCustomRoutingEndpointGroupsResponse { Map json) { return ListCustomRoutingEndpointGroupsResponse( endpointGroups: (json['EndpointGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingEndpointGroup.fromJson(e as Map)) .toList(), @@ -5373,7 +5373,7 @@ class ListCustomRoutingListenersResponse { Map json) { return ListCustomRoutingListenersResponse( listeners: (json['Listeners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingListener.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5408,7 +5408,7 @@ class ListCustomRoutingPortMappingsByDestinationResponse { Map json) { return ListCustomRoutingPortMappingsByDestinationResponse( destinationPortMappings: (json['DestinationPortMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DestinationPortMapping.fromJson(e as Map)) .toList(), @@ -5445,7 +5445,7 @@ class ListCustomRoutingPortMappingsResponse { return ListCustomRoutingPortMappingsResponse( nextToken: json['NextToken'] as String?, portMappings: (json['PortMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortMapping.fromJson(e as Map)) .toList(), ); @@ -5477,7 +5477,7 @@ class ListEndpointGroupsResponse { factory ListEndpointGroupsResponse.fromJson(Map json) { return ListEndpointGroupsResponse( endpointGroups: (json['EndpointGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointGroup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5510,7 +5510,7 @@ class ListListenersResponse { factory ListListenersResponse.fromJson(Map json) { return ListListenersResponse( listeners: (json['Listeners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Listener.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5538,7 +5538,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5599,7 +5599,7 @@ class Listener { (json['ClientAffinity'] as String?)?.let(ClientAffinity.fromString), listenerArn: json['ListenerArn'] as String?, portRanges: (json['PortRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRange.fromJson(e as Map)) .toList(), protocol: (json['Protocol'] as String?)?.let(Protocol.fromString), @@ -5668,7 +5668,7 @@ class PortMapping { endpointGroupArn: json['EndpointGroupArn'] as String?, endpointId: json['EndpointId'] as String?, protocols: (json['Protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingProtocol.fromString((e as String))) .toList(), ); diff --git a/aws_client/lib/src/generated/glue/v2017_03_31.dart b/aws_client/lib/src/generated/glue/v2017_03_31.dart index 84fc7ac85..b7edf11cf 100644 --- a/aws_client/lib/src/generated/glue/v2017_03_31.dart +++ b/aws_client/lib/src/generated/glue/v2017_03_31.dart @@ -11489,18 +11489,15 @@ class Aggregate { factory Aggregate.fromJson(Map json) { return Aggregate( aggs: (json['Aggs'] as List) - .whereNotNull() + .nonNulls .map((e) => AggregateOperation.fromJson(e as Map)) .toList(), groups: (json['Groups'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) - .toList(), - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, ); } @@ -11541,10 +11538,8 @@ class AggregateOperation { factory AggregateOperation.fromJson(Map json) { return AggregateOperation( aggFunc: AggFunction.fromString((json['AggFunc'] as String)), - column: (json['Column'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + column: + (json['Column'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -11713,7 +11708,7 @@ class AmazonRedshiftNodeData { accessType: json['AccessType'] as String?, action: json['Action'] as String?, advancedOptions: (json['AdvancedOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AmazonRedshiftAdvancedOption.fromJson(e as Map)) .toList(), @@ -11743,7 +11738,7 @@ class AmazonRedshiftNodeData { ? Option.fromJson(json['Schema'] as Map) : null, selectedColumns: (json['SelectedColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Option.fromJson(e as Map)) .toList(), sourceType: json['SourceType'] as String?, @@ -11753,7 +11748,7 @@ class AmazonRedshiftNodeData { : null, tablePrefix: json['TablePrefix'] as String?, tableSchema: (json['TableSchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Option.fromJson(e as Map)) .toList(), tempDir: json['TempDir'] as String?, @@ -11878,10 +11873,8 @@ class AmazonRedshiftTarget { ? AmazonRedshiftNodeData.fromJson( json['Data'] as Map) : null, - inputs: (json['Inputs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List?)?.nonNulls.map((e) => e as String).toList(), name: json['Name'] as String?, ); } @@ -11920,12 +11913,10 @@ class ApplyMapping { factory ApplyMapping.fromJson(Map json) { return ApplyMapping( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), mapping: (json['Mapping'] as List) - .whereNotNull() + .nonNulls .map((e) => Mapping.fromJson(e as Map)) .toList(), name: json['Name'] as String, @@ -11989,7 +11980,7 @@ class AthenaConnectorSource { schemaName: json['SchemaName'] as String, connectionTable: json['ConnectionTable'] as String?, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -12209,7 +12200,7 @@ class BackfillError { return BackfillError( code: (json['Code'] as String?)?.let(BackfillErrorCode.fromString), partitions: (json['Partitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionValueList.fromJson(e as Map)) .toList(), ); @@ -12269,10 +12260,8 @@ class BasicCatalogTarget { factory BasicCatalogTarget.fromJson(Map json) { return BasicCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, ); @@ -12303,7 +12292,7 @@ class BatchCreatePartitionResponse { factory BatchCreatePartitionResponse.fromJson(Map json) { return BatchCreatePartitionResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionError.fromJson(e as Map)) .toList(), ); @@ -12336,7 +12325,7 @@ class BatchDeleteConnectionResponse { errors: (json['Errors'] as Map?)?.map((k, e) => MapEntry(k, ErrorDetail.fromJson(e as Map))), succeeded: (json['Succeeded'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12363,7 +12352,7 @@ class BatchDeletePartitionResponse { factory BatchDeletePartitionResponse.fromJson(Map json) { return BatchDeletePartitionResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionError.fromJson(e as Map)) .toList(), ); @@ -12388,7 +12377,7 @@ class BatchDeleteTableResponse { factory BatchDeleteTableResponse.fromJson(Map json) { return BatchDeleteTableResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableError.fromJson(e as Map)) .toList(), ); @@ -12414,7 +12403,7 @@ class BatchDeleteTableVersionResponse { factory BatchDeleteTableVersionResponse.fromJson(Map json) { return BatchDeleteTableVersionResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableVersionError.fromJson(e as Map)) .toList(), ); @@ -12443,11 +12432,11 @@ class BatchGetBlueprintsResponse { factory BatchGetBlueprintsResponse.fromJson(Map json) { return BatchGetBlueprintsResponse( blueprints: (json['Blueprints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Blueprint.fromJson(e as Map)) .toList(), missingBlueprints: (json['MissingBlueprints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12478,11 +12467,11 @@ class BatchGetCrawlersResponse { factory BatchGetCrawlersResponse.fromJson(Map json) { return BatchGetCrawlersResponse( crawlers: (json['Crawlers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Crawler.fromJson(e as Map)) .toList(), crawlersNotFound: (json['CrawlersNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12515,11 +12504,11 @@ class BatchGetCustomEntityTypesResponse { Map json) { return BatchGetCustomEntityTypesResponse( customEntityTypes: (json['CustomEntityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomEntityType.fromJson(e as Map)) .toList(), customEntityTypesNotFound: (json['CustomEntityTypesNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12553,11 +12542,11 @@ class BatchGetDataQualityResultResponse { Map json) { return BatchGetDataQualityResultResponse( results: (json['Results'] as List) - .whereNotNull() + .nonNulls .map((e) => DataQualityResult.fromJson(e as Map)) .toList(), resultsNotFound: (json['ResultsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12588,11 +12577,11 @@ class BatchGetDevEndpointsResponse { factory BatchGetDevEndpointsResponse.fromJson(Map json) { return BatchGetDevEndpointsResponse( devEndpoints: (json['DevEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DevEndpoint.fromJson(e as Map)) .toList(), devEndpointsNotFound: (json['DevEndpointsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12624,11 +12613,11 @@ class BatchGetJobsResponse { factory BatchGetJobsResponse.fromJson(Map json) { return BatchGetJobsResponse( jobs: (json['Jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), jobsNotFound: (json['JobsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12660,11 +12649,11 @@ class BatchGetPartitionResponse { factory BatchGetPartitionResponse.fromJson(Map json) { return BatchGetPartitionResponse( partitions: (json['Partitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Partition.fromJson(e as Map)) .toList(), unprocessedKeys: (json['UnprocessedKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionValueList.fromJson(e as Map)) .toList(), ); @@ -12786,12 +12775,12 @@ class BatchGetTableOptimizerResponse { factory BatchGetTableOptimizerResponse.fromJson(Map json) { return BatchGetTableOptimizerResponse( failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchGetTableOptimizerError.fromJson(e as Map)) .toList(), tableOptimizers: (json['TableOptimizers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchTableOptimizer.fromJson(e as Map)) .toList(), ); @@ -12822,11 +12811,11 @@ class BatchGetTriggersResponse { factory BatchGetTriggersResponse.fromJson(Map json) { return BatchGetTriggersResponse( triggers: (json['Triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trigger.fromJson(e as Map)) .toList(), triggersNotFound: (json['TriggersNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12857,11 +12846,11 @@ class BatchGetWorkflowsResponse { factory BatchGetWorkflowsResponse.fromJson(Map json) { return BatchGetWorkflowsResponse( missingWorkflows: (json['MissingWorkflows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), workflows: (json['Workflows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Workflow.fromJson(e as Map)) .toList(), ); @@ -12933,11 +12922,11 @@ class BatchStopJobRunResponse { factory BatchStopJobRunResponse.fromJson(Map json) { return BatchStopJobRunResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchStopJobRunError.fromJson(e as Map)) .toList(), successfulSubmissions: (json['SuccessfulSubmissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchStopJobRunSuccessfulSubmission.fromJson( e as Map)) .toList(), @@ -13054,7 +13043,7 @@ class BatchUpdatePartitionFailureEntry { ? ErrorDetail.fromJson(json['ErrorDetail'] as Map) : null, partitionValueList: (json['PartitionValueList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -13106,7 +13095,7 @@ class BatchUpdatePartitionResponse { factory BatchUpdatePartitionResponse.fromJson(Map json) { return BatchUpdatePartitionResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchUpdatePartitionFailureEntry.fromJson( e as Map)) .toList(), @@ -13589,7 +13578,7 @@ class CatalogDeltaSource { (json['AdditionalDeltaOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -13685,7 +13674,7 @@ class CatalogHudiSource { (json['AdditionalHudiOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -13990,10 +13979,8 @@ class CatalogTarget { factory CatalogTarget.fromJson(Map json) { return CatalogTarget( databaseName: json['DatabaseName'] as String, - tables: (json['Tables'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tables: + (json['Tables'] as List).nonNulls.map((e) => e as String).toList(), connectionName: json['ConnectionName'] as String?, dlqEventQueueArn: json['DlqEventQueueArn'] as String?, eventQueueArn: json['EventQueueArn'] as String?, @@ -15001,7 +14988,7 @@ class CodeGenNode { factory CodeGenNode.fromJson(Map json) { return CodeGenNode( args: (json['Args'] as List) - .whereNotNull() + .nonNulls .map((e) => CodeGenNodeArg.fromJson(e as Map)) .toList(), id: json['Id'] as String, @@ -15494,7 +15481,7 @@ class ColumnStatisticsTaskRun { return ColumnStatisticsTaskRun( catalogID: json['CatalogID'] as String?, columnNameList: (json['ColumnNameList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), columnStatisticsTaskRunId: json['ColumnStatisticsTaskRunId'] as String?, @@ -16023,7 +16010,7 @@ class Connection { lastUpdatedBy: json['LastUpdatedBy'] as String?, lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), matchCriteria: (json['MatchCriteria'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -16438,7 +16425,7 @@ class ConnectionsList { factory ConnectionsList.fromJson(Map json) { return ConnectionsList( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -16508,7 +16495,7 @@ class ConnectorDataSource { .map((k, e) => MapEntry(k, e as String)), name: json['Name'] as String, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -16583,10 +16570,8 @@ class ConnectorDataTarget { data: (json['Data'] as Map) .map((k, e) => MapEntry(k, e as String)), name: json['Name'] as String, - inputs: (json['Inputs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -16781,7 +16766,7 @@ class Crawler { factory Crawler.fromJson(Map json) { return Crawler( classifiers: (json['Classifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), configuration: json['Configuration'] as String?, @@ -17080,7 +17065,7 @@ class CrawlerNodeDetails { factory CrawlerNodeDetails.fromJson(Map json) { return CrawlerNodeDetails( crawls: (json['Crawls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Crawl.fromJson(e as Map)) .toList(), ); @@ -17150,35 +17135,35 @@ class CrawlerTargets { factory CrawlerTargets.fromJson(Map json) { return CrawlerTargets( catalogTargets: (json['CatalogTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CatalogTarget.fromJson(e as Map)) .toList(), deltaTargets: (json['DeltaTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeltaTarget.fromJson(e as Map)) .toList(), dynamoDBTargets: (json['DynamoDBTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DynamoDBTarget.fromJson(e as Map)) .toList(), hudiTargets: (json['HudiTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HudiTarget.fromJson(e as Map)) .toList(), icebergTargets: (json['IcebergTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IcebergTarget.fromJson(e as Map)) .toList(), jdbcTargets: (json['JdbcTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JdbcTarget.fromJson(e as Map)) .toList(), mongoDBTargets: (json['MongoDBTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MongoDBTarget.fromJson(e as Map)) .toList(), s3Targets: (json['S3Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Target.fromJson(e as Map)) .toList(), ); @@ -17608,7 +17593,7 @@ class CreateDevEndpointResponse { roleArn: json['RoleArn'] as String?, securityConfiguration: json['SecurityConfiguration'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: json['Status'] as String?, @@ -18240,15 +18225,13 @@ class CsvClassifier { creationTime: timeStampFromJson(json['CreationTime']), customDatatypeConfigured: json['CustomDatatypeConfigured'] as bool?, customDatatypes: (json['CustomDatatypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), delimiter: json['Delimiter'] as String?, disableValueTrimming: json['DisableValueTrimming'] as bool?, - header: (json['Header'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + header: + (json['Header'] as List?)?.nonNulls.map((e) => e as String).toList(), lastUpdated: timeStampFromJson(json['LastUpdated']), quoteSymbol: json['QuoteSymbol'] as String?, serde: (json['Serde'] as String?)?.let(CsvSerdeOption.fromString), @@ -18353,13 +18336,11 @@ class CustomCode { return CustomCode( className: json['ClassName'] as String, code: json['Code'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -18410,7 +18391,7 @@ class CustomEntityType { name: json['Name'] as String, regexString: json['RegexString'] as String, contextWords: (json['ContextWords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -18840,7 +18821,7 @@ class DataQualityResult { factory DataQualityResult.fromJson(Map json) { return DataQualityResult( analyzerResults: (json['AnalyzerResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityAnalyzerResult.fromJson(e as Map)) .toList(), @@ -18852,13 +18833,13 @@ class DataQualityResult { jobName: json['JobName'] as String?, jobRunId: json['JobRunId'] as String?, observations: (json['Observations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DataQualityObservation.fromJson(e as Map)) .toList(), resultId: json['ResultId'] as String?, ruleResults: (json['RuleResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityRuleResult.fromJson(e as Map)) .toList(), rulesetEvaluationRunId: json['RulesetEvaluationRunId'] as String?, @@ -19464,7 +19445,7 @@ class Database { catalogId: json['CatalogId'] as String?, createTableDefaultPermissions: (json['CreateTableDefaultPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrincipalPermissions.fromJson(e as Map)) .toList(), createTime: timeStampFromJson(json['CreateTime']), @@ -20083,7 +20064,7 @@ class DeleteSchemaVersionsResponse { factory DeleteSchemaVersionsResponse.fromJson(Map json) { return DeleteSchemaVersionsResponse( schemaVersionErrors: (json['SchemaVersionErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SchemaVersionErrorItem.fromJson(e as Map)) .toList(), @@ -20253,7 +20234,7 @@ class DeltaTarget { connectionName: json['ConnectionName'] as String?, createNativeDeltaTable: json['CreateNativeDeltaTable'] as bool?, deltaTables: (json['DeltaTables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), writeManifest: json['WriteManifest'] as bool?, @@ -20502,13 +20483,13 @@ class DevEndpoint { publicAddress: json['PublicAddress'] as String?, publicKey: json['PublicKey'] as String?, publicKeys: (json['PublicKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), roleArn: json['RoleArn'] as String?, securityConfiguration: json['SecurityConfiguration'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: json['Status'] as String?, @@ -20906,15 +20887,12 @@ class DropDuplicates { factory DropDuplicates.fromJson(Map json) { return DropDuplicates( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, columns: (json['Columns'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -20951,15 +20929,12 @@ class DropFields { factory DropFields.fromJson(Map json) { return DropFields( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -21009,17 +20984,15 @@ class DropNullFields { factory DropNullFields.fromJson(Map json) { return DropNullFields( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, nullCheckBoxList: json['NullCheckBoxList'] != null ? NullCheckBoxList.fromJson( json['NullCheckBoxList'] as Map) : null, nullTextList: (json['NullTextList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NullValueField.fromJson(e as Map)) .toList(), ); @@ -21080,19 +21053,17 @@ class DynamicTransform { factory DynamicTransform.fromJson(Map json) { return DynamicTransform( functionName: json['FunctionName'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, path: json['Path'] as String, transformName: json['TransformName'] as String, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransformConfigParameter.fromJson(e as Map)) .toList(), @@ -21326,7 +21297,7 @@ class EncryptionConfiguration { json['JobBookmarksEncryption'] as Map) : null, s3Encryption: (json['S3Encryption'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Encryption.fromJson(e as Map)) .toList(), ); @@ -21438,10 +21409,8 @@ class EvaluateDataQuality { factory EvaluateDataQuality.fromJson(Map json) { return EvaluateDataQuality( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, ruleset: json['Ruleset'] as String, output: (json['Output'] as String?)?.let(DQTransformOutput.fromString), @@ -21512,10 +21481,8 @@ class EvaluateDataQualityMultiFrame { factory EvaluateDataQualityMultiFrame.fromJson(Map json) { return EvaluateDataQualityMultiFrame( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, ruleset: json['Ruleset'] as String, additionalDataSources: @@ -21820,10 +21787,8 @@ class FillMissingValues { factory FillMissingValues.fromJson(Map json) { return FillMissingValues( imputedPath: json['ImputedPath'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, filledPath: json['FilledPath'] as String?, ); @@ -21869,13 +21834,11 @@ class Filter { factory Filter.fromJson(Map json) { return Filter( filters: (json['Filters'] as List) - .whereNotNull() + .nonNulls .map((e) => FilterExpression.fromJson(e as Map)) .toList(), - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), logicalOperator: FilterLogicalOperator.fromString((json['LogicalOperator'] as String)), name: json['Name'] as String, @@ -21917,7 +21880,7 @@ class FilterExpression { return FilterExpression( operation: FilterOperation.fromString((json['Operation'] as String)), values: (json['Values'] as List) - .whereNotNull() + .nonNulls .map((e) => FilterValue.fromJson(e as Map)) .toList(), negated: json['Negated'] as bool?, @@ -22007,10 +21970,7 @@ class FilterValue { factory FilterValue.fromJson(Map json) { return FilterValue( type: FilterValueType.fromString((json['Type'] as String)), - value: (json['Value'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + value: (json['Value'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -22105,7 +22065,7 @@ class FindMatchesMetrics { return FindMatchesMetrics( areaUnderPRCurve: json['AreaUnderPRCurve'] as double?, columnImportances: (json['ColumnImportances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnImportance.fromJson(e as Map)) .toList(), confusionMatrix: json['ConfusionMatrix'] != null @@ -22316,7 +22276,7 @@ class GetBlueprintRunsResponse { factory GetBlueprintRunsResponse.fromJson(Map json) { return GetBlueprintRunsResponse( blueprintRuns: (json['BlueprintRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BlueprintRun.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22397,7 +22357,7 @@ class GetClassifiersResponse { factory GetClassifiersResponse.fromJson(Map json) { return GetClassifiersResponse( classifiers: (json['Classifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Classifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22430,11 +22390,11 @@ class GetColumnStatisticsForPartitionResponse { Map json) { return GetColumnStatisticsForPartitionResponse( columnStatisticsList: (json['ColumnStatisticsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnStatistics.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnError.fromJson(e as Map)) .toList(), ); @@ -22467,11 +22427,11 @@ class GetColumnStatisticsForTableResponse { Map json) { return GetColumnStatisticsForTableResponse( columnStatisticsList: (json['ColumnStatisticsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnStatistics.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnError.fromJson(e as Map)) .toList(), ); @@ -22532,7 +22492,7 @@ class GetColumnStatisticsTaskRunsResponse { Map json) { return GetColumnStatisticsTaskRunsResponse( columnStatisticsTaskRuns: (json['ColumnStatisticsTaskRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnStatisticsTaskRun.fromJson(e as Map)) .toList(), @@ -22616,7 +22576,7 @@ class GetConnectionsResponse { factory GetConnectionsResponse.fromJson(Map json) { return GetConnectionsResponse( connectionList: (json['ConnectionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22649,7 +22609,7 @@ class GetCrawlerMetricsResponse { factory GetCrawlerMetricsResponse.fromJson(Map json) { return GetCrawlerMetricsResponse( crawlerMetricsList: (json['CrawlerMetricsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CrawlerMetrics.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22706,7 +22666,7 @@ class GetCrawlersResponse { factory GetCrawlersResponse.fromJson(Map json) { return GetCrawlersResponse( crawlers: (json['Crawlers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Crawler.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22745,7 +22705,7 @@ class GetCustomEntityTypeResponse { factory GetCustomEntityTypeResponse.fromJson(Map json) { return GetCustomEntityTypeResponse( contextWords: (json['ContextWords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -22859,7 +22819,7 @@ class GetDataQualityResultResponse { factory GetDataQualityResultResponse.fromJson(Map json) { return GetDataQualityResultResponse( analyzerResults: (json['AnalyzerResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityAnalyzerResult.fromJson(e as Map)) .toList(), @@ -22871,13 +22831,13 @@ class GetDataQualityResultResponse { jobName: json['JobName'] as String?, jobRunId: json['JobRunId'] as String?, observations: (json['Observations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DataQualityObservation.fromJson(e as Map)) .toList(), resultId: json['ResultId'] as String?, ruleResults: (json['RuleResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityRuleResult.fromJson(e as Map)) .toList(), rulesetEvaluationRunId: json['RulesetEvaluationRunId'] as String?, @@ -23125,12 +23085,12 @@ class GetDataQualityRulesetEvaluationRunResponse { lastModifiedOn: timeStampFromJson(json['LastModifiedOn']), numberOfWorkers: json['NumberOfWorkers'] as int?, resultIds: (json['ResultIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), role: json['Role'] as String?, rulesetNames: (json['RulesetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), runId: json['RunId'] as String?, @@ -23291,7 +23251,7 @@ class GetDatabasesResponse { factory GetDatabasesResponse.fromJson(Map json) { return GetDatabasesResponse( databaseList: (json['DatabaseList'] as List) - .whereNotNull() + .nonNulls .map((e) => Database.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -23323,11 +23283,11 @@ class GetDataflowGraphResponse { factory GetDataflowGraphResponse.fromJson(Map json) { return GetDataflowGraphResponse( dagEdges: (json['DagEdges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeGenEdge.fromJson(e as Map)) .toList(), dagNodes: (json['DagNodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeGenNode.fromJson(e as Map)) .toList(), ); @@ -23383,7 +23343,7 @@ class GetDevEndpointsResponse { factory GetDevEndpointsResponse.fromJson(Map json) { return GetDevEndpointsResponse( devEndpoints: (json['DevEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DevEndpoint.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -23488,7 +23448,7 @@ class GetJobRunsResponse { factory GetJobRunsResponse.fromJson(Map json) { return GetJobRunsResponse( jobRuns: (json['JobRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobRun.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -23520,7 +23480,7 @@ class GetJobsResponse { factory GetJobsResponse.fromJson(Map json) { return GetJobsResponse( jobs: (json['Jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -23642,7 +23602,7 @@ class GetMLTaskRunsResponse { return GetMLTaskRunsResponse( nextToken: json['NextToken'] as String?, taskRuns: (json['TaskRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskRun.fromJson(e as Map)) .toList(), ); @@ -23788,7 +23748,7 @@ class GetMLTransformResponse { : null, glueVersion: json['GlueVersion'] as String?, inputRecordTables: (json['InputRecordTables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueTable.fromJson(e as Map)) .toList(), labelCount: json['LabelCount'] as int?, @@ -23803,7 +23763,7 @@ class GetMLTransformResponse { : null, role: json['Role'] as String?, schema: (json['Schema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaColumn.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(TransformStatusType.fromString), @@ -23878,7 +23838,7 @@ class GetMLTransformsResponse { factory GetMLTransformsResponse.fromJson(Map json) { return GetMLTransformsResponse( transforms: (json['Transforms'] as List) - .whereNotNull() + .nonNulls .map((e) => MLTransform.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -23906,7 +23866,7 @@ class GetMappingResponse { factory GetMappingResponse.fromJson(Map json) { return GetMappingResponse( mapping: (json['Mapping'] as List) - .whereNotNull() + .nonNulls .map((e) => MappingEntry.fromJson(e as Map)) .toList(), ); @@ -23937,7 +23897,7 @@ class GetPartitionIndexesResponse { nextToken: json['NextToken'] as String?, partitionIndexDescriptorList: (json['PartitionIndexDescriptorList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionIndexDescriptor.fromJson(e as Map)) .toList(), @@ -23996,7 +23956,7 @@ class GetPartitionsResponse { return GetPartitionsResponse( nextToken: json['NextToken'] as String?, partitions: (json['Partitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Partition.fromJson(e as Map)) .toList(), ); @@ -24116,7 +24076,7 @@ class GetResourcePoliciesResponse { return GetResourcePoliciesResponse( getResourcePoliciesResponseList: (json['GetResourcePoliciesResponseList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GluePolicy.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -24472,7 +24432,7 @@ class GetSecurityConfigurationsResponse { return GetSecurityConfigurationsResponse( nextToken: json['NextToken'] as String?, securityConfigurations: (json['SecurityConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityConfiguration.fromJson(e as Map)) .toList(), ); @@ -24648,7 +24608,7 @@ class GetTableVersionsResponse { return GetTableVersionsResponse( nextToken: json['NextToken'] as String?, tableVersions: (json['TableVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableVersion.fromJson(e as Map)) .toList(), ); @@ -24680,7 +24640,7 @@ class GetTablesResponse { return GetTablesResponse( nextToken: json['NextToken'] as String?, tableList: (json['TableList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Table.fromJson(e as Map)) .toList(), ); @@ -24760,7 +24720,7 @@ class GetTriggersResponse { return GetTriggersResponse( nextToken: json['NextToken'] as String?, triggers: (json['Triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trigger.fromJson(e as Map)) .toList(), ); @@ -24797,7 +24757,7 @@ class GetUnfilteredPartitionMetadataResponse { Map json) { return GetUnfilteredPartitionMetadataResponse( authorizedColumns: (json['AuthorizedColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), isRegisteredWithLakeFormation: @@ -24839,7 +24799,7 @@ class GetUnfilteredPartitionsMetadataResponse { return GetUnfilteredPartitionsMetadataResponse( nextToken: json['NextToken'] as String?, unfilteredPartitions: (json['UnfilteredPartitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnfilteredPartition.fromJson(e as Map)) .toList(), ); @@ -24914,11 +24874,11 @@ class GetUnfilteredTableMetadataResponse { Map json) { return GetUnfilteredTableMetadataResponse( authorizedColumns: (json['AuthorizedColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cellFilters: (json['CellFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnRowFilter.fromJson(e as Map)) .toList(), isMultiDialectView: json['IsMultiDialectView'] as bool?, @@ -24926,7 +24886,7 @@ class GetUnfilteredTableMetadataResponse { isRegisteredWithLakeFormation: json['IsRegisteredWithLakeFormation'] as bool?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), queryAuthorizationId: json['QueryAuthorizationId'] as String?, @@ -25010,7 +24970,7 @@ class GetUserDefinedFunctionsResponse { return GetUserDefinedFunctionsResponse( nextToken: json['NextToken'] as String?, userDefinedFunctions: (json['UserDefinedFunctions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserDefinedFunction.fromJson(e as Map)) .toList(), ); @@ -25114,7 +25074,7 @@ class GetWorkflowRunsResponse { return GetWorkflowRunsResponse( nextToken: json['NextToken'] as String?, runs: (json['Runs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowRun.fromJson(e as Map)) .toList(), ); @@ -25209,7 +25169,7 @@ class GlueSchema { factory GlueSchema.fromJson(Map json) { return GlueSchema( columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GlueStudioSchemaColumn.fromJson(e as Map)) .toList(), @@ -25407,16 +25367,13 @@ class GovernedCatalogTarget { factory GovernedCatalogTarget.fromJson(Map json) { return GovernedCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? CatalogSchemaChangePolicy.fromJson( @@ -25552,14 +25509,12 @@ class HudiTarget { return HudiTarget( connectionName: json['ConnectionName'] as String?, exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maximumTraversalDepth: json['MaximumTraversalDepth'] as int?, - paths: (json['Paths'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + paths: + (json['Paths'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -25651,14 +25606,12 @@ class IcebergTarget { return IcebergTarget( connectionName: json['ConnectionName'] as String?, exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maximumTraversalDepth: json['MaximumTraversalDepth'] as int?, - paths: (json['Paths'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + paths: + (json['Paths'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -25803,7 +25756,7 @@ class JDBCConnectorOptions { GlueRecordType.fromString((e as String)))), filterPredicate: json['FilterPredicate'] as String?, jobBookmarkKeys: (json['JobBookmarkKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), jobBookmarkKeysSortOrder: json['JobBookmarkKeysSortOrder'] as String?, @@ -25891,7 +25844,7 @@ class JDBCConnectorSource { : null, connectionTable: json['ConnectionTable'] as String?, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), query: json['Query'] as String?, @@ -25965,15 +25918,13 @@ class JDBCConnectorTarget { connectionTable: json['ConnectionTable'] as String, connectionType: json['ConnectionType'] as String, connectorName: json['ConnectorName'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, additionalOptions: (json['AdditionalOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -26101,11 +26052,11 @@ class JdbcTarget { return JdbcTarget( connectionName: json['ConnectionName'] as String?, enableAdditionalMetadata: (json['EnableAdditionalMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JdbcMetadataEntry.fromString((e as String))) .toList(), exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), path: json['Path'] as String?, @@ -26712,7 +26663,7 @@ class JobNodeDetails { factory JobNodeDetails.fromJson(Map json) { return JobNodeDetails( jobRuns: (json['JobRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobRun.fromJson(e as Map)) .toList(), ); @@ -27049,7 +27000,7 @@ class JobRun { : null, numberOfWorkers: json['NumberOfWorkers'] as int?, predecessorRuns: (json['PredecessorRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Predecessor.fromJson(e as Map)) .toList(), previousRunId: json['PreviousRunId'] as String?, @@ -27489,13 +27440,11 @@ class Join { factory Join.fromJson(Map json) { return Join( columns: (json['Columns'] as List) - .whereNotNull() + .nonNulls .map((e) => JoinColumn.fromJson(e as Map)) .toList(), - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), joinType: JoinType.fromString((json['JoinType'] as String)), name: json['Name'] as String, ); @@ -27532,9 +27481,8 @@ class JoinColumn { return JoinColumn( from: json['From'] as String, keys: (json['Keys'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -28309,7 +28257,7 @@ class ListBlueprintsResponse { factory ListBlueprintsResponse.fromJson(Map json) { return ListBlueprintsResponse( blueprints: (json['Blueprints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -28342,7 +28290,7 @@ class ListColumnStatisticsTaskRunsResponse { Map json) { return ListColumnStatisticsTaskRunsResponse( columnStatisticsTaskRunIds: (json['ColumnStatisticsTaskRunIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -28377,7 +28325,7 @@ class ListCrawlersResponse { factory ListCrawlersResponse.fromJson(Map json) { return ListCrawlersResponse( crawlerNames: (json['CrawlerNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -28411,7 +28359,7 @@ class ListCrawlsResponse { factory ListCrawlsResponse.fromJson(Map json) { return ListCrawlsResponse( crawls: (json['Crawls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CrawlerHistory.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -28444,7 +28392,7 @@ class ListCustomEntityTypesResponse { factory ListCustomEntityTypesResponse.fromJson(Map json) { return ListCustomEntityTypesResponse( customEntityTypes: (json['CustomEntityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomEntityType.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -28476,7 +28424,7 @@ class ListDataQualityResultsResponse { factory ListDataQualityResultsResponse.fromJson(Map json) { return ListDataQualityResultsResponse( results: (json['Results'] as List) - .whereNotNull() + .nonNulls .map((e) => DataQualityResultDescription.fromJson(e as Map)) .toList(), @@ -28511,7 +28459,7 @@ class ListDataQualityRuleRecommendationRunsResponse { return ListDataQualityRuleRecommendationRunsResponse( nextToken: json['NextToken'] as String?, runs: (json['Runs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityRuleRecommendationRunDescription.fromJson( e as Map)) .toList(), @@ -28546,7 +28494,7 @@ class ListDataQualityRulesetEvaluationRunsResponse { return ListDataQualityRulesetEvaluationRunsResponse( nextToken: json['NextToken'] as String?, runs: (json['Runs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityRulesetEvaluationRunDescription.fromJson( e as Map)) .toList(), @@ -28579,7 +28527,7 @@ class ListDataQualityRulesetsResponse { return ListDataQualityRulesetsResponse( nextToken: json['NextToken'] as String?, rulesets: (json['Rulesets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityRulesetListDetails.fromJson(e as Map)) .toList(), @@ -28613,7 +28561,7 @@ class ListDevEndpointsResponse { factory ListDevEndpointsResponse.fromJson(Map json) { return ListDevEndpointsResponse( devEndpointNames: (json['DevEndpointNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -28646,7 +28594,7 @@ class ListJobsResponse { factory ListJobsResponse.fromJson(Map json) { return ListJobsResponse( jobNames: (json['JobNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -28680,7 +28628,7 @@ class ListMLTransformsResponse { factory ListMLTransformsResponse.fromJson(Map json) { return ListMLTransformsResponse( transformIds: (json['TransformIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -28715,7 +28663,7 @@ class ListRegistriesResponse { return ListRegistriesResponse( nextToken: json['NextToken'] as String?, registries: (json['Registries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegistryListItem.fromJson(e as Map)) .toList(), ); @@ -28749,7 +28697,7 @@ class ListSchemaVersionsResponse { return ListSchemaVersionsResponse( nextToken: json['NextToken'] as String?, schemas: (json['Schemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaVersionListItem.fromJson(e as Map)) .toList(), ); @@ -28783,7 +28731,7 @@ class ListSchemasResponse { return ListSchemasResponse( nextToken: json['NextToken'] as String?, schemas: (json['Schemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaListItem.fromJson(e as Map)) .toList(), ); @@ -28817,13 +28765,10 @@ class ListSessionsResponse { factory ListSessionsResponse.fromJson(Map json) { return ListSessionsResponse( - ids: (json['Ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['Ids'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, sessions: (json['Sessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Session.fromJson(e as Map)) .toList(), ); @@ -28857,7 +28802,7 @@ class ListStatementsResponse { return ListStatementsResponse( nextToken: json['NextToken'] as String?, statements: (json['Statements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Statement.fromJson(e as Map)) .toList(), ); @@ -28905,7 +28850,7 @@ class ListTableOptimizerRunsResponse { nextToken: json['NextToken'] as String?, tableName: json['TableName'] as String?, tableOptimizerRuns: (json['TableOptimizerRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableOptimizerRun.fromJson(e as Map)) .toList(), ); @@ -28945,7 +28890,7 @@ class ListTriggersResponse { return ListTriggersResponse( nextToken: json['NextToken'] as String?, triggerNames: (json['TriggerNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -28977,7 +28922,7 @@ class ListWorkflowsResponse { return ListWorkflowsResponse( nextToken: json['NextToken'] as String?, workflows: (json['Workflows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -29293,7 +29238,7 @@ class MLTransform { : null, glueVersion: json['GlueVersion'] as String?, inputRecordTables: (json['InputRecordTables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueTable.fromJson(e as Map)) .toList(), labelCount: json['LabelCount'] as int?, @@ -29308,7 +29253,7 @@ class MLTransform { : null, role: json['Role'] as String?, schema: (json['Schema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaColumn.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(TransformStatusType.fromString), @@ -29474,12 +29419,12 @@ class Mapping { factory Mapping.fromJson(Map json) { return Mapping( children: (json['Children'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Mapping.fromJson(e as Map)) .toList(), dropped: json['Dropped'] as bool?, fromPath: (json['FromPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fromType: json['FromType'] as String?, @@ -29592,15 +29537,12 @@ class Merge { factory Merge.fromJson(Map json) { return Merge( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, primaryKeys: (json['PrimaryKeys'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), source: json['Source'] as String, ); @@ -29642,7 +29584,7 @@ class MetadataInfo { createdTime: json['CreatedTime'] as String?, metadataValue: json['MetadataValue'] as String?, otherMetadataValueList: (json['OtherMetadataValueList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OtherMetadataValueListItem.fromJson(e as Map)) .toList(), @@ -29727,7 +29669,7 @@ class MetricBasedObservation { json['MetricValues'] as Map) : null, newRules: (json['NewRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -29806,10 +29748,8 @@ class MicrosoftSQLServerCatalogTarget { factory MicrosoftSQLServerCatalogTarget.fromJson(Map json) { return MicrosoftSQLServerCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, ); @@ -29934,10 +29874,8 @@ class MySQLCatalogTarget { factory MySQLCatalogTarget.fromJson(Map json) { return MySQLCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, ); @@ -30408,10 +30346,8 @@ class OracleSQLCatalogTarget { factory OracleSQLCatalogTarget.fromJson(Map json) { return OracleSQLCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, ); @@ -30543,13 +30479,11 @@ class PIIDetection { factory PIIDetection.fromJson(Map json) { return PIIDetection( entityTypesToDetect: (json['EntityTypesToDetect'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - inputs: (json['Inputs'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, piiType: PiiType.fromString((json['PiiType'] as String)), maskValue: json['MaskValue'] as String?, @@ -30674,10 +30608,8 @@ class Partition { json['StorageDescriptor'] as Map) : null, tableName: json['TableName'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -30727,7 +30659,7 @@ class PartitionError { ? ErrorDetail.fromJson(json['ErrorDetail'] as Map) : null, partitionValues: (json['PartitionValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -30813,11 +30745,11 @@ class PartitionIndexDescriptor { indexStatus: PartitionIndexStatus.fromString((json['IndexStatus'] as String)), keys: (json['Keys'] as List) - .whereNotNull() + .nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), backfillErrors: (json['BackfillErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackfillError.fromJson(e as Map)) .toList(), ); @@ -30915,10 +30847,8 @@ class PartitionValueList { factory PartitionValueList.fromJson(Map json) { return PartitionValueList( - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -30989,7 +30919,7 @@ class PhysicalConnectionRequirements { return PhysicalConnectionRequirements( availabilityZone: json['AvailabilityZone'] as String?, securityGroupIdList: (json['SecurityGroupIdList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetId: json['SubnetId'] as String?, @@ -31086,10 +31016,8 @@ class PostgreSQLCatalogTarget { factory PostgreSQLCatalogTarget.fromJson(Map json) { return PostgreSQLCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, ); @@ -31157,7 +31085,7 @@ class Predicate { factory Predicate.fromJson(Map json) { return Predicate( conditions: (json['Conditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Condition.fromJson(e as Map)) .toList(), logical: (json['Logical'] as String?)?.let(Logical.fromString), @@ -31190,7 +31118,7 @@ class PrincipalPermissions { factory PrincipalPermissions.fromJson(Map json) { return PrincipalPermissions( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), principal: json['Principal'] != null @@ -31496,10 +31424,8 @@ class Recipe { factory Recipe.fromJson(Map json) { return Recipe( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, recipeReference: RecipeReference.fromJson( json['RecipeReference'] as Map), @@ -31692,10 +31618,8 @@ class RedshiftTarget { factory RedshiftTarget.fromJson(Map json) { return RedshiftTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, redshiftTmpDir: json['RedshiftTmpDir'] as String?, @@ -31996,17 +31920,15 @@ class RenameField { factory RenameField.fromJson(Map json) { return RenameField( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, sourcePath: (json['SourcePath'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), targetPath: (json['TargetPath'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -32129,10 +32051,8 @@ class ResumeWorkflowRunResponse { factory ResumeWorkflowRunResponse.fromJson(Map json) { return ResumeWorkflowRunResponse( - nodeIds: (json['NodeIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + nodeIds: + (json['NodeIds'] as List?)?.nonNulls.map((e) => e as String).toList(), runId: json['RunId'] as String?, ); } @@ -32250,7 +32170,7 @@ class S3CatalogDeltaSource { (json['AdditionalDeltaOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -32308,7 +32228,7 @@ class S3CatalogHudiSource { (json['AdditionalHudiOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -32420,16 +32340,13 @@ class S3CatalogTarget { factory S3CatalogTarget.fromJson(Map json) { return S3CatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? CatalogSchemaChangePolicy.fromJson( @@ -32571,10 +32488,7 @@ class S3CsvSource { factory S3CsvSource.fromJson(Map json) { return S3CsvSource( name: json['Name'] as String, - paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + paths: (json['Paths'] as List).nonNulls.map((e) => e as String).toList(), quoteChar: QuoteChar.fromString((json['QuoteChar'] as String)), separator: Separator.fromString((json['Separator'] as String)), additionalOptions: json['AdditionalOptions'] != null @@ -32585,7 +32499,7 @@ class S3CsvSource { (json['CompressionType'] as String?)?.let(CompressionType.fromString), escaper: json['Escaper'] as String?, exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), groupFiles: json['GroupFiles'] as String?, @@ -32595,7 +32509,7 @@ class S3CsvSource { multiline: json['Multiline'] as bool?, optimizePerformance: json['OptimizePerformance'] as bool?, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), recurse: json['Recurse'] as bool?, @@ -32687,18 +32601,15 @@ class S3DeltaCatalogTarget { factory S3DeltaCatalogTarget.fromJson(Map json) { return S3DeltaCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, additionalOptions: (json['AdditionalOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? CatalogSchemaChangePolicy.fromJson( @@ -32771,18 +32682,15 @@ class S3DeltaDirectTarget { compression: DeltaTargetCompressionType.fromString( (json['Compression'] as String)), format: TargetFormat.fromString((json['Format'] as String)), - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, path: json['Path'] as String, additionalOptions: (json['AdditionalOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? DirectSchemaChangePolicy.fromJson( @@ -32841,10 +32749,7 @@ class S3DeltaSource { factory S3DeltaSource.fromJson(Map json) { return S3DeltaSource( name: json['Name'] as String, - paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + paths: (json['Paths'] as List).nonNulls.map((e) => e as String).toList(), additionalDeltaOptions: (json['AdditionalDeltaOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), @@ -32853,7 +32758,7 @@ class S3DeltaSource { json['AdditionalOptions'] as Map) : null, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -32959,17 +32864,14 @@ class S3DirectTarget { factory S3DirectTarget.fromJson(Map json) { return S3DirectTarget( format: TargetFormat.fromString((json['Format'] as String)), - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, path: json['Path'] as String, compression: json['Compression'] as String?, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? DirectSchemaChangePolicy.fromJson( @@ -33081,18 +32983,15 @@ class S3GlueParquetTarget { factory S3GlueParquetTarget.fromJson(Map json) { return S3GlueParquetTarget( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, path: json['Path'] as String, compression: (json['Compression'] as String?) ?.let(ParquetCompressionType.fromString), partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? DirectSchemaChangePolicy.fromJson( @@ -33158,16 +33057,13 @@ class S3HudiCatalogTarget { additionalOptions: (json['AdditionalOptions'] as Map) .map((k, e) => MapEntry(k, e as String)), database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? CatalogSchemaChangePolicy.fromJson( @@ -33242,16 +33138,13 @@ class S3HudiDirectTarget { compression: HudiTargetCompressionType.fromString((json['Compression'] as String)), format: TargetFormat.fromString((json['Format'] as String)), - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, path: json['Path'] as String, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? DirectSchemaChangePolicy.fromJson( @@ -33310,10 +33203,7 @@ class S3HudiSource { factory S3HudiSource.fromJson(Map json) { return S3HudiSource( name: json['Name'] as String, - paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + paths: (json['Paths'] as List).nonNulls.map((e) => e as String).toList(), additionalHudiOptions: (json['AdditionalHudiOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), @@ -33322,7 +33212,7 @@ class S3HudiSource { json['AdditionalOptions'] as Map) : null, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -33425,10 +33315,7 @@ class S3JsonSource { factory S3JsonSource.fromJson(Map json) { return S3JsonSource( name: json['Name'] as String, - paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + paths: (json['Paths'] as List).nonNulls.map((e) => e as String).toList(), additionalOptions: json['AdditionalOptions'] != null ? S3DirectSourceAdditionalOptions.fromJson( json['AdditionalOptions'] as Map) @@ -33436,7 +33323,7 @@ class S3JsonSource { compressionType: (json['CompressionType'] as String?)?.let(CompressionType.fromString), exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), groupFiles: json['GroupFiles'] as String?, @@ -33446,7 +33333,7 @@ class S3JsonSource { maxFilesInBand: json['MaxFilesInBand'] as int?, multiline: json['Multiline'] as bool?, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), recurse: json['Recurse'] as bool?, @@ -33553,10 +33440,7 @@ class S3ParquetSource { factory S3ParquetSource.fromJson(Map json) { return S3ParquetSource( name: json['Name'] as String, - paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + paths: (json['Paths'] as List).nonNulls.map((e) => e as String).toList(), additionalOptions: json['AdditionalOptions'] != null ? S3DirectSourceAdditionalOptions.fromJson( json['AdditionalOptions'] as Map) @@ -33564,7 +33448,7 @@ class S3ParquetSource { compressionType: (json['CompressionType'] as String?) ?.let(ParquetCompressionType.fromString), exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), groupFiles: json['GroupFiles'] as String?, @@ -33572,7 +33456,7 @@ class S3ParquetSource { maxBand: json['MaxBand'] as int?, maxFilesInBand: json['MaxFilesInBand'] as int?, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), recurse: json['Recurse'] as bool?, @@ -33681,7 +33565,7 @@ class S3Target { dlqEventQueueArn: json['DlqEventQueueArn'] as String?, eventQueueArn: json['EventQueueArn'] as String?, exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), path: json['Path'] as String?, @@ -34140,7 +34024,7 @@ class SearchTablesResponse { return SearchTablesResponse( nextToken: json['NextToken'] as String?, tableList: (json['TableList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Table.fromJson(e as Map)) .toList(), ); @@ -34243,15 +34127,12 @@ class SelectFields { factory SelectFields.fromJson(Map json) { return SelectFields( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -34290,10 +34171,8 @@ class SelectFromCollection { factory SelectFromCollection.fromJson(Map json) { return SelectFromCollection( index: json['Index'] as int, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, ); } @@ -34604,14 +34483,14 @@ class SkewedInfo { factory SkewedInfo.fromJson(Map json) { return SkewedInfo( skewedColumnNames: (json['SkewedColumnNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), skewedColumnValueLocationMaps: (json['SkewedColumnValueLocationMaps'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), skewedColumnValues: (json['SkewedColumnValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -34764,14 +34643,14 @@ class SnowflakeNodeData { sampleQuery: json['SampleQuery'] as String?, schema: json['Schema'] as String?, selectedColumns: (json['SelectedColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Option.fromJson(e as Map)) .toList(), sourceType: json['SourceType'] as String?, stagingTable: json['StagingTable'] as String?, table: json['Table'] as String?, tableSchema: (json['TableSchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Option.fromJson(e as Map)) .toList(), tempDir: json['TempDir'] as String?, @@ -34850,7 +34729,7 @@ class SnowflakeSource { data: SnowflakeNodeData.fromJson(json['Data'] as Map), name: json['Name'] as String, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -34889,10 +34768,8 @@ class SnowflakeTarget { return SnowflakeTarget( data: SnowflakeNodeData.fromJson(json['Data'] as Map), name: json['Name'] as String, - inputs: (json['Inputs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -35108,7 +34985,7 @@ class SparkConnectorSource { additionalOptions: (json['AdditionalOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -35171,15 +35048,13 @@ class SparkConnectorTarget { connectionName: json['ConnectionName'] as String, connectionType: json['ConnectionType'] as String, connectorName: json['ConnectorName'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, additionalOptions: (json['AdditionalOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -35242,18 +35117,16 @@ class SparkSQL { factory SparkSQL.fromJson(Map json) { return SparkSQL( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, sqlAliases: (json['SqlAliases'] as List) - .whereNotNull() + .nonNulls .map((e) => SqlAlias.fromJson(e as Map)) .toList(), sqlQuery: json['SqlQuery'] as String, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -35307,10 +35180,8 @@ class Spigot { factory Spigot.fromJson(Map json) { return Spigot( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, path: json['Path'] as String, prob: json['Prob'] as double?, @@ -35356,15 +35227,12 @@ class SplitFields { factory SplitFields.fromJson(Map json) { return SplitFields( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -35838,7 +35706,7 @@ class StatementOutput { executionCount: json['ExecutionCount'] as int?, status: (json['Status'] as String?)?.let(StatementState.fromString), traceback: (json['Traceback'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -36071,15 +35939,15 @@ class StorageDescriptor { factory StorageDescriptor.fromJson(Map json) { return StorageDescriptor( additionalLocations: (json['AdditionalLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), bucketColumns: (json['BucketColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), compressed: json['Compressed'] as bool?, @@ -36100,7 +35968,7 @@ class StorageDescriptor { ? SkewedInfo.fromJson(json['SkewedInfo'] as Map) : null, sortColumns: (json['SortColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Order.fromJson(e as Map)) .toList(), storedAsSubDirectories: json['StoredAsSubDirectories'] as bool?, @@ -36386,7 +36254,7 @@ class Table { parameters: (json['Parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), retention: json['Retention'] as int?, @@ -37256,10 +37124,8 @@ class TransformConfigParameter { listType: (json['ListType'] as String?)?.let(ParamType.fromString), validationMessage: json['ValidationMessage'] as String?, validationRule: json['ValidationRule'] as String?, - value: (json['Value'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + value: + (json['Value'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -37574,7 +37440,7 @@ class Trigger { factory Trigger.fromJson(Map json) { return Trigger( actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), description: json['Description'] as String?, @@ -37757,7 +37623,7 @@ class UnfilteredPartition { factory UnfilteredPartition.fromJson(Map json) { return UnfilteredPartition( authorizedColumns: (json['AuthorizedColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), isRegisteredWithLakeFormation: @@ -37807,10 +37673,8 @@ class Union { factory Union.fromJson(Map json) { return Union( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, unionType: UnionType.fromString((json['UnionType'] as String)), ); @@ -37930,7 +37794,7 @@ class UpdateColumnStatisticsForPartitionResponse { Map json) { return UpdateColumnStatisticsForPartitionResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnStatisticsError.fromJson(e as Map)) .toList(), ); @@ -37956,7 +37820,7 @@ class UpdateColumnStatisticsForTableResponse { Map json) { return UpdateColumnStatisticsForTableResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnStatisticsError.fromJson(e as Map)) .toList(), ); @@ -38514,7 +38378,7 @@ class UpsertRedshiftTargetOptions { connectionName: json['ConnectionName'] as String?, tableLocation: json['TableLocation'] as String?, upsertKeys: (json['UpsertKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -38580,7 +38444,7 @@ class UserDefinedFunction { ownerName: json['OwnerName'] as String?, ownerType: (json['OwnerType'] as String?)?.let(PrincipalType.fromString), resourceUris: (json['ResourceUris'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceUri.fromJson(e as Map)) .toList(), ); @@ -38679,11 +38543,11 @@ class ViewDefinition { definer: json['Definer'] as String?, isProtected: json['IsProtected'] as bool?, representations: (json['Representations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ViewRepresentation.fromJson(e as Map)) .toList(), subObjects: (json['SubObjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -38924,11 +38788,11 @@ class WorkflowGraph { factory WorkflowGraph.fromJson(Map json) { return WorkflowGraph( edges: (json['Edges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Edge.fromJson(e as Map)) .toList(), nodes: (json['Nodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Node.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/grafana/v2020_08_18.dart b/aws_client/lib/src/generated/grafana/v2020_08_18.dart index 04b71b4c5..bb056ad58 100644 --- a/aws_client/lib/src/generated/grafana/v2020_08_18.dart +++ b/aws_client/lib/src/generated/grafana/v2020_08_18.dart @@ -1492,7 +1492,7 @@ class AuthenticationDescription { factory AuthenticationDescription.fromJson(Map json) { return AuthenticationDescription( providers: (json['providers'] as List) - .whereNotNull() + .nonNulls .map((e) => AuthenticationProviderTypes.fromString((e as String))) .toList(), awsSso: json['awsSso'] != null @@ -1552,7 +1552,7 @@ class AuthenticationSummary { factory AuthenticationSummary.fromJson(Map json) { return AuthenticationSummary( providers: (json['providers'] as List) - .whereNotNull() + .nonNulls .map((e) => AuthenticationProviderTypes.fromString((e as String))) .toList(), samlConfigurationStatus: (json['samlConfigurationStatus'] as String?) @@ -2048,7 +2048,7 @@ class ListPermissionsResponse { factory ListPermissionsResponse.fromJson(Map json) { return ListPermissionsResponse( permissions: (json['permissions'] as List) - .whereNotNull() + .nonNulls .map((e) => PermissionEntry.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2105,7 +2105,7 @@ class ListVersionsResponse { factory ListVersionsResponse.fromJson(Map json) { return ListVersionsResponse( grafanaVersions: (json['grafanaVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -2147,7 +2147,7 @@ class ListWorkspaceServiceAccountTokensResponse { return ListWorkspaceServiceAccountTokensResponse( serviceAccountId: json['serviceAccountId'] as String, serviceAccountTokens: (json['serviceAccountTokens'] as List) - .whereNotNull() + .nonNulls .map((e) => ServiceAccountTokenSummary.fromJson(e as Map)) .toList(), @@ -2190,7 +2190,7 @@ class ListWorkspaceServiceAccountsResponse { Map json) { return ListWorkspaceServiceAccountsResponse( serviceAccounts: (json['serviceAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => ServiceAccountSummary.fromJson(e as Map)) .toList(), workspaceId: json['workspaceId'] as String, @@ -2226,7 +2226,7 @@ class ListWorkspacesResponse { factory ListWorkspacesResponse.fromJson(Map json) { return ListWorkspacesResponse( workspaces: (json['workspaces'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkspaceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2305,13 +2305,11 @@ class NetworkAccessConfiguration { factory NetworkAccessConfiguration.fromJson(Map json) { return NetworkAccessConfiguration( prefixListIds: (json['prefixListIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - vpceIds: (json['vpceIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + vpceIds: + (json['vpceIds'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -2423,14 +2421,10 @@ class RoleValues { factory RoleValues.fromJson(Map json) { return RoleValues( - admin: (json['admin'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - editor: (json['editor'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + admin: + (json['admin'] as List?)?.nonNulls.map((e) => e as String).toList(), + editor: + (json['editor'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2515,7 +2509,7 @@ class SamlConfiguration { idpMetadata: IdpMetadata.fromJson(json['idpMetadata'] as Map), allowedOrganizations: (json['allowedOrganizations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), assertionAttributes: json['assertionAttributes'] != null @@ -2811,7 +2805,7 @@ class UpdateInstruction { action: UpdateAction.fromString((json['action'] as String)), role: Role.fromString((json['role'] as String)), users: (json['users'] as List) - .whereNotNull() + .nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -2840,7 +2834,7 @@ class UpdatePermissionsResponse { factory UpdatePermissionsResponse.fromJson(Map json) { return UpdatePermissionsResponse( errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => UpdateError.fromJson(e as Map)) .toList(), ); @@ -2988,13 +2982,11 @@ class VpcConfiguration { factory VpcConfiguration.fromJson(Map json) { return VpcConfiguration( securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -3183,7 +3175,7 @@ class WorkspaceDescription { json['authentication'] as Map), created: nonNullableTimeStampFromJson(json['created'] as Object), dataSources: (json['dataSources'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSourceType.fromString((e as String))) .toList(), endpoint: json['endpoint'] as String, @@ -3206,12 +3198,12 @@ class WorkspaceDescription { json['networkAccessControl'] as Map) : null, notificationDestinations: (json['notificationDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationDestinationType.fromString((e as String))) .toList(), organizationRoleName: json['organizationRoleName'] as String?, organizationalUnits: (json['organizationalUnits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), permissionType: @@ -3401,7 +3393,7 @@ class WorkspaceSummary { (json['licenseType'] as String?)?.let(LicenseType.fromString), name: json['name'] as String?, notificationDestinations: (json['notificationDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationDestinationType.fromString((e as String))) .toList(), tags: (json['tags'] as Map?) diff --git a/aws_client/lib/src/generated/greengrass/v2017_06_07.dart b/aws_client/lib/src/generated/greengrass/v2017_06_07.dart index 986fbe6c7..d9628a6f5 100644 --- a/aws_client/lib/src/generated/greengrass/v2017_06_07.dart +++ b/aws_client/lib/src/generated/greengrass/v2017_06_07.dart @@ -2903,7 +2903,7 @@ class BulkDeploymentResult { deploymentType: (json['DeploymentType'] as String?)?.let(DeploymentType.fromString), errorDetails: (json['ErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetail.fromJson(e as Map)) .toList(), errorMessage: json['ErrorMessage'] as String?, @@ -3068,7 +3068,7 @@ class ConnectorDefinitionVersion { factory ConnectorDefinitionVersion.fromJson(Map json) { return ConnectorDefinitionVersion( connectors: (json['Connectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connector.fromJson(e as Map)) .toList(), ); @@ -3140,7 +3140,7 @@ class CoreDefinitionVersion { factory CoreDefinitionVersion.fromJson(Map json) { return CoreDefinitionVersion( cores: (json['Cores'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Core.fromJson(e as Map)) .toList(), ); @@ -4428,7 +4428,7 @@ class DeviceDefinitionVersion { factory DeviceDefinitionVersion.fromJson(Map json) { return DeviceDefinitionVersion( devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Device.fromJson(e as Map)) .toList(), ); @@ -4697,7 +4697,7 @@ class FunctionConfigurationEnvironment { json['Execution'] as Map) : null, resourceAccessPolicies: (json['ResourceAccessPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceAccessPolicy.fromJson(e as Map)) .toList(), variables: (json['Variables'] as Map?) @@ -4798,7 +4798,7 @@ class FunctionDefinitionVersion { json['DefaultConfig'] as Map) : null, functions: (json['Functions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => $Function.fromJson(e as Map)) .toList(), ); @@ -4967,7 +4967,7 @@ class GetBulkDeploymentStatusResponse { ?.let(BulkDeploymentStatus.fromString), createdAt: json['CreatedAt'] as String?, errorDetails: (json['ErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetail.fromJson(e as Map)) .toList(), errorMessage: json['ErrorMessage'] as String?, @@ -5011,7 +5011,7 @@ class GetConnectivityInfoResponse { factory GetConnectivityInfoResponse.fromJson(Map json) { return GetConnectivityInfoResponse( connectivityInfo: (json['ConnectivityInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectivityInfo.fromJson(e as Map)) .toList(), message: json['message'] as String?, @@ -5333,7 +5333,7 @@ class GetDeploymentStatusResponse { deploymentType: (json['DeploymentType'] as String?)?.let(DeploymentType.fromString), errorDetails: (json['ErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetail.fromJson(e as Map)) .toList(), errorMessage: json['ErrorMessage'] as String?, @@ -6526,7 +6526,7 @@ class ListBulkDeploymentDetailedReportsResponse { Map json) { return ListBulkDeploymentDetailedReportsResponse( deployments: (json['Deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BulkDeploymentResult.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6559,7 +6559,7 @@ class ListBulkDeploymentsResponse { factory ListBulkDeploymentsResponse.fromJson(Map json) { return ListBulkDeploymentsResponse( bulkDeployments: (json['BulkDeployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BulkDeployment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6594,7 +6594,7 @@ class ListConnectorDefinitionVersionsResponse { return ListConnectorDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -6626,7 +6626,7 @@ class ListConnectorDefinitionsResponse { factory ListConnectorDefinitionsResponse.fromJson(Map json) { return ListConnectorDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6661,7 +6661,7 @@ class ListCoreDefinitionVersionsResponse { return ListCoreDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -6693,7 +6693,7 @@ class ListCoreDefinitionsResponse { factory ListCoreDefinitionsResponse.fromJson(Map json) { return ListCoreDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6726,7 +6726,7 @@ class ListDeploymentsResponse { factory ListDeploymentsResponse.fromJson(Map json) { return ListDeploymentsResponse( deployments: (json['Deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Deployment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6761,7 +6761,7 @@ class ListDeviceDefinitionVersionsResponse { return ListDeviceDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -6793,7 +6793,7 @@ class ListDeviceDefinitionsResponse { factory ListDeviceDefinitionsResponse.fromJson(Map json) { return ListDeviceDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6828,7 +6828,7 @@ class ListFunctionDefinitionVersionsResponse { return ListFunctionDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -6860,7 +6860,7 @@ class ListFunctionDefinitionsResponse { factory ListFunctionDefinitionsResponse.fromJson(Map json) { return ListFunctionDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6890,7 +6890,7 @@ class ListGroupCertificateAuthoritiesResponse { return ListGroupCertificateAuthoritiesResponse( groupCertificateAuthorities: (json['GroupCertificateAuthorities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupCertificateAuthorityProperties.fromJson( e as Map)) .toList(), @@ -6923,7 +6923,7 @@ class ListGroupVersionsResponse { return ListGroupVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -6955,7 +6955,7 @@ class ListGroupsResponse { factory ListGroupsResponse.fromJson(Map json) { return ListGroupsResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6990,7 +6990,7 @@ class ListLoggerDefinitionVersionsResponse { return ListLoggerDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -7022,7 +7022,7 @@ class ListLoggerDefinitionsResponse { factory ListLoggerDefinitionsResponse.fromJson(Map json) { return ListLoggerDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7057,7 +7057,7 @@ class ListResourceDefinitionVersionsResponse { return ListResourceDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -7089,7 +7089,7 @@ class ListResourceDefinitionsResponse { factory ListResourceDefinitionsResponse.fromJson(Map json) { return ListResourceDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7124,7 +7124,7 @@ class ListSubscriptionDefinitionVersionsResponse { return ListSubscriptionDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -7157,7 +7157,7 @@ class ListSubscriptionDefinitionsResponse { Map json) { return ListSubscriptionDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7354,7 +7354,7 @@ class LoggerDefinitionVersion { factory LoggerDefinitionVersion.fromJson(Map json) { return LoggerDefinitionVersion( loggers: (json['Loggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Logger.fromJson(e as Map)) .toList(), ); @@ -7617,7 +7617,7 @@ class ResourceDefinitionVersion { factory ResourceDefinitionVersion.fromJson(Map json) { return ResourceDefinitionVersion( resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -7796,7 +7796,7 @@ class SecretsManagerSecretResourceData { arn: json['ARN'] as String?, additionalStagingLabelsToDownload: (json['AdditionalStagingLabelsToDownload'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7933,7 +7933,7 @@ class SubscriptionDefinitionVersion { factory SubscriptionDefinitionVersion.fromJson(Map json) { return SubscriptionDefinitionVersion( subscriptions: (json['Subscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subscription.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/greengrass_v2/v2020_11_30.dart b/aws_client/lib/src/generated/greengrass_v2/v2020_11_30.dart index 43e5a74c6..6ac92258c 100644 --- a/aws_client/lib/src/generated/greengrass_v2/v2020_11_30.dart +++ b/aws_client/lib/src/generated/greengrass_v2/v2020_11_30.dart @@ -1505,7 +1505,7 @@ class BatchAssociateClientDeviceWithCoreDeviceResponse { Map json) { return BatchAssociateClientDeviceWithCoreDeviceResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociateClientDeviceWithCoreDeviceErrorEntry.fromJson( e as Map)) .toList(), @@ -1533,7 +1533,7 @@ class BatchDisassociateClientDeviceFromCoreDeviceResponse { Map json) { return BatchDisassociateClientDeviceFromCoreDeviceResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DisassociateClientDeviceFromCoreDeviceErrorEntry.fromJson( e as Map)) .toList(), @@ -1780,10 +1780,8 @@ class ComponentConfigurationUpdate { factory ComponentConfigurationUpdate.fromJson(Map json) { return ComponentConfigurationUpdate( merge: json['merge'] as String?, - reset: (json['reset'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + reset: + (json['reset'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -1945,7 +1943,7 @@ class ComponentLatestVersion { creationTimestamp: timeStampFromJson(json['creationTimestamp']), description: json['description'] as String?, platforms: (json['platforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentPlatform.fromJson(e as Map)) .toList(), publisher: json['publisher'] as String?, @@ -2750,7 +2748,7 @@ class DescribeComponentResponse { creationTimestamp: timeStampFromJson(json['creationTimestamp']), description: json['description'] as String?, platforms: (json['platforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentPlatform.fromJson(e as Map)) .toList(), publisher: json['publisher'] as String?, @@ -3060,11 +3058,11 @@ class EffectiveDeploymentStatusDetails { factory EffectiveDeploymentStatusDetails.fromJson(Map json) { return EffectiveDeploymentStatusDetails( errorStack: (json['errorStack'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), errorTypes: (json['errorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3159,7 +3157,7 @@ class GetConnectivityInfoResponse { factory GetConnectivityInfoResponse.fromJson(Map json) { return GetConnectivityInfoResponse( connectivityInfo: (json['ConnectivityInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectivityInfo.fromJson(e as Map)) .toList(), message: json['Message'] as String?, @@ -3512,7 +3510,7 @@ class InstalledComponent { ?.let(InstalledComponentLifecycleState.fromString), lifecycleStateDetails: json['lifecycleStateDetails'] as String?, lifecycleStatusCodes: (json['lifecycleStatusCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3612,7 +3610,7 @@ class IoTJobAbortConfig { factory IoTJobAbortConfig.fromJson(Map json) { return IoTJobAbortConfig( criteriaList: (json['criteriaList'] as List) - .whereNotNull() + .nonNulls .map((e) => IoTJobAbortCriteria.fromJson(e as Map)) .toList(), ); @@ -4294,7 +4292,7 @@ class ListClientDevicesAssociatedWithCoreDeviceResponse { Map json) { return ListClientDevicesAssociatedWithCoreDeviceResponse( associatedClientDevices: (json['associatedClientDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AssociatedClientDevice.fromJson(e as Map)) .toList(), @@ -4329,7 +4327,7 @@ class ListComponentVersionsResponse { factory ListComponentVersionsResponse.fromJson(Map json) { return ListComponentVersionsResponse( componentVersions: (json['componentVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentVersionListItem.fromJson(e as Map)) .toList(), @@ -4363,7 +4361,7 @@ class ListComponentsResponse { factory ListComponentsResponse.fromJson(Map json) { return ListComponentsResponse( components: (json['components'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Component.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4396,7 +4394,7 @@ class ListCoreDevicesResponse { factory ListCoreDevicesResponse.fromJson(Map json) { return ListCoreDevicesResponse( coreDevices: (json['coreDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoreDevice.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4429,7 +4427,7 @@ class ListDeploymentsResponse { factory ListDeploymentsResponse.fromJson(Map json) { return ListDeploymentsResponse( deployments: (json['deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Deployment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4462,7 +4460,7 @@ class ListEffectiveDeploymentsResponse { factory ListEffectiveDeploymentsResponse.fromJson(Map json) { return ListEffectiveDeploymentsResponse( effectiveDeployments: (json['effectiveDeployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectiveDeployment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4506,7 +4504,7 @@ class ListInstalledComponentsResponse { factory ListInstalledComponentsResponse.fromJson(Map json) { return ListInstalledComponentsResponse( installedComponents: (json['installedComponents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstalledComponent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4579,7 +4577,7 @@ class ResolveComponentCandidatesResponse { Map json) { return ResolveComponentCandidatesResponse( resolvedComponentVersions: (json['resolvedComponentVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolvedComponentVersion.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/ground_station/v2019_05_23.dart b/aws_client/lib/src/generated/ground_station/v2019_05_23.dart index 8c5480a9e..16e775cb4 100644 --- a/aws_client/lib/src/generated/ground_station/v2019_05_23.dart +++ b/aws_client/lib/src/generated/ground_station/v2019_05_23.dart @@ -2541,7 +2541,7 @@ class DescribeContactResponse { contactStatus: (json['contactStatus'] as String?)?.let(ContactStatus.fromString), dataflowList: (json['dataflowList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataflowDetail.fromJson(e as Map)) .toList(), endTime: timeStampFromJson(json['endTime']), @@ -2895,7 +2895,7 @@ class EndpointDetails { ? DataflowEndpoint.fromJson(json['endpoint'] as Map) : null, healthReasons: (json['healthReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapabilityHealthReason.fromString((e as String))) .toList(), healthStatus: @@ -3454,7 +3454,7 @@ class GetDataflowEndpointGroupResponse { dataflowEndpointGroupArn: json['dataflowEndpointGroupArn'] as String?, dataflowEndpointGroupId: json['dataflowEndpointGroupId'] as String?, endpointsDetails: (json['endpointsDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointDetails.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -3611,9 +3611,8 @@ class GetMissionProfileResponse { contactPrePassDurationSeconds: json['contactPrePassDurationSeconds'] as int?, dataflowEdges: (json['dataflowEdges'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), minimumViableContactDurationSeconds: json['minimumViableContactDurationSeconds'] as int?, @@ -3698,7 +3697,7 @@ class GetSatelliteResponse { json['currentEphemeris'] as Map) : null, groundStations: (json['groundStations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), noradSatelliteID: json['noradSatelliteID'] as int?, @@ -3844,7 +3843,7 @@ class ListConfigsResponse { factory ListConfigsResponse.fromJson(Map json) { return ListConfigsResponse( configList: (json['configList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3878,7 +3877,7 @@ class ListContactsResponse { factory ListContactsResponse.fromJson(Map json) { return ListContactsResponse( contactList: (json['contactList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactData.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3914,7 +3913,7 @@ class ListDataflowEndpointGroupsResponse { Map json) { return ListDataflowEndpointGroupsResponse( dataflowEndpointGroupList: (json['dataflowEndpointGroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataflowEndpointListItem.fromJson(e as Map)) .toList(), @@ -3948,7 +3947,7 @@ class ListEphemeridesResponse { factory ListEphemeridesResponse.fromJson(Map json) { return ListEphemeridesResponse( ephemerides: (json['ephemerides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EphemerisItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3982,7 +3981,7 @@ class ListGroundStationsResponse { factory ListGroundStationsResponse.fromJson(Map json) { return ListGroundStationsResponse( groundStationList: (json['groundStationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroundStationData.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4016,7 +4015,7 @@ class ListMissionProfilesResponse { factory ListMissionProfilesResponse.fromJson(Map json) { return ListMissionProfilesResponse( missionProfileList: (json['missionProfileList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MissionProfileListItem.fromJson(e as Map)) .toList(), @@ -4052,7 +4051,7 @@ class ListSatellitesResponse { return ListSatellitesResponse( nextToken: json['nextToken'] as String?, satellites: (json['satellites'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SatelliteListItem.fromJson(e as Map)) .toList(), ); @@ -4419,7 +4418,7 @@ class SatelliteListItem { json['currentEphemeris'] as Map) : null, groundStations: (json['groundStations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), noradSatelliteID: json['noradSatelliteID'] as int?, @@ -4466,13 +4465,11 @@ class SecurityDetails { return SecurityDetails( roleArn: json['roleArn'] as String, securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/guard_duty/v2017_11_28.dart b/aws_client/lib/src/generated/guard_duty/v2017_11_28.dart index ef538c5ad..dd0bb519e 100644 --- a/aws_client/lib/src/generated/guard_duty/v2017_11_28.dart +++ b/aws_client/lib/src/generated/guard_duty/v2017_11_28.dart @@ -3397,7 +3397,7 @@ class AccountFreeTrialInfo { json['dataSources'] as Map) : null, features: (json['features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FreeTrialFeatureConfigurationResult.fromJson( e as Map)) .toList(), @@ -3735,7 +3735,7 @@ class Anomaly { (e as Map).map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => AnomalyObject.fromJson(e as Map)) .toList())))), @@ -4191,14 +4191,9 @@ class Condition { factory Condition.fromJson(Map json) { return Condition( - eq: (json['eq'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - equals: (json['equals'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + eq: (json['eq'] as List?)?.nonNulls.map((e) => e as String).toList(), + equals: + (json['equals'] as List?)?.nonNulls.map((e) => e as String).toList(), greaterThan: json['greaterThan'] as int?, greaterThanOrEqual: json['greaterThanOrEqual'] as int?, gt: json['gt'] as int?, @@ -4207,12 +4202,9 @@ class Condition { lessThanOrEqual: json['lessThanOrEqual'] as int?, lt: json['lt'] as int?, lte: json['lte'] as int?, - neq: (json['neq'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + neq: (json['neq'] as List?)?.nonNulls.map((e) => e as String).toList(), notEquals: (json['notEquals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4297,7 +4289,7 @@ class Container { json['securityContext'] as Map) : null, volumeMounts: (json['volumeMounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeMount.fromJson(e as Map)) .toList(), ); @@ -4999,7 +4991,7 @@ class CreateMembersResponse { factory CreateMembersResponse.fromJson(Map json) { return CreateMembersResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -5363,7 +5355,7 @@ class DeclineInvitationsResponse { factory DeclineInvitationsResponse.fromJson(Map json) { return DeclineInvitationsResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -5459,7 +5451,7 @@ class DeleteInvitationsResponse { factory DeleteInvitationsResponse.fromJson(Map json) { return DeleteInvitationsResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -5484,7 +5476,7 @@ class DeleteMembersResponse { factory DeleteMembersResponse.fromJson(Map json) { return DeleteMembersResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -5538,7 +5530,7 @@ class DescribeMalwareScansResponse { factory DescribeMalwareScansResponse.fromJson(Map json) { return DescribeMalwareScansResponse( scans: (json['scans'] as List) - .whereNotNull() + .nonNulls .map((e) => Scan.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5631,7 +5623,7 @@ class DescribeOrganizationConfigurationResponse { json['dataSources'] as Map) : null, features: (json['features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationFeatureConfigurationResult.fromJson( e as Map)) .toList(), @@ -5987,7 +5979,7 @@ class DetectorFeatureConfigurationResult { Map json) { return DetectorFeatureConfigurationResult( additionalConfiguration: (json['additionalConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectorAdditionalConfigurationResult.fromJson( e as Map)) .toList(), @@ -6103,7 +6095,7 @@ class DisassociateMembersResponse { factory DisassociateMembersResponse.fromJson(Map json) { return DisassociateMembersResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -6219,11 +6211,11 @@ class EbsVolumeDetails { factory EbsVolumeDetails.fromJson(Map json) { return EbsVolumeDetails( scannedVolumeDetails: (json['scannedVolumeDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeDetail.fromJson(e as Map)) .toList(), skippedVolumeDetails: (json['skippedVolumeDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeDetail.fromJson(e as Map)) .toList(), ); @@ -6284,10 +6276,8 @@ class EbsVolumeScanDetails { scanId: json['scanId'] as String?, scanStartedAt: timeStampFromJson(json['scanStartedAt']), scanType: (json['scanType'] as String?)?.let(ScanType.fromString), - sources: (json['sources'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + sources: + (json['sources'] as List?)?.nonNulls.map((e) => e as String).toList(), triggerFindingId: json['triggerFindingId'] as String?, ); } @@ -6392,7 +6382,7 @@ class EcsClusterDetails { runningTasksCount: json['runningTasksCount'] as int?, status: json['status'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskDetails: json['taskDetails'] != null @@ -6475,7 +6465,7 @@ class EcsTaskDetails { return EcsTaskDetails( arn: json['arn'] as String?, containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Container.fromJson(e as Map)) .toList(), definitionArn: json['definitionArn'] as String?, @@ -6483,13 +6473,13 @@ class EcsTaskDetails { startedAt: timeStampFromJson(json['startedAt']), startedBy: json['startedBy'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskCreatedAt: timeStampFromJson(json['createdAt']), version: json['version'] as String?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -6558,7 +6548,7 @@ class EksClusterDetails { name: json['name'] as String?, status: json['status'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcId: json['vpcId'] as String?, @@ -6608,7 +6598,7 @@ class Evidence { factory Evidence.fromJson(Map json) { return Evidence( threatIntelligenceDetails: (json['threatIntelligenceDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThreatIntelligenceDetail.fromJson(e as Map)) .toList(), @@ -6655,10 +6645,8 @@ class FargateDetails { factory FargateDetails.fromJson(Map json) { return FargateDetails( - issues: (json['issues'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + issues: + (json['issues'] as List?)?.nonNulls.map((e) => e as String).toList(), managementType: (json['managementType'] as String?)?.let(ManagementType.fromString), ); @@ -7220,7 +7208,7 @@ class GetDetectorResponse { json['dataSources'] as Map) : null, features: (json['features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectorFeatureConfigurationResult.fromJson( e as Map)) .toList(), @@ -7328,7 +7316,7 @@ class GetFindingsResponse { factory GetFindingsResponse.fromJson(Map json) { return GetFindingsResponse( findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => Finding.fromJson(e as Map)) .toList(), ); @@ -7514,12 +7502,12 @@ class GetMemberDetectorsResponse { factory GetMemberDetectorsResponse.fromJson(Map json) { return GetMemberDetectorsResponse( memberDataSourceConfigurations: (json['members'] as List) - .whereNotNull() + .nonNulls .map((e) => MemberDataSourceConfiguration.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -7551,11 +7539,11 @@ class GetMembersResponse { factory GetMembersResponse.fromJson(Map json) { return GetMembersResponse( members: (json['members'] as List) - .whereNotNull() + .nonNulls .map((e) => Member.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -7616,11 +7604,11 @@ class GetRemainingFreeTrialDaysResponse { Map json) { return GetRemainingFreeTrialDaysResponse( accounts: (json['accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountFreeTrialInfo.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['unprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -7832,10 +7820,8 @@ class ImpersonatedUser { factory ImpersonatedUser.fromJson(Map json) { return ImpersonatedUser( - groups: (json['groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['groups'] as List?)?.nonNulls.map((e) => e as String).toList(), username: json['username'] as String?, ); } @@ -7922,17 +7908,17 @@ class InstanceDetails { instanceType: json['instanceType'] as String?, launchTime: json['launchTime'] as String?, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), outpostArn: json['outpostArn'] as String?, platform: json['platform'] as String?, productCodes: (json['productCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductCode.fromJson(e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8027,7 +8013,7 @@ class InviteMembersResponse { factory InviteMembersResponse.fromJson(Map json) { return InviteMembersResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -8138,7 +8124,7 @@ class KubernetesApiCallAction { resource: json['resource'] as String?, resourceName: json['resourceName'] as String?, sourceIps: (json['sourceIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statusCode: json['statusCode'] as int?, @@ -8494,16 +8480,14 @@ class KubernetesUserDetails { factory KubernetesUserDetails.fromJson(Map json) { return KubernetesUserDetails( - groups: (json['groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['groups'] as List?)?.nonNulls.map((e) => e as String).toList(), impersonatedUser: json['impersonatedUser'] != null ? ImpersonatedUser.fromJson( json['impersonatedUser'] as Map) : null, sessionName: (json['sessionName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), uid: json['uid'] as String?, @@ -8576,7 +8560,7 @@ class KubernetesWorkloadDetails { factory KubernetesWorkloadDetails.fromJson(Map json) { return KubernetesWorkloadDetails( containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Container.fromJson(e as Map)) .toList(), hostIPC: json['hostIPC'] as bool?, @@ -8588,7 +8572,7 @@ class KubernetesWorkloadDetails { type: json['type'] as String?, uid: json['uid'] as String?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -8674,7 +8658,7 @@ class LambdaDetails { revisionId: json['revisionId'] as String?, role: json['role'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcConfig: json['vpcConfig'] != null @@ -8804,7 +8788,7 @@ class ListCoverageResponse { factory ListCoverageResponse.fromJson(Map json) { return ListCoverageResponse( resources: (json['resources'] as List) - .whereNotNull() + .nonNulls .map((e) => CoverageResource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8837,7 +8821,7 @@ class ListDetectorsResponse { factory ListDetectorsResponse.fromJson(Map json) { return ListDetectorsResponse( detectorIds: (json['detectorIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -8870,7 +8854,7 @@ class ListFiltersResponse { factory ListFiltersResponse.fromJson(Map json) { return ListFiltersResponse( filterNames: (json['filterNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -8903,7 +8887,7 @@ class ListFindingsResponse { factory ListFindingsResponse.fromJson(Map json) { return ListFindingsResponse( findingIds: (json['findingIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -8935,10 +8919,8 @@ class ListIPSetsResponse { factory ListIPSetsResponse.fromJson(Map json) { return ListIPSetsResponse( - ipSetIds: (json['ipSetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + ipSetIds: + (json['ipSetIds'] as List).nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -8969,7 +8951,7 @@ class ListInvitationsResponse { factory ListInvitationsResponse.fromJson(Map json) { return ListInvitationsResponse( invitations: (json['invitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Invitation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9006,7 +8988,7 @@ class ListMembersResponse { factory ListMembersResponse.fromJson(Map json) { return ListMembersResponse( members: (json['members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Member.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9040,7 +9022,7 @@ class ListOrganizationAdminAccountsResponse { Map json) { return ListOrganizationAdminAccountsResponse( adminAccounts: (json['adminAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdminAccount.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9077,7 +9059,7 @@ class ListPublishingDestinationsResponse { Map json) { return ListPublishingDestinationsResponse( destinations: (json['destinations'] as List) - .whereNotNull() + .nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9133,7 +9115,7 @@ class ListThreatIntelSetsResponse { factory ListThreatIntelSetsResponse.fromJson(Map json) { return ListThreatIntelSetsResponse( threatIntelSetIds: (json['threatIntelSetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -9568,7 +9550,7 @@ class MemberDataSourceConfiguration { json['dataSources'] as Map) : null, features: (json['features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberFeaturesConfigurationResult.fromJson( e as Map)) .toList(), @@ -9643,7 +9625,7 @@ class MemberFeaturesConfigurationResult { Map json) { return MemberFeaturesConfigurationResult( additionalConfiguration: (json['additionalConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberAdditionalConfigurationResult.fromJson( e as Map)) .toList(), @@ -9796,21 +9778,21 @@ class NetworkInterface { factory NetworkInterface.fromJson(Map json) { return NetworkInterface( ipv6Addresses: (json['ipv6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), networkInterfaceId: json['networkInterfaceId'] as String?, privateDnsName: json['privateDnsName'] as String?, privateIpAddress: json['privateIpAddress'] as String?, privateIpAddresses: (json['privateIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrivateIpAddressDetails.fromJson(e as Map)) .toList(), publicDnsName: json['publicDnsName'] as String?, publicIp: json['publicIp'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityGroup.fromJson(e as Map)) .toList(), subnetId: json['subnetId'] as String?, @@ -9855,10 +9837,7 @@ class Observations { factory Observations.fromJson(Map json) { return Observations( - text: (json['text'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + text: (json['text'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -10342,7 +10321,7 @@ class OrganizationFeatureConfigurationResult { Map json) { return OrganizationFeatureConfigurationResult( additionalConfiguration: (json['additionalConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationAdditionalConfigurationResult.fromJson( e as Map)) .toList(), @@ -10387,7 +10366,7 @@ class OrganizationFeatureStatistics { factory OrganizationFeatureStatistics.fromJson(Map json) { return OrganizationFeatureStatistics( additionalConfiguration: (json['additionalConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationFeatureStatisticsAdditionalConfiguration.fromJson( e as Map)) @@ -10710,7 +10689,7 @@ class OrganizationStatistics { return OrganizationStatistics( activeAccountsCount: json['activeAccountsCount'] as int?, countByFeature: (json['countByFeature'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationFeatureStatistics.fromJson(e as Map)) .toList(), @@ -10821,7 +10800,7 @@ class PortProbeAction { return PortProbeAction( blocked: json['blocked'] as bool?, portProbeDetails: (json['portProbeDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortProbeDetail.fromJson(e as Map)) .toList(), ); @@ -10977,7 +10956,7 @@ class ProcessDetails { executablePath: json['executablePath'] as String?, executableSha256: json['executableSha256'] as String?, lineage: (json['lineage'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineageObject.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -11179,7 +11158,7 @@ class RdsDbInstanceDetails { engine: json['engine'] as String?, engineVersion: json['engineVersion'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11272,7 +11251,7 @@ class RdsLoginAttemptAction { factory RdsLoginAttemptAction.fromJson(Map json) { return RdsLoginAttemptAction( loginAttributes: (json['LoginAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoginAttribute.fromJson(e as Map)) .toList(), remoteIpDetails: json['remoteIpDetails'] != null @@ -11523,7 +11502,7 @@ class Resource { : null, resourceType: json['resourceType'] as String?, s3BucketDetails: (json['s3BucketDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3BucketDetail.fromJson(e as Map)) .toList(), ); @@ -11720,15 +11699,13 @@ class RuntimeContext { addressFamily: json['addressFamily'] as String?, commandLineExample: json['commandLineExample'] as String?, fileSystemType: json['fileSystemType'] as String?, - flags: (json['flags'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + flags: + (json['flags'] as List?)?.nonNulls.map((e) => e as String).toList(), ianaProtocolNumber: json['ianaProtocolNumber'] as int?, ldPreloadValue: json['ldPreloadValue'] as String?, libraryPath: json['libraryPath'] as String?, memoryRegions: (json['memoryRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), modifiedAt: timeStampFromJson(json['modifiedAt']), @@ -11902,7 +11879,7 @@ class S3BucketDetail { ? PublicAccess.fromJson(json['publicAccess'] as Map) : null, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: json['type'] as String?, @@ -12045,7 +12022,7 @@ class Scan { accountId: json['accountId'] as String?, adminDetectorId: json['adminDetectorId'] as String?, attachedVolumes: (json['attachedVolumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeDetail.fromJson(e as Map)) .toList(), detectorId: json['detectorId'] as String?, @@ -12122,7 +12099,7 @@ class ScanCondition { factory ScanCondition.fromJson(Map json) { return ScanCondition( mapEquals: (json['mapEquals'] as List) - .whereNotNull() + .nonNulls .map((e) => ScanConditionPair.fromJson(e as Map)) .toList(), ); @@ -12451,7 +12428,7 @@ class ScanThreatName { factory ScanThreatName.fromJson(Map json) { return ScanThreatName( filePaths: (json['filePaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScanFilePath.fromJson(e as Map)) .toList(), itemCount: json['itemCount'] as int?, @@ -12819,7 +12796,7 @@ class StartMonitoringMembersResponse { factory StartMonitoringMembersResponse.fromJson(Map json) { return StartMonitoringMembersResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -12846,7 +12823,7 @@ class StopMonitoringMembersResponse { factory StopMonitoringMembersResponse.fromJson(Map json) { return StopMonitoringMembersResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -12930,7 +12907,7 @@ class ThreatDetectedByName { itemCount: json['itemCount'] as int?, shortened: json['shortened'] as bool?, threatNames: (json['threatNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScanThreatName.fromJson(e as Map)) .toList(), uniqueThreatNameCount: json['uniqueThreatNameCount'] as int?, @@ -13015,7 +12992,7 @@ class ThreatIntelligenceDetail { threatFileSha256: json['threatFileSha256'] as String?, threatListName: json['threatListName'] as String?, threatNames: (json['threatNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -13278,7 +13255,7 @@ class UpdateMemberDetectorsResponse { factory UpdateMemberDetectorsResponse.fromJson(Map json) { return UpdateMemberDetectorsResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -13576,28 +13553,28 @@ class UsageStatistics { factory UsageStatistics.fromJson(Map json) { return UsageStatistics( sumByAccount: (json['sumByAccount'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageAccountResult.fromJson(e as Map)) .toList(), sumByDataSource: (json['sumByDataSource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageDataSourceResult.fromJson(e as Map)) .toList(), sumByFeature: (json['sumByFeature'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageFeatureResult.fromJson(e as Map)) .toList(), sumByResource: (json['sumByResource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageResourceResult.fromJson(e as Map)) .toList(), topAccountsByFeature: (json['topAccountsByFeature'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => UsageTopAccountsResult.fromJson(e as Map)) .toList(), topResources: (json['topResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageResourceResult.fromJson(e as Map)) .toList(), ); @@ -13673,7 +13650,7 @@ class UsageTopAccountsResult { factory UsageTopAccountsResult.fromJson(Map json) { return UsageTopAccountsResult( accounts: (json['accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageTopAccountResult.fromJson(e as Map)) .toList(), feature: (json['feature'] as String?)?.let(UsageFeature.fromString), @@ -13840,11 +13817,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityGroup.fromJson(e as Map)) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, diff --git a/aws_client/lib/src/generated/health/v2016_08_04.dart b/aws_client/lib/src/generated/health/v2016_08_04.dart index 3e53c8345..abea50389 100644 --- a/aws_client/lib/src/generated/health/v2016_08_04.dart +++ b/aws_client/lib/src/generated/health/v2016_08_04.dart @@ -1109,7 +1109,7 @@ class DescribeAffectedAccountsForOrganizationResponse { Map json) { return DescribeAffectedAccountsForOrganizationResponse( affectedAccounts: (json['affectedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), eventScopeCode: @@ -1159,11 +1159,11 @@ class DescribeAffectedEntitiesForOrganizationResponse { Map json) { return DescribeAffectedEntitiesForOrganizationResponse( entities: (json['entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AffectedEntity.fromJson(e as Map)) .toList(), failedSet: (json['failedSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationAffectedEntitiesErrorItem.fromJson( e as Map)) .toList(), @@ -1202,7 +1202,7 @@ class DescribeAffectedEntitiesResponse { factory DescribeAffectedEntitiesResponse.fromJson(Map json) { return DescribeAffectedEntitiesResponse( entities: (json['entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AffectedEntity.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1233,7 +1233,7 @@ class DescribeEntityAggregatesForOrganizationResponse { return DescribeEntityAggregatesForOrganizationResponse( organizationEntityAggregates: (json['organizationEntityAggregates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationEntityAggregate.fromJson(e as Map)) .toList(), @@ -1260,7 +1260,7 @@ class DescribeEntityAggregatesResponse { factory DescribeEntityAggregatesResponse.fromJson(Map json) { return DescribeEntityAggregatesResponse( entityAggregates: (json['entityAggregates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityAggregate.fromJson(e as Map)) .toList(), ); @@ -1294,7 +1294,7 @@ class DescribeEventAggregatesResponse { factory DescribeEventAggregatesResponse.fromJson(Map json) { return DescribeEventAggregatesResponse( eventAggregates: (json['eventAggregates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventAggregate.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1327,12 +1327,12 @@ class DescribeEventDetailsForOrganizationResponse { Map json) { return DescribeEventDetailsForOrganizationResponse( failedSet: (json['failedSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationEventDetailsErrorItem.fromJson( e as Map)) .toList(), successfulSet: (json['successfulSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationEventDetails.fromJson(e as Map)) .toList(), @@ -1364,11 +1364,11 @@ class DescribeEventDetailsResponse { factory DescribeEventDetailsResponse.fromJson(Map json) { return DescribeEventDetailsResponse( failedSet: (json['failedSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDetailsErrorItem.fromJson(e as Map)) .toList(), successfulSet: (json['successfulSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDetails.fromJson(e as Map)) .toList(), ); @@ -1408,7 +1408,7 @@ class DescribeEventTypesResponse { factory DescribeEventTypesResponse.fromJson(Map json) { return DescribeEventTypesResponse( eventTypes: (json['eventTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventType.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1445,7 +1445,7 @@ class DescribeEventsForOrganizationResponse { Map json) { return DescribeEventsForOrganizationResponse( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1481,7 +1481,7 @@ class DescribeEventsResponse { factory DescribeEventsResponse.fromJson(Map json) { return DescribeEventsResponse( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2304,7 +2304,7 @@ class OrganizationEntityAggregate { factory OrganizationEntityAggregate.fromJson(Map json) { return OrganizationEntityAggregate( accounts: (json['accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AccountEntityAggregate.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/health_lake/v2017_07_01.dart b/aws_client/lib/src/generated/health_lake/v2017_07_01.dart index ece6c239d..b06daf8a3 100644 --- a/aws_client/lib/src/generated/health_lake/v2017_07_01.dart +++ b/aws_client/lib/src/generated/health_lake/v2017_07_01.dart @@ -1520,7 +1520,7 @@ class ListFHIRDatastoresResponse { factory ListFHIRDatastoresResponse.fromJson(Map json) { return ListFHIRDatastoresResponse( datastorePropertiesList: (json['DatastorePropertiesList'] as List) - .whereNotNull() + .nonNulls .map((e) => DatastoreProperties.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1554,7 +1554,7 @@ class ListFHIRExportJobsResponse { factory ListFHIRExportJobsResponse.fromJson(Map json) { return ListFHIRExportJobsResponse( exportJobPropertiesList: (json['ExportJobPropertiesList'] as List) - .whereNotNull() + .nonNulls .map((e) => ExportJobProperties.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1588,7 +1588,7 @@ class ListFHIRImportJobsResponse { factory ListFHIRImportJobsResponse.fromJson(Map json) { return ListFHIRImportJobsResponse( importJobPropertiesList: (json['ImportJobPropertiesList'] as List) - .whereNotNull() + .nonNulls .map((e) => ImportJobProperties.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1616,7 +1616,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/honeycode/v2020_03_01.dart b/aws_client/lib/src/generated/honeycode/v2020_03_01.dart index 6ff446408..7351eb225 100644 --- a/aws_client/lib/src/generated/honeycode/v2020_03_01.dart +++ b/aws_client/lib/src/generated/honeycode/v2020_03_01.dart @@ -938,7 +938,7 @@ class BatchCreateTableRowsResult { .map((k, e) => MapEntry(k, e as String)), workbookCursor: json['workbookCursor'] as int, failedBatchItems: (json['failedBatchItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedBatchItem.fromJson(e as Map)) .toList(), ); @@ -974,7 +974,7 @@ class BatchDeleteTableRowsResult { return BatchDeleteTableRowsResult( workbookCursor: json['workbookCursor'] as int, failedBatchItems: (json['failedBatchItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedBatchItem.fromJson(e as Map)) .toList(), ); @@ -1010,7 +1010,7 @@ class BatchUpdateTableRowsResult { return BatchUpdateTableRowsResult( workbookCursor: json['workbookCursor'] as int, failedBatchItems: (json['failedBatchItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedBatchItem.fromJson(e as Map)) .toList(), ); @@ -1054,7 +1054,7 @@ class BatchUpsertTableRowsResult { MapEntry(k, UpsertRowsResult.fromJson(e as Map))), workbookCursor: json['workbookCursor'] as int, failedBatchItems: (json['failedBatchItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedBatchItem.fromJson(e as Map)) .toList(), ); @@ -1173,7 +1173,7 @@ class Cell { format: (json['format'] as String?)?.let(Format.fromString), formattedValue: json['formattedValue'] as String?, formattedValues: (json['formattedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), formula: json['formula'] as String?, @@ -1799,7 +1799,7 @@ class ListTableColumnsResult { factory ListTableColumnsResult.fromJson(Map json) { return ListTableColumnsResult( tableColumns: (json['tableColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => TableColumn.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1851,18 +1851,16 @@ class ListTableRowsResult { factory ListTableRowsResult.fromJson(Map json) { return ListTableRowsResult( - columnIds: (json['columnIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + columnIds: + (json['columnIds'] as List).nonNulls.map((e) => e as String).toList(), rows: (json['rows'] as List) - .whereNotNull() + .nonNulls .map((e) => TableRow.fromJson(e as Map)) .toList(), workbookCursor: json['workbookCursor'] as int, nextToken: json['nextToken'] as String?, rowIdsNotFound: (json['rowIdsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1907,7 +1905,7 @@ class ListTablesResult { factory ListTablesResult.fromJson(Map json) { return ListTablesResult( tables: (json['tables'] as List) - .whereNotNull() + .nonNulls .map((e) => Table.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1976,12 +1974,10 @@ class QueryTableRowsResult { factory QueryTableRowsResult.fromJson(Map json) { return QueryTableRowsResult( - columnIds: (json['columnIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + columnIds: + (json['columnIds'] as List).nonNulls.map((e) => e as String).toList(), rows: (json['rows'] as List) - .whereNotNull() + .nonNulls .map((e) => TableRow.fromJson(e as Map)) .toList(), workbookCursor: json['workbookCursor'] as int, @@ -2019,7 +2015,7 @@ class ResultRow { factory ResultRow.fromJson(Map json) { return ResultRow( dataItems: (json['dataItems'] as List) - .whereNotNull() + .nonNulls .map((e) => DataItem.fromJson(e as Map)) .toList(), rowId: json['rowId'] as String?, @@ -2067,11 +2063,11 @@ class ResultSet { factory ResultSet.fromJson(Map json) { return ResultSet( headers: (json['headers'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnMetadata.fromJson(e as Map)) .toList(), rows: (json['rows'] as List) - .whereNotNull() + .nonNulls .map((e) => ResultRow.fromJson(e as Map)) .toList(), ); @@ -2292,7 +2288,7 @@ class TableRow { factory TableRow.fromJson(Map json) { return TableRow( cells: (json['cells'] as List) - .whereNotNull() + .nonNulls .map((e) => Cell.fromJson(e as Map)) .toList(), rowId: json['rowId'] as String, @@ -2438,10 +2434,8 @@ class UpsertRowsResult { factory UpsertRowsResult.fromJson(Map json) { return UpsertRowsResult( - rowIds: (json['rowIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + rowIds: + (json['rowIds'] as List).nonNulls.map((e) => e as String).toList(), upsertAction: UpsertAction.fromString((json['upsertAction'] as String)), ); } diff --git a/aws_client/lib/src/generated/iam/v2010_05_08.dart b/aws_client/lib/src/generated/iam/v2010_05_08.dart index c6a57161d..9236a72d9 100644 --- a/aws_client/lib/src/generated/iam/v2010_05_08.dart +++ b/aws_client/lib/src/generated/iam/v2010_05_08.dart @@ -10960,9 +10960,8 @@ class AccessKey { return AccessKey( accessKeyId: _s.extractXmlStringValue(elem, 'AccessKeyId')!, secretAccessKey: _s.extractXmlStringValue(elem, 'SecretAccessKey')!, - status: _s - .extractXmlStringValue(elem, 'Status')! - .let(StatusType.fromString) /* Nullability(true, false) */, + status: + _s.extractXmlStringValue(elem, 'Status')!.let(StatusType.fromString), userName: _s.extractXmlStringValue(elem, 'UserName')!, createDate: _s.extractXmlDateTimeValue(elem, 'CreateDate'), ); @@ -11100,9 +11099,8 @@ class AccessKeyMetadata { return AccessKeyMetadata( accessKeyId: _s.extractXmlStringValue(elem, 'AccessKeyId'), createDate: _s.extractXmlDateTimeValue(elem, 'CreateDate'), - status: _s - .extractXmlStringValue(elem, 'Status') - ?.let(StatusType.fromString) /* Nullability(true, true) */, + status: + _s.extractXmlStringValue(elem, 'Status')?.let(StatusType.fromString), userName: _s.extractXmlStringValue(elem, 'UserName'), ); } @@ -11149,8 +11147,7 @@ class AttachedPermissionsBoundary { _s.extractXmlStringValue(elem, 'PermissionsBoundaryArn'), permissionsBoundaryType: _s .extractXmlStringValue(elem, 'PermissionsBoundaryType') - ?.let(PermissionsBoundaryAttachmentType - .fromString) /* Nullability(true, true) */, + ?.let(PermissionsBoundaryAttachmentType.fromString), ); } @@ -11767,7 +11764,7 @@ class EntityInfo { name: _s.extractXmlStringValue(elem, 'Name')!, type: _s .extractXmlStringValue(elem, 'Type')! - .let(PolicyOwnerEntityType.fromString) /* Nullability(true, false) */, + .let(PolicyOwnerEntityType.fromString), path: _s.extractXmlStringValue(elem, 'Path'), ); } @@ -11919,16 +11916,16 @@ class EvaluationResult { factory EvaluationResult.fromXml(_s.XmlElement elem) { return EvaluationResult( evalActionName: _s.extractXmlStringValue(elem, 'EvalActionName')!, - evalDecision: _s.extractXmlStringValue(elem, 'EvalDecision')!.let( - PolicyEvaluationDecisionType - .fromString) /* Nullability(true, false) */, + evalDecision: _s + .extractXmlStringValue(elem, 'EvalDecision')! + .let(PolicyEvaluationDecisionType.fromString), evalDecisionDetails: Map.fromEntries( elem.getElement('EvalDecisionDetails')?.findElements('entry').map( (c) => MapEntry( _s.extractXmlStringValue(c, 'key')!, - _s.extractXmlStringValue(c, 'value')!.let( - PolicyEvaluationDecisionType - .fromString) /* Nullability(false, false) */, + _s + .extractXmlStringValue(c, 'value')! + .let(PolicyEvaluationDecisionType.fromString), ), ) ?? {}, @@ -12004,7 +12001,7 @@ class GenerateCredentialReportResponse { description: _s.extractXmlStringValue(elem, 'Description'), state: _s .extractXmlStringValue(elem, 'State') - ?.let(ReportStateType.fromString) /* Nullability(true, true) */, + ?.let(ReportStateType.fromString), ); } @@ -12214,8 +12211,9 @@ class GetAccountSummaryResponse { summaryMap: Map.fromEntries( elem.getElement('SummaryMap')?.findElements('entry').map( (c) => MapEntry( - _s.extractXmlStringValue(c, 'key')!.let(SummaryKeyType - .fromString) /* Nullability(false, false) */, + _s + .extractXmlStringValue(c, 'key')! + .let(SummaryKeyType.fromString), _s.extractXmlIntValue(c, 'value')!, ), ) ?? @@ -12282,7 +12280,7 @@ class GetCredentialReportResponse { generatedTime: _s.extractXmlDateTimeValue(elem, 'GeneratedTime'), reportFormat: _s .extractXmlStringValue(elem, 'ReportFormat') - ?.let(ReportFormatType.fromString) /* Nullability(true, true) */, + ?.let(ReportFormatType.fromString), ); } @@ -12619,7 +12617,7 @@ class GetOrganizationsAccessReportResponse { jobCreationDate: _s.extractXmlDateTimeValue(elem, 'JobCreationDate')!, jobStatus: _s .extractXmlStringValue(elem, 'JobStatus')! - .let(JobStatusType.fromString) /* Nullability(true, false) */, + .let(JobStatusType.fromString), accessDetails: _s.extractXmlChild(elem, 'AccessDetails')?.let((elem) => elem.findElements('member').map(AccessDetail.fromXml).toList()), errorDetails: @@ -12922,7 +12920,7 @@ class GetServiceLastAccessedDetailsResponse { jobCreationDate: _s.extractXmlDateTimeValue(elem, 'JobCreationDate')!, jobStatus: _s .extractXmlStringValue(elem, 'JobStatus')! - .let(JobStatusType.fromString) /* Nullability(true, false) */, + .let(JobStatusType.fromString), servicesLastAccessed: _s .extractXmlChild(elem, 'ServicesLastAccessed')! .findElements('member') @@ -12930,9 +12928,9 @@ class GetServiceLastAccessedDetailsResponse { .toList(), error: _s.extractXmlChild(elem, 'Error')?.let(ErrorDetails.fromXml), isTruncated: _s.extractXmlBoolValue(elem, 'IsTruncated'), - jobType: _s.extractXmlStringValue(elem, 'JobType')?.let( - AccessAdvisorUsageGranularityType - .fromString) /* Nullability(true, true) */, + jobType: _s + .extractXmlStringValue(elem, 'JobType') + ?.let(AccessAdvisorUsageGranularityType.fromString), marker: _s.extractXmlStringValue(elem, 'Marker'), ); } @@ -13017,7 +13015,7 @@ class GetServiceLastAccessedDetailsWithEntitiesResponse { jobCreationDate: _s.extractXmlDateTimeValue(elem, 'JobCreationDate')!, jobStatus: _s .extractXmlStringValue(elem, 'JobStatus')! - .let(JobStatusType.fromString) /* Nullability(true, false) */, + .let(JobStatusType.fromString), error: _s.extractXmlChild(elem, 'Error')?.let(ErrorDetails.fromXml), isTruncated: _s.extractXmlBoolValue(elem, 'IsTruncated'), marker: _s.extractXmlStringValue(elem, 'Marker'), @@ -13058,8 +13056,9 @@ class GetServiceLinkedRoleDeletionStatusResponse { factory GetServiceLinkedRoleDeletionStatusResponse.fromXml( _s.XmlElement elem) { return GetServiceLinkedRoleDeletionStatusResponse( - status: _s.extractXmlStringValue(elem, 'Status')!.let( - DeletionTaskStatusType.fromString) /* Nullability(true, false) */, + status: _s + .extractXmlStringValue(elem, 'Status')! + .let(DeletionTaskStatusType.fromString), reason: _s .extractXmlChild(elem, 'Reason') ?.let(DeletionTaskFailureReasonType.fromXml), @@ -15705,11 +15704,11 @@ class PolicyGrantingServiceAccess { policyName: _s.extractXmlStringValue(elem, 'PolicyName')!, policyType: _s .extractXmlStringValue(elem, 'PolicyType')! - .let(PolicyType.fromString) /* Nullability(true, false) */, + .let(PolicyType.fromString), entityName: _s.extractXmlStringValue(elem, 'EntityName'), entityType: _s .extractXmlStringValue(elem, 'EntityType') - ?.let(PolicyOwnerEntityType.fromString) /* Nullability(true, true) */, + ?.let(PolicyOwnerEntityType.fromString), policyArn: _s.extractXmlStringValue(elem, 'PolicyArn'), ); } @@ -16102,16 +16101,15 @@ class ResourceSpecificResult { return ResourceSpecificResult( evalResourceDecision: _s .extractXmlStringValue(elem, 'EvalResourceDecision')! - .let(PolicyEvaluationDecisionType - .fromString) /* Nullability(true, false) */, + .let(PolicyEvaluationDecisionType.fromString), evalResourceName: _s.extractXmlStringValue(elem, 'EvalResourceName')!, evalDecisionDetails: Map.fromEntries( elem.getElement('EvalDecisionDetails')?.findElements('entry').map( (c) => MapEntry( _s.extractXmlStringValue(c, 'key')!, - _s.extractXmlStringValue(c, 'value')!.let( - PolicyEvaluationDecisionType - .fromString) /* Nullability(false, false) */, + _s + .extractXmlStringValue(c, 'value')! + .let(PolicyEvaluationDecisionType.fromString), ), ) ?? {}, @@ -16573,9 +16571,8 @@ class SSHPublicKey { fingerprint: _s.extractXmlStringValue(elem, 'Fingerprint')!, sSHPublicKeyBody: _s.extractXmlStringValue(elem, 'SSHPublicKeyBody')!, sSHPublicKeyId: _s.extractXmlStringValue(elem, 'SSHPublicKeyId')!, - status: _s - .extractXmlStringValue(elem, 'Status')! - .let(StatusType.fromString) /* Nullability(true, false) */, + status: + _s.extractXmlStringValue(elem, 'Status')!.let(StatusType.fromString), userName: _s.extractXmlStringValue(elem, 'UserName')!, uploadDate: _s.extractXmlDateTimeValue(elem, 'UploadDate'), ); @@ -16629,9 +16626,8 @@ class SSHPublicKeyMetadata { factory SSHPublicKeyMetadata.fromXml(_s.XmlElement elem) { return SSHPublicKeyMetadata( sSHPublicKeyId: _s.extractXmlStringValue(elem, 'SSHPublicKeyId')!, - status: _s - .extractXmlStringValue(elem, 'Status')! - .let(StatusType.fromString) /* Nullability(true, false) */, + status: + _s.extractXmlStringValue(elem, 'Status')!.let(StatusType.fromString), uploadDate: _s.extractXmlDateTimeValue(elem, 'UploadDate')!, userName: _s.extractXmlStringValue(elem, 'UserName')!, ); @@ -16947,9 +16943,8 @@ class ServiceSpecificCredential { serviceSpecificCredentialId: _s.extractXmlStringValue(elem, 'ServiceSpecificCredentialId')!, serviceUserName: _s.extractXmlStringValue(elem, 'ServiceUserName')!, - status: _s - .extractXmlStringValue(elem, 'Status')! - .let(StatusType.fromString) /* Nullability(true, false) */, + status: + _s.extractXmlStringValue(elem, 'Status')!.let(StatusType.fromString), userName: _s.extractXmlStringValue(elem, 'UserName')!, ); } @@ -17012,9 +17007,8 @@ class ServiceSpecificCredentialMetadata { serviceSpecificCredentialId: _s.extractXmlStringValue(elem, 'ServiceSpecificCredentialId')!, serviceUserName: _s.extractXmlStringValue(elem, 'ServiceUserName')!, - status: _s - .extractXmlStringValue(elem, 'Status')! - .let(StatusType.fromString) /* Nullability(true, false) */, + status: + _s.extractXmlStringValue(elem, 'Status')!.let(StatusType.fromString), userName: _s.extractXmlStringValue(elem, 'UserName')!, ); } @@ -17070,9 +17064,8 @@ class SigningCertificate { return SigningCertificate( certificateBody: _s.extractXmlStringValue(elem, 'CertificateBody')!, certificateId: _s.extractXmlStringValue(elem, 'CertificateId')!, - status: _s - .extractXmlStringValue(elem, 'Status')! - .let(StatusType.fromString) /* Nullability(true, false) */, + status: + _s.extractXmlStringValue(elem, 'Status')!.let(StatusType.fromString), userName: _s.extractXmlStringValue(elem, 'UserName')!, uploadDate: _s.extractXmlDateTimeValue(elem, 'UploadDate'), ); @@ -17175,7 +17168,7 @@ class Statement { sourcePolicyId: _s.extractXmlStringValue(elem, 'SourcePolicyId'), sourcePolicyType: _s .extractXmlStringValue(elem, 'SourcePolicyType') - ?.let(PolicySourceType.fromString) /* Nullability(true, true) */, + ?.let(PolicySourceType.fromString), startPosition: _s.extractXmlChild(elem, 'StartPosition')?.let(Position.fromXml), ); diff --git a/aws_client/lib/src/generated/identitystore/v2020_06_15.dart b/aws_client/lib/src/generated/identitystore/v2020_06_15.dart index 9d927e8dd..d4781fb4d 100644 --- a/aws_client/lib/src/generated/identitystore/v2020_06_15.dart +++ b/aws_client/lib/src/generated/identitystore/v2020_06_15.dart @@ -1405,7 +1405,7 @@ class DescribeGroupResponse { description: json['Description'] as String?, displayName: json['DisplayName'] as String?, externalIds: (json['ExternalIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExternalId.fromJson(e as Map)) .toList(), ); @@ -1504,16 +1504,16 @@ class DescribeUserResponse { identityStoreId: json['IdentityStoreId'] as String, userId: json['UserId'] as String, addresses: (json['Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Address.fromJson(e as Map)) .toList(), displayName: json['DisplayName'] as String?, emails: (json['Emails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Email.fromJson(e as Map)) .toList(), externalIds: (json['ExternalIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExternalId.fromJson(e as Map)) .toList(), locale: json['Locale'] as String?, @@ -1522,7 +1522,7 @@ class DescribeUserResponse { : null, nickName: json['NickName'] as String?, phoneNumbers: (json['PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumber.fromJson(e as Map)) .toList(), preferredLanguage: json['PreferredLanguage'] as String?, @@ -1795,7 +1795,7 @@ class Group { description: json['Description'] as String?, displayName: json['DisplayName'] as String?, externalIds: (json['ExternalIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExternalId.fromJson(e as Map)) .toList(), ); @@ -1919,7 +1919,7 @@ class IsMemberInGroupsResponse { factory IsMemberInGroupsResponse.fromJson(Map json) { return IsMemberInGroupsResponse( results: (json['Results'] as List) - .whereNotNull() + .nonNulls .map((e) => GroupMembershipExistenceResult.fromJson( e as Map)) .toList(), @@ -1956,7 +1956,7 @@ class ListGroupMembershipsForMemberResponse { Map json) { return ListGroupMembershipsForMemberResponse( groupMemberships: (json['GroupMemberships'] as List) - .whereNotNull() + .nonNulls .map((e) => GroupMembership.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1993,7 +1993,7 @@ class ListGroupMembershipsResponse { factory ListGroupMembershipsResponse.fromJson(Map json) { return ListGroupMembershipsResponse( groupMemberships: (json['GroupMemberships'] as List) - .whereNotNull() + .nonNulls .map((e) => GroupMembership.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2029,7 +2029,7 @@ class ListGroupsResponse { factory ListGroupsResponse.fromJson(Map json) { return ListGroupsResponse( groups: (json['Groups'] as List) - .whereNotNull() + .nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2065,7 +2065,7 @@ class ListUsersResponse { factory ListUsersResponse.fromJson(Map json) { return ListUsersResponse( users: (json['Users'] as List) - .whereNotNull() + .nonNulls .map((e) => User.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2337,16 +2337,16 @@ class User { identityStoreId: json['IdentityStoreId'] as String, userId: json['UserId'] as String, addresses: (json['Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Address.fromJson(e as Map)) .toList(), displayName: json['DisplayName'] as String?, emails: (json['Emails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Email.fromJson(e as Map)) .toList(), externalIds: (json['ExternalIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExternalId.fromJson(e as Map)) .toList(), locale: json['Locale'] as String?, @@ -2355,7 +2355,7 @@ class User { : null, nickName: json['NickName'] as String?, phoneNumbers: (json['PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumber.fromJson(e as Map)) .toList(), preferredLanguage: json['PreferredLanguage'] as String?, diff --git a/aws_client/lib/src/generated/imagebuilder/v2019_12_02.dart b/aws_client/lib/src/generated/imagebuilder/v2019_12_02.dart index 87e8d4710..eb1b4c01c 100644 --- a/aws_client/lib/src/generated/imagebuilder/v2019_12_02.dart +++ b/aws_client/lib/src/generated/imagebuilder/v2019_12_02.dart @@ -4141,7 +4141,7 @@ class AmiDistributionConfiguration { : null, name: json['name'] as String?, targetAccountIds: (json['targetAccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4339,7 +4339,7 @@ class Component { obfuscate: json['obfuscate'] as bool?, owner: json['owner'] as String?, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentParameterDetail.fromJson(e as Map)) .toList(), @@ -4349,7 +4349,7 @@ class Component { ? ComponentState.fromJson(json['state'] as Map) : null, supportedOsVersions: (json['supportedOsVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -4420,7 +4420,7 @@ class ComponentConfiguration { return ComponentConfiguration( componentArn: json['componentArn'] as String, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentParameter.fromJson(e as Map)) .toList(), ); @@ -4466,10 +4466,7 @@ class ComponentParameter { factory ComponentParameter.fromJson(Map json) { return ComponentParameter( name: json['name'] as String, - value: (json['value'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + value: (json['value'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -4511,7 +4508,7 @@ class ComponentParameterDetail { name: json['name'] as String, type: json['type'] as String, defaultValue: (json['defaultValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -4657,7 +4654,7 @@ class ComponentSummary { ? ComponentState.fromJson(json['state'] as Map) : null, supportedOsVersions: (json['supportedOsVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -4808,7 +4805,7 @@ class ComponentVersion { owner: json['owner'] as String?, platform: (json['platform'] as String?)?.let(Platform.fromString), supportedOsVersions: (json['supportedOsVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(ComponentType.fromString), @@ -4858,7 +4855,7 @@ class Container { factory Container.fromJson(Map json) { return Container( imageUris: (json['imageUris'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), region: json['region'] as String?, @@ -4899,7 +4896,7 @@ class ContainerDistributionConfiguration { targetRepository: TargetContainerRepository.fromJson( json['targetRepository'] as Map), containerTags: (json['containerTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -5040,7 +5037,7 @@ class ContainerRecipe { return ContainerRecipe( arn: json['arn'] as String?, components: (json['components'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ComponentConfiguration.fromJson(e as Map)) .toList(), @@ -5657,7 +5654,7 @@ class CvssScoreDetails { factory CvssScoreDetails.fromJson(Map json) { return CvssScoreDetails( adjustments: (json['adjustments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CvssScoreAdjustment.fromJson(e as Map)) .toList(), cvssSource: json['cvssSource'] as String?, @@ -6011,18 +6008,18 @@ class Distribution { as Map) : null, fastLaunchConfigurations: (json['fastLaunchConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FastLaunchConfiguration.fromJson(e as Map)) .toList(), launchTemplateConfigurations: (json['launchTemplateConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchTemplateConfiguration.fromJson(e as Map)) .toList(), licenseConfigurationArns: (json['licenseConfigurationArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), s3ExportConfiguration: json['s3ExportConfiguration'] != null @@ -6106,7 +6103,7 @@ class DistributionConfiguration { dateUpdated: json['dateUpdated'] as String?, description: json['description'] as String?, distributions: (json['distributions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Distribution.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -6177,10 +6174,8 @@ class DistributionConfigurationSummary { dateUpdated: json['dateUpdated'] as String?, description: json['description'] as String?, name: json['name'] as String?, - regions: (json['regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['regions'] as List?)?.nonNulls.map((e) => e as String).toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), ); @@ -6325,7 +6320,7 @@ class EcrConfiguration { factory EcrConfiguration.fromJson(Map json) { return EcrConfiguration( containerTags: (json['containerTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), repositoryName: json['repositoryName'] as String?, @@ -7427,7 +7422,7 @@ class Image { type: (json['type'] as String?)?.let(ImageType.fromString), version: json['version'] as String?, workflows: (json['workflows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowConfiguration.fromJson(e as Map)) .toList(), ); @@ -7692,7 +7687,7 @@ class ImagePipeline { tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), workflows: (json['workflows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowConfiguration.fromJson(e as Map)) .toList(), ); @@ -7861,12 +7856,12 @@ class ImageRecipe { : null, arn: json['arn'] as String?, blockDeviceMappings: (json['blockDeviceMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceBlockDeviceMapping.fromJson(e as Map)) .toList(), components: (json['components'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ComponentConfiguration.fromJson(e as Map)) .toList(), @@ -8869,7 +8864,7 @@ class InfrastructureConfiguration { : null, instanceProfileName: json['instanceProfileName'] as String?, instanceTypes: (json['instanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), keyPair: json['keyPair'] as String?, @@ -8880,7 +8875,7 @@ class InfrastructureConfiguration { resourceTags: (json['resourceTags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), snsTopicArn: json['snsTopicArn'] as String?, @@ -8982,7 +8977,7 @@ class InfrastructureConfigurationSummary { description: json['description'] as String?, instanceProfileName: json['instanceProfileName'] as String?, instanceTypes: (json['instanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -9113,7 +9108,7 @@ class InstanceConfiguration { factory InstanceConfiguration.fromJson(Map json) { return InstanceConfiguration( blockDeviceMappings: (json['blockDeviceMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceBlockDeviceMapping.fromJson(e as Map)) .toList(), @@ -9227,21 +9222,19 @@ class LaunchPermissionConfiguration { factory LaunchPermissionConfiguration.fromJson(Map json) { return LaunchPermissionConfiguration( organizationArns: (json['organizationArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), organizationalUnitArns: (json['organizationalUnitArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userGroups: (json['userGroups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - userIds: (json['userIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + userIds: + (json['userIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -9435,13 +9428,13 @@ class LifecycleExecutionResource { : null, endTime: timeStampFromJson(json['endTime']), imageUris: (json['imageUris'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), region: json['region'] as String?, resourceId: json['resourceId'] as String?, snapshots: (json['snapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleExecutionSnapshotResource.fromJson( e as Map)) .toList(), @@ -9752,7 +9745,7 @@ class LifecyclePolicy { executionRole: json['executionRole'] as String?, name: json['name'] as String?, policyDetails: (json['policyDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecyclePolicyDetail.fromJson(e as Map)) .toList(), resourceSelection: json['resourceSelection'] != null @@ -10006,12 +9999,10 @@ class LifecyclePolicyDetailExclusionRulesAmis { ? LifecyclePolicyDetailExclusionRulesAmisLastLaunched.fromJson( json['lastLaunched'] as Map) : null, - regions: (json['regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['regions'] as List?)?.nonNulls.map((e) => e as String).toList(), sharedAccounts: (json['sharedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tagMap: (json['tagMap'] as Map?) @@ -10159,7 +10150,7 @@ class LifecyclePolicyResourceSelection { factory LifecyclePolicyResourceSelection.fromJson(Map json) { return LifecyclePolicyResourceSelection( recipes: (json['recipes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecyclePolicyResourceSelectionRecipe.fromJson( e as Map)) .toList(), @@ -10374,7 +10365,7 @@ class ListComponentBuildVersionsResponse { Map json) { return ListComponentBuildVersionsResponse( componentSummaryList: (json['componentSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10422,7 +10413,7 @@ class ListComponentsResponse { factory ListComponentsResponse.fromJson(Map json) { return ListComponentsResponse( componentVersionList: (json['componentVersionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentVersion.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10465,7 +10456,7 @@ class ListContainerRecipesResponse { factory ListContainerRecipesResponse.fromJson(Map json) { return ListContainerRecipesResponse( containerRecipeSummaryList: (json['containerRecipeSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ContainerRecipeSummary.fromJson(e as Map)) .toList(), @@ -10512,7 +10503,7 @@ class ListDistributionConfigurationsResponse { return ListDistributionConfigurationsResponse( distributionConfigurationSummaryList: (json['distributionConfigurationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DistributionConfigurationSummary.fromJson( e as Map)) .toList(), @@ -10558,7 +10549,7 @@ class ListImageBuildVersionsResponse { factory ListImageBuildVersionsResponse.fromJson(Map json) { return ListImageBuildVersionsResponse( imageSummaryList: (json['imageSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10600,7 +10591,7 @@ class ListImagePackagesResponse { factory ListImagePackagesResponse.fromJson(Map json) { return ListImagePackagesResponse( imagePackageList: (json['imagePackageList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImagePackage.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10642,7 +10633,7 @@ class ListImagePipelineImagesResponse { factory ListImagePipelineImagesResponse.fromJson(Map json) { return ListImagePipelineImagesResponse( imageSummaryList: (json['imageSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10684,7 +10675,7 @@ class ListImagePipelinesResponse { factory ListImagePipelinesResponse.fromJson(Map json) { return ListImagePipelinesResponse( imagePipelineList: (json['imagePipelineList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImagePipeline.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10726,7 +10717,7 @@ class ListImageRecipesResponse { factory ListImageRecipesResponse.fromJson(Map json) { return ListImageRecipesResponse( imageRecipeSummaryList: (json['imageRecipeSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageRecipeSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10799,7 +10790,7 @@ class ListImageScanFindingAggregationsResponse { nextToken: json['nextToken'] as String?, requestId: json['requestId'] as String?, responses: (json['responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageScanFindingAggregation.fromJson(e as Map)) .toList(), @@ -10843,7 +10834,7 @@ class ListImageScanFindingsResponse { factory ListImageScanFindingsResponse.fromJson(Map json) { return ListImageScanFindingsResponse( findings: (json['findings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageScanFinding.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10895,7 +10886,7 @@ class ListImagesResponse { factory ListImagesResponse.fromJson(Map json) { return ListImagesResponse( imageVersionList: (json['imageVersionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageVersion.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10940,7 +10931,7 @@ class ListInfrastructureConfigurationsResponse { return ListInfrastructureConfigurationsResponse( infrastructureConfigurationSummaryList: (json['infrastructureConfigurationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InfrastructureConfigurationSummary.fromJson( e as Map)) .toList(), @@ -10997,7 +10988,7 @@ class ListLifecycleExecutionResourcesResponse { : null, nextToken: json['nextToken'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleExecutionResource.fromJson(e as Map)) .toList(), @@ -11038,7 +11029,7 @@ class ListLifecycleExecutionsResponse { factory ListLifecycleExecutionsResponse.fromJson(Map json) { return ListLifecycleExecutionsResponse( lifecycleExecutions: (json['lifecycleExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleExecution.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -11075,7 +11066,7 @@ class ListLifecyclePoliciesResponse { factory ListLifecyclePoliciesResponse.fromJson(Map json) { return ListLifecyclePoliciesResponse( lifecyclePolicySummaryList: (json['lifecyclePolicySummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => LifecyclePolicySummary.fromJson(e as Map)) .toList(), @@ -11137,7 +11128,7 @@ class ListWaitingWorkflowStepsResponse { return ListWaitingWorkflowStepsResponse( nextToken: json['nextToken'] as String?, steps: (json['steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowStepExecution.fromJson(e as Map)) .toList(), ); @@ -11174,7 +11165,7 @@ class ListWorkflowBuildVersionsResponse { return ListWorkflowBuildVersionsResponse( nextToken: json['nextToken'] as String?, workflowSummaryList: (json['workflowSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowSummary.fromJson(e as Map)) .toList(), ); @@ -11227,7 +11218,7 @@ class ListWorkflowExecutionsResponse { nextToken: json['nextToken'] as String?, requestId: json['requestId'] as String?, workflowExecutions: (json['workflowExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowExecutionMetadata.fromJson(e as Map)) .toList(), @@ -11298,7 +11289,7 @@ class ListWorkflowStepExecutionsResponse { nextToken: json['nextToken'] as String?, requestId: json['requestId'] as String?, steps: (json['steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowStepMetadata.fromJson(e as Map)) .toList(), workflowBuildVersionArn: json['workflowBuildVersionArn'] as String?, @@ -11348,7 +11339,7 @@ class ListWorkflowsResponse { return ListWorkflowsResponse( nextToken: json['nextToken'] as String?, workflowVersionList: (json['workflowVersionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowVersion.fromJson(e as Map)) .toList(), ); @@ -11422,11 +11413,11 @@ class OutputResources { factory OutputResources.fromJson(Map json) { return OutputResources( amis: (json['amis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ami.fromJson(e as Map)) .toList(), containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Container.fromJson(e as Map)) .toList(), ); @@ -11511,15 +11502,15 @@ class PackageVulnerabilityDetails { return PackageVulnerabilityDetails( vulnerabilityId: json['vulnerabilityId'] as String, cvss: (json['cvss'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CvssScore.fromJson(e as Map)) .toList(), referenceUrls: (json['referenceUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), relatedVulnerabilities: (json['relatedVulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), source: json['source'] as String?, @@ -11528,7 +11519,7 @@ class PackageVulnerabilityDetails { vendorSeverity: json['vendorSeverity'] as String?, vendorUpdatedAt: timeStampFromJson(json['vendorUpdatedAt']), vulnerablePackages: (json['vulnerablePackages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VulnerablePackage.fromJson(e as Map)) .toList(), ); @@ -12592,7 +12583,7 @@ class Workflow { name: json['name'] as String?, owner: json['owner'] as String?, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowParameterDetail.fromJson(e as Map)) .toList(), @@ -12673,7 +12664,7 @@ class WorkflowConfiguration { (json['onFailure'] as String?)?.let(OnWorkflowFailure.fromString), parallelGroup: json['parallelGroup'] as String?, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowParameter.fromJson(e as Map)) .toList(), ); @@ -12841,10 +12832,7 @@ class WorkflowParameter { factory WorkflowParameter.fromJson(Map json) { return WorkflowParameter( name: json['name'] as String, - value: (json['value'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + value: (json['value'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -12886,7 +12874,7 @@ class WorkflowParameterDetail { name: json['name'] as String, type: json['type'] as String, defaultValue: (json['defaultValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, diff --git a/aws_client/lib/src/generated/import_export/v2010_06_01.dart b/aws_client/lib/src/generated/import_export/v2010_06_01.dart index 74c380cf9..e8eb400d2 100644 --- a/aws_client/lib/src/generated/import_export/v2010_06_01.dart +++ b/aws_client/lib/src/generated/import_export/v2010_06_01.dart @@ -410,9 +410,8 @@ class CreateJobOutput { artifactList: _s.extractXmlChild(elem, 'ArtifactList')?.let( (elem) => elem.findElements('member').map(Artifact.fromXml).toList()), jobId: _s.extractXmlStringValue(elem, 'JobId'), - jobType: _s - .extractXmlStringValue(elem, 'JobType') - ?.let(JobType.fromString) /* Nullability(true, true) */, + jobType: + _s.extractXmlStringValue(elem, 'JobType')?.let(JobType.fromString), signature: _s.extractXmlStringValue(elem, 'Signature'), signatureFileContents: _s.extractXmlStringValue(elem, 'SignatureFileContents'), @@ -554,9 +553,8 @@ class GetStatusOutput { currentManifest: _s.extractXmlStringValue(elem, 'CurrentManifest'), errorCount: _s.extractXmlIntValue(elem, 'ErrorCount'), jobId: _s.extractXmlStringValue(elem, 'JobId'), - jobType: _s - .extractXmlStringValue(elem, 'JobType') - ?.let(JobType.fromString) /* Nullability(true, true) */, + jobType: + _s.extractXmlStringValue(elem, 'JobType')?.let(JobType.fromString), locationCode: _s.extractXmlStringValue(elem, 'LocationCode'), locationMessage: _s.extractXmlStringValue(elem, 'LocationMessage'), logBucket: _s.extractXmlStringValue(elem, 'LogBucket'), @@ -797,9 +795,8 @@ class Job { creationDate: _s.extractXmlDateTimeValue(elem, 'CreationDate'), isCanceled: _s.extractXmlBoolValue(elem, 'IsCanceled'), jobId: _s.extractXmlStringValue(elem, 'JobId'), - jobType: _s - .extractXmlStringValue(elem, 'JobType') - ?.let(JobType.fromString) /* Nullability(true, true) */, + jobType: + _s.extractXmlStringValue(elem, 'JobType')?.let(JobType.fromString), ); } diff --git a/aws_client/lib/src/generated/inspector/v2016_02_16.dart b/aws_client/lib/src/generated/inspector/v2016_02_16.dart index 922f5b81f..a960e032e 100644 --- a/aws_client/lib/src/generated/inspector/v2016_02_16.dart +++ b/aws_client/lib/src/generated/inspector/v2016_02_16.dart @@ -1813,24 +1813,24 @@ class AssessmentRun { .map((k, e) => MapEntry(Severity.fromString(k), e as int)), name: json['name'] as String, notifications: (json['notifications'] as List) - .whereNotNull() + .nonNulls .map((e) => AssessmentRunNotification.fromJson(e as Map)) .toList(), rulesPackageArns: (json['rulesPackageArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), state: AssessmentRunState.fromString((json['state'] as String)), stateChangedAt: nonNullableTimeStampFromJson(json['stateChangedAt'] as Object), stateChanges: (json['stateChanges'] as List) - .whereNotNull() + .nonNulls .map((e) => AssessmentRunStateChange.fromJson(e as Map)) .toList(), userAttributesForFindings: (json['userAttributesForFindings'] as List) - .whereNotNull() + .nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), completedAt: timeStampFromJson(json['completedAt']), @@ -1918,7 +1918,7 @@ class AssessmentRunAgent { agentId: json['agentId'] as String, assessmentRunArn: json['assessmentRunArn'] as String, telemetryMetadata: (json['telemetryMetadata'] as List) - .whereNotNull() + .nonNulls .map((e) => TelemetryMetadata.fromJson(e as Map)) .toList(), agentHealthDetails: json['agentHealthDetails'] as String?, @@ -2288,11 +2288,11 @@ class AssessmentTemplate { durationInSeconds: json['durationInSeconds'] as int, name: json['name'] as String, rulesPackageArns: (json['rulesPackageArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), userAttributesForFindings: (json['userAttributesForFindings'] as List) - .whereNotNull() + .nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), lastAssessmentRunArn: json['lastAssessmentRunArn'] as String?, @@ -2410,15 +2410,15 @@ class AssetAttributes { autoScalingGroup: json['autoScalingGroup'] as String?, hostname: json['hostname'] as String?, ipv4Addresses: (json['ipv4Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2596,7 +2596,7 @@ class DescribeAssessmentRunsResponse { factory DescribeAssessmentRunsResponse.fromJson(Map json) { return DescribeAssessmentRunsResponse( assessmentRuns: (json['assessmentRuns'] as List) - .whereNotNull() + .nonNulls .map((e) => AssessmentRun.fromJson(e as Map)) .toList(), failedItems: (json['failedItems'] as Map).map((k, e) => @@ -2631,7 +2631,7 @@ class DescribeAssessmentTargetsResponse { Map json) { return DescribeAssessmentTargetsResponse( assessmentTargets: (json['assessmentTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => AssessmentTarget.fromJson(e as Map)) .toList(), failedItems: (json['failedItems'] as Map).map((k, e) => @@ -2666,7 +2666,7 @@ class DescribeAssessmentTemplatesResponse { Map json) { return DescribeAssessmentTemplatesResponse( assessmentTemplates: (json['assessmentTemplates'] as List) - .whereNotNull() + .nonNulls .map((e) => AssessmentTemplate.fromJson(e as Map)) .toList(), failedItems: (json['failedItems'] as Map).map((k, e) => @@ -2774,7 +2774,7 @@ class DescribeFindingsResponse { failedItems: (json['failedItems'] as Map).map((k, e) => MapEntry(k, FailedItemDetails.fromJson(e as Map))), findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => Finding.fromJson(e as Map)) .toList(), ); @@ -2808,7 +2808,7 @@ class DescribeResourceGroupsResponse { failedItems: (json['failedItems'] as Map).map((k, e) => MapEntry(k, FailedItemDetails.fromJson(e as Map))), resourceGroups: (json['resourceGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceGroup.fromJson(e as Map)) .toList(), ); @@ -2842,7 +2842,7 @@ class DescribeRulesPackagesResponse { failedItems: (json['failedItems'] as Map).map((k, e) => MapEntry(k, FailedItemDetails.fromJson(e as Map))), rulesPackages: (json['rulesPackages'] as List) - .whereNotNull() + .nonNulls .map((e) => RulesPackage.fromJson(e as Map)) .toList(), ); @@ -2949,12 +2949,12 @@ class Exclusion { description: json['description'] as String, recommendation: json['recommendation'] as String, scopes: (json['scopes'] as List) - .whereNotNull() + .nonNulls .map((e) => Scope.fromJson(e as Map)) .toList(), title: json['title'] as String, attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), ); @@ -3009,12 +3009,12 @@ class ExclusionPreview { description: json['description'] as String, recommendation: json['recommendation'] as String, scopes: (json['scopes'] as List) - .whereNotNull() + .nonNulls .map((e) => Scope.fromJson(e as Map)) .toList(), title: json['title'] as String, attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), ); @@ -3170,13 +3170,13 @@ class Finding { return Finding( arn: json['arn'] as String, attributes: (json['attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), userAttributes: (json['userAttributes'] as List) - .whereNotNull() + .nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), assetAttributes: json['assetAttributes'] != null @@ -3373,7 +3373,7 @@ class GetExclusionsPreviewResponse { previewStatus: PreviewStatus.fromString((json['previewStatus'] as String)), exclusionPreviews: (json['exclusionPreviews'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExclusionPreview.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3403,7 +3403,7 @@ class GetTelemetryMetadataResponse { factory GetTelemetryMetadataResponse.fromJson(Map json) { return GetTelemetryMetadataResponse( telemetryMetadata: (json['telemetryMetadata'] as List) - .whereNotNull() + .nonNulls .map((e) => TelemetryMetadata.fromJson(e as Map)) .toList(), ); @@ -3490,7 +3490,7 @@ class ListAssessmentRunAgentsResponse { factory ListAssessmentRunAgentsResponse.fromJson(Map json) { return ListAssessmentRunAgentsResponse( assessmentRunAgents: (json['assessmentRunAgents'] as List) - .whereNotNull() + .nonNulls .map((e) => AssessmentRunAgent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3526,7 +3526,7 @@ class ListAssessmentRunsResponse { factory ListAssessmentRunsResponse.fromJson(Map json) { return ListAssessmentRunsResponse( assessmentRunArns: (json['assessmentRunArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3562,7 +3562,7 @@ class ListAssessmentTargetsResponse { factory ListAssessmentTargetsResponse.fromJson(Map json) { return ListAssessmentTargetsResponse( assessmentTargetArns: (json['assessmentTargetArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3598,7 +3598,7 @@ class ListAssessmentTemplatesResponse { factory ListAssessmentTemplatesResponse.fromJson(Map json) { return ListAssessmentTemplatesResponse( assessmentTemplateArns: (json['assessmentTemplateArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3633,7 +3633,7 @@ class ListEventSubscriptionsResponse { factory ListEventSubscriptionsResponse.fromJson(Map json) { return ListEventSubscriptionsResponse( subscriptions: (json['subscriptions'] as List) - .whereNotNull() + .nonNulls .map((e) => Subscription.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3668,7 +3668,7 @@ class ListExclusionsResponse { factory ListExclusionsResponse.fromJson(Map json) { return ListExclusionsResponse( exclusionArns: (json['exclusionArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3703,7 +3703,7 @@ class ListFindingsResponse { factory ListFindingsResponse.fromJson(Map json) { return ListFindingsResponse( findingArns: (json['findingArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3738,7 +3738,7 @@ class ListRulesPackagesResponse { factory ListRulesPackagesResponse.fromJson(Map json) { return ListRulesPackagesResponse( rulesPackageArns: (json['rulesPackageArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3766,7 +3766,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3845,20 +3845,20 @@ class NetworkInterface { factory NetworkInterface.fromJson(Map json) { return NetworkInterface( ipv6Addresses: (json['ipv6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), networkInterfaceId: json['networkInterfaceId'] as String?, privateDnsName: json['privateDnsName'] as String?, privateIpAddress: json['privateIpAddress'] as String?, privateIpAddresses: (json['privateIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrivateIp.fromJson(e as Map)) .toList(), publicDnsName: json['publicDnsName'] as String?, publicIp: json['publicIp'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityGroup.fromJson(e as Map)) .toList(), subnetId: json['subnetId'] as String?, @@ -3910,7 +3910,7 @@ class PreviewAgentsResponse { factory PreviewAgentsResponse.fromJson(Map json) { return PreviewAgentsResponse( agentPreviews: (json['agentPreviews'] as List) - .whereNotNull() + .nonNulls .map((e) => AgentPreview.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4070,7 +4070,7 @@ class ResourceGroup { arn: json['arn'] as String, createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), tags: (json['tags'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceGroupTag.fromJson(e as Map)) .toList(), ); @@ -4324,7 +4324,7 @@ class Subscription { factory Subscription.fromJson(Map json) { return Subscription( eventSubscriptions: (json['eventSubscriptions'] as List) - .whereNotNull() + .nonNulls .map((e) => EventSubscription.fromJson(e as Map)) .toList(), resourceArn: json['resourceArn'] as String, diff --git a/aws_client/lib/src/generated/inspector2/v2020_06_08.dart b/aws_client/lib/src/generated/inspector2/v2020_06_08.dart index 574fcb4a0..ae446cffd 100644 --- a/aws_client/lib/src/generated/inspector2/v2020_06_08.dart +++ b/aws_client/lib/src/generated/inspector2/v2020_06_08.dart @@ -2765,14 +2765,9 @@ class AtigData { return AtigData( firstSeen: timeStampFromJson(json['firstSeen']), lastSeen: timeStampFromJson(json['lastSeen']), - targets: (json['targets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - ttps: (json['ttps'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['targets'] as List?)?.nonNulls.map((e) => e as String).toList(), + ttps: (json['ttps'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2890,11 +2885,11 @@ class AwsEc2InstanceDetails { iamInstanceProfileArn: json['iamInstanceProfileArn'] as String?, imageId: json['imageId'] as String?, ipV4Addresses: (json['ipV4Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ipV6Addresses: (json['ipV6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), keyName: json['keyName'] as String?, @@ -3027,7 +3022,7 @@ class AwsEcrContainerAggregationResponse { architecture: json['architecture'] as String?, imageSha: json['imageSha'] as String?, imageTags: (json['imageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), repository: json['repository'] as String?, @@ -3103,7 +3098,7 @@ class AwsEcrContainerImageDetails { architecture: json['architecture'] as String?, author: json['author'] as String?, imageTags: (json['imageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), platform: json['platform'] as String?, @@ -3210,14 +3205,12 @@ class AwsLambdaFunctionDetails { runtime: Runtime.fromString((json['runtime'] as String)), version: json['version'] as String, architectures: (json['architectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Architecture.fromString((e as String))) .toList(), lastModifiedAt: timeStampFromJson(json['lastModifiedAt']), - layers: (json['layers'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + layers: + (json['layers'] as List?)?.nonNulls.map((e) => e as String).toList(), packageType: (json['packageType'] as String?)?.let(PackageType.fromString), vpcConfig: json['vpcConfig'] != null @@ -3271,11 +3264,11 @@ class BatchGetAccountStatusResponse { factory BatchGetAccountStatusResponse.fromJson(Map json) { return BatchGetAccountStatusResponse( accounts: (json['accounts'] as List) - .whereNotNull() + .nonNulls .map((e) => AccountState.fromJson(e as Map)) .toList(), failedAccounts: (json['failedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedAccount.fromJson(e as Map)) .toList(), ); @@ -3307,11 +3300,11 @@ class BatchGetCodeSnippetResponse { factory BatchGetCodeSnippetResponse.fromJson(Map json) { return BatchGetCodeSnippetResponse( codeSnippetResults: (json['codeSnippetResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeSnippetResult.fromJson(e as Map)) .toList(), errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeSnippetError.fromJson(e as Map)) .toList(), ); @@ -3342,11 +3335,11 @@ class BatchGetFindingDetailsResponse { factory BatchGetFindingDetailsResponse.fromJson(Map json) { return BatchGetFindingDetailsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingDetailsError.fromJson(e as Map)) .toList(), findingDetails: (json['findingDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingDetail.fromJson(e as Map)) .toList(), ); @@ -3379,11 +3372,11 @@ class BatchGetFreeTrialInfoResponse { factory BatchGetFreeTrialInfoResponse.fromJson(Map json) { return BatchGetFreeTrialInfoResponse( accounts: (json['accounts'] as List) - .whereNotNull() + .nonNulls .map((e) => FreeTrialAccountInfo.fromJson(e as Map)) .toList(), failedAccounts: (json['failedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => FreeTrialInfoError.fromJson(e as Map)) .toList(), ); @@ -3419,12 +3412,12 @@ class BatchGetMemberEc2DeepInspectionStatusResponse { Map json) { return BatchGetMemberEc2DeepInspectionStatusResponse( accountIds: (json['accountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberAccountEc2DeepInspectionStatusState.fromJson( e as Map)) .toList(), failedAccountIds: (json['failedAccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedMemberAccountEc2DeepInspectionStatusState.fromJson( e as Map)) .toList(), @@ -3460,12 +3453,12 @@ class BatchUpdateMemberEc2DeepInspectionStatusResponse { Map json) { return BatchUpdateMemberEc2DeepInspectionStatusResponse( accountIds: (json['accountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberAccountEc2DeepInspectionStatusState.fromJson( e as Map)) .toList(), failedAccountIds: (json['failedAccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedMemberAccountEc2DeepInspectionStatusState.fromJson( e as Map)) .toList(), @@ -4535,7 +4528,7 @@ class CisTargetResourceAggregation { targetResourceId: json['targetResourceId'] as String?, targetResourceTags: (json['targetResourceTags'] as Map?) ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + k, (e as List).nonNulls.map((e) => e as String).toList())), targetStatus: (json['targetStatus'] as String?)?.let(CisTargetStatus.fromString), targetStatusReason: (json['targetStatusReason'] as String?) @@ -4674,12 +4667,12 @@ class CisTargets { factory CisTargets.fromJson(Map json) { return CisTargets( accountIds: (json['accountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), targetResourceTags: (json['targetResourceTags'] as Map?) ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -4892,14 +4885,14 @@ class CodeSnippetResult { factory CodeSnippetResult.fromJson(Map json) { return CodeSnippetResult( codeSnippet: (json['codeSnippet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeLine.fromJson(e as Map)) .toList(), endLine: json['endLine'] as int?, findingArn: json['findingArn'] as String?, startLine: json['startLine'] as int?, suggestedFixes: (json['suggestedFixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuggestedFix.fromJson(e as Map)) .toList(), ); @@ -4977,19 +4970,16 @@ class CodeVulnerabilityDetails { factory CodeVulnerabilityDetails.fromJson(Map json) { return CodeVulnerabilityDetails( - cwes: (json['cwes'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + cwes: (json['cwes'] as List).nonNulls.map((e) => e as String).toList(), detectorId: json['detectorId'] as String, detectorName: json['detectorName'] as String, filePath: CodeFilePath.fromJson(json['filePath'] as Map), detectorTags: (json['detectorTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), referenceUrls: (json['referenceUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ruleId: json['ruleId'] as String?, @@ -5699,7 +5689,7 @@ class CvssScoreDetails { scoringVector: json['scoringVector'] as String, version: json['version'] as String, adjustments: (json['adjustments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CvssScoreAdjustment.fromJson(e as Map)) .toList(), cvssSource: json['cvssSource'] as String?, @@ -6038,11 +6028,11 @@ class DisableResponse { factory DisableResponse.fromJson(Map json) { return DisableResponse( accounts: (json['accounts'] as List) - .whereNotNull() + .nonNulls .map((e) => Account.fromJson(e as Map)) .toList(), failedAccounts: (json['failedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedAccount.fromJson(e as Map)) .toList(), ); @@ -6460,10 +6450,7 @@ class EcrContainerImageMetadata { factory EcrContainerImageMetadata.fromJson(Map json) { return EcrContainerImageMetadata( imagePulledAt: timeStampFromJson(json['imagePulledAt']), - tags: (json['tags'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tags: (json['tags'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6674,11 +6661,11 @@ class EnableResponse { factory EnableResponse.fromJson(Map json) { return EnableResponse( accounts: (json['accounts'] as List) - .whereNotNull() + .nonNulls .map((e) => Account.fromJson(e as Map)) .toList(), failedAccounts: (json['failedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedAccount.fromJson(e as Map)) .toList(), ); @@ -7293,175 +7280,175 @@ class FilterCriteria { factory FilterCriteria.fromJson(Map json) { return FilterCriteria( awsAccountId: (json['awsAccountId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), codeVulnerabilityDetectorName: (json['codeVulnerabilityDetectorName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), codeVulnerabilityDetectorTags: (json['codeVulnerabilityDetectorTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), codeVulnerabilityFilePath: (json['codeVulnerabilityFilePath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), componentId: (json['componentId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), componentType: (json['componentType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), ec2InstanceImageId: (json['ec2InstanceImageId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), ec2InstanceSubnetId: (json['ec2InstanceSubnetId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), ec2InstanceVpcId: (json['ec2InstanceVpcId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), ecrImageArchitecture: (json['ecrImageArchitecture'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), ecrImageHash: (json['ecrImageHash'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), ecrImagePushedAt: (json['ecrImagePushedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), ecrImageRegistry: (json['ecrImageRegistry'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), ecrImageRepositoryName: (json['ecrImageRepositoryName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), ecrImageTags: (json['ecrImageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), epssScore: (json['epssScore'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), exploitAvailable: (json['exploitAvailable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingArn: (json['findingArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingStatus: (json['findingStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingType: (json['findingType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), firstObservedAt: (json['firstObservedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), fixAvailable: (json['fixAvailable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), inspectorScore: (json['inspectorScore'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), lambdaFunctionExecutionRoleArn: (json['lambdaFunctionExecutionRoleArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), lambdaFunctionLastModifiedAt: (json['lambdaFunctionLastModifiedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), lambdaFunctionLayers: (json['lambdaFunctionLayers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), lambdaFunctionName: (json['lambdaFunctionName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), lambdaFunctionRuntime: (json['lambdaFunctionRuntime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), lastObservedAt: (json['lastObservedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), networkProtocol: (json['networkProtocol'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), portRange: (json['portRange'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRangeFilter.fromJson(e as Map)) .toList(), relatedVulnerabilities: (json['relatedVulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceId: (json['resourceId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceTags: (json['resourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), resourceType: (json['resourceType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), severity: (json['severity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), title: (json['title'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), updatedAt: (json['updatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), vendorSeverity: (json['vendorSeverity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), vulnerabilityId: (json['vulnerabilityId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), vulnerabilitySource: (json['vulnerabilitySource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), vulnerablePackages: (json['vulnerablePackages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageFilter.fromJson(e as Map)) .toList(), ); @@ -7688,7 +7675,7 @@ class Finding { remediation: Remediation.fromJson(json['remediation'] as Map), resources: (json['resources'] as List) - .whereNotNull() + .nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), severity: Severity.fromString((json['severity'] as String)), @@ -7828,13 +7815,10 @@ class FindingDetail { cisaData: json['cisaData'] != null ? CisaData.fromJson(json['cisaData'] as Map) : null, - cwes: (json['cwes'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + cwes: (json['cwes'] as List?)?.nonNulls.map((e) => e as String).toList(), epssScore: json['epssScore'] as double?, evidences: (json['evidences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Evidence.fromJson(e as Map)) .toList(), exploitObserved: json['exploitObserved'] != null @@ -7843,18 +7827,13 @@ class FindingDetail { : null, findingArn: json['findingArn'] as String?, referenceUrls: (json['referenceUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), riskScore: json['riskScore'] as int?, - tools: (json['tools'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - ttps: (json['ttps'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tools: + (json['tools'] as List?)?.nonNulls.map((e) => e as String).toList(), + ttps: (json['ttps'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -8088,7 +8067,7 @@ class FreeTrialAccountInfo { return FreeTrialAccountInfo( accountId: json['accountId'] as String, freeTrialInfo: (json['freeTrialInfo'] as List) - .whereNotNull() + .nonNulls .map((e) => FreeTrialInfo.fromJson(e as Map)) .toList(), ); @@ -8282,7 +8261,7 @@ class GetCisScanResultDetailsResponse { return GetCisScanResultDetailsResponse( nextToken: json['nextToken'] as String?, scanResultDetails: (json['scanResultDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CisScanResultDetails.fromJson(e as Map)) .toList(), ); @@ -8387,11 +8366,11 @@ class GetEc2DeepInspectionConfigurationResponse { return GetEc2DeepInspectionConfigurationResponse( errorMessage: json['errorMessage'] as String?, orgPackagePaths: (json['orgPackagePaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), packagePaths: (json['packagePaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: @@ -8897,10 +8876,8 @@ class LambdaFunctionMetadata { functionName: json['functionName'] as String?, functionTags: (json['functionTags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), - layers: (json['layers'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + layers: + (json['layers'] as List?)?.nonNulls.map((e) => e as String).toList(), runtime: (json['runtime'] as String?)?.let(Runtime.fromString), ); } @@ -9076,11 +9053,11 @@ class LambdaVpcConfig { factory LambdaVpcConfig.fromJson(Map json) { return LambdaVpcConfig( securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, @@ -9118,7 +9095,7 @@ class ListAccountPermissionsResponse { factory ListAccountPermissionsResponse.fromJson(Map json) { return ListAccountPermissionsResponse( permissions: (json['permissions'] as List) - .whereNotNull() + .nonNulls .map((e) => Permission.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9184,7 +9161,7 @@ class ListCisScanConfigurationsResponse { return ListCisScanConfigurationsResponse( nextToken: json['nextToken'] as String?, scanConfigurations: (json['scanConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CisScanConfiguration.fromJson(e as Map)) .toList(), ); @@ -9217,7 +9194,7 @@ class ListCisScanResultsAggregatedByChecksResponse { Map json) { return ListCisScanResultsAggregatedByChecksResponse( checkAggregations: (json['checkAggregations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CisCheckAggregation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9252,7 +9229,7 @@ class ListCisScanResultsAggregatedByTargetResourceResponse { return ListCisScanResultsAggregatedByTargetResourceResponse( nextToken: json['nextToken'] as String?, targetResourceAggregations: (json['targetResourceAggregations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CisTargetResourceAggregation.fromJson(e as Map)) .toList(), @@ -9378,7 +9355,7 @@ class ListCisScansResponse { return ListCisScansResponse( nextToken: json['nextToken'] as String?, scans: (json['scans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CisScan.fromJson(e as Map)) .toList(), ); @@ -9430,7 +9407,7 @@ class ListCoverageResponse { factory ListCoverageResponse.fromJson(Map json) { return ListCoverageResponse( coveredResources: (json['coveredResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoveredResource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9470,7 +9447,7 @@ class ListCoverageStatisticsResponse { return ListCoverageStatisticsResponse( totalCounts: json['totalCounts'] as int, countsByGroup: (json['countsByGroup'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Counts.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9509,7 +9486,7 @@ class ListDelegatedAdminAccountsResponse { Map json) { return ListDelegatedAdminAccountsResponse( delegatedAdminAccounts: (json['delegatedAdminAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DelegatedAdminAccount.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9545,7 +9522,7 @@ class ListFiltersResponse { factory ListFiltersResponse.fromJson(Map json) { return ListFiltersResponse( filters: (json['filters'] as List) - .whereNotNull() + .nonNulls .map((e) => Filter.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9587,7 +9564,7 @@ class ListFindingAggregationsResponse { AggregationType.fromString((json['aggregationType'] as String)), nextToken: json['nextToken'] as String?, responses: (json['responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregationResponse.fromJson(e as Map)) .toList(), ); @@ -9623,7 +9600,7 @@ class ListFindingsResponse { factory ListFindingsResponse.fromJson(Map json) { return ListFindingsResponse( findings: (json['findings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Finding.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9656,7 +9633,7 @@ class ListMembersResponse { factory ListMembersResponse.fromJson(Map json) { return ListMembersResponse( members: (json['members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Member.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9713,7 +9690,7 @@ class ListUsageTotalsResponse { return ListUsageTotalsResponse( nextToken: json['nextToken'] as String?, totals: (json['totals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageTotal.fromJson(e as Map)) .toList(), ); @@ -9939,7 +9916,7 @@ class NetworkPath { factory NetworkPath.fromJson(Map json) { return NetworkPath( steps: (json['steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Step.fromJson(e as Map)) .toList(), ); @@ -10332,15 +10309,15 @@ class PackageVulnerabilityDetails { source: json['source'] as String, vulnerabilityId: json['vulnerabilityId'] as String, cvss: (json['cvss'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CvssScore.fromJson(e as Map)) .toList(), referenceUrls: (json['referenceUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), relatedVulnerabilities: (json['relatedVulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceUrl: json['sourceUrl'] as String?, @@ -10348,7 +10325,7 @@ class PackageVulnerabilityDetails { vendorSeverity: json['vendorSeverity'] as String?, vendorUpdatedAt: timeStampFromJson(json['vendorUpdatedAt']), vulnerablePackages: (json['vulnerablePackages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VulnerablePackage.fromJson(e as Map)) .toList(), ); @@ -10850,35 +10827,35 @@ class ResourceFilterCriteria { factory ResourceFilterCriteria.fromJson(Map json) { return ResourceFilterCriteria( accountId: (json['accountId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceStringFilter.fromJson(e as Map)) .toList(), ec2InstanceTags: (json['ec2InstanceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceMapFilter.fromJson(e as Map)) .toList(), ecrImageTags: (json['ecrImageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceStringFilter.fromJson(e as Map)) .toList(), ecrRepositoryName: (json['ecrRepositoryName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceStringFilter.fromJson(e as Map)) .toList(), lambdaFunctionName: (json['lambdaFunctionName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceStringFilter.fromJson(e as Map)) .toList(), lambdaFunctionTags: (json['lambdaFunctionTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceMapFilter.fromJson(e as Map)) .toList(), resourceId: (json['resourceId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceStringFilter.fromJson(e as Map)) .toList(), resourceType: (json['resourceType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceStringFilter.fromJson(e as Map)) .toList(), ); @@ -11531,7 +11508,7 @@ class SearchVulnerabilitiesResponse { factory SearchVulnerabilitiesResponse.fromJson(Map json) { return SearchVulnerabilitiesResponse( vulnerabilities: (json['vulnerabilities'] as List) - .whereNotNull() + .nonNulls .map((e) => Vulnerability.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -12372,11 +12349,11 @@ class UpdateEc2DeepInspectionConfigurationResponse { return UpdateEc2DeepInspectionConfigurationResponse( errorMessage: json['errorMessage'] as String?, orgPackagePaths: (json['orgPackagePaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), packagePaths: (json['packagePaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: @@ -12532,7 +12509,7 @@ class UsageTotal { return UsageTotal( accountId: json['accountId'] as String?, usage: (json['usage'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Usage.fromJson(e as Map)) .toList(), ); @@ -12660,13 +12637,10 @@ class Vulnerability { cvss3: json['cvss3'] != null ? Cvss3.fromJson(json['cvss3'] as Map) : null, - cwes: (json['cwes'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + cwes: (json['cwes'] as List?)?.nonNulls.map((e) => e as String).toList(), description: json['description'] as String?, detectionPlatforms: (json['detectionPlatforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), epss: json['epss'] != null @@ -12677,11 +12651,11 @@ class Vulnerability { json['exploitObserved'] as Map) : null, referenceUrls: (json['referenceUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), relatedVulnerabilities: (json['relatedVulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), source: (json['source'] as String?)?.let(VulnerabilitySource.fromString), @@ -12861,7 +12835,7 @@ class WeeklySchedule { factory WeeklySchedule.fromJson(Map json) { return WeeklySchedule( days: (json['days'] as List) - .whereNotNull() + .nonNulls .map((e) => Day.fromString((e as String))) .toList(), startTime: Time.fromJson(json['startTime'] as Map), diff --git a/aws_client/lib/src/generated/internet_monitor/v2021_06_03.dart b/aws_client/lib/src/generated/internet_monitor/v2021_06_03.dart index 41e871a6b..ca2e895ba 100644 --- a/aws_client/lib/src/generated/internet_monitor/v2021_06_03.dart +++ b/aws_client/lib/src/generated/internet_monitor/v2021_06_03.dart @@ -1354,7 +1354,7 @@ class GetHealthEventOutput { impactType: HealthEventImpactType.fromString((json['ImpactType'] as String)), impactedLocations: (json['ImpactedLocations'] as List) - .whereNotNull() + .nonNulls .map((e) => ImpactedLocation.fromJson(e as Map)) .toList(), lastUpdatedAt: @@ -1557,10 +1557,8 @@ class GetMonitorOutput { modifiedAt: nonNullableTimeStampFromJson(json['ModifiedAt'] as Object), monitorArn: json['MonitorArn'] as String, monitorName: json['MonitorName'] as String, - resources: (json['Resources'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + resources: + (json['Resources'] as List).nonNulls.map((e) => e as String).toList(), status: MonitorConfigState.fromString((json['Status'] as String)), healthEventsConfig: json['HealthEventsConfig'] != null ? HealthEventsConfig.fromJson( @@ -1644,12 +1642,11 @@ class GetQueryResultsOutput { factory GetQueryResultsOutput.fromJson(Map json) { return GetQueryResultsOutput( data: (json['Data'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), fields: (json['Fields'] as List) - .whereNotNull() + .nonNulls .map((e) => QueryField.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1755,7 +1752,7 @@ class HealthEvent { impactType: HealthEventImpactType.fromString((json['ImpactType'] as String)), impactedLocations: (json['ImpactedLocations'] as List) - .whereNotNull() + .nonNulls .map((e) => ImpactedLocation.fromJson(e as Map)) .toList(), lastUpdatedAt: @@ -2022,7 +2019,7 @@ class ImpactedLocation { json['InternetHealth'] as Map) : null, ipv4Prefixes: (json['Ipv4Prefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), latitude: json['Latitude'] as double?, @@ -2285,7 +2282,7 @@ class ListHealthEventsOutput { factory ListHealthEventsOutput.fromJson(Map json) { return ListHealthEventsOutput( healthEvents: (json['HealthEvents'] as List) - .whereNotNull() + .nonNulls .map((e) => HealthEvent.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2318,7 +2315,7 @@ class ListInternetEventsOutput { factory ListInternetEventsOutput.fromJson(Map json) { return ListInternetEventsOutput( internetEvents: (json['InternetEvents'] as List) - .whereNotNull() + .nonNulls .map((e) => InternetEventSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2351,7 +2348,7 @@ class ListMonitorsOutput { factory ListMonitorsOutput.fromJson(Map json) { return ListMonitorsOutput( monitors: (json['Monitors'] as List) - .whereNotNull() + .nonNulls .map((e) => Monitor.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2619,13 +2616,13 @@ class NetworkImpairment { factory NetworkImpairment.fromJson(Map json) { return NetworkImpairment( asPath: (json['AsPath'] as List) - .whereNotNull() + .nonNulls .map((e) => Network.fromJson(e as Map)) .toList(), networkEventType: TriangulationEventType.fromString( (json['NetworkEventType'] as String)), networks: (json['Networks'] as List) - .whereNotNull() + .nonNulls .map((e) => Network.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/iot/v2015_05_28.dart b/aws_client/lib/src/generated/iot/v2015_05_28.dart index 6c690eba2..b1105f783 100644 --- a/aws_client/lib/src/generated/iot/v2015_05_28.dart +++ b/aws_client/lib/src/generated/iot/v2015_05_28.dart @@ -11620,7 +11620,7 @@ class AbortConfig { factory AbortConfig.fromJson(Map json) { return AbortConfig( criteriaList: (json['criteriaList'] as List) - .whereNotNull() + .nonNulls .map((e) => AbortCriteria.fromJson(e as Map)) .toList(), ); @@ -12097,7 +12097,7 @@ class AddThingsToThingGroupParams { factory AddThingsToThingGroupParams.fromJson(Map json) { return AddThingsToThingGroupParams( thingGroupNames: (json['thingGroupNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), overrideDynamicGroups: json['overrideDynamicGroups'] as bool?, @@ -12131,10 +12131,8 @@ class AggregationType { factory AggregationType.fromJson(Map json) { return AggregationType( name: AggregationTypeName.fromString((json['name'] as String)), - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -12223,7 +12221,7 @@ class Allowed { factory Allowed.fromJson(Map json) { return Allowed( policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Policy.fromJson(e as Map)) .toList(), ); @@ -12644,7 +12642,7 @@ class AuditFinding { reasonForNonCompliance: json['reasonForNonCompliance'] as String?, reasonForNonComplianceCode: json['reasonForNonComplianceCode'] as String?, relatedResources: (json['relatedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedResource.fromJson(e as Map)) .toList(), severity: @@ -12905,13 +12903,13 @@ class AuditMitigationActionsTaskTarget { factory AuditMitigationActionsTaskTarget.fromJson(Map json) { return AuditMitigationActionsTaskTarget( - auditCheckToReasonCodeFilter: (json['auditCheckToReasonCodeFilter'] - as Map?) - ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + auditCheckToReasonCodeFilter: + (json['auditCheckToReasonCodeFilter'] as Map?)?.map( + (k, e) => MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), auditTaskId: json['auditTaskId'] as String?, findingIds: (json['findingIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -13138,10 +13136,8 @@ class AuthInfo { factory AuthInfo.fromJson(Map json) { return AuthInfo( - resources: (json['resources'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + resources: + (json['resources'] as List).nonNulls.map((e) => e as String).toList(), actionType: (json['actionType'] as String?)?.let(ActionType.fromString), ); } @@ -13197,7 +13193,7 @@ class AuthResult { ? Denied.fromJson(json['denied'] as Map) : null, missingContextValues: (json['missingContextValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -16635,13 +16631,13 @@ class DescribeAuditMitigationActionsTaskResponse { Map json) { return DescribeAuditMitigationActionsTaskResponse( actionsDefinition: (json['actionsDefinition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MitigationAction.fromJson(e as Map)) .toList(), - auditCheckToActionsMapping: (json['auditCheckToActionsMapping'] - as Map?) - ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + auditCheckToActionsMapping: + (json['auditCheckToActionsMapping'] as Map?)?.map( + (k, e) => MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), endTime: timeStampFromJson(json['endTime']), startTime: timeStampFromJson(json['startTime']), target: json['target'] != null @@ -16958,7 +16954,7 @@ class DescribeCertificateProviderResponse { return DescribeCertificateProviderResponse( accountDefaultForOperations: (json['accountDefaultForOperations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateProviderOperation.fromString((e as String))) .toList(), certificateProviderArn: json['certificateProviderArn'] as String?, @@ -17176,7 +17172,7 @@ class DescribeDimensionResponse { lastModifiedDate: timeStampFromJson(json['lastModifiedDate']), name: json['name'] as String?, stringValues: (json['stringValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(DimensionType.fromString), @@ -17272,7 +17268,7 @@ class DescribeDomainConfigurationResponse { json['serverCertificateConfig'] as Map) : null, serverCertificates: (json['serverCertificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerCertificateSummary.fromJson(e as Map)) .toList(), @@ -17683,7 +17679,7 @@ class DescribeJobTemplateResponse { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, destinationPackageVersions: (json['destinationPackageVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), document: json['document'] as String?, @@ -17699,7 +17695,7 @@ class DescribeJobTemplateResponse { jobTemplateArn: json['jobTemplateArn'] as String?, jobTemplateId: json['jobTemplateId'] as String?, maintenanceWindows: (json['maintenanceWindows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindow.fromJson(e as Map)) .toList(), presignedUrlConfig: json['presignedUrlConfig'] != null @@ -17792,11 +17788,11 @@ class DescribeManagedJobTemplateResponse { description: json['description'] as String?, document: json['document'] as String?, documentParameters: (json['documentParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentParameter.fromJson(e as Map)) .toList(), environments: (json['environments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), templateArn: json['templateArn'] as String?, @@ -18130,7 +18126,7 @@ class DescribeScheduledAuditResponse { scheduledAuditArn: json['scheduledAuditArn'] as String?, scheduledAuditName: json['scheduledAuditName'] as String?, targetCheckNames: (json['targetCheckNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -18216,19 +18212,19 @@ class DescribeSecurityProfileResponse { factory DescribeSecurityProfileResponse.fromJson(Map json) { return DescribeSecurityProfileResponse( additionalMetricsToRetain: (json['additionalMetricsToRetain'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), additionalMetricsToRetainV2: (json['additionalMetricsToRetainV2'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricToRetain.fromJson(e as Map)) .toList(), alertTargets: (json['alertTargets'] as Map?)?.map( (k, e) => MapEntry(AlertTargetType.fromString(k), AlertTarget.fromJson(e as Map))), behaviors: (json['behaviors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Behavior.fromJson(e as Map)) .toList(), creationDate: timeStampFromJson(json['creationDate']), @@ -18899,7 +18895,7 @@ class DetectMitigationActionsTaskSummary { Map json) { return DetectMitigationActionsTaskSummary( actionsDefinition: (json['actionsDefinition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MitigationAction.fromJson(e as Map)) .toList(), onlyActiveViolationsIncluded: @@ -18979,7 +18975,7 @@ class DetectMitigationActionsTaskTarget { behaviorName: json['behaviorName'] as String?, securityProfileName: json['securityProfileName'] as String?, violationIds: (json['violationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -19576,7 +19572,7 @@ class ExplicitDeny { factory ExplicitDeny.fromJson(Map json) { return ExplicitDeny( policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Policy.fromJson(e as Map)) .toList(), ); @@ -19891,7 +19887,7 @@ class GetBehaviorModelTrainingSummariesResponse { return GetBehaviorModelTrainingSummariesResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BehaviorModelTrainingSummary.fromJson(e as Map)) .toList(), @@ -19929,7 +19925,7 @@ class GetBucketsAggregationResponse { factory GetBucketsAggregationResponse.fromJson(Map json) { return GetBucketsAggregationResponse( buckets: (json['buckets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Bucket.fromJson(e as Map)) .toList(), totalCount: json['totalCount'] as int?, @@ -19979,7 +19975,7 @@ class GetEffectivePoliciesResponse { factory GetEffectivePoliciesResponse.fromJson(Map json) { return GetEffectivePoliciesResponse( effectivePolicies: (json['effectivePolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectivePolicy.fromJson(e as Map)) .toList(), ); @@ -20290,7 +20286,7 @@ class GetPercentilesResponse { factory GetPercentilesResponse.fromJson(Map json) { return GetPercentilesResponse( percentiles: (json['percentiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PercentPair.fromJson(e as Map)) .toList(), ); @@ -20654,7 +20650,7 @@ class HttpAction { : null, confirmationUrl: json['confirmationUrl'] as String?, headers: (json['headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpActionHeader.fromJson(e as Map)) .toList(), ); @@ -20834,7 +20830,7 @@ class ImplicitDeny { factory ImplicitDeny.fromJson(Map json) { return ImplicitDeny( policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Policy.fromJson(e as Map)) .toList(), ); @@ -20910,11 +20906,11 @@ class IndexingFilter { factory IndexingFilter.fromJson(Map json) { return IndexingFilter( geoLocations: (json['geoLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GeoLocationTarget.fromJson(e as Map)) .toList(), namedShadowNames: (json['namedShadowNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -21068,7 +21064,7 @@ class IotSiteWiseAction { return IotSiteWiseAction( putAssetPropertyValueEntries: (json['putAssetPropertyValueEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => PutAssetPropertyValueEntry.fromJson(e as Map)) .toList(), @@ -21293,7 +21289,7 @@ class Job { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, destinationPackageVersions: (json['destinationPackageVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), documentParameters: (json['documentParameters'] as Map?) @@ -21323,7 +21319,7 @@ class Job { : null, reasonCode: json['reasonCode'] as String?, scheduledJobRollouts: (json['scheduledJobRollouts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduledJobRollout.fromJson(e as Map)) .toList(), schedulingConfig: json['schedulingConfig'] != null @@ -21333,10 +21329,8 @@ class Job { status: (json['status'] as String?)?.let(JobStatus.fromString), targetSelection: (json['targetSelection'] as String?)?.let(TargetSelection.fromString), - targets: (json['targets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['targets'] as List?)?.nonNulls.map((e) => e as String).toList(), timeoutConfig: json['timeoutConfig'] != null ? TimeoutConfig.fromJson( json['timeoutConfig'] as Map) @@ -21741,7 +21735,7 @@ class JobExecutionsRetryConfig { factory JobExecutionsRetryConfig.fromJson(Map json) { return JobExecutionsRetryConfig( criteriaList: (json['criteriaList'] as List) - .whereNotNull() + .nonNulls .map((e) => RetryCriteria.fromJson(e as Map)) .toList(), ); @@ -21846,7 +21840,7 @@ class JobProcessDetails { numberOfSucceededThings: json['numberOfSucceededThings'] as int?, numberOfTimedOutThings: json['numberOfTimedOutThings'] as int?, processingTargets: (json['processingTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -22075,7 +22069,7 @@ class KafkaAction { destinationArn: json['destinationArn'] as String, topic: json['topic'] as String, headers: (json['headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KafkaActionHeader.fromJson(e as Map)) .toList(), key: json['key'] as String?, @@ -22243,7 +22237,7 @@ class ListActiveViolationsResponse { factory ListActiveViolationsResponse.fromJson(Map json) { return ListActiveViolationsResponse( activeViolations: (json['activeViolations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveViolation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -22277,7 +22271,7 @@ class ListAttachedPoliciesResponse { return ListAttachedPoliciesResponse( nextMarker: json['nextMarker'] as String?, policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Policy.fromJson(e as Map)) .toList(), ); @@ -22309,7 +22303,7 @@ class ListAuditFindingsResponse { factory ListAuditFindingsResponse.fromJson(Map json) { return ListAuditFindingsResponse( findings: (json['findings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuditFinding.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -22343,7 +22337,7 @@ class ListAuditMitigationActionsExecutionsResponse { Map json) { return ListAuditMitigationActionsExecutionsResponse( actionsExecutions: (json['actionsExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuditMitigationActionExecutionMetadata.fromJson( e as Map)) .toList(), @@ -22378,7 +22372,7 @@ class ListAuditMitigationActionsTasksResponse { return ListAuditMitigationActionsTasksResponse( nextToken: json['nextToken'] as String?, tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuditMitigationActionsTaskMetadata.fromJson( e as Map)) .toList(), @@ -22412,7 +22406,7 @@ class ListAuditSuppressionsResponse { return ListAuditSuppressionsResponse( nextToken: json['nextToken'] as String?, suppressions: (json['suppressions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuditSuppression.fromJson(e as Map)) .toList(), ); @@ -22445,7 +22439,7 @@ class ListAuditTasksResponse { return ListAuditTasksResponse( nextToken: json['nextToken'] as String?, tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuditTaskMetadata.fromJson(e as Map)) .toList(), ); @@ -22476,7 +22470,7 @@ class ListAuthorizersResponse { factory ListAuthorizersResponse.fromJson(Map json) { return ListAuthorizersResponse( authorizers: (json['authorizers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorizerSummary.fromJson(e as Map)) .toList(), nextMarker: json['nextMarker'] as String?, @@ -22509,7 +22503,7 @@ class ListBillingGroupsResponse { factory ListBillingGroupsResponse.fromJson(Map json) { return ListBillingGroupsResponse( billingGroups: (json['billingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupNameAndArn.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -22542,7 +22536,7 @@ class ListCACertificatesResponse { factory ListCACertificatesResponse.fromJson(Map json) { return ListCACertificatesResponse( certificates: (json['certificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CACertificate.fromJson(e as Map)) .toList(), nextMarker: json['nextMarker'] as String?, @@ -22575,7 +22569,7 @@ class ListCertificateProvidersResponse { factory ListCertificateProvidersResponse.fromJson(Map json) { return ListCertificateProvidersResponse( certificateProviders: (json['certificateProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateProviderSummary.fromJson(e as Map)) .toList(), @@ -22611,7 +22605,7 @@ class ListCertificatesByCAResponse { factory ListCertificatesByCAResponse.fromJson(Map json) { return ListCertificatesByCAResponse( certificates: (json['certificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Certificate.fromJson(e as Map)) .toList(), nextMarker: json['nextMarker'] as String?, @@ -22645,7 +22639,7 @@ class ListCertificatesResponse { factory ListCertificatesResponse.fromJson(Map json) { return ListCertificatesResponse( certificates: (json['certificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Certificate.fromJson(e as Map)) .toList(), nextMarker: json['nextMarker'] as String?, @@ -22678,7 +22672,7 @@ class ListCustomMetricsResponse { factory ListCustomMetricsResponse.fromJson(Map json) { return ListCustomMetricsResponse( metricNames: (json['metricNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -22712,7 +22706,7 @@ class ListDetectMitigationActionsExecutionsResponse { Map json) { return ListDetectMitigationActionsExecutionsResponse( actionsExecutions: (json['actionsExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectMitigationActionExecution.fromJson( e as Map)) .toList(), @@ -22749,7 +22743,7 @@ class ListDetectMitigationActionsTasksResponse { return ListDetectMitigationActionsTasksResponse( nextToken: json['nextToken'] as String?, tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectMitigationActionsTaskSummary.fromJson( e as Map)) .toList(), @@ -22783,7 +22777,7 @@ class ListDimensionsResponse { factory ListDimensionsResponse.fromJson(Map json) { return ListDimensionsResponse( dimensionNames: (json['dimensionNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -22816,7 +22810,7 @@ class ListDomainConfigurationsResponse { factory ListDomainConfigurationsResponse.fromJson(Map json) { return ListDomainConfigurationsResponse( domainConfigurations: (json['domainConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainConfigurationSummary.fromJson(e as Map)) .toList(), @@ -22851,7 +22845,7 @@ class ListFleetMetricsResponse { factory ListFleetMetricsResponse.fromJson(Map json) { return ListFleetMetricsResponse( fleetMetrics: (json['fleetMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetMetricNameAndArn.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -22884,7 +22878,7 @@ class ListIndicesResponse { factory ListIndicesResponse.fromJson(Map json) { return ListIndicesResponse( indexNames: (json['indexNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -22917,7 +22911,7 @@ class ListJobExecutionsForJobResponse { factory ListJobExecutionsForJobResponse.fromJson(Map json) { return ListJobExecutionsForJobResponse( executionSummaries: (json['executionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobExecutionSummaryForJob.fromJson(e as Map)) .toList(), @@ -22952,7 +22946,7 @@ class ListJobExecutionsForThingResponse { Map json) { return ListJobExecutionsForThingResponse( executionSummaries: (json['executionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobExecutionSummaryForThing.fromJson(e as Map)) .toList(), @@ -22986,7 +22980,7 @@ class ListJobTemplatesResponse { factory ListJobTemplatesResponse.fromJson(Map json) { return ListJobTemplatesResponse( jobTemplates: (json['jobTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobTemplateSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -23019,7 +23013,7 @@ class ListJobsResponse { factory ListJobsResponse.fromJson(Map json) { return ListJobsResponse( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -23051,7 +23045,7 @@ class ListManagedJobTemplatesResponse { factory ListManagedJobTemplatesResponse.fromJson(Map json) { return ListManagedJobTemplatesResponse( managedJobTemplates: (json['managedJobTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedJobTemplateSummary.fromJson(e as Map)) .toList(), @@ -23086,7 +23080,7 @@ class ListMetricValuesResponse { factory ListMetricValuesResponse.fromJson(Map json) { return ListMetricValuesResponse( metricDatumList: (json['metricDatumList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatum.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -23118,7 +23112,7 @@ class ListMitigationActionsResponse { factory ListMitigationActionsResponse.fromJson(Map json) { return ListMitigationActionsResponse( actionIdentifiers: (json['actionIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MitigationActionIdentifier.fromJson(e as Map)) .toList(), @@ -23152,7 +23146,7 @@ class ListOTAUpdatesResponse { return ListOTAUpdatesResponse( nextToken: json['nextToken'] as String?, otaUpdates: (json['otaUpdates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OTAUpdateSummary.fromJson(e as Map)) .toList(), ); @@ -23185,7 +23179,7 @@ class ListOutgoingCertificatesResponse { return ListOutgoingCertificatesResponse( nextMarker: json['nextMarker'] as String?, outgoingCertificates: (json['outgoingCertificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutgoingCertificate.fromJson(e as Map)) .toList(), ); @@ -23218,7 +23212,7 @@ class ListPackageVersionsResponse { return ListPackageVersionsResponse( nextToken: json['nextToken'] as String?, packageVersionSummaries: (json['packageVersionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageVersionSummary.fromJson(e as Map)) .toList(), ); @@ -23251,7 +23245,7 @@ class ListPackagesResponse { return ListPackagesResponse( nextToken: json['nextToken'] as String?, packageSummaries: (json['packageSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageSummary.fromJson(e as Map)) .toList(), ); @@ -23285,7 +23279,7 @@ class ListPoliciesResponse { return ListPoliciesResponse( nextMarker: json['nextMarker'] as String?, policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Policy.fromJson(e as Map)) .toList(), ); @@ -23319,7 +23313,7 @@ class ListPolicyPrincipalsResponse { return ListPolicyPrincipalsResponse( nextMarker: json['nextMarker'] as String?, principals: (json['principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -23347,7 +23341,7 @@ class ListPolicyVersionsResponse { factory ListPolicyVersionsResponse.fromJson(Map json) { return ListPolicyVersionsResponse( policyVersions: (json['policyVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyVersion.fromJson(e as Map)) .toList(), ); @@ -23379,7 +23373,7 @@ class ListPrincipalPoliciesResponse { return ListPrincipalPoliciesResponse( nextMarker: json['nextMarker'] as String?, policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Policy.fromJson(e as Map)) .toList(), ); @@ -23412,10 +23406,8 @@ class ListPrincipalThingsResponse { factory ListPrincipalThingsResponse.fromJson(Map json) { return ListPrincipalThingsResponse( nextToken: json['nextToken'] as String?, - things: (json['things'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + things: + (json['things'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -23446,7 +23438,7 @@ class ListProvisioningTemplateVersionsResponse { return ListProvisioningTemplateVersionsResponse( nextToken: json['nextToken'] as String?, versions: (json['versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningTemplateVersionSummary.fromJson( e as Map)) .toList(), @@ -23480,7 +23472,7 @@ class ListProvisioningTemplatesResponse { return ListProvisioningTemplatesResponse( nextToken: json['nextToken'] as String?, templates: (json['templates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningTemplateSummary.fromJson(e as Map)) .toList(), @@ -23515,7 +23507,7 @@ class ListRelatedResourcesForAuditFindingResponse { return ListRelatedResourcesForAuditFindingResponse( nextToken: json['nextToken'] as String?, relatedResources: (json['relatedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedResource.fromJson(e as Map)) .toList(), ); @@ -23547,7 +23539,7 @@ class ListRoleAliasesResponse { return ListRoleAliasesResponse( nextMarker: json['nextMarker'] as String?, roleAliases: (json['roleAliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -23580,7 +23572,7 @@ class ListScheduledAuditsResponse { return ListScheduledAuditsResponse( nextToken: json['nextToken'] as String?, scheduledAudits: (json['scheduledAudits'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ScheduledAuditMetadata.fromJson(e as Map)) .toList(), @@ -23616,7 +23608,7 @@ class ListSecurityProfilesForTargetResponse { nextToken: json['nextToken'] as String?, securityProfileTargetMappings: (json['securityProfileTargetMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityProfileTargetMapping.fromJson(e as Map)) .toList(), @@ -23651,7 +23643,7 @@ class ListSecurityProfilesResponse { return ListSecurityProfilesResponse( nextToken: json['nextToken'] as String?, securityProfileIdentifiers: (json['securityProfileIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityProfileIdentifier.fromJson(e as Map)) .toList(), @@ -23685,7 +23677,7 @@ class ListStreamsResponse { return ListStreamsResponse( nextToken: json['nextToken'] as String?, streams: (json['streams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamSummary.fromJson(e as Map)) .toList(), ); @@ -23718,7 +23710,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['nextToken'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -23749,10 +23741,8 @@ class ListTargetsForPolicyResponse { factory ListTargetsForPolicyResponse.fromJson(Map json) { return ListTargetsForPolicyResponse( nextMarker: json['nextMarker'] as String?, - targets: (json['targets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['targets'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -23784,7 +23774,7 @@ class ListTargetsForSecurityProfileResponse { return ListTargetsForSecurityProfileResponse( nextToken: json['nextToken'] as String?, securityProfileTargets: (json['securityProfileTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityProfileTarget.fromJson(e as Map)) .toList(), ); @@ -23818,7 +23808,7 @@ class ListThingGroupsForThingResponse { return ListThingGroupsForThingResponse( nextToken: json['nextToken'] as String?, thingGroups: (json['thingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupNameAndArn.fromJson(e as Map)) .toList(), ); @@ -23851,7 +23841,7 @@ class ListThingGroupsResponse { return ListThingGroupsResponse( nextToken: json['nextToken'] as String?, thingGroups: (json['thingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupNameAndArn.fromJson(e as Map)) .toList(), ); @@ -23885,7 +23875,7 @@ class ListThingPrincipalsResponse { return ListThingPrincipalsResponse( nextToken: json['nextToken'] as String?, principals: (json['principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -23924,7 +23914,7 @@ class ListThingRegistrationTaskReportsResponse { nextToken: json['nextToken'] as String?, reportType: (json['reportType'] as String?)?.let(ReportType.fromString), resourceLinks: (json['resourceLinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -23959,10 +23949,8 @@ class ListThingRegistrationTasksResponse { Map json) { return ListThingRegistrationTasksResponse( nextToken: json['nextToken'] as String?, - taskIds: (json['taskIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + taskIds: + (json['taskIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -23994,7 +23982,7 @@ class ListThingTypesResponse { return ListThingTypesResponse( nextToken: json['nextToken'] as String?, thingTypes: (json['thingTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThingTypeDefinition.fromJson(e as Map)) .toList(), ); @@ -24026,10 +24014,8 @@ class ListThingsInBillingGroupResponse { factory ListThingsInBillingGroupResponse.fromJson(Map json) { return ListThingsInBillingGroupResponse( nextToken: json['nextToken'] as String?, - things: (json['things'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + things: + (json['things'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -24059,10 +24045,8 @@ class ListThingsInThingGroupResponse { factory ListThingsInThingGroupResponse.fromJson(Map json) { return ListThingsInThingGroupResponse( nextToken: json['nextToken'] as String?, - things: (json['things'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + things: + (json['things'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -24094,7 +24078,7 @@ class ListThingsResponse { return ListThingsResponse( nextToken: json['nextToken'] as String?, things: (json['things'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThingAttribute.fromJson(e as Map)) .toList(), ); @@ -24127,7 +24111,7 @@ class ListTopicRuleDestinationsResponse { Map json) { return ListTopicRuleDestinationsResponse( destinationSummaries: (json['destinationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicRuleDestinationSummary.fromJson(e as Map)) .toList(), @@ -24164,7 +24148,7 @@ class ListTopicRulesResponse { return ListTopicRulesResponse( nextToken: json['nextToken'] as String?, rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicRuleListItem.fromJson(e as Map)) .toList(), ); @@ -24196,7 +24180,7 @@ class ListV2LoggingLevelsResponse { factory ListV2LoggingLevelsResponse.fromJson(Map json) { return ListV2LoggingLevelsResponse( logTargetConfigurations: (json['logTargetConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => LogTargetConfiguration.fromJson(e as Map)) .toList(), @@ -24234,7 +24218,7 @@ class ListViolationEventsResponse { return ListViolationEventsResponse( nextToken: json['nextToken'] as String?, violationEvents: (json['violationEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ViolationEvent.fromJson(e as Map)) .toList(), ); @@ -24560,7 +24544,7 @@ class ManagedJobTemplateSummary { return ManagedJobTemplateSummary( description: json['description'] as String?, environments: (json['environments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), templateArn: json['templateArn'] as String?, @@ -24744,24 +24728,15 @@ class MetricValue { factory MetricValue.fromJson(Map json) { return MetricValue( - cidrs: (json['cidrs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + cidrs: + (json['cidrs'] as List?)?.nonNulls.map((e) => e as String).toList(), count: json['count'] as int?, number: json['number'] as double?, - numbers: (json['numbers'] as List?) - ?.whereNotNull() - .map((e) => e as double) - .toList(), - ports: (json['ports'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), - strings: (json['strings'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + numbers: + (json['numbers'] as List?)?.nonNulls.map((e) => e as double).toList(), + ports: (json['ports'] as List?)?.nonNulls.map((e) => e as int).toList(), + strings: + (json['strings'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -25153,7 +25128,7 @@ class MqttHeaders { payloadFormatIndicator: json['payloadFormatIndicator'] as String?, responseTopic: json['responseTopic'] as String?, userProperties: (json['userProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserProperty.fromJson(e as Map)) .toList(), ); @@ -25401,22 +25376,20 @@ class OTAUpdateInfo { lastModifiedDate: timeStampFromJson(json['lastModifiedDate']), otaUpdateArn: json['otaUpdateArn'] as String?, otaUpdateFiles: (json['otaUpdateFiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OTAUpdateFile.fromJson(e as Map)) .toList(), otaUpdateId: json['otaUpdateId'] as String?, otaUpdateStatus: (json['otaUpdateStatus'] as String?)?.let(OTAUpdateStatus.fromString), protocols: (json['protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Protocol.fromString((e as String))) .toList(), targetSelection: (json['targetSelection'] as String?)?.let(TargetSelection.fromString), - targets: (json['targets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['targets'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -26168,7 +26141,7 @@ class PutAssetPropertyValueEntry { factory PutAssetPropertyValueEntry.fromJson(Map json) { return PutAssetPropertyValueEntry( propertyValues: (json['propertyValues'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetPropertyValue.fromJson(e as Map)) .toList(), assetId: json['assetId'] as String?, @@ -27100,7 +27073,7 @@ class SchedulingConfig { (json['endBehavior'] as String?)?.let(JobEndBehavior.fromString), endTime: json['endTime'] as String?, maintenanceWindows: (json['maintenanceWindows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindow.fromJson(e as Map)) .toList(), startTime: json['startTime'] as String?, @@ -27142,11 +27115,11 @@ class SearchIndexResponse { return SearchIndexResponse( nextToken: json['nextToken'] as String?, thingGroups: (json['thingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThingGroupDocument.fromJson(e as Map)) .toList(), things: (json['things'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThingDocument.fromJson(e as Map)) .toList(), ); @@ -27962,7 +27935,7 @@ class StreamInfo { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, files: (json['files'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamFile.fromJson(e as Map)) .toList(), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), @@ -28285,7 +28258,7 @@ class TestAuthorizationResponse { factory TestAuthorizationResponse.fromJson(Map json) { return TestAuthorizationResponse( authResults: (json['authResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthResult.fromJson(e as Map)) .toList(), ); @@ -28328,7 +28301,7 @@ class TestInvokeAuthorizerResponse { disconnectAfterInSeconds: json['disconnectAfterInSeconds'] as int?, isAuthenticated: json['isAuthenticated'] as bool?, policyDocuments: (json['policyDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), principalId: json['principalId'] as String?, @@ -28521,7 +28494,7 @@ class ThingDocument { deviceDefender: json['deviceDefender'] as String?, shadow: json['shadow'] as String?, thingGroupNames: (json['thingGroupNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), thingId: json['thingId'] as String?, @@ -28582,7 +28555,7 @@ class ThingGroupDocument { attributes: (json['attributes'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), parentGroupNames: (json['parentGroupNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), thingGroupDescription: json['thingGroupDescription'] as String?, @@ -28641,11 +28614,11 @@ class ThingGroupIndexingConfiguration { thingGroupIndexingMode: ThingGroupIndexingMode.fromString( (json['thingGroupIndexingMode'] as String)), customFields: (json['customFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), managedFields: (json['managedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), ); @@ -28700,7 +28673,7 @@ class ThingGroupMetadata { creationDate: timeStampFromJson(json['creationDate']), parentGroupName: json['parentGroupName'] as String?, rootToParentThingGroups: (json['rootToParentThingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupNameAndArn.fromJson(e as Map)) .toList(), ); @@ -28872,7 +28845,7 @@ class ThingIndexingConfiguration { thingIndexingMode: ThingIndexingMode.fromString((json['thingIndexingMode'] as String)), customFields: (json['customFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), deviceDefenderIndexingMode: @@ -28882,7 +28855,7 @@ class ThingIndexingConfiguration { ? IndexingFilter.fromJson(json['filter'] as Map) : null, managedFields: (json['managedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), namedShadowIndexingMode: (json['namedShadowIndexingMode'] as String?) @@ -29044,7 +29017,7 @@ class ThingTypeProperties { factory ThingTypeProperties.fromJson(Map json) { return ThingTypeProperties( searchableAttributes: (json['searchableAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), thingTypeDescription: json['thingTypeDescription'] as String?, @@ -29139,7 +29112,7 @@ class TimestreamAction { return TimestreamAction( databaseName: json['databaseName'] as String, dimensions: (json['dimensions'] as List) - .whereNotNull() + .nonNulls .map((e) => TimestreamDimension.fromJson(e as Map)) .toList(), roleArn: json['roleArn'] as String, @@ -29324,7 +29297,7 @@ class TopicRule { factory TopicRule.fromJson(Map json) { return TopicRule( actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), awsIotSqlVersion: json['awsIotSqlVersion'] as String?, @@ -30045,7 +30018,7 @@ class UpdateDimensionResponse { lastModifiedDate: timeStampFromJson(json['lastModifiedDate']), name: json['name'] as String?, stringValues: (json['stringValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(DimensionType.fromString), @@ -30340,19 +30313,19 @@ class UpdateSecurityProfileResponse { factory UpdateSecurityProfileResponse.fromJson(Map json) { return UpdateSecurityProfileResponse( additionalMetricsToRetain: (json['additionalMetricsToRetain'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), additionalMetricsToRetainV2: (json['additionalMetricsToRetainV2'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricToRetain.fromJson(e as Map)) .toList(), alertTargets: (json['alertTargets'] as Map?)?.map( (k, e) => MapEntry(AlertTargetType.fromString(k), AlertTarget.fromJson(e as Map))), behaviors: (json['behaviors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Behavior.fromJson(e as Map)) .toList(), creationDate: timeStampFromJson(json['creationDate']), @@ -30556,7 +30529,7 @@ class ValidateSecurityProfileBehaviorsResponse { return ValidateSecurityProfileBehaviorsResponse( valid: json['valid'] as bool?, validationErrors: (json['validationErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationError.fromJson(e as Map)) .toList(), ); @@ -30884,11 +30857,11 @@ class VpcDestinationProperties { return VpcDestinationProperties( roleArn: json['roleArn'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, @@ -30935,11 +30908,11 @@ class VpcDestinationSummary { return VpcDestinationSummary( roleArn: json['roleArn'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, diff --git a/aws_client/lib/src/generated/iot_1_click_devices_service/v2018_05_14.dart b/aws_client/lib/src/generated/iot_1_click_devices_service/v2018_05_14.dart index dab2f0dfd..2920eea84 100644 --- a/aws_client/lib/src/generated/iot_1_click_devices_service/v2018_05_14.dart +++ b/aws_client/lib/src/generated/iot_1_click_devices_service/v2018_05_14.dart @@ -731,7 +731,7 @@ class GetDeviceMethodsResponse { factory GetDeviceMethodsResponse.fromJson(Map json) { return GetDeviceMethodsResponse( deviceMethods: (json['deviceMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceMethod.fromJson(e as Map)) .toList(), ); @@ -807,7 +807,7 @@ class ListDeviceEventsResponse { factory ListDeviceEventsResponse.fromJson(Map json) { return ListDeviceEventsResponse( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -839,7 +839,7 @@ class ListDevicesResponse { factory ListDevicesResponse.fromJson(Map json) { return ListDevicesResponse( devices: (json['devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceDescription.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/iot_1_click_projects/v2018_05_14.dart b/aws_client/lib/src/generated/iot_1_click_projects/v2018_05_14.dart index 2f3d51fec..b2d4264bb 100644 --- a/aws_client/lib/src/generated/iot_1_click_projects/v2018_05_14.dart +++ b/aws_client/lib/src/generated/iot_1_click_projects/v2018_05_14.dart @@ -743,7 +743,7 @@ class ListPlacementsResponse { factory ListPlacementsResponse.fromJson(Map json) { return ListPlacementsResponse( placements: (json['placements'] as List) - .whereNotNull() + .nonNulls .map((e) => PlacementSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -776,7 +776,7 @@ class ListProjectsResponse { factory ListProjectsResponse.fromJson(Map json) { return ListProjectsResponse( projects: (json['projects'] as List) - .whereNotNull() + .nonNulls .map((e) => ProjectSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/iot_analytics/v2017_11_27.dart b/aws_client/lib/src/generated/iot_analytics/v2017_11_27.dart index 3d7885d6f..7b558fe7e 100644 --- a/aws_client/lib/src/generated/iot_analytics/v2017_11_27.dart +++ b/aws_client/lib/src/generated/iot_analytics/v2017_11_27.dart @@ -1483,7 +1483,7 @@ class BatchPutMessageResponse { return BatchPutMessageResponse( batchPutMessageErrorEntries: (json['batchPutMessageErrorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPutMessageErrorEntry.fromJson(e as Map)) .toList(), @@ -1937,7 +1937,7 @@ class ContainerDatasetAction { resourceConfiguration: ResourceConfiguration.fromJson( json['resourceConfiguration'] as Map), variables: (json['variables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Variable.fromJson(e as Map)) .toList(), ); @@ -2362,19 +2362,19 @@ class Dataset { factory Dataset.fromJson(Map json) { return Dataset( actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetAction.fromJson(e as Map)) .toList(), arn: json['arn'] as String?, contentDeliveryRules: (json['contentDeliveryRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetContentDeliveryRule.fromJson(e as Map)) .toList(), creationTime: timeStampFromJson(json['creationTime']), lastUpdateTime: timeStampFromJson(json['lastUpdateTime']), lateDataRules: (json['lateDataRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LateDataRule.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -2384,7 +2384,7 @@ class Dataset { : null, status: (json['status'] as String?)?.let(DatasetStatus.fromString), triggers: (json['triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetTrigger.fromJson(e as Map)) .toList(), versioningConfiguration: json['versioningConfiguration'] != null @@ -2806,7 +2806,7 @@ class DatasetSummary { factory DatasetSummary.fromJson(Map json) { return DatasetSummary( actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetActionSummary.fromJson(e as Map)) .toList(), creationTime: timeStampFromJson(json['creationTime']), @@ -2814,7 +2814,7 @@ class DatasetSummary { lastUpdateTime: timeStampFromJson(json['lastUpdateTime']), status: (json['status'] as String?)?.let(DatasetStatus.fromString), triggers: (json['triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetTrigger.fromJson(e as Map)) .toList(), ); @@ -3142,7 +3142,7 @@ class DatastorePartitions { factory DatastorePartitions.fromJson(Map json) { return DatastorePartitions( partitions: (json['partitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatastorePartition.fromJson(e as Map)) .toList(), ); @@ -3868,7 +3868,7 @@ class GetDatasetContentResponse { factory GetDatasetContentResponse.fromJson(Map json) { return GetDatasetContentResponse( entries: (json['entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetEntry.fromJson(e as Map)) .toList(), status: json['status'] != null @@ -4168,7 +4168,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( channelSummaries: (json['channelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4201,7 +4201,7 @@ class ListDatasetContentsResponse { factory ListDatasetContentsResponse.fromJson(Map json) { return ListDatasetContentsResponse( datasetContentSummaries: (json['datasetContentSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetContentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4235,7 +4235,7 @@ class ListDatasetsResponse { factory ListDatasetsResponse.fromJson(Map json) { return ListDatasetsResponse( datasetSummaries: (json['datasetSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4268,7 +4268,7 @@ class ListDatastoresResponse { factory ListDatastoresResponse.fromJson(Map json) { return ListDatastoresResponse( datastoreSummaries: (json['datastoreSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatastoreSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4302,7 +4302,7 @@ class ListPipelinesResponse { return ListPipelinesResponse( nextToken: json['nextToken'] as String?, pipelineSummaries: (json['pipelineSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineSummary.fromJson(e as Map)) .toList(), ); @@ -4329,7 +4329,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4572,7 +4572,7 @@ class Pipeline { factory Pipeline.fromJson(Map json) { return Pipeline( activities: (json['activities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineActivity.fromJson(e as Map)) .toList(), arn: json['arn'] as String?, @@ -4580,7 +4580,7 @@ class Pipeline { lastUpdateTime: timeStampFromJson(json['lastUpdateTime']), name: json['name'] as String?, reprocessingSummaries: (json['reprocessingSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReprocessingSummary.fromJson(e as Map)) .toList(), ); @@ -4749,7 +4749,7 @@ class PipelineSummary { lastUpdateTime: timeStampFromJson(json['lastUpdateTime']), pipelineName: json['pipelineName'] as String?, reprocessingSummaries: (json['reprocessingSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReprocessingSummary.fromJson(e as Map)) .toList(), ); @@ -4819,7 +4819,7 @@ class RemoveAttributesActivity { factory RemoveAttributesActivity.fromJson(Map json) { return RemoveAttributesActivity( attributes: (json['attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['name'] as String, @@ -4978,7 +4978,7 @@ class RunPipelineActivityResponse { return RunPipelineActivityResponse( logResult: json['logResult'] as String?, payloads: (json['payloads'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => _s.decodeUint8List(e as String)) .toList(), ); @@ -5083,7 +5083,7 @@ class SampleChannelDataResponse { factory SampleChannelDataResponse.fromJson(Map json) { return SampleChannelDataResponse( payloads: (json['payloads'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => _s.decodeUint8List(e as String)) .toList(), ); @@ -5138,7 +5138,7 @@ class SchemaDefinition { factory SchemaDefinition.fromJson(Map json) { return SchemaDefinition( columns: (json['columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), ); @@ -5173,7 +5173,7 @@ class SelectAttributesActivity { factory SelectAttributesActivity.fromJson(Map json) { return SelectAttributesActivity( attributes: (json['attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['name'] as String, @@ -5267,7 +5267,7 @@ class SqlQueryDatasetAction { return SqlQueryDatasetAction( sqlQuery: json['sqlQuery'] as String, filters: (json['filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryFilter.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/iot_data_plane/v2015_05_28.dart b/aws_client/lib/src/generated/iot_data_plane/v2015_05_28.dart index aa67cfcbd..d7af1e0c9 100644 --- a/aws_client/lib/src/generated/iot_data_plane/v2015_05_28.dart +++ b/aws_client/lib/src/generated/iot_data_plane/v2015_05_28.dart @@ -574,10 +574,8 @@ class ListNamedShadowsForThingResponse { factory ListNamedShadowsForThingResponse.fromJson(Map json) { return ListNamedShadowsForThingResponse( nextToken: json['nextToken'] as String?, - results: (json['results'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + results: + (json['results'] as List?)?.nonNulls.map((e) => e as String).toList(), timestamp: json['timestamp'] as int?, ); } @@ -612,7 +610,7 @@ class ListRetainedMessagesResponse { return ListRetainedMessagesResponse( nextToken: json['nextToken'] as String?, retainedTopics: (json['retainedTopics'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RetainedMessageSummary.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/iot_device_advisor/v2020_09_18.dart b/aws_client/lib/src/generated/iot_device_advisor/v2020_09_18.dart index 2bf477b23..724eedbc1 100644 --- a/aws_client/lib/src/generated/iot_device_advisor/v2020_09_18.dart +++ b/aws_client/lib/src/generated/iot_device_advisor/v2020_09_18.dart @@ -881,7 +881,7 @@ class GroupResult { groupId: json['groupId'] as String?, groupName: json['groupName'] as String?, tests: (json['tests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestCaseRun.fromJson(e as Map)) .toList(), ); @@ -917,7 +917,7 @@ class ListSuiteDefinitionsResponse { nextToken: json['nextToken'] as String?, suiteDefinitionInformationList: (json['suiteDefinitionInformationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuiteDefinitionInformation.fromJson(e as Map)) .toList(), @@ -952,7 +952,7 @@ class ListSuiteRunsResponse { return ListSuiteRunsResponse( nextToken: json['nextToken'] as String?, suiteRunsList: (json['suiteRunsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuiteRunInformation.fromJson(e as Map)) .toList(), ); @@ -1132,7 +1132,7 @@ class SuiteDefinitionConfiguration { rootGroup: json['rootGroup'] as String, suiteDefinitionName: json['suiteDefinitionName'] as String, devices: (json['devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceUnderTest.fromJson(e as Map)) .toList(), intendedForQualification: json['intendedForQualification'] as bool?, @@ -1199,7 +1199,7 @@ class SuiteDefinitionInformation { return SuiteDefinitionInformation( createdAt: timeStampFromJson(json['createdAt']), defaultDevices: (json['defaultDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceUnderTest.fromJson(e as Map)) .toList(), intendedForQualification: json['intendedForQualification'] as bool?, @@ -1256,7 +1256,7 @@ class SuiteRunConfiguration { json['primaryDevice'] as Map), parallelRun: json['parallelRun'] as bool?, selectedTestList: (json['selectedTestList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1486,7 +1486,7 @@ class TestCaseRun { testCaseDefinitionName: json['testCaseDefinitionName'] as String?, testCaseRunId: json['testCaseRunId'] as String?, testScenarios: (json['testScenarios'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestCaseScenario.fromJson(e as Map)) .toList(), warnings: json['warnings'] as String?, @@ -1663,7 +1663,7 @@ class TestResult { factory TestResult.fromJson(Map json) { return TestResult( groups: (json['groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupResult.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/iot_events/v2018_07_27.dart b/aws_client/lib/src/generated/iot_events/v2018_07_27.dart index 9503af4c1..363f70162 100644 --- a/aws_client/lib/src/generated/iot_events/v2018_07_27.dart +++ b/aws_client/lib/src/generated/iot_events/v2018_07_27.dart @@ -1354,7 +1354,7 @@ class AlarmEventActions { factory AlarmEventActions.fromJson(Map json) { return AlarmEventActions( alarmActions: (json['alarmActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmAction.fromJson(e as Map)) .toList(), ); @@ -1538,7 +1538,7 @@ class AlarmNotification { factory AlarmNotification.fromJson(Map json) { return AlarmNotification( notificationActions: (json['notificationActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationAction.fromJson(e as Map)) .toList(), ); @@ -1662,7 +1662,7 @@ class AnalysisResult { return AnalysisResult( level: (json['level'] as String?)?.let(AnalysisResultLevel.fromString), locations: (json['locations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AnalysisResultLocation.fromJson(e as Map)) .toList(), @@ -2671,7 +2671,7 @@ class DetectorModelDefinition { return DetectorModelDefinition( initialStateName: json['initialStateName'] as String, states: (json['states'] as List) - .whereNotNull() + .nonNulls .map((e) => State.fromJson(e as Map)) .toList(), ); @@ -3199,7 +3199,7 @@ class EmailRecipients { factory EmailRecipients.fromJson(Map json) { return EmailRecipients( to: (json['to'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecipientDetail.fromJson(e as Map)) .toList(), ); @@ -3253,7 +3253,7 @@ class Event { return Event( eventName: json['eventName'] as String, actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), condition: json['condition'] as String?, @@ -3333,7 +3333,7 @@ class GetDetectorModelAnalysisResultsResponse { Map json) { return GetDetectorModelAnalysisResultsResponse( analysisResults: (json['analysisResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisResult.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3489,7 +3489,7 @@ class InputDefinition { factory InputDefinition.fromJson(Map json) { return InputDefinition( attributes: (json['attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), ); @@ -3882,7 +3882,7 @@ class ListAlarmModelVersionsResponse { factory ListAlarmModelVersionsResponse.fromJson(Map json) { return ListAlarmModelVersionsResponse( alarmModelVersionSummaries: (json['alarmModelVersionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmModelVersionSummary.fromJson(e as Map)) .toList(), @@ -3917,7 +3917,7 @@ class ListAlarmModelsResponse { factory ListAlarmModelsResponse.fromJson(Map json) { return ListAlarmModelsResponse( alarmModelSummaries: (json['alarmModelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmModelSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3953,7 +3953,7 @@ class ListDetectorModelVersionsResponse { return ListDetectorModelVersionsResponse( detectorModelVersionSummaries: (json['detectorModelVersionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectorModelVersionSummary.fromJson(e as Map)) .toList(), @@ -3988,7 +3988,7 @@ class ListDetectorModelsResponse { factory ListDetectorModelsResponse.fromJson(Map json) { return ListDetectorModelsResponse( detectorModelSummaries: (json['detectorModelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectorModelSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4023,7 +4023,7 @@ class ListInputRoutingsResponse { return ListInputRoutingsResponse( nextToken: json['nextToken'] as String?, routedResources: (json['routedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoutedResource.fromJson(e as Map)) .toList(), ); @@ -4055,7 +4055,7 @@ class ListInputsResponse { factory ListInputsResponse.fromJson(Map json) { return ListInputsResponse( inputSummaries: (json['inputSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4083,7 +4083,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4142,7 +4142,7 @@ class LoggingOptions { level: LoggingLevel.fromString((json['level'] as String)), roleArn: json['roleArn'] as String, detectorDebugOptions: (json['detectorDebugOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectorDebugOption.fromJson(e as Map)) .toList(), ); @@ -4189,11 +4189,11 @@ class NotificationAction { action: NotificationTargetActions.fromJson( json['action'] as Map), emailConfigurations: (json['emailConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EmailConfiguration.fromJson(e as Map)) .toList(), smsConfigurations: (json['smsConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SMSConfiguration.fromJson(e as Map)) .toList(), ); @@ -4253,7 +4253,7 @@ class OnEnterLifecycle { factory OnEnterLifecycle.fromJson(Map json) { return OnEnterLifecycle( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), ); @@ -4281,7 +4281,7 @@ class OnExitLifecycle { factory OnExitLifecycle.fromJson(Map json) { return OnExitLifecycle( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), ); @@ -4314,11 +4314,11 @@ class OnInputLifecycle { factory OnInputLifecycle.fromJson(Map json) { return OnInputLifecycle( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), transitionEvents: (json['transitionEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransitionEvent.fromJson(e as Map)) .toList(), ); @@ -4497,7 +4497,7 @@ class SMSConfiguration { factory SMSConfiguration.fromJson(Map json) { return SMSConfiguration( recipients: (json['recipients'] as List) - .whereNotNull() + .nonNulls .map((e) => RecipientDetail.fromJson(e as Map)) .toList(), additionalMessage: json['additionalMessage'] as String?, @@ -4887,7 +4887,7 @@ class TransitionEvent { eventName: json['eventName'] as String, nextState: json['nextState'] as String, actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/iot_events_data/v2018_10_23.dart b/aws_client/lib/src/generated/iot_events_data/v2018_10_23.dart index 20a9b05f2..4de6fe327 100644 --- a/aws_client/lib/src/generated/iot_events_data/v2018_10_23.dart +++ b/aws_client/lib/src/generated/iot_events_data/v2018_10_23.dart @@ -773,7 +773,7 @@ class BatchAcknowledgeAlarmResponse { factory BatchAcknowledgeAlarmResponse.fromJson(Map json) { return BatchAcknowledgeAlarmResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchAlarmActionErrorEntry.fromJson(e as Map)) .toList(), @@ -902,7 +902,7 @@ class BatchDeleteDetectorResponse { return BatchDeleteDetectorResponse( batchDeleteDetectorErrorEntries: (json['batchDeleteDetectorErrorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchDeleteDetectorErrorEntry.fromJson(e as Map)) .toList(), @@ -932,7 +932,7 @@ class BatchDisableAlarmResponse { factory BatchDisableAlarmResponse.fromJson(Map json) { return BatchDisableAlarmResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchAlarmActionErrorEntry.fromJson(e as Map)) .toList(), @@ -960,7 +960,7 @@ class BatchEnableAlarmResponse { factory BatchEnableAlarmResponse.fromJson(Map json) { return BatchEnableAlarmResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchAlarmActionErrorEntry.fromJson(e as Map)) .toList(), @@ -1025,7 +1025,7 @@ class BatchPutMessageResponse { return BatchPutMessageResponse( batchPutMessageErrorEntries: (json['BatchPutMessageErrorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPutMessageErrorEntry.fromJson(e as Map)) .toList(), @@ -1054,7 +1054,7 @@ class BatchResetAlarmResponse { factory BatchResetAlarmResponse.fromJson(Map json) { return BatchResetAlarmResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchAlarmActionErrorEntry.fromJson(e as Map)) .toList(), @@ -1082,7 +1082,7 @@ class BatchSnoozeAlarmResponse { factory BatchSnoozeAlarmResponse.fromJson(Map json) { return BatchSnoozeAlarmResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchAlarmActionErrorEntry.fromJson(e as Map)) .toList(), @@ -1150,7 +1150,7 @@ class BatchUpdateDetectorResponse { return BatchUpdateDetectorResponse( batchUpdateDetectorErrorEntries: (json['batchUpdateDetectorErrorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchUpdateDetectorErrorEntry.fromJson(e as Map)) .toList(), @@ -1477,11 +1477,11 @@ class DetectorState { return DetectorState( stateName: json['stateName'] as String, timers: (json['timers'] as List) - .whereNotNull() + .nonNulls .map((e) => Timer.fromJson(e as Map)) .toList(), variables: (json['variables'] as List) - .whereNotNull() + .nonNulls .map((e) => Variable.fromJson(e as Map)) .toList(), ); @@ -1784,7 +1784,7 @@ class ListAlarmsResponse { factory ListAlarmsResponse.fromJson(Map json) { return ListAlarmsResponse( alarmSummaries: (json['alarmSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1817,7 +1817,7 @@ class ListDetectorsResponse { factory ListDetectorsResponse.fromJson(Map json) { return ListDetectorsResponse( detectorSummaries: (json['detectorSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectorSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/iot_fleet_hub/v2020_11_03.dart b/aws_client/lib/src/generated/iot_fleet_hub/v2020_11_03.dart index 75d0efec1..dbbfb2022 100644 --- a/aws_client/lib/src/generated/iot_fleet_hub/v2020_11_03.dart +++ b/aws_client/lib/src/generated/iot_fleet_hub/v2020_11_03.dart @@ -560,7 +560,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applicationSummaries: (json['applicationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/iot_fleet_wise/v2021_06_17.dart b/aws_client/lib/src/generated/iot_fleet_wise/v2021_06_17.dart index 92396f7c2..fe569d03b 100644 --- a/aws_client/lib/src/generated/iot_fleet_wise/v2021_06_17.dart +++ b/aws_client/lib/src/generated/iot_fleet_wise/v2021_06_17.dart @@ -2740,7 +2740,7 @@ class Actuator { dataType: NodeDataType.fromString((json['dataType'] as String)), fullyQualifiedName: json['fullyQualifiedName'] as String, allowedValues: (json['allowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), assignedValue: json['assignedValue'] as String?, @@ -2852,7 +2852,7 @@ class Attribute { dataType: NodeDataType.fromString((json['dataType'] as String)), fullyQualifiedName: json['fullyQualifiedName'] as String, allowedValues: (json['allowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), assignedValue: json['assignedValue'] as String?, @@ -2911,11 +2911,11 @@ class BatchCreateVehicleResponse { factory BatchCreateVehicleResponse.fromJson(Map json) { return BatchCreateVehicleResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CreateVehicleError.fromJson(e as Map)) .toList(), vehicles: (json['vehicles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CreateVehicleResponseItem.fromJson(e as Map)) .toList(), @@ -2951,11 +2951,11 @@ class BatchUpdateVehicleResponse { factory BatchUpdateVehicleResponse.fromJson(Map json) { return BatchUpdateVehicleResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateVehicleError.fromJson(e as Map)) .toList(), vehicles: (json['vehicles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateVehicleResponseItem.fromJson(e as Map)) .toList(), @@ -4417,11 +4417,11 @@ class GetCampaignResponse { (json['compression'] as String?)?.let(Compression.fromString), creationTime: timeStampFromJson(json['creationTime']), dataDestinationConfigs: (json['dataDestinationConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataDestinationConfig.fromJson(e as Map)) .toList(), dataExtraDimensions: (json['dataExtraDimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -4435,7 +4435,7 @@ class GetCampaignResponse { priority: json['priority'] as int?, signalCatalogArn: json['signalCatalogArn'] as String?, signalsToCollect: (json['signalsToCollect'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SignalInformation.fromJson(e as Map)) .toList(), spoolingMode: @@ -5033,7 +5033,7 @@ class GetVehicleStatusResponse { factory GetVehicleStatusResponse.fromJson(Map json) { return GetVehicleStatusResponse( campaigns: (json['campaigns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VehicleStatus.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5196,7 +5196,7 @@ class ListCampaignsResponse { factory ListCampaignsResponse.fromJson(Map json) { return ListCampaignsResponse( campaignSummaries: (json['campaignSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CampaignSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5230,7 +5230,7 @@ class ListDecoderManifestNetworkInterfacesResponse { Map json) { return ListDecoderManifestNetworkInterfacesResponse( networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5265,7 +5265,7 @@ class ListDecoderManifestSignalsResponse { return ListDecoderManifestSignalsResponse( nextToken: json['nextToken'] as String?, signalDecoders: (json['signalDecoders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SignalDecoder.fromJson(e as Map)) .toList(), ); @@ -5298,7 +5298,7 @@ class ListDecoderManifestsResponse { return ListDecoderManifestsResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DecoderManifestSummary.fromJson(e as Map)) .toList(), @@ -5330,10 +5330,8 @@ class ListFleetsForVehicleResponse { factory ListFleetsForVehicleResponse.fromJson(Map json) { return ListFleetsForVehicleResponse( - fleets: (json['fleets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + fleets: + (json['fleets'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -5364,7 +5362,7 @@ class ListFleetsResponse { factory ListFleetsResponse.fromJson(Map json) { return ListFleetsResponse( fleetSummaries: (json['fleetSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5398,7 +5396,7 @@ class ListModelManifestNodesResponse { return ListModelManifestNodesResponse( nextToken: json['nextToken'] as String?, nodes: (json['nodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Node.fromJson(e as Map)) .toList(), ); @@ -5431,7 +5429,7 @@ class ListModelManifestsResponse { return ListModelManifestsResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelManifestSummary.fromJson(e as Map)) .toList(), ); @@ -5464,7 +5462,7 @@ class ListSignalCatalogNodesResponse { return ListSignalCatalogNodesResponse( nextToken: json['nextToken'] as String?, nodes: (json['nodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Node.fromJson(e as Map)) .toList(), ); @@ -5497,7 +5495,7 @@ class ListSignalCatalogsResponse { return ListSignalCatalogsResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SignalCatalogSummary.fromJson(e as Map)) .toList(), ); @@ -5524,7 +5522,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5555,7 +5553,7 @@ class ListVehiclesInFleetResponse { return ListVehiclesInFleetResponse( nextToken: json['nextToken'] as String?, vehicles: (json['vehicles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5588,7 +5586,7 @@ class ListVehiclesResponse { return ListVehiclesResponse( nextToken: json['nextToken'] as String?, vehicleSummaries: (json['vehicleSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VehicleSummary.fromJson(e as Map)) .toList(), ); @@ -6566,7 +6564,7 @@ class Sensor { dataType: NodeDataType.fromString((json['dataType'] as String)), fullyQualifiedName: json['fullyQualifiedName'] as String, allowedValues: (json['allowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), comment: json['comment'] as String?, @@ -6863,7 +6861,7 @@ class StructuredMessage { : null, structuredMessageDefinition: (json['structuredMessageDefinition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StructuredMessageFieldNameAndDataTypePair.fromJson( e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/iot_jobs_data_plane/v2017_09_29.dart b/aws_client/lib/src/generated/iot_jobs_data_plane/v2017_09_29.dart index 6c1149b4f..88e0df742 100644 --- a/aws_client/lib/src/generated/iot_jobs_data_plane/v2017_09_29.dart +++ b/aws_client/lib/src/generated/iot_jobs_data_plane/v2017_09_29.dart @@ -304,11 +304,11 @@ class GetPendingJobExecutionsResponse { factory GetPendingJobExecutionsResponse.fromJson(Map json) { return GetPendingJobExecutionsResponse( inProgressJobs: (json['inProgressJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobExecutionSummary.fromJson(e as Map)) .toList(), queuedJobs: (json['queuedJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobExecutionSummary.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/iot_robo_runner/v2018_05_10.dart b/aws_client/lib/src/generated/iot_robo_runner/v2018_05_10.dart index c5eec44a8..b642a471f 100644 --- a/aws_client/lib/src/generated/iot_robo_runner/v2018_05_10.dart +++ b/aws_client/lib/src/generated/iot_robo_runner/v2018_05_10.dart @@ -1193,7 +1193,7 @@ class ListDestinationsResponse { factory ListDestinationsResponse.fromJson(Map json) { return ListDestinationsResponse( destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1223,7 +1223,7 @@ class ListSitesResponse { return ListSitesResponse( nextToken: json['nextToken'] as String?, sites: (json['sites'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Site.fromJson(e as Map)) .toList(), ); @@ -1252,7 +1252,7 @@ class ListWorkerFleetsResponse { return ListWorkerFleetsResponse( nextToken: json['nextToken'] as String?, workerFleets: (json['workerFleets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkerFleet.fromJson(e as Map)) .toList(), ); @@ -1281,7 +1281,7 @@ class ListWorkersResponse { return ListWorkersResponse( nextToken: json['nextToken'] as String?, workers: (json['workers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Worker.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/iot_secure_tunneling/v2018_10_05.dart b/aws_client/lib/src/generated/iot_secure_tunneling/v2018_10_05.dart index 3cbec4ff0..cc47b6382 100644 --- a/aws_client/lib/src/generated/iot_secure_tunneling/v2018_10_05.dart +++ b/aws_client/lib/src/generated/iot_secure_tunneling/v2018_10_05.dart @@ -466,10 +466,8 @@ class DestinationConfig { factory DestinationConfig.fromJson(Map json) { return DestinationConfig( - services: (json['services'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + services: + (json['services'] as List).nonNulls.map((e) => e as String).toList(), thingName: json['thingName'] as String?, ); } @@ -495,7 +493,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -526,7 +524,7 @@ class ListTunnelsResponse { return ListTunnelsResponse( nextToken: json['nextToken'] as String?, tunnelSummaries: (json['tunnelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TunnelSummary.fromJson(e as Map)) .toList(), ); @@ -766,7 +764,7 @@ class Tunnel { : null, status: (json['status'] as String?)?.let(TunnelStatus.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), timeoutConfig: json['timeoutConfig'] != null diff --git a/aws_client/lib/src/generated/iot_site_wise/v2019_12_02.dart b/aws_client/lib/src/generated/iot_site_wise/v2019_12_02.dart index 02f00ae38..12a7afefc 100644 --- a/aws_client/lib/src/generated/iot_site_wise/v2019_12_02.dart +++ b/aws_client/lib/src/generated/iot_site_wise/v2019_12_02.dart @@ -4985,7 +4985,7 @@ class AssetCompositeModel { return AssetCompositeModel( name: json['name'] as String, properties: (json['properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetProperty.fromJson(e as Map)) .toList(), type: json['type'] as String, @@ -5095,7 +5095,7 @@ class AssetCompositeModelSummary { id: json['id'] as String, name: json['name'] as String, path: (json['path'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetCompositeModelPathSegment.fromJson( e as Map)) .toList(), @@ -5293,7 +5293,7 @@ class AssetModelCompositeModel { externalId: json['externalId'] as String?, id: json['id'] as String?, properties: (json['properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetModelProperty.fromJson(e as Map)) .toList(), ); @@ -5458,7 +5458,7 @@ class AssetModelCompositeModelSummary { description: json['description'] as String?, externalId: json['externalId'] as String?, path: (json['path'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetModelCompositeModelPathSegment.fromJson( e as Map)) .toList(), @@ -5702,7 +5702,7 @@ class AssetModelProperty { externalId: json['externalId'] as String?, id: json['id'] as String?, path: (json['path'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetModelPropertyPathSegment.fromJson(e as Map)) .toList(), @@ -5887,7 +5887,7 @@ class AssetModelPropertySummary { externalId: json['externalId'] as String?, id: json['id'] as String?, path: (json['path'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetModelPropertyPathSegment.fromJson(e as Map)) .toList(), @@ -6154,7 +6154,7 @@ class AssetProperty { json['notification'] as Map) : null, path: (json['path'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetPropertyPathSegment.fromJson(e as Map)) .toList(), @@ -6265,7 +6265,7 @@ class AssetPropertySummary { json['notification'] as Map) : null, path: (json['path'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetPropertyPathSegment.fromJson(e as Map)) .toList(), @@ -6503,7 +6503,7 @@ class AssetSummary { creationDate: nonNullableTimeStampFromJson(json['creationDate'] as Object), hierarchies: (json['hierarchies'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetHierarchy.fromJson(e as Map)) .toList(), id: json['id'] as String, @@ -6601,7 +6601,7 @@ class AssociatedAssetsSummary { creationDate: nonNullableTimeStampFromJson(json['creationDate'] as Object), hierarchies: (json['hierarchies'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetHierarchy.fromJson(e as Map)) .toList(), id: json['id'] as String, @@ -6695,7 +6695,7 @@ class BatchAssociateProjectAssetsResponse { Map json) { return BatchAssociateProjectAssetsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetErrorDetails.fromJson(e as Map)) .toList(), ); @@ -6721,7 +6721,7 @@ class BatchDisassociateProjectAssetsResponse { Map json) { return BatchDisassociateProjectAssetsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetErrorDetails.fromJson(e as Map)) .toList(), ); @@ -6973,17 +6973,17 @@ class BatchGetAssetPropertyAggregatesResponse { Map json) { return BatchGetAssetPropertyAggregatesResponse( errorEntries: (json['errorEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetAssetPropertyAggregatesErrorEntry.fromJson( e as Map)) .toList(), skippedEntries: (json['skippedEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetAssetPropertyAggregatesSkippedEntry.fromJson( e as Map)) .toList(), successEntries: (json['successEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetAssetPropertyAggregatesSuccessEntry.fromJson( e as Map)) .toList(), @@ -7071,7 +7071,7 @@ class BatchGetAssetPropertyAggregatesSuccessEntry { Map json) { return BatchGetAssetPropertyAggregatesSuccessEntry( aggregatedValues: (json['aggregatedValues'] as List) - .whereNotNull() + .nonNulls .map((e) => AggregatedValue.fromJson(e as Map)) .toList(), entryId: json['entryId'] as String, @@ -7442,17 +7442,17 @@ class BatchGetAssetPropertyValueHistoryResponse { Map json) { return BatchGetAssetPropertyValueHistoryResponse( errorEntries: (json['errorEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetAssetPropertyValueHistoryErrorEntry.fromJson( e as Map)) .toList(), skippedEntries: (json['skippedEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetAssetPropertyValueHistorySkippedEntry.fromJson( e as Map)) .toList(), successEntries: (json['successEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetAssetPropertyValueHistorySuccessEntry.fromJson( e as Map)) .toList(), @@ -7539,7 +7539,7 @@ class BatchGetAssetPropertyValueHistorySuccessEntry { Map json) { return BatchGetAssetPropertyValueHistorySuccessEntry( assetPropertyValueHistory: (json['assetPropertyValueHistory'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetPropertyValue.fromJson(e as Map)) .toList(), entryId: json['entryId'] as String, @@ -7587,17 +7587,17 @@ class BatchGetAssetPropertyValueResponse { Map json) { return BatchGetAssetPropertyValueResponse( errorEntries: (json['errorEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetAssetPropertyValueErrorEntry.fromJson( e as Map)) .toList(), skippedEntries: (json['skippedEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetAssetPropertyValueSkippedEntry.fromJson( e as Map)) .toList(), successEntries: (json['successEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetAssetPropertyValueSuccessEntry.fromJson( e as Map)) .toList(), @@ -7722,7 +7722,7 @@ class BatchPutAssetPropertyError { (json['errorCode'] as String)), errorMessage: json['errorMessage'] as String, timestamps: (json['timestamps'] as List) - .whereNotNull() + .nonNulls .map((e) => TimeInNanos.fromJson(e as Map)) .toList(), ); @@ -7760,7 +7760,7 @@ class BatchPutAssetPropertyErrorEntry { return BatchPutAssetPropertyErrorEntry( entryId: json['entryId'] as String, errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchPutAssetPropertyError.fromJson(e as Map)) .toList(), @@ -7812,7 +7812,7 @@ class BatchPutAssetPropertyValueResponse { Map json) { return BatchPutAssetPropertyValueResponse( errorEntries: (json['errorEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchPutAssetPropertyErrorEntry.fromJson( e as Map)) .toList(), @@ -7988,7 +7988,7 @@ class CompositionDetails { factory CompositionDetails.fromJson(Map json) { return CompositionDetails( compositionRelationship: (json['compositionRelationship'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CompositionRelationshipItem.fromJson(e as Map)) .toList(), @@ -8215,7 +8215,7 @@ class CreateAssetModelCompositeModelResponse { assetModelCompositeModelId: json['assetModelCompositeModelId'] as String, assetModelCompositeModelPath: (json['assetModelCompositeModelPath'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetModelCompositeModelPathSegment.fromJson( e as Map)) .toList(), @@ -8558,7 +8558,7 @@ class Csv { factory Csv.fromJson(Map json) { return Csv( columnNames: (json['columnNames'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnName.fromString((e as String))) .toList(), ); @@ -8688,7 +8688,7 @@ class Datum { factory Datum.fromJson(Map json) { return Datum( arrayValue: (json['arrayValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Datum.fromJson(e as Map)) .toList(), nullValue: json['nullValue'] as bool?, @@ -9034,25 +9034,25 @@ class DescribeAssetCompositeModelResponse { assetCompositeModelId: json['assetCompositeModelId'] as String, assetCompositeModelName: json['assetCompositeModelName'] as String, assetCompositeModelPath: (json['assetCompositeModelPath'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetCompositeModelPathSegment.fromJson( e as Map)) .toList(), assetCompositeModelProperties: (json['assetCompositeModelProperties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetProperty.fromJson(e as Map)) .toList(), assetCompositeModelSummaries: (json['assetCompositeModelSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetCompositeModelSummary.fromJson(e as Map)) .toList(), assetCompositeModelType: json['assetCompositeModelType'] as String, assetId: json['assetId'] as String, actionDefinitions: (json['actionDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionDefinition.fromJson(e as Map)) .toList(), assetCompositeModelExternalId: @@ -9150,19 +9150,19 @@ class DescribeAssetModelCompositeModelResponse { json['assetModelCompositeModelName'] as String, assetModelCompositeModelPath: (json['assetModelCompositeModelPath'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetModelCompositeModelPathSegment.fromJson( e as Map)) .toList(), assetModelCompositeModelProperties: (json['assetModelCompositeModelProperties'] as List) - .whereNotNull() + .nonNulls .map( (e) => AssetModelProperty.fromJson(e as Map)) .toList(), assetModelCompositeModelSummaries: (json['assetModelCompositeModelSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetModelCompositeModelSummary.fromJson( e as Map)) .toList(), @@ -9170,7 +9170,7 @@ class DescribeAssetModelCompositeModelResponse { json['assetModelCompositeModelType'] as String, assetModelId: json['assetModelId'] as String, actionDefinitions: (json['actionDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionDefinition.fromJson(e as Map)) .toList(), assetModelCompositeModelExternalId: @@ -9307,7 +9307,7 @@ class DescribeAssetModelResponse { json['assetModelCreationDate'] as Object), assetModelDescription: json['assetModelDescription'] as String, assetModelHierarchies: (json['assetModelHierarchies'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetModelHierarchy.fromJson(e as Map)) .toList(), assetModelId: json['assetModelId'] as String, @@ -9315,19 +9315,19 @@ class DescribeAssetModelResponse { json['assetModelLastUpdateDate'] as Object), assetModelName: json['assetModelName'] as String, assetModelProperties: (json['assetModelProperties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetModelProperty.fromJson(e as Map)) .toList(), assetModelStatus: AssetModelStatus.fromJson( json['assetModelStatus'] as Map), assetModelCompositeModelSummaries: (json['assetModelCompositeModelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetModelCompositeModelSummary.fromJson( e as Map)) .toList(), assetModelCompositeModels: (json['assetModelCompositeModels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetModelCompositeModel.fromJson(e as Map)) .toList(), @@ -9515,7 +9515,7 @@ class DescribeAssetResponse { assetCreationDate: nonNullableTimeStampFromJson(json['assetCreationDate'] as Object), assetHierarchies: (json['assetHierarchies'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetHierarchy.fromJson(e as Map)) .toList(), assetId: json['assetId'] as String, @@ -9524,19 +9524,19 @@ class DescribeAssetResponse { assetModelId: json['assetModelId'] as String, assetName: json['assetName'] as String, assetProperties: (json['assetProperties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetProperty.fromJson(e as Map)) .toList(), assetStatus: AssetStatus.fromJson(json['assetStatus'] as Map), assetCompositeModelSummaries: (json['assetCompositeModelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetCompositeModelSummary.fromJson(e as Map)) .toList(), assetCompositeModels: (json['assetCompositeModels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetCompositeModel.fromJson(e as Map)) .toList(), assetDescription: json['assetDescription'] as String?, @@ -9666,7 +9666,7 @@ class DescribeBulkImportJobResponse { errorReportLocation: ErrorReportLocation.fromJson( json['errorReportLocation'] as Map), files: (json['files'] as List) - .whereNotNull() + .nonNulls .map((e) => File.fromJson(e as Map)) .toList(), jobConfiguration: JobConfiguration.fromJson( @@ -9943,7 +9943,7 @@ class DescribeGatewayResponse { nonNullableTimeStampFromJson(json['creationDate'] as Object), gatewayArn: json['gatewayArn'] as String, gatewayCapabilitySummaries: (json['gatewayCapabilitySummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => GatewayCapabilitySummary.fromJson(e as Map)) .toList(), @@ -10546,7 +10546,7 @@ class ErrorDetails { code: ErrorCode.fromString((json['code'] as String)), message: json['message'] as String, details: (json['details'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetailedError.fromJson(e as Map)) .toList(), ); @@ -10643,12 +10643,12 @@ class ExecuteQueryResponse { factory ExecuteQueryResponse.fromJson(Map json) { return ExecuteQueryResponse( columns: (json['columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, rows: (json['rows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Row.fromJson(e as Map)) .toList(), ); @@ -10930,7 +10930,7 @@ class GatewaySummary { lastUpdateDate: nonNullableTimeStampFromJson(json['lastUpdateDate'] as Object), gatewayCapabilitySummaries: (json['gatewayCapabilitySummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GatewayCapabilitySummary.fromJson(e as Map)) .toList(), @@ -10977,7 +10977,7 @@ class GetAssetPropertyAggregatesResponse { Map json) { return GetAssetPropertyAggregatesResponse( aggregatedValues: (json['aggregatedValues'] as List) - .whereNotNull() + .nonNulls .map((e) => AggregatedValue.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -11011,7 +11011,7 @@ class GetAssetPropertyValueHistoryResponse { Map json) { return GetAssetPropertyValueHistoryResponse( assetPropertyValueHistory: (json['assetPropertyValueHistory'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetPropertyValue.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -11071,7 +11071,7 @@ class GetInterpolatedAssetPropertyValuesResponse { return GetInterpolatedAssetPropertyValuesResponse( interpolatedAssetPropertyValues: (json['interpolatedAssetPropertyValues'] as List) - .whereNotNull() + .nonNulls .map((e) => InterpolatedAssetPropertyValue.fromJson( e as Map)) .toList(), @@ -11564,7 +11564,7 @@ class ListAccessPoliciesResponse { factory ListAccessPoliciesResponse.fromJson(Map json) { return ListAccessPoliciesResponse( accessPolicySummaries: (json['accessPolicySummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AccessPolicySummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -11597,7 +11597,7 @@ class ListActionsResponse { factory ListActionsResponse.fromJson(Map json) { return ListActionsResponse( actionSummaries: (json['actionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ActionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String, @@ -11632,7 +11632,7 @@ class ListAssetModelCompositeModelsResponse { return ListAssetModelCompositeModelsResponse( assetModelCompositeModelSummaries: (json['assetModelCompositeModelSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetModelCompositeModelSummary.fromJson( e as Map)) .toList(), @@ -11683,7 +11683,7 @@ class ListAssetModelPropertiesResponse { factory ListAssetModelPropertiesResponse.fromJson(Map json) { return ListAssetModelPropertiesResponse( assetModelPropertySummaries: (json['assetModelPropertySummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetModelPropertySummary.fromJson(e as Map)) .toList(), @@ -11717,7 +11717,7 @@ class ListAssetModelsResponse { factory ListAssetModelsResponse.fromJson(Map json) { return ListAssetModelsResponse( assetModelSummaries: (json['assetModelSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetModelSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -11765,7 +11765,7 @@ class ListAssetPropertiesResponse { factory ListAssetPropertiesResponse.fromJson(Map json) { return ListAssetPropertiesResponse( assetPropertySummaries: (json['assetPropertySummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetPropertySummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -11798,7 +11798,7 @@ class ListAssetRelationshipsResponse { factory ListAssetRelationshipsResponse.fromJson(Map json) { return ListAssetRelationshipsResponse( assetRelationshipSummaries: (json['assetRelationshipSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetRelationshipSummary.fromJson(e as Map)) .toList(), @@ -11847,7 +11847,7 @@ class ListAssetsResponse { factory ListAssetsResponse.fromJson(Map json) { return ListAssetsResponse( assetSummaries: (json['assetSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -11880,7 +11880,7 @@ class ListAssociatedAssetsResponse { factory ListAssociatedAssetsResponse.fromJson(Map json) { return ListAssociatedAssetsResponse( assetSummaries: (json['assetSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssociatedAssetsSummary.fromJson(e as Map)) .toList(), @@ -11934,7 +11934,7 @@ class ListBulkImportJobsResponse { factory ListBulkImportJobsResponse.fromJson(Map json) { return ListBulkImportJobsResponse( jobSummaries: (json['jobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => JobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -11969,7 +11969,7 @@ class ListCompositionRelationshipsResponse { return ListCompositionRelationshipsResponse( compositionRelationshipSummaries: (json['compositionRelationshipSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => CompositionRelationshipSummary.fromJson( e as Map)) .toList(), @@ -12004,7 +12004,7 @@ class ListDashboardsResponse { factory ListDashboardsResponse.fromJson(Map json) { return ListDashboardsResponse( dashboardSummaries: (json['dashboardSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => DashboardSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -12037,7 +12037,7 @@ class ListGatewaysResponse { factory ListGatewaysResponse.fromJson(Map json) { return ListGatewaysResponse( gatewaySummaries: (json['gatewaySummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => GatewaySummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -12071,7 +12071,7 @@ class ListPortalsResponse { return ListPortalsResponse( nextToken: json['nextToken'] as String?, portalSummaries: (json['portalSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortalSummary.fromJson(e as Map)) .toList(), ); @@ -12102,10 +12102,8 @@ class ListProjectAssetsResponse { factory ListProjectAssetsResponse.fromJson(Map json) { return ListProjectAssetsResponse( - assetIds: (json['assetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + assetIds: + (json['assetIds'] as List).nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -12136,7 +12134,7 @@ class ListProjectsResponse { factory ListProjectsResponse.fromJson(Map json) { return ListProjectsResponse( projectSummaries: (json['projectSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ProjectSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -12195,7 +12193,7 @@ class ListTimeSeriesResponse { factory ListTimeSeriesResponse.fromJson(Map json) { return ListTimeSeriesResponse( timeSeriesSummaries: (json['TimeSeriesSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => TimeSeriesSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -12369,7 +12367,7 @@ class Metric { return Metric( expression: json['expression'] as String, variables: (json['variables'] as List) - .whereNotNull() + .nonNulls .map((e) => ExpressionVariable.fromJson(e as Map)) .toList(), window: MetricWindow.fromJson(json['window'] as Map), @@ -12836,7 +12834,7 @@ class Property { json['notification'] as Map) : null, path: (json['path'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetPropertyPathSegment.fromJson(e as Map)) .toList(), @@ -13331,7 +13329,7 @@ class Row { factory Row.fromJson(Map json) { return Row( data: (json['data'] as List) - .whereNotNull() + .nonNulls .map((e) => Datum.fromJson(e as Map)) .toList(), ); @@ -13605,7 +13603,7 @@ class Transform { return Transform( expression: json['expression'] as String, variables: (json['variables'] as List) - .whereNotNull() + .nonNulls .map((e) => ExpressionVariable.fromJson(e as Map)) .toList(), processingConfig: json['processingConfig'] != null @@ -13846,7 +13844,7 @@ class UpdateAssetModelCompositeModelResponse { return UpdateAssetModelCompositeModelResponse( assetModelCompositeModelPath: (json['assetModelCompositeModelPath'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetModelCompositeModelPathSegment.fromJson( e as Map)) .toList(), @@ -14072,7 +14070,7 @@ class VariableValue { hierarchyId: json['hierarchyId'] as String?, propertyId: json['propertyId'] as String?, propertyPath: (json['propertyPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetModelPropertyPathSegment.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/iot_things_graph/v2018_09_06.dart b/aws_client/lib/src/generated/iot_things_graph/v2018_09_06.dart index 881409c80..1deb3e267 100644 --- a/aws_client/lib/src/generated/iot_things_graph/v2018_09_06.dart +++ b/aws_client/lib/src/generated/iot_things_graph/v2018_09_06.dart @@ -2462,7 +2462,7 @@ class GetEntitiesResponse { factory GetEntitiesResponse.fromJson(Map json) { return GetEntitiesResponse( descriptions: (json['descriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityDescription.fromJson(e as Map)) .toList(), ); @@ -2518,7 +2518,7 @@ class GetFlowTemplateRevisionsResponse { return GetFlowTemplateRevisionsResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlowTemplateSummary.fromJson(e as Map)) .toList(), ); @@ -2656,7 +2656,7 @@ class GetSystemTemplateRevisionsResponse { return GetSystemTemplateRevisionsResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SystemTemplateSummary.fromJson(e as Map)) .toList(), ); @@ -2712,7 +2712,7 @@ class GetUploadStatusResponse { uploadId: json['uploadId'] as String, uploadStatus: UploadStatus.fromString((json['uploadStatus'] as String)), failureReason: (json['failureReason'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), namespaceArn: json['namespaceArn'] as String?, @@ -2759,7 +2759,7 @@ class ListFlowExecutionMessagesResponse { Map json) { return ListFlowExecutionMessagesResponse( messages: (json['messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlowExecutionMessage.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2792,7 +2792,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['nextToken'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2885,7 +2885,7 @@ class SearchEntitiesResponse { factory SearchEntitiesResponse.fromJson(Map json) { return SearchEntitiesResponse( descriptions: (json['descriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityDescription.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2920,7 +2920,7 @@ class SearchFlowExecutionsResponse { return SearchFlowExecutionsResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlowExecutionSummary.fromJson(e as Map)) .toList(), ); @@ -2954,7 +2954,7 @@ class SearchFlowTemplatesResponse { return SearchFlowTemplatesResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlowTemplateSummary.fromJson(e as Map)) .toList(), ); @@ -2988,7 +2988,7 @@ class SearchSystemInstancesResponse { return SearchSystemInstancesResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SystemInstanceSummary.fromJson(e as Map)) .toList(), ); @@ -3022,7 +3022,7 @@ class SearchSystemTemplatesResponse { return SearchSystemTemplatesResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SystemTemplateSummary.fromJson(e as Map)) .toList(), ); @@ -3055,7 +3055,7 @@ class SearchThingsResponse { return SearchThingsResponse( nextToken: json['nextToken'] as String?, things: (json['things'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Thing.fromJson(e as Map)) .toList(), ); @@ -3147,7 +3147,7 @@ class SystemInstanceDescription { : null, validatedDependencyRevisions: (json['validatedDependencyRevisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DependencyRevision.fromJson(e as Map)) .toList(), validatedNamespaceVersion: json['validatedNamespaceVersion'] as int?, diff --git a/aws_client/lib/src/generated/iot_twin_maker/v2021_11_29.dart b/aws_client/lib/src/generated/iot_twin_maker/v2021_11_29.dart index f0e74f797..8270b7747 100644 --- a/aws_client/lib/src/generated/iot_twin_maker/v2021_11_29.dart +++ b/aws_client/lib/src/generated/iot_twin_maker/v2021_11_29.dart @@ -1875,7 +1875,7 @@ class BatchPutPropertyErrorEntry { factory BatchPutPropertyErrorEntry.fromJson(Map json) { return BatchPutPropertyErrorEntry( errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchPutPropertyError.fromJson(e as Map)) .toList(), ); @@ -1900,7 +1900,7 @@ class BatchPutPropertyValuesResponse { factory BatchPutPropertyValuesResponse.fromJson(Map json) { return BatchPutPropertyValuesResponse( errorEntries: (json['errorEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchPutPropertyErrorEntry.fromJson(e as Map)) .toList(), @@ -1931,7 +1931,7 @@ class BundleInformation { factory BundleInformation.fromJson(Map json) { return BundleInformation( bundleNames: (json['bundleNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), pricingTier: @@ -2102,7 +2102,7 @@ class ComponentPropertyGroupResponse { groupType: GroupType.fromString((json['groupType'] as String)), isInherited: json['isInherited'] as bool, propertyNames: (json['propertyNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -2883,7 +2883,7 @@ class DataType { return DataType( type: Type.fromString((json['type'] as String)), allowedValues: (json['allowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataValue.fromJson(e as Map)) .toList(), nestedType: json['nestedType'] != null @@ -2960,7 +2960,7 @@ class DataValue { expression: json['expression'] as String?, integerValue: json['integerValue'] as int?, listValue: (json['listValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataValue.fromJson(e as Map)) .toList(), longValue: json['longValue'] as int?, @@ -3363,12 +3363,12 @@ class ExecuteQueryResponse { factory ExecuteQueryResponse.fromJson(Map json) { return ExecuteQueryResponse( columnDescriptions: (json['columnDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnDescription.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, rows: (json['rows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Row.fromJson(e as Map)) .toList(), ); @@ -3579,7 +3579,7 @@ class FunctionResponse { : null, isInherited: json['isInherited'] as bool?, requiredProperties: (json['requiredProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), scope: (json['scope'] as String?)?.let(Scope.fromString), @@ -3698,7 +3698,7 @@ class GetComponentTypeResponse { e as Map))), description: json['description'] as String?, extendsFrom: (json['extendsFrom'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), functions: (json['functions'] as Map?)?.map((k, e) => @@ -3934,7 +3934,7 @@ class GetMetadataTransferJobResponse { metadataTransferJobId: json['metadataTransferJobId'] as String, metadataTransferJobRole: json['metadataTransferJobRole'] as String, sources: (json['sources'] as List) - .whereNotNull() + .nonNulls .map((e) => SourceConfiguration.fromJson(e as Map)) .toList(), status: MetadataTransferJobStatus.fromJson( @@ -4027,7 +4027,7 @@ class GetPropertyValueHistoryResponse { factory GetPropertyValueHistoryResponse.fromJson(Map json) { return GetPropertyValueHistoryResponse( propertyValues: (json['propertyValues'] as List) - .whereNotNull() + .nonNulls .map((e) => PropertyValueHistory.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4068,9 +4068,9 @@ class GetPropertyValueResponse { e) => MapEntry(k, PropertyLatestValue.fromJson(e as Map))), tabularPropertyValues: (json['tabularPropertyValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, DataValue.fromJson(e as Map)))) .toList()) @@ -4151,7 +4151,7 @@ class GetSceneResponse { nonNullableTimeStampFromJson(json['updateDateTime'] as Object), workspaceId: json['workspaceId'] as String, capabilities: (json['capabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -4311,7 +4311,7 @@ class GetWorkspaceResponse { workspaceId: json['workspaceId'] as String, description: json['description'] as String?, linkedServices: (json['linkedServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), role: json['role'] as String?, @@ -4404,7 +4404,7 @@ class IotSiteWiseSourceConfiguration { factory IotSiteWiseSourceConfiguration.fromJson(Map json) { return IotSiteWiseSourceConfiguration( filters: (json['filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IotSiteWiseSourceConfigurationFilter.fromJson( e as Map)) .toList(), @@ -4497,7 +4497,7 @@ class IotTwinMakerSourceConfiguration { return IotTwinMakerSourceConfiguration( workspace: json['workspace'] as String, filters: (json['filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IotTwinMakerSourceConfigurationFilter.fromJson( e as Map)) .toList(), @@ -4631,7 +4631,7 @@ class ListComponentTypesResponse { factory ListComponentTypesResponse.fromJson(Map json) { return ListComponentTypesResponse( componentTypeSummaries: (json['componentTypeSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ComponentTypeSummary.fromJson(e as Map)) .toList(), workspaceId: json['workspaceId'] as String, @@ -4669,7 +4669,7 @@ class ListComponentsResponse { factory ListComponentsResponse.fromJson(Map json) { return ListComponentsResponse( componentSummaries: (json['componentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ComponentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4731,7 +4731,7 @@ class ListEntitiesResponse { factory ListEntitiesResponse.fromJson(Map json) { return ListEntitiesResponse( entitySummaries: (json['entitySummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitySummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4787,7 +4787,7 @@ class ListMetadataTransferJobsResponse { return ListMetadataTransferJobsResponse( metadataTransferJobSummaries: (json['metadataTransferJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MetadataTransferJobSummary.fromJson(e as Map)) .toList(), @@ -4820,7 +4820,7 @@ class ListPropertiesResponse { factory ListPropertiesResponse.fromJson(Map json) { return ListPropertiesResponse( propertySummaries: (json['propertySummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => PropertySummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4853,7 +4853,7 @@ class ListScenesResponse { return ListScenesResponse( nextToken: json['nextToken'] as String?, sceneSummaries: (json['sceneSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SceneSummary.fromJson(e as Map)) .toList(), ); @@ -4885,7 +4885,7 @@ class ListSyncJobsResponse { return ListSyncJobsResponse( nextToken: json['nextToken'] as String?, syncJobSummaries: (json['syncJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyncJobSummary.fromJson(e as Map)) .toList(), ); @@ -4917,7 +4917,7 @@ class ListSyncResourcesResponse { return ListSyncResourcesResponse( nextToken: json['nextToken'] as String?, syncResources: (json['syncResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyncResourceSummary.fromJson(e as Map)) .toList(), ); @@ -4979,7 +4979,7 @@ class ListWorkspacesResponse { return ListWorkspacesResponse( nextToken: json['nextToken'] as String?, workspaceSummaries: (json['workspaceSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceSummary.fromJson(e as Map)) .toList(), ); @@ -5588,7 +5588,7 @@ class PropertyGroupResponse { groupType: GroupType.fromString((json['groupType'] as String)), isInherited: json['isInherited'] as bool, propertyNames: (json['propertyNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -5894,7 +5894,7 @@ class PropertyValueEntry { entityPropertyReference: EntityPropertyReference.fromJson( json['entityPropertyReference'] as Map), propertyValues: (json['propertyValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PropertyValue.fromJson(e as Map)) .toList(), ); @@ -5929,7 +5929,7 @@ class PropertyValueHistory { entityPropertyReference: EntityPropertyReference.fromJson( json['entityPropertyReference'] as Map), values: (json['values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PropertyValue.fromJson(e as Map)) .toList(), ); @@ -6031,7 +6031,7 @@ class Row { factory Row.fromJson(Map json) { return Row( rowData: (json['rowData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryResultValue.fromJson(e as Map)) .toList(), ); @@ -6877,7 +6877,7 @@ class WorkspaceSummary { workspaceId: json['workspaceId'] as String, description: json['description'] as String?, linkedServices: (json['linkedServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/iot_wireless/v2020_11_22.dart b/aws_client/lib/src/generated/iot_wireless/v2020_11_22.dart index 76235d2cf..ab80e15c1 100644 --- a/aws_client/lib/src/generated/iot_wireless/v2020_11_22.dart +++ b/aws_client/lib/src/generated/iot_wireless/v2020_11_22.dart @@ -4206,7 +4206,7 @@ class Beaconing { return Beaconing( dataRate: json['DataRate'] as int?, frequencies: (json['Frequencies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -5652,7 +5652,7 @@ class FPorts { factory FPorts.fromJson(Map json) { return FPorts( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationConfig.fromJson(e as Map)) .toList(), clockSync: json['ClockSync'] as int?, @@ -6071,12 +6071,12 @@ class GetLogLevelsByResourceTypesResponse { defaultLogLevel: (json['DefaultLogLevel'] as String?)?.let(LogLevel.fromString), wirelessDeviceLogOptions: (json['WirelessDeviceLogOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WirelessDeviceLogOption.fromJson(e as Map)) .toList(), wirelessGatewayLogOptions: (json['WirelessGatewayLogOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WirelessGatewayLogOption.fromJson(e as Map)) .toList(), @@ -6133,7 +6133,7 @@ class GetMetricsResponse { factory GetMetricsResponse.fromJson(Map json) { return GetMetricsResponse( summaryMetricQueryResults: (json['SummaryMetricQueryResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SummaryMetricQueryResult.fromJson(e as Map)) .toList(), @@ -6262,7 +6262,7 @@ class GetNetworkAnalyzerConfigurationResponse { arn: json['Arn'] as String?, description: json['Description'] as String?, multicastGroups: (json['MulticastGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -6270,11 +6270,11 @@ class GetNetworkAnalyzerConfigurationResponse { ? TraceContent.fromJson(json['TraceContent'] as Map) : null, wirelessDevices: (json['WirelessDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), wirelessGateways: (json['WirelessGateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6428,7 +6428,7 @@ class GetPositionResponse { ? Accuracy.fromJson(json['Accuracy'] as Map) : null, position: (json['Position'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), solverProvider: (json['SolverProvider'] as String?) @@ -7600,7 +7600,7 @@ class ListDestinationsResponse { factory ListDestinationsResponse.fromJson(Map json) { return ListDestinationsResponse( destinationList: (json['DestinationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Destinations.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7633,7 +7633,7 @@ class ListDeviceProfilesResponse { factory ListDeviceProfilesResponse.fromJson(Map json) { return ListDeviceProfilesResponse( deviceProfileList: (json['DeviceProfileList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceProfile.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7674,7 +7674,7 @@ class ListDevicesForWirelessDeviceImportTaskResponse { return ListDevicesForWirelessDeviceImportTaskResponse( destinationName: json['DestinationName'] as String?, importedWirelessDeviceList: (json['ImportedWirelessDeviceList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ImportedWirelessDevice.fromJson(e as Map)) .toList(), @@ -7712,7 +7712,7 @@ class ListEventConfigurationsResponse { factory ListEventConfigurationsResponse.fromJson(Map json) { return ListEventConfigurationsResponse( eventConfigurationsList: (json['EventConfigurationsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => EventConfigurationItem.fromJson(e as Map)) .toList(), @@ -7747,7 +7747,7 @@ class ListFuotaTasksResponse { factory ListFuotaTasksResponse.fromJson(Map json) { return ListFuotaTasksResponse( fuotaTaskList: (json['FuotaTaskList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FuotaTask.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7781,7 +7781,7 @@ class ListMulticastGroupsByFuotaTaskResponse { Map json) { return ListMulticastGroupsByFuotaTaskResponse( multicastGroupList: (json['MulticastGroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MulticastGroupByFuotaTask.fromJson(e as Map)) .toList(), @@ -7815,7 +7815,7 @@ class ListMulticastGroupsResponse { factory ListMulticastGroupsResponse.fromJson(Map json) { return ListMulticastGroupsResponse( multicastGroupList: (json['MulticastGroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MulticastGroup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7850,7 +7850,7 @@ class ListNetworkAnalyzerConfigurationsResponse { return ListNetworkAnalyzerConfigurationsResponse( networkAnalyzerConfigurationList: (json['NetworkAnalyzerConfigurationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkAnalyzerConfigurations.fromJson( e as Map)) .toList(), @@ -7887,7 +7887,7 @@ class ListPartnerAccountsResponse { return ListPartnerAccountsResponse( nextToken: json['NextToken'] as String?, sidewalk: (json['Sidewalk'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SidewalkAccountInfoWithFingerprint.fromJson( e as Map)) .toList(), @@ -7923,7 +7923,7 @@ class ListPositionConfigurationsResponse { return ListPositionConfigurationsResponse( nextToken: json['NextToken'] as String?, positionConfigurationList: (json['PositionConfigurationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PositionConfigurationItem.fromJson(e as Map)) .toList(), @@ -7958,7 +7958,7 @@ class ListQueuedMessagesResponse { factory ListQueuedMessagesResponse.fromJson(Map json) { return ListQueuedMessagesResponse( downlinkQueueMessagesList: (json['DownlinkQueueMessagesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DownlinkQueueMessage.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7993,7 +7993,7 @@ class ListServiceProfilesResponse { return ListServiceProfilesResponse( nextToken: json['NextToken'] as String?, serviceProfileList: (json['ServiceProfileList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceProfile.fromJson(e as Map)) .toList(), ); @@ -8021,7 +8021,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8055,7 +8055,7 @@ class ListWirelessDeviceImportTasksResponse { nextToken: json['NextToken'] as String?, wirelessDeviceImportTaskList: (json['WirelessDeviceImportTaskList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WirelessDeviceImportTask.fromJson(e as Map)) .toList(), @@ -8090,7 +8090,7 @@ class ListWirelessDevicesResponse { return ListWirelessDevicesResponse( nextToken: json['NextToken'] as String?, wirelessDeviceList: (json['WirelessDeviceList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WirelessDeviceStatistics.fromJson(e as Map)) .toList(), @@ -8125,7 +8125,7 @@ class ListWirelessGatewayTaskDefinitionsResponse { return ListWirelessGatewayTaskDefinitionsResponse( nextToken: json['NextToken'] as String?, taskDefinitions: (json['TaskDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateWirelessGatewayTaskEntry.fromJson( e as Map)) .toList(), @@ -8159,7 +8159,7 @@ class ListWirelessGatewaysResponse { return ListWirelessGatewaysResponse( nextToken: json['NextToken'] as String?, wirelessGatewayList: (json['WirelessGatewayList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WirelessGatewayStatistics.fromJson(e as Map)) .toList(), @@ -8351,12 +8351,12 @@ class LoRaWANDeviceMetadata { fPort: json['FPort'] as int?, frequency: json['Frequency'] as int?, gateways: (json['Gateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => LoRaWANGatewayMetadata.fromJson(e as Map)) .toList(), publicGateways: (json['PublicGateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoRaWANPublicGatewayMetadata.fromJson(e as Map)) .toList(), @@ -8471,7 +8471,7 @@ class LoRaWANDeviceProfile { classBTimeout: json['ClassBTimeout'] as int?, classCTimeout: json['ClassCTimeout'] as int?, factoryPresetFreqsList: (json['FactoryPresetFreqsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), macVersion: json['MacVersion'] as String?, @@ -8616,20 +8616,17 @@ class LoRaWANGateway { : null, gatewayEui: json['GatewayEui'] as String?, joinEuiFilters: (json['JoinEuiFilters'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), maxEirp: json['MaxEirp'] as double?, netIdFilters: (json['NetIdFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rfRegion: json['RfRegion'] as String?, - subBands: (json['SubBands'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + subBands: + (json['SubBands'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } @@ -9982,7 +9979,7 @@ class ParticipatingGateways { return ParticipatingGateways( downlinkMode: DownlinkMode.fromString((json['DownlinkMode'] as String)), gatewayList: (json['GatewayList'] as List) - .whereNotNull() + .nonNulls .map((e) => GatewayListItem.fromJson(e as Map)) .toList(), transmissionInterval: json['TransmissionInterval'] as int, @@ -10705,12 +10702,12 @@ class SidewalkDevice { amazonId: json['AmazonId'] as String?, certificateId: json['CertificateId'] as String?, deviceCertificates: (json['DeviceCertificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateList.fromJson(e as Map)) .toList(), deviceProfileId: json['DeviceProfileId'] as String?, privateKeys: (json['PrivateKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateList.fromJson(e as Map)) .toList(), sidewalkId: json['SidewalkId'] as String?, @@ -10838,7 +10835,7 @@ class SidewalkGetDeviceProfile { return SidewalkGetDeviceProfile( applicationServerPublicKey: json['ApplicationServerPublicKey'] as String?, dakCertificateMetadata: (json['DakCertificateMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DakCertificateMetadata.fromJson(e as Map)) .toList(), @@ -10879,7 +10876,7 @@ class SidewalkGetStartImportInfo { factory SidewalkGetStartImportInfo.fromJson(Map json) { return SidewalkGetStartImportInfo( deviceCreationFileList: (json['DeviceCreationFileList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), role: json['Role'] as String?, @@ -10930,7 +10927,7 @@ class SidewalkListDevice { return SidewalkListDevice( amazonId: json['AmazonId'] as String?, deviceCertificates: (json['DeviceCertificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateList.fromJson(e as Map)) .toList(), deviceProfileId: json['DeviceProfileId'] as String?, @@ -11363,7 +11360,7 @@ class SummaryMetricQueryResult { aggregationPeriod: (json['AggregationPeriod'] as String?) ?.let(AggregationPeriod.fromString), dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Dimension.fromJson(e as Map)) .toList(), endTimestamp: timeStampFromJson(json['EndTimestamp']), @@ -11374,12 +11371,12 @@ class SummaryMetricQueryResult { (json['QueryStatus'] as String?)?.let(MetricQueryStatus.fromString), startTimestamp: timeStampFromJson(json['StartTimestamp']), timestamps: (json['Timestamps'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), unit: json['Unit'] as String?, values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricQueryValue.fromJson(e as Map)) .toList(), ); @@ -12371,7 +12368,7 @@ class WirelessDeviceLogOption { logLevel: LogLevel.fromString((json['LogLevel'] as String)), type: WirelessDeviceType.fromString((json['Type'] as String)), events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WirelessDeviceEventLogOption.fromJson(e as Map)) .toList(), @@ -12605,7 +12602,7 @@ class WirelessGatewayLogOption { logLevel: LogLevel.fromString((json['LogLevel'] as String)), type: WirelessGatewayType.fromString((json['Type'] as String)), events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WirelessGatewayEventLogOption.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/ivs/v2020_07_14.dart b/aws_client/lib/src/generated/ivs/v2020_07_14.dart index aaa74685a..c43204c56 100644 --- a/aws_client/lib/src/generated/ivs/v2020_07_14.dart +++ b/aws_client/lib/src/generated/ivs/v2020_07_14.dart @@ -1824,11 +1824,11 @@ class BatchGetChannelResponse { factory BatchGetChannelResponse.fromJson(Map json) { return BatchGetChannelResponse( channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchError.fromJson(e as Map)) .toList(), ); @@ -1859,11 +1859,11 @@ class BatchGetStreamKeyResponse { factory BatchGetStreamKeyResponse.fromJson(Map json) { return BatchGetStreamKeyResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchError.fromJson(e as Map)) .toList(), streamKeys: (json['streamKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamKey.fromJson(e as Map)) .toList(), ); @@ -1938,7 +1938,7 @@ class BatchStartViewerSessionRevocationResponse { Map json) { return BatchStartViewerSessionRevocationResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchStartViewerSessionRevocationError.fromJson( e as Map)) .toList(), @@ -2675,7 +2675,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( channels: (json['channels'] as List) - .whereNotNull() + .nonNulls .map((e) => ChannelSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2708,7 +2708,7 @@ class ListPlaybackKeyPairsResponse { factory ListPlaybackKeyPairsResponse.fromJson(Map json) { return ListPlaybackKeyPairsResponse( keyPairs: (json['keyPairs'] as List) - .whereNotNull() + .nonNulls .map( (e) => PlaybackKeyPairSummary.fromJson(e as Map)) .toList(), @@ -2743,7 +2743,7 @@ class ListPlaybackRestrictionPoliciesResponse { Map json) { return ListPlaybackRestrictionPoliciesResponse( playbackRestrictionPolicies: (json['playbackRestrictionPolicies'] as List) - .whereNotNull() + .nonNulls .map((e) => PlaybackRestrictionPolicySummary.fromJson( e as Map)) .toList(), @@ -2778,7 +2778,7 @@ class ListRecordingConfigurationsResponse { Map json) { return ListRecordingConfigurationsResponse( recordingConfigurations: (json['recordingConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => RecordingConfigurationSummary.fromJson(e as Map)) .toList(), @@ -2812,7 +2812,7 @@ class ListStreamKeysResponse { factory ListStreamKeysResponse.fromJson(Map json) { return ListStreamKeysResponse( streamKeys: (json['streamKeys'] as List) - .whereNotNull() + .nonNulls .map((e) => StreamKeySummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2845,7 +2845,7 @@ class ListStreamSessionsResponse { factory ListStreamSessionsResponse.fromJson(Map json) { return ListStreamSessionsResponse( streamSessions: (json['streamSessions'] as List) - .whereNotNull() + .nonNulls .map((e) => StreamSessionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2878,7 +2878,7 @@ class ListStreamsResponse { factory ListStreamsResponse.fromJson(Map json) { return ListStreamsResponse( streams: (json['streams'] as List) - .whereNotNull() + .nonNulls .map((e) => StreamSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3060,11 +3060,11 @@ class PlaybackRestrictionPolicy { factory PlaybackRestrictionPolicy.fromJson(Map json) { return PlaybackRestrictionPolicy( allowedCountries: (json['allowedCountries'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowedOrigins: (json['allowedOrigins'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), arn: json['arn'] as String, @@ -3140,11 +3140,11 @@ class PlaybackRestrictionPolicySummary { factory PlaybackRestrictionPolicySummary.fromJson(Map json) { return PlaybackRestrictionPolicySummary( allowedCountries: (json['allowedCountries'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowedOrigins: (json['allowedOrigins'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), arn: json['arn'] as String, @@ -3394,7 +3394,7 @@ class RenditionConfiguration { renditionSelection: (json['renditionSelection'] as String?) ?.let(RenditionConfigurationRenditionSelection.fromString), renditions: (json['renditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RenditionConfigurationRendition.fromString((e as String))) .toList(), ); @@ -3828,7 +3828,7 @@ class StreamSession { startTime: timeStampFromJson(json['startTime']), streamId: json['streamId'] as String?, truncatedEvents: (json['truncatedEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamEvent.fromJson(e as Map)) .toList(), ); @@ -4049,7 +4049,7 @@ class ThumbnailConfiguration { resolution: (json['resolution'] as String?) ?.let(ThumbnailConfigurationResolution.fromString), storage: (json['storage'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThumbnailConfigurationStorage.fromString((e as String))) .toList(), targetIntervalSeconds: json['targetIntervalSeconds'] as int?, diff --git a/aws_client/lib/src/generated/ivs_real_time/v2020_07_14.dart b/aws_client/lib/src/generated/ivs_real_time/v2020_07_14.dart index c73d5209a..e5ba8cc14 100644 --- a/aws_client/lib/src/generated/ivs_real_time/v2020_07_14.dart +++ b/aws_client/lib/src/generated/ivs_real_time/v2020_07_14.dart @@ -1345,7 +1345,7 @@ class Composition { return Composition( arn: json['arn'] as String, destinations: (json['destinations'] as List) - .whereNotNull() + .nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), layout: @@ -1443,7 +1443,7 @@ class CompositionSummary { return CompositionSummary( arn: json['arn'] as String, destinations: (json['destinations'] as List) - .whereNotNull() + .nonNulls .map((e) => DestinationSummary.fromJson(e as Map)) .toList(), stageArn: json['stageArn'] as String, @@ -1543,7 +1543,7 @@ class CreateStageResponse { factory CreateStageResponse.fromJson(Map json) { return CreateStageResponse( participantTokens: (json['participantTokens'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParticipantToken.fromJson(e as Map)) .toList(), stage: json['stage'] != null @@ -2297,7 +2297,7 @@ class ListCompositionsResponse { factory ListCompositionsResponse.fromJson(Map json) { return ListCompositionsResponse( compositions: (json['compositions'] as List) - .whereNotNull() + .nonNulls .map((e) => CompositionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2331,7 +2331,7 @@ class ListEncoderConfigurationsResponse { Map json) { return ListEncoderConfigurationsResponse( encoderConfigurations: (json['encoderConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => EncoderConfigurationSummary.fromJson(e as Map)) .toList(), @@ -2365,7 +2365,7 @@ class ListParticipantEventsResponse { factory ListParticipantEventsResponse.fromJson(Map json) { return ListParticipantEventsResponse( events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2398,7 +2398,7 @@ class ListParticipantsResponse { factory ListParticipantsResponse.fromJson(Map json) { return ListParticipantsResponse( participants: (json['participants'] as List) - .whereNotNull() + .nonNulls .map((e) => ParticipantSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2431,7 +2431,7 @@ class ListStageSessionsResponse { factory ListStageSessionsResponse.fromJson(Map json) { return ListStageSessionsResponse( stageSessions: (json['stageSessions'] as List) - .whereNotNull() + .nonNulls .map((e) => StageSessionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2464,7 +2464,7 @@ class ListStagesResponse { factory ListStagesResponse.fromJson(Map json) { return ListStagesResponse( stages: (json['stages'] as List) - .whereNotNull() + .nonNulls .map((e) => StageSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2498,7 +2498,7 @@ class ListStorageConfigurationsResponse { Map json) { return ListStorageConfigurationsResponse( storageConfigurations: (json['storageConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => StorageConfigurationSummary.fromJson(e as Map)) .toList(), @@ -2769,7 +2769,7 @@ class ParticipantToken { attributes: (json['attributes'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), capabilities: (json['capabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParticipantTokenCapability.fromString((e as String))) .toList(), duration: json['duration'] as int?, @@ -3063,7 +3063,7 @@ class S3DestinationConfiguration { factory S3DestinationConfiguration.fromJson(Map json) { return S3DestinationConfiguration( encoderConfigurationArns: (json['encoderConfigurationArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), storageConfigurationArn: json['storageConfigurationArn'] as String, diff --git a/aws_client/lib/src/generated/ivschat/v2020_07_14.dart b/aws_client/lib/src/generated/ivschat/v2020_07_14.dart index 28aada129..7f493385d 100644 --- a/aws_client/lib/src/generated/ivschat/v2020_07_14.dart +++ b/aws_client/lib/src/generated/ivschat/v2020_07_14.dart @@ -1201,7 +1201,7 @@ class CreateRoomResponse { id: json['id'] as String?, loggingConfigurationIdentifiers: (json['loggingConfigurationIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maximumMessageLength: json['maximumMessageLength'] as int?, @@ -1517,7 +1517,7 @@ class GetRoomResponse { id: json['id'] as String?, loggingConfigurationIdentifiers: (json['loggingConfigurationIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maximumMessageLength: json['maximumMessageLength'] as int?, @@ -1584,7 +1584,7 @@ class ListLoggingConfigurationsResponse { Map json) { return ListLoggingConfigurationsResponse( loggingConfigurations: (json['loggingConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => LoggingConfigurationSummary.fromJson(e as Map)) .toList(), @@ -1618,7 +1618,7 @@ class ListRoomsResponse { factory ListRoomsResponse.fromJson(Map json) { return ListRoomsResponse( rooms: (json['rooms'] as List) - .whereNotNull() + .nonNulls .map((e) => RoomSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1857,7 +1857,7 @@ class RoomSummary { id: json['id'] as String?, loggingConfigurationIdentifiers: (json['loggingConfigurationIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), messageReviewHandler: json['messageReviewHandler'] != null @@ -2125,7 +2125,7 @@ class UpdateRoomResponse { id: json['id'] as String?, loggingConfigurationIdentifiers: (json['loggingConfigurationIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maximumMessageLength: json['maximumMessageLength'] as int?, diff --git a/aws_client/lib/src/generated/kafka/v2018_11_14.dart b/aws_client/lib/src/generated/kafka/v2018_11_14.dart index 23095fae6..1821ad216 100644 --- a/aws_client/lib/src/generated/kafka/v2018_11_14.dart +++ b/aws_client/lib/src/generated/kafka/v2018_11_14.dart @@ -2373,7 +2373,7 @@ class BatchAssociateScramSecretResponse { return BatchAssociateScramSecretResponse( clusterArn: json['clusterArn'] as String?, unprocessedScramSecrets: (json['unprocessedScramSecrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => UnprocessedScramSecret.fromJson(e as Map)) .toList(), @@ -2437,11 +2437,11 @@ class BrokerCountUpdateInfo { factory BrokerCountUpdateInfo.fromJson(Map json) { return BrokerCountUpdateInfo( createdBrokerIds: (json['createdBrokerIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), deletedBrokerIds: (json['deletedBrokerIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -2614,7 +2614,7 @@ class BrokerNodeGroupInfo { factory BrokerNodeGroupInfo.fromJson(Map json) { return BrokerNodeGroupInfo( clientSubnets: (json['clientSubnets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), instanceType: json['instanceType'] as String, @@ -2625,16 +2625,14 @@ class BrokerNodeGroupInfo { json['connectivityInfo'] as Map) : null, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), storageInfo: json['storageInfo'] != null ? StorageInfo.fromJson(json['storageInfo'] as Map) : null, - zoneIds: (json['zoneIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + zoneIds: + (json['zoneIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2714,7 +2712,7 @@ class BrokerNodeInfo { json['currentBrokerSoftwareInfo'] as Map) : null, endpoints: (json['endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3399,7 +3397,7 @@ class ClusterOperationInfo { operationArn: json['operationArn'] as String?, operationState: json['operationState'] as String?, operationSteps: (json['operationSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterOperationStep.fromJson(e as Map)) .toList(), operationType: json['operationType'] as String?, @@ -3825,12 +3823,10 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( - subnetIds: (json['subnetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3898,7 +3894,7 @@ class Serverless { factory Serverless.fromJson(Map json) { return Serverless( vpcConfigs: (json['vpcConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcConfig.fromJson(e as Map)) .toList(), clientAuthentication: json['clientAuthentication'] != null @@ -4078,7 +4074,7 @@ class CompatibleKafkaVersion { return CompatibleKafkaVersion( sourceVersion: json['sourceVersion'] as String?, targetVersions: (json['targetVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4153,7 +4149,7 @@ class Configuration { nonNullableTimeStampFromJson(json['creationTime'] as Object), description: json['description'] as String, kafkaVersions: (json['kafkaVersions'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), latestRevision: ConfigurationRevision.fromJson( @@ -4351,11 +4347,11 @@ class ConsumerGroupReplication { factory ConsumerGroupReplication.fromJson(Map json) { return ConsumerGroupReplication( consumerGroupsToReplicate: (json['consumerGroupsToReplicate'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), consumerGroupsToExclude: (json['consumerGroupsToExclude'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), detectAndCopyNewConsumerGroups: @@ -4674,12 +4670,12 @@ class CreateVpcConnectionResponse { return CreateVpcConnectionResponse( authentication: json['authentication'] as String?, clientSubnets: (json['clientSubnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['creationTime']), securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), state: (json['state'] as String?)?.let(VpcConnectionState.fromString), @@ -4848,7 +4844,7 @@ class ClusterOperationV2Provisioned { factory ClusterOperationV2Provisioned.fromJson(Map json) { return ClusterOperationV2Provisioned( operationSteps: (json['operationSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterOperationStep.fromJson(e as Map)) .toList(), sourceClusterInfo: json['sourceClusterInfo'] != null @@ -4999,7 +4995,7 @@ class ControllerNodeInfo { factory ControllerNodeInfo.fromJson(Map json) { return ControllerNodeInfo( endpoints: (json['endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5337,7 +5333,7 @@ class DescribeConfigurationResponse { creationTime: timeStampFromJson(json['creationTime']), description: json['description'] as String?, kafkaVersions: (json['kafkaVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), latestRevision: json['latestRevision'] != null @@ -5500,12 +5496,12 @@ class DescribeReplicatorResponse { currentVersion: json['currentVersion'] as String?, isReplicatorReference: json['isReplicatorReference'] as bool?, kafkaClusters: (json['kafkaClusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KafkaClusterDescription.fromJson(e as Map)) .toList(), replicationInfoList: (json['replicationInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationInfoDescription.fromJson(e as Map)) .toList(), @@ -5626,14 +5622,12 @@ class DescribeVpcConnectionResponse { authentication: json['authentication'] as String?, creationTime: timeStampFromJson(json['creationTime']), securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), state: (json['state'] as String?)?.let(VpcConnectionState.fromString), - subnets: (json['subnets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), targetClusterArn: json['targetClusterArn'] as String?, @@ -5687,7 +5681,7 @@ class BatchDisassociateScramSecretResponse { return BatchDisassociateScramSecretResponse( clusterArn: json['clusterArn'] as String?, unprocessedScramSecrets: (json['unprocessedScramSecrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => UnprocessedScramSecret.fromJson(e as Map)) .toList(), @@ -6117,7 +6111,7 @@ class GetCompatibleKafkaVersionsResponse { Map json) { return GetCompatibleKafkaVersionsResponse( compatibleKafkaVersions: (json['compatibleKafkaVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CompatibleKafkaVersion.fromJson(e as Map)) .toList(), @@ -6207,12 +6201,10 @@ class KafkaClusterClientVpcConfig { factory KafkaClusterClientVpcConfig.fromJson(Map json) { return KafkaClusterClientVpcConfig( - subnetIds: (json['subnetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6368,7 +6360,7 @@ class ListClusterOperationsResponse { factory ListClusterOperationsResponse.fromJson(Map json) { return ListClusterOperationsResponse( clusterOperationInfoList: (json['clusterOperationInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterOperationInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6405,7 +6397,7 @@ class ListClusterOperationsV2Response { factory ListClusterOperationsV2Response.fromJson(Map json) { return ListClusterOperationsV2Response( clusterOperationInfoList: (json['clusterOperationInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterOperationV2Summary.fromJson(e as Map)) .toList(), @@ -6445,7 +6437,7 @@ class ListClustersResponse { factory ListClustersResponse.fromJson(Map json) { return ListClustersResponse( clusterInfoList: (json['clusterInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6483,7 +6475,7 @@ class ListClustersV2Response { factory ListClustersV2Response.fromJson(Map json) { return ListClustersV2Response( clusterInfoList: (json['clusterInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cluster.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6521,7 +6513,7 @@ class ListConfigurationRevisionsResponse { return ListConfigurationRevisionsResponse( nextToken: json['nextToken'] as String?, revisions: (json['revisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationRevision.fromJson(e as Map)) .toList(), ); @@ -6559,7 +6551,7 @@ class ListConfigurationsResponse { factory ListConfigurationsResponse.fromJson(Map json) { return ListConfigurationsResponse( configurations: (json['configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6588,7 +6580,7 @@ class ListKafkaVersionsResponse { factory ListKafkaVersionsResponse.fromJson(Map json) { return ListKafkaVersionsResponse( kafkaVersions: (json['kafkaVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KafkaVersion.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6627,7 +6619,7 @@ class ListNodesResponse { return ListNodesResponse( nextToken: json['nextToken'] as String?, nodeInfoList: (json['nodeInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NodeInfo.fromJson(e as Map)) .toList(), ); @@ -6661,7 +6653,7 @@ class ListReplicatorsResponse { return ListReplicatorsResponse( nextToken: json['nextToken'] as String?, replicators: (json['replicators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicatorSummary.fromJson(e as Map)) .toList(), ); @@ -6697,7 +6689,7 @@ class ListScramSecretsResponse { return ListScramSecretsResponse( nextToken: json['nextToken'] as String?, secretArnList: (json['secretArnList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6760,7 +6752,7 @@ class ListClientVpcConnectionsResponse { factory ListClientVpcConnectionsResponse.fromJson(Map json) { return ListClientVpcConnectionsResponse( clientVpcConnections: (json['clientVpcConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClientVpcConnection.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6801,7 +6793,7 @@ class ListVpcConnectionsResponse { return ListVpcConnectionsResponse( nextToken: json['nextToken'] as String?, vpcConnections: (json['vpcConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcConnection.fromJson(e as Map)) .toList(), ); @@ -6946,7 +6938,7 @@ class MutableClusterInfo { json['brokerCountUpdateInfo'] as Map) : null, brokerEBSVolumeInfo: (json['brokerEBSVolumeInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BrokerEBSVolumeInfo.fromJson(e as Map)) .toList(), clientAuthentication: json['clientAuthentication'] != null @@ -8016,11 +8008,11 @@ class ReplicatorSummary { currentVersion: json['currentVersion'] as String?, isReplicatorReference: json['isReplicatorReference'] as bool?, kafkaClustersSummary: (json['kafkaClustersSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KafkaClusterSummary.fromJson(e as Map)) .toList(), replicationInfoSummaryList: (json['replicationInfoSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ReplicationInfoSummary.fromJson(e as Map)) .toList(), @@ -8173,7 +8165,7 @@ class Tls { return Tls( certificateAuthorityArnList: (json['certificateAuthorityArnList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), enabled: json['enabled'] as bool?, @@ -8254,7 +8246,7 @@ class TopicReplication { factory TopicReplication.fromJson(Map json) { return TopicReplication( topicsToReplicate: (json['topicsToReplicate'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), copyAccessControlListsForTopics: @@ -8266,7 +8258,7 @@ class TopicReplication { json['startingPosition'] as Map) : null, topicsToExclude: (json['topicsToExclude'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9038,7 +9030,7 @@ class ZookeeperNodeInfo { attachedENIId: json['attachedENIId'] as String?, clientVpcIpAddress: json['clientVpcIpAddress'] as String?, endpoints: (json['endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), zookeeperId: json['zookeeperId'] as double?, diff --git a/aws_client/lib/src/generated/kafka_connect/v2021_09_14.dart b/aws_client/lib/src/generated/kafka_connect/v2021_09_14.dart index bfa6302c5..aac2cb772 100644 --- a/aws_client/lib/src/generated/kafka_connect/v2021_09_14.dart +++ b/aws_client/lib/src/generated/kafka_connect/v2021_09_14.dart @@ -1139,7 +1139,7 @@ class ConnectorSummary { json['logDelivery'] as Map) : null, plugins: (json['plugins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PluginDescription.fromJson(e as Map)) .toList(), serviceExecutionRoleArn: json['serviceExecutionRoleArn'] as String?, @@ -1840,7 +1840,7 @@ class DescribeConnectorResponse { json['logDelivery'] as Map) : null, plugins: (json['plugins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PluginDescription.fromJson(e as Map)) .toList(), serviceExecutionRoleArn: json['serviceExecutionRoleArn'] as String?, @@ -2278,7 +2278,7 @@ class ListConnectorsResponse { factory ListConnectorsResponse.fromJson(Map json) { return ListConnectorsResponse( connectors: (json['connectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectorSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2312,7 +2312,7 @@ class ListCustomPluginsResponse { factory ListCustomPluginsResponse.fromJson(Map json) { return ListCustomPluginsResponse( customPlugins: (json['customPlugins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomPluginSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2371,7 +2371,7 @@ class ListWorkerConfigurationsResponse { return ListWorkerConfigurationsResponse( nextToken: json['nextToken'] as String?, workerConfigurations: (json['workerConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkerConfigurationSummary.fromJson(e as Map)) .toList(), @@ -2936,13 +2936,11 @@ class VpcDescription { factory VpcDescription.fromJson(Map json) { return VpcDescription( securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + subnets: + (json['subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/kendra/v2019_02_03.dart b/aws_client/lib/src/generated/kendra/v2019_02_03.dart index b45d12766..e9adb06f9 100644 --- a/aws_client/lib/src/generated/kendra/v2019_02_03.dart +++ b/aws_client/lib/src/generated/kendra/v2019_02_03.dart @@ -4617,7 +4617,7 @@ class AlfrescoConfiguration { sslCertificateS3Path: S3Path.fromJson(json['SslCertificateS3Path'] as Map), blogFieldMappings: (json['BlogFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -4625,20 +4625,20 @@ class AlfrescoConfiguration { crawlSystemFolders: json['CrawlSystemFolders'] as bool?, documentLibraryFieldMappings: (json['DocumentLibraryFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), entityFilter: (json['EntityFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlfrescoEntity.fromString((e as String))) .toList(), exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcConfiguration: json['VpcConfiguration'] != null @@ -4646,7 +4646,7 @@ class AlfrescoConfiguration { json['VpcConfiguration'] as Map) : null, wikiFieldMappings: (json['WikiFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -4716,7 +4716,7 @@ class AssociateEntitiesToExperienceResponse { Map json) { return AssociateEntitiesToExperienceResponse( failedEntityList: (json['FailedEntityList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedEntity.fromJson(e as Map)) .toList(), ); @@ -4743,7 +4743,7 @@ class AssociatePersonasToEntitiesResponse { Map json) { return AssociatePersonasToEntitiesResponse( failedEntityList: (json['FailedEntityList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedEntity.fromJson(e as Map)) .toList(), ); @@ -4920,7 +4920,7 @@ class AttributeSuggestionsDescribeConfig { attributeSuggestionsMode: (json['AttributeSuggestionsMode'] as String?) ?.let(AttributeSuggestionsMode.fromString), suggestableConfigList: (json['SuggestableConfigList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuggestableConfig.fromJson(e as Map)) .toList(), ); @@ -5060,7 +5060,7 @@ class AuthenticationConfiguration { factory AuthenticationConfiguration.fromJson(Map json) { return AuthenticationConfiguration( basicAuthentication: (json['BasicAuthentication'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BasicAuthenticationConfiguration.fromJson( e as Map)) .toList(), @@ -5140,7 +5140,7 @@ class BatchDeleteDocumentResponse { factory BatchDeleteDocumentResponse.fromJson(Map json) { return BatchDeleteDocumentResponse( failedDocuments: (json['FailedDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchDeleteDocumentResponseFailedDocument.fromJson( e as Map)) .toList(), @@ -5251,7 +5251,7 @@ class BatchDeleteFeaturedResultsSetResponse { Map json) { return BatchDeleteFeaturedResultsSetResponse( errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDeleteFeaturedResultsSetError.fromJson( e as Map)) .toList(), @@ -5285,11 +5285,11 @@ class BatchGetDocumentStatusResponse { factory BatchGetDocumentStatusResponse.fromJson(Map json) { return BatchGetDocumentStatusResponse( documentStatusList: (json['DocumentStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Status.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchGetDocumentStatusResponseError.fromJson( e as Map)) .toList(), @@ -5363,7 +5363,7 @@ class BatchPutDocumentResponse { factory BatchPutDocumentResponse.fromJson(Map json) { return BatchPutDocumentResponse( failedDocuments: (json['FailedDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPutDocumentResponseFailedDocument.fromJson( e as Map)) .toList(), @@ -5548,7 +5548,7 @@ class BoxConfiguration { enterpriseId: json['EnterpriseId'] as String, secretArn: json['SecretArn'] as String, commentFieldMappings: (json['CommentFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -5556,20 +5556,20 @@ class BoxConfiguration { crawlTasks: json['CrawlTasks'] as bool?, crawlWebLinks: json['CrawlWebLinks'] as bool?, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fileFieldMappings: (json['FileFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), taskFieldMappings: (json['TaskFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -5579,7 +5579,7 @@ class BoxConfiguration { json['VpcConfiguration'] as Map) : null, webLinkFieldMappings: (json['WebLinkFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -5780,7 +5780,7 @@ class CollapsedResultDetail { documentAttribute: DocumentAttribute.fromJson( json['DocumentAttribute'] as Map), expandedResults: (json['ExpandedResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpandedResultItem.fromJson(e as Map)) .toList(), ); @@ -5828,14 +5828,14 @@ class ColumnConfiguration { factory ColumnConfiguration.fromJson(Map json) { return ColumnConfiguration( changeDetectingColumns: (json['ChangeDetectingColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), documentDataColumnName: json['DocumentDataColumnName'] as String, documentIdColumnName: json['DocumentIdColumnName'] as String, documentTitleColumnName: json['DocumentTitleColumnName'] as String?, fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -5910,7 +5910,7 @@ class ConfluenceAttachmentConfiguration { Map json) { return ConfluenceAttachmentConfiguration( attachmentFieldMappings: (json['AttachmentFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfluenceAttachmentToIndexFieldMapping.fromJson( e as Map)) .toList(), @@ -6042,7 +6042,7 @@ class ConfluenceBlogConfiguration { factory ConfluenceBlogConfiguration.fromJson(Map json) { return ConfluenceBlogConfiguration( blogFieldMappings: (json['BlogFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfluenceBlogToIndexFieldMapping.fromJson( e as Map)) .toList(), @@ -6238,11 +6238,11 @@ class ConfluenceConfiguration { json['BlogConfiguration'] as Map) : null, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), pageConfiguration: json['PageConfiguration'] != null @@ -6316,7 +6316,7 @@ class ConfluencePageConfiguration { factory ConfluencePageConfiguration.fromJson(Map json) { return ConfluencePageConfiguration( pageFieldMappings: (json['PageFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfluencePageToIndexFieldMapping.fromJson( e as Map)) .toList(), @@ -6455,15 +6455,15 @@ class ConfluenceSpaceConfiguration { crawlArchivedSpaces: json['CrawlArchivedSpaces'] as bool?, crawlPersonalSpaces: json['CrawlPersonalSpaces'] as bool?, excludeSpaces: (json['ExcludeSpaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includeSpaces: (json['IncludeSpaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), spaceFieldMappings: (json['SpaceFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfluenceSpaceToIndexFieldMapping.fromJson( e as Map)) .toList(), @@ -6652,14 +6652,12 @@ class ContentSourceConfiguration { factory ContentSourceConfiguration.fromJson(Map json) { return ContentSourceConfiguration( dataSourceIds: (json['DataSourceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), directPutContent: json['DirectPutContent'] as bool?, - faqIds: (json['FaqIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + faqIds: + (json['FaqIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6976,7 +6974,7 @@ class CustomDocumentEnrichmentConfiguration { Map json) { return CustomDocumentEnrichmentConfiguration( inlineConfigurations: (json['InlineConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InlineCustomDocumentEnrichmentConfiguration.fromJson( e as Map)) .toList(), @@ -7725,13 +7723,11 @@ class DataSourceVpcConfiguration { factory DataSourceVpcConfiguration.fromJson(Map json) { return DataSourceVpcConfiguration( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['SubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['SubnetIds'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -7896,14 +7892,14 @@ class DescribeAccessControlConfigurationResponse { return DescribeAccessControlConfigurationResponse( name: json['Name'] as String, accessControlList: (json['AccessControlList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Principal.fromJson(e as Map)) .toList(), description: json['Description'] as String?, errorMessage: json['ErrorMessage'] as String?, hierarchicalAccessControlList: (json['HierarchicalAccessControlList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HierarchicalPrincipal.fromJson(e as Map)) .toList(), ); @@ -8151,7 +8147,7 @@ class DescribeExperienceResponse { createdAt: timeStampFromJson(json['CreatedAt']), description: json['Description'] as String?, endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperienceEndpoint.fromJson(e as Map)) .toList(), errorMessage: json['ErrorMessage'] as String?, @@ -8363,13 +8359,13 @@ class DescribeFeaturedResultsSetResponse { creationTimestamp: json['CreationTimestamp'] as int?, description: json['Description'] as String?, featuredDocumentsMissing: (json['FeaturedDocumentsMissing'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeaturedDocumentMissing.fromJson(e as Map)) .toList(), featuredDocumentsWithMetadata: (json['FeaturedDocumentsWithMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeaturedDocumentWithMetadata.fromJson(e as Map)) .toList(), @@ -8377,7 +8373,7 @@ class DescribeFeaturedResultsSetResponse { featuredResultsSetName: json['FeaturedResultsSetName'] as String?, lastUpdatedTimestamp: json['LastUpdatedTimestamp'] as int?, queryTexts: (json['QueryTexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: @@ -8510,7 +8506,7 @@ class DescribeIndexResponse { description: json['Description'] as String?, documentMetadataConfigurations: (json['DocumentMetadataConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentMetadataConfiguration.fromJson(e as Map)) .toList(), @@ -8540,7 +8536,7 @@ class DescribeIndexResponse { as Map) : null, userTokenConfigurations: (json['UserTokenConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => UserTokenConfiguration.fromJson(e as Map)) .toList(), @@ -8645,7 +8641,7 @@ class DescribePrincipalMappingResponse { dataSourceId: json['DataSourceId'] as String?, groupId: json['GroupId'] as String?, groupOrderingIdSummaries: (json['GroupOrderingIdSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GroupOrderingIdSummary.fromJson(e as Map)) .toList(), @@ -9050,7 +9046,7 @@ class DisassociateEntitiesFromExperienceResponse { Map json) { return DisassociateEntitiesFromExperienceResponse( failedEntityList: (json['FailedEntityList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedEntity.fromJson(e as Map)) .toList(), ); @@ -9077,7 +9073,7 @@ class DisassociatePersonasFromEntitiesResponse { Map json) { return DisassociatePersonasFromEntitiesResponse( failedEntityList: (json['FailedEntityList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedEntity.fromJson(e as Map)) .toList(), ); @@ -9392,7 +9388,7 @@ class DocumentAttributeValue { dateValue: timeStampFromJson(json['DateValue']), longValue: json['LongValue'] as int?, stringListValue: (json['StringListValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stringValue: json['StringValue'] as String?, @@ -9451,7 +9447,7 @@ class DocumentAttributeValueCountPair { json['DocumentAttributeValue'] as Map) : null, facetResults: (json['FacetResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FacetResult.fromJson(e as Map)) .toList(), ); @@ -9878,7 +9874,7 @@ class ExpandedResultItem { factory ExpandedResultItem.fromJson(Map json) { return ExpandedResultItem( documentAttributes: (json['DocumentAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttribute.fromJson(e as Map)) .toList(), documentExcerpt: json['DocumentExcerpt'] != null @@ -10087,7 +10083,7 @@ class ExperiencesSummary { return ExperiencesSummary( createdAt: timeStampFromJson(json['CreatedAt']), endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperienceEndpoint.fromJson(e as Map)) .toList(), id: json['Id'] as String?, @@ -10190,7 +10186,7 @@ class FacetResult { documentAttributeKey: json['DocumentAttributeKey'] as String?, documentAttributeValueCountPairs: (json['DocumentAttributeValueCountPairs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttributeValueCountPair.fromJson( e as Map)) .toList(), @@ -10532,12 +10528,12 @@ class FeaturedResultsItem { factory FeaturedResultsItem.fromJson(Map json) { return FeaturedResultsItem( additionalAttributes: (json['AdditionalAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalResultAttribute.fromJson(e as Map)) .toList(), documentAttributes: (json['DocumentAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttribute.fromJson(e as Map)) .toList(), documentExcerpt: json['DocumentExcerpt'] != null @@ -10657,14 +10653,14 @@ class FeaturedResultsSet { creationTimestamp: json['CreationTimestamp'] as int?, description: json['Description'] as String?, featuredDocuments: (json['FeaturedDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeaturedDocument.fromJson(e as Map)) .toList(), featuredResultsSetId: json['FeaturedResultsSetId'] as String?, featuredResultsSetName: json['FeaturedResultsSetName'] as String?, lastUpdatedTimestamp: json['LastUpdatedTimestamp'] as int?, queryTexts: (json['QueryTexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: @@ -10875,16 +10871,16 @@ class FsxConfiguration { vpcConfiguration: DataSourceVpcConfiguration.fromJson( json['VpcConfiguration'] as Map), exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), secretArn: json['SecretArn'] as String?, @@ -10941,7 +10937,7 @@ class GetQuerySuggestionsResponse { return GetQuerySuggestionsResponse( querySuggestionsId: json['QuerySuggestionsId'] as String?, suggestions: (json['Suggestions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Suggestion.fromJson(e as Map)) .toList(), ); @@ -10988,12 +10984,11 @@ class GetSnapshotsResponse { json['SnapShotTimeFilter'] as Map) : null, snapshotsData: (json['SnapshotsData'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), snapshotsDataHeader: (json['SnapshotsDataHeader'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11237,21 +11232,21 @@ class GitHubConfiguration { return GitHubConfiguration( secretArn: json['SecretArn'] as String, exclusionFileNamePatterns: (json['ExclusionFileNamePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), exclusionFileTypePatterns: (json['ExclusionFileTypePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), exclusionFolderNamePatterns: (json['ExclusionFolderNamePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), gitHubCommitConfigurationFieldMappings: (json['GitHubCommitConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), @@ -11262,58 +11257,58 @@ class GitHubConfiguration { : null, gitHubIssueAttachmentConfigurationFieldMappings: (json['GitHubIssueAttachmentConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), gitHubIssueCommentConfigurationFieldMappings: (json['GitHubIssueCommentConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), gitHubIssueDocumentConfigurationFieldMappings: (json['GitHubIssueDocumentConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), gitHubPullRequestCommentConfigurationFieldMappings: (json['GitHubPullRequestCommentConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), gitHubPullRequestDocumentAttachmentConfigurationFieldMappings: (json['GitHubPullRequestDocumentAttachmentConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), gitHubPullRequestDocumentConfigurationFieldMappings: (json['GitHubPullRequestDocumentConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), gitHubRepositoryConfigurationFieldMappings: (json['GitHubRepositoryConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), inclusionFileNamePatterns: (json['InclusionFileNamePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionFileTypePatterns: (json['InclusionFileTypePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionFolderNamePatterns: (json['InclusionFolderNamePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), onPremiseConfiguration: json['OnPremiseConfiguration'] != null @@ -11321,7 +11316,7 @@ class GitHubConfiguration { json['OnPremiseConfiguration'] as Map) : null, repositoryFilter: (json['RepositoryFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), saaSConfiguration: json['SaaSConfiguration'] != null @@ -11557,28 +11552,28 @@ class GoogleDriveConfiguration { return GoogleDriveConfiguration( secretArn: json['SecretArn'] as String, excludeMimeTypes: (json['ExcludeMimeTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), excludeSharedDrives: (json['ExcludeSharedDrives'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), excludeUserAccounts: (json['ExcludeUserAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11764,7 +11759,7 @@ class HierarchicalPrincipal { factory HierarchicalPrincipal.fromJson(Map json) { return HierarchicalPrincipal( principalList: (json['PrincipalList'] as List) - .whereNotNull() + .nonNulls .map((e) => Principal.fromJson(e as Map)) .toList(), ); @@ -12255,56 +12250,52 @@ class JiraConfiguration { jiraAccountUrl: json['JiraAccountUrl'] as String, secretArn: json['SecretArn'] as String, attachmentFieldMappings: (json['AttachmentFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), commentFieldMappings: (json['CommentFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), issueFieldMappings: (json['IssueFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), issueSubEntityFilter: (json['IssueSubEntityFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IssueSubEntity.fromString((e as String))) .toList(), issueType: (json['IssueType'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - project: (json['Project'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + project: + (json['Project'] as List?)?.nonNulls.map((e) => e as String).toList(), projectFieldMappings: (json['ProjectFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), - status: (json['Status'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + status: + (json['Status'] as List?)?.nonNulls.map((e) => e as String).toList(), useChangeLog: json['UseChangeLog'] as bool?, vpcConfiguration: json['VpcConfiguration'] != null ? DataSourceVpcConfiguration.fromJson( json['VpcConfiguration'] as Map) : null, workLogFieldMappings: (json['WorkLogFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -12482,7 +12473,7 @@ class ListAccessControlConfigurationsResponse { Map json) { return ListAccessControlConfigurationsResponse( accessControlConfigurations: (json['AccessControlConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => AccessControlConfigurationSummary.fromJson( e as Map)) .toList(), @@ -12516,7 +12507,7 @@ class ListDataSourceSyncJobsResponse { factory ListDataSourceSyncJobsResponse.fromJson(Map json) { return ListDataSourceSyncJobsResponse( history: (json['History'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceSyncJob.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12551,7 +12542,7 @@ class ListDataSourcesResponse { return ListDataSourcesResponse( nextToken: json['NextToken'] as String?, summaryItems: (json['SummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceSummary.fromJson(e as Map)) .toList(), ); @@ -12584,7 +12575,7 @@ class ListEntityPersonasResponse { return ListEntityPersonasResponse( nextToken: json['NextToken'] as String?, summaryItems: (json['SummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PersonasSummary.fromJson(e as Map)) .toList(), ); @@ -12617,7 +12608,7 @@ class ListExperienceEntitiesResponse { return ListExperienceEntitiesResponse( nextToken: json['NextToken'] as String?, summaryItems: (json['SummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperienceEntitiesSummary.fromJson(e as Map)) .toList(), @@ -12652,7 +12643,7 @@ class ListExperiencesResponse { return ListExperiencesResponse( nextToken: json['NextToken'] as String?, summaryItems: (json['SummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperiencesSummary.fromJson(e as Map)) .toList(), ); @@ -12684,7 +12675,7 @@ class ListFaqsResponse { factory ListFaqsResponse.fromJson(Map json) { return ListFaqsResponse( faqSummaryItems: (json['FaqSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaqSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12718,7 +12709,7 @@ class ListFeaturedResultsSetsResponse { return ListFeaturedResultsSetsResponse( featuredResultsSetSummaryItems: (json['FeaturedResultsSetSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeaturedResultsSetSummary.fromJson(e as Map)) .toList(), @@ -12756,7 +12747,7 @@ class ListGroupsOlderThanOrderingIdResponse { Map json) { return ListGroupsOlderThanOrderingIdResponse( groupsSummaries: (json['GroupsSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12790,7 +12781,7 @@ class ListIndicesResponse { return ListIndicesResponse( indexConfigurationSummaryItems: (json['IndexConfigurationSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexConfigurationSummary.fromJson(e as Map)) .toList(), @@ -12834,7 +12825,7 @@ class ListQuerySuggestionsBlockListsResponse { Map json) { return ListQuerySuggestionsBlockListsResponse( blockListSummaryItems: (json['BlockListSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QuerySuggestionsBlockListSummary.fromJson( e as Map)) .toList(), @@ -12864,7 +12855,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -12895,7 +12886,7 @@ class ListThesauriResponse { return ListThesauriResponse( nextToken: json['NextToken'] as String?, thesaurusSummaryItems: (json['ThesaurusSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThesaurusSummary.fromJson(e as Map)) .toList(), ); @@ -13114,16 +13105,16 @@ class OneDriveConfiguration { tenantDomain: json['TenantDomain'] as String, disableLocalGroups: json['DisableLocalGroups'] as bool?, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -13170,7 +13161,7 @@ class OneDriveUsers { factory OneDriveUsers.fromJson(Map json) { return OneDriveUsers( oneDriveUserList: (json['OneDriveUserList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), oneDriveUserS3Path: json['OneDriveUserS3Path'] != null @@ -13471,25 +13462,25 @@ class QueryResult { factory QueryResult.fromJson(Map json) { return QueryResult( facetResults: (json['FacetResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FacetResult.fromJson(e as Map)) .toList(), featuredResultsItems: (json['FeaturedResultsItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeaturedResultsItem.fromJson(e as Map)) .toList(), queryId: json['QueryId'] as String?, resultItems: (json['ResultItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryResultItem.fromJson(e as Map)) .toList(), spellCorrectedQueries: (json['SpellCorrectedQueries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SpellCorrectedQuery.fromJson(e as Map)) .toList(), totalNumberOfResults: json['TotalNumberOfResults'] as int?, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -13622,7 +13613,7 @@ class QueryResultItem { factory QueryResultItem.fromJson(Map json) { return QueryResultItem( additionalAttributes: (json['AdditionalAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalResultAttribute.fromJson(e as Map)) .toList(), @@ -13631,7 +13622,7 @@ class QueryResultItem { json['CollapsedResultDetail'] as Map) : null, documentAttributes: (json['DocumentAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttribute.fromJson(e as Map)) .toList(), documentExcerpt: json['DocumentExcerpt'] != null @@ -13913,7 +13904,7 @@ class QuipConfiguration { domain: json['Domain'] as String, secretArn: json['SecretArn'] as String, attachmentFieldMappings: (json['AttachmentFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -13921,24 +13912,24 @@ class QuipConfiguration { crawlChatRooms: json['CrawlChatRooms'] as bool?, crawlFileComments: json['CrawlFileComments'] as bool?, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), folderIds: (json['FolderIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), messageFieldMappings: (json['MessageFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), threadFieldMappings: (json['ThreadFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -14143,7 +14134,7 @@ class RetrieveResult { return RetrieveResult( queryId: json['QueryId'] as String?, resultItems: (json['ResultItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RetrieveResultItem.fromJson(e as Map)) .toList(), ); @@ -14200,7 +14191,7 @@ class RetrieveResultItem { return RetrieveResultItem( content: json['Content'] as String?, documentAttributes: (json['DocumentAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttribute.fromJson(e as Map)) .toList(), documentId: json['DocumentId'] as String?, @@ -14375,15 +14366,15 @@ class S3DataSourceConfiguration { json['DocumentsMetadataConfiguration'] as Map) : null, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionPrefixes: (json['InclusionPrefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -14508,12 +14499,12 @@ class SalesforceChatterFeedConfiguration { documentDataFieldName: json['DocumentDataFieldName'] as String, documentTitleFieldName: json['DocumentTitleFieldName'] as String?, fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), includeFilterTypes: (json['IncludeFilterTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SalesforceChatterFeedIncludeFilterType.fromString((e as String))) .toList(), @@ -14651,12 +14642,12 @@ class SalesforceConfiguration { crawlAttachments: json['CrawlAttachments'] as bool?, excludeAttachmentFilePatterns: (json['ExcludeAttachmentFilePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includeAttachmentFilePatterns: (json['IncludeAttachmentFilePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), knowledgeArticleConfiguration: @@ -14672,7 +14663,7 @@ class SalesforceConfiguration { : null, standardObjectConfigurations: (json['StandardObjectConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SalesforceStandardObjectConfiguration.fromJson( e as Map)) .toList(), @@ -14748,7 +14739,7 @@ class SalesforceCustomKnowledgeArticleTypeConfiguration { name: json['Name'] as String, documentTitleFieldName: json['DocumentTitleFieldName'] as String?, fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -14797,12 +14788,12 @@ class SalesforceKnowledgeArticleConfiguration { Map json) { return SalesforceKnowledgeArticleConfiguration( includedStates: (json['IncludedStates'] as List) - .whereNotNull() + .nonNulls .map((e) => SalesforceKnowledgeArticleState.fromString((e as String))) .toList(), customKnowledgeArticleTypeConfigurations: (json['CustomKnowledgeArticleTypeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SalesforceCustomKnowledgeArticleTypeConfiguration.fromJson( e as Map)) @@ -14879,7 +14870,7 @@ class SalesforceStandardKnowledgeArticleTypeConfiguration { documentDataFieldName: json['DocumentDataFieldName'] as String, documentTitleFieldName: json['DocumentTitleFieldName'] as String?, fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -14919,7 +14910,7 @@ class SalesforceStandardObjectAttachmentConfiguration { return SalesforceStandardObjectAttachmentConfiguration( documentTitleFieldName: json['DocumentTitleFieldName'] as String?, fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -14973,7 +14964,7 @@ class SalesforceStandardObjectConfiguration { name: SalesforceStandardObjectName.fromString((json['Name'] as String)), documentTitleFieldName: json['DocumentTitleFieldName'] as String?, fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -15164,10 +15155,8 @@ class SeedUrlConfiguration { factory SeedUrlConfiguration.fromJson(Map json) { return SeedUrlConfiguration( - seedUrls: (json['SeedUrls'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + seedUrls: + (json['SeedUrls'] as List).nonNulls.map((e) => e as String).toList(), webCrawlerMode: (json['WebCrawlerMode'] as String?)?.let(WebCrawlerMode.fromString), ); @@ -15395,18 +15384,18 @@ class ServiceNowKnowledgeArticleConfiguration { documentTitleFieldName: json['DocumentTitleFieldName'] as String?, excludeAttachmentFilePatterns: (json['ExcludeAttachmentFilePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), filterQuery: json['FilterQuery'] as String?, includeAttachmentFilePatterns: (json['IncludeAttachmentFilePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15492,17 +15481,17 @@ class ServiceNowServiceCatalogConfiguration { documentTitleFieldName: json['DocumentTitleFieldName'] as String?, excludeAttachmentFilePatterns: (json['ExcludeAttachmentFilePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), includeAttachmentFilePatterns: (json['IncludeAttachmentFilePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15651,26 +15640,23 @@ class SharePointConfiguration { secretArn: json['SecretArn'] as String, sharePointVersion: SharePointVersion.fromString((json['SharePointVersion'] as String)), - urls: (json['Urls'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + urls: (json['Urls'] as List).nonNulls.map((e) => e as String).toList(), authenticationType: (json['AuthenticationType'] as String?) ?.let(SharePointOnlineAuthenticationType.fromString), crawlAttachments: json['CrawlAttachments'] as bool?, disableLocalGroups: json['DisableLocalGroups'] as bool?, documentTitleFieldName: json['DocumentTitleFieldName'] as String?, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), proxyConfiguration: json['ProxyConfiguration'] != null @@ -15777,10 +15763,8 @@ class SiteMapsConfiguration { factory SiteMapsConfiguration.fromJson(Map json) { return SiteMapsConfiguration( - siteMaps: (json['SiteMaps'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + siteMaps: + (json['SiteMaps'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -15929,32 +15913,32 @@ class SlackConfiguration { secretArn: json['SecretArn'] as String, sinceCrawlDate: json['SinceCrawlDate'] as String, slackEntityList: (json['SlackEntityList'] as List) - .whereNotNull() + .nonNulls .map((e) => SlackEntity.fromString((e as String))) .toList(), teamId: json['TeamId'] as String, crawlBotMessage: json['CrawlBotMessage'] as bool?, excludeArchived: json['ExcludeArchived'] as bool?, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lookBackPeriod: json['LookBackPeriod'] as int?, privateChannelFilter: (json['PrivateChannelFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), publicChannelFilter: (json['PublicChannelFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), useChangeLog: json['UseChangeLog'] as bool?, @@ -16124,12 +16108,12 @@ class SourceDocument { factory SourceDocument.fromJson(Map json) { return SourceDocument( additionalAttributes: (json['AdditionalAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttribute.fromJson(e as Map)) .toList(), documentId: json['DocumentId'] as String?, suggestionAttributes: (json['SuggestionAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -16165,7 +16149,7 @@ class SpellCorrectedQuery { factory SpellCorrectedQuery.fromJson(Map json) { return SpellCorrectedQuery( corrections: (json['Corrections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Correction.fromJson(e as Map)) .toList(), suggestedQueryText: json['SuggestedQueryText'] as String?, @@ -16381,7 +16365,7 @@ class Suggestion { return Suggestion( id: json['Id'] as String?, sourceDocuments: (json['SourceDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceDocument.fromJson(e as Map)) .toList(), value: json['Value'] != null @@ -16450,7 +16434,7 @@ class SuggestionTextWithHighlights { factory SuggestionTextWithHighlights.fromJson(Map json) { return SuggestionTextWithHighlights( highlights: (json['Highlights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuggestionHighlight.fromJson(e as Map)) .toList(), text: json['Text'] as String?, @@ -16577,7 +16561,7 @@ class TableExcerpt { factory TableExcerpt.fromJson(Map json) { return TableExcerpt( rows: (json['Rows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableRow.fromJson(e as Map)) .toList(), totalNumberOfRows: json['TotalNumberOfRows'] as int?, @@ -16606,7 +16590,7 @@ class TableRow { factory TableRow.fromJson(Map json) { return TableRow( cells: (json['Cells'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableCell.fromJson(e as Map)) .toList(), ); @@ -16761,7 +16745,7 @@ class TextWithHighlights { factory TextWithHighlights.fromJson(Map json) { return TextWithHighlights( highlights: (json['Highlights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Highlight.fromJson(e as Map)) .toList(), text: json['Text'] as String?, @@ -17371,11 +17355,11 @@ class WebCrawlerConfiguration { json['ProxyConfiguration'] as Map) : null, urlExclusionPatterns: (json['UrlExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), urlInclusionPatterns: (json['UrlInclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -17495,16 +17479,16 @@ class WorkDocsConfiguration { organizationId: json['OrganizationId'] as String, crawlComments: json['CrawlComments'] as bool?, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), useChangeLog: json['UseChangeLog'] as bool?, diff --git a/aws_client/lib/src/generated/kendra_ranking/v2022_10_19.dart b/aws_client/lib/src/generated/kendra_ranking/v2022_10_19.dart index 62c51d1cd..810426224 100644 --- a/aws_client/lib/src/generated/kendra_ranking/v2022_10_19.dart +++ b/aws_client/lib/src/generated/kendra_ranking/v2022_10_19.dart @@ -686,7 +686,7 @@ class ListRescoreExecutionPlansResponse { return ListRescoreExecutionPlansResponse( nextToken: json['NextToken'] as String?, summaryItems: (json['SummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RescoreExecutionPlanSummary.fromJson(e as Map)) .toList(), @@ -715,7 +715,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -821,7 +821,7 @@ class RescoreResult { return RescoreResult( rescoreId: json['RescoreId'] as String?, resultItems: (json['ResultItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RescoreResultItem.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/keyspaces/v2022_02_10.dart b/aws_client/lib/src/generated/keyspaces/v2022_02_10.dart index cfa236d79..83b001b6f 100644 --- a/aws_client/lib/src/generated/keyspaces/v2022_02_10.dart +++ b/aws_client/lib/src/generated/keyspaces/v2022_02_10.dart @@ -1949,7 +1949,7 @@ class GetKeyspaceResponse { Rs.fromString((json['replicationStrategy'] as String)), resourceArn: json['resourceArn'] as String, replicationRegions: (json['replicationRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2005,7 +2005,7 @@ class GetTableAutoScalingSettingsResponse { json['autoScalingSpecification'] as Map) : null, replicaSpecifications: (json['replicaSpecifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaAutoScalingSpecification.fromJson( e as Map)) .toList(), @@ -2127,7 +2127,7 @@ class GetTableResponse { json['pointInTimeRecovery'] as Map) : null, replicaSpecifications: (json['replicaSpecifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaSpecificationSummary.fromJson(e as Map)) .toList(), @@ -2214,7 +2214,7 @@ class KeyspaceSummary { Rs.fromString((json['replicationStrategy'] as String)), resourceArn: json['resourceArn'] as String, replicationRegions: (json['replicationRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2250,7 +2250,7 @@ class ListKeyspacesResponse { factory ListKeyspacesResponse.fromJson(Map json) { return ListKeyspacesResponse( keyspaces: (json['keyspaces'] as List) - .whereNotNull() + .nonNulls .map((e) => KeyspaceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2284,7 +2284,7 @@ class ListTablesResponse { return ListTablesResponse( nextToken: json['nextToken'] as String?, tables: (json['tables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableSummary.fromJson(e as Map)) .toList(), ); @@ -2317,7 +2317,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['nextToken'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2659,19 +2659,19 @@ class SchemaDefinition { factory SchemaDefinition.fromJson(Map json) { return SchemaDefinition( allColumns: (json['allColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnDefinition.fromJson(e as Map)) .toList(), partitionKeys: (json['partitionKeys'] as List) - .whereNotNull() + .nonNulls .map((e) => PartitionKey.fromJson(e as Map)) .toList(), clusteringKeys: (json['clusteringKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusteringKey.fromJson(e as Map)) .toList(), staticColumns: (json['staticColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StaticColumn.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/kinesis/v2013_12_02.dart b/aws_client/lib/src/generated/kinesis/v2013_12_02.dart index 77f535c16..2252db22f 100644 --- a/aws_client/lib/src/generated/kinesis/v2013_12_02.dart +++ b/aws_client/lib/src/generated/kinesis/v2013_12_02.dart @@ -2569,7 +2569,7 @@ class ChildShard { hashKeyRange: HashKeyRange.fromJson(json['HashKeyRange'] as Map), parentShards: (json['ParentShards'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), shardId: json['ShardId'] as String, @@ -2899,7 +2899,7 @@ class EnhancedMetrics { factory EnhancedMetrics.fromJson(Map json) { return EnhancedMetrics( shardLevelMetrics: (json['ShardLevelMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricsName.fromString((e as String))) .toList(), ); @@ -2941,11 +2941,11 @@ class EnhancedMonitoringOutput { factory EnhancedMonitoringOutput.fromJson(Map json) { return EnhancedMonitoringOutput( currentShardLevelMetrics: (json['CurrentShardLevelMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricsName.fromString((e as String))) .toList(), desiredShardLevelMetrics: (json['DesiredShardLevelMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricsName.fromString((e as String))) .toList(), streamARN: json['StreamARN'] as String?, @@ -3002,11 +3002,11 @@ class GetRecordsOutput { factory GetRecordsOutput.fromJson(Map json) { return GetRecordsOutput( records: (json['Records'] as List) - .whereNotNull() + .nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), childShards: (json['ChildShards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChildShard.fromJson(e as Map)) .toList(), millisBehindLatest: json['MillisBehindLatest'] as int?, @@ -3139,7 +3139,7 @@ class ListShardsOutput { return ListShardsOutput( nextToken: json['NextToken'] as String?, shards: (json['Shards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Shard.fromJson(e as Map)) .toList(), ); @@ -3186,7 +3186,7 @@ class ListStreamConsumersOutput { factory ListStreamConsumersOutput.fromJson(Map json) { return ListStreamConsumersOutput( consumers: (json['Consumers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Consumer.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3229,12 +3229,12 @@ class ListStreamsOutput { return ListStreamsOutput( hasMoreStreams: json['HasMoreStreams'] as bool, streamNames: (json['StreamNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, streamSummaries: (json['StreamSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamSummary.fromJson(e as Map)) .toList(), ); @@ -3275,7 +3275,7 @@ class ListTagsForStreamOutput { return ListTagsForStreamOutput( hasMoreTags: json['HasMoreTags'] as bool, tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3399,7 +3399,7 @@ class PutRecordsOutput { factory PutRecordsOutput.fromJson(Map json) { return PutRecordsOutput( records: (json['Records'] as List) - .whereNotNull() + .nonNulls .map((e) => PutRecordsResultEntry.fromJson(e as Map)) .toList(), encryptionType: @@ -3934,13 +3934,13 @@ class StreamDescription { factory StreamDescription.fromJson(Map json) { return StreamDescription( enhancedMonitoring: (json['EnhancedMonitoring'] as List) - .whereNotNull() + .nonNulls .map((e) => EnhancedMetrics.fromJson(e as Map)) .toList(), hasMoreShards: json['HasMoreShards'] as bool, retentionPeriodHours: json['RetentionPeriodHours'] as int, shards: (json['Shards'] as List) - .whereNotNull() + .nonNulls .map((e) => Shard.fromJson(e as Map)) .toList(), streamARN: json['StreamARN'] as String, @@ -4099,7 +4099,7 @@ class StreamDescriptionSummary { factory StreamDescriptionSummary.fromJson(Map json) { return StreamDescriptionSummary( enhancedMonitoring: (json['EnhancedMonitoring'] as List) - .whereNotNull() + .nonNulls .map((e) => EnhancedMetrics.fromJson(e as Map)) .toList(), openShardCount: json['OpenShardCount'] as int, diff --git a/aws_client/lib/src/generated/kinesis_analytics/v2015_08_14.dart b/aws_client/lib/src/generated/kinesis_analytics/v2015_08_14.dart index 33190d550..32dd8764e 100644 --- a/aws_client/lib/src/generated/kinesis_analytics/v2015_08_14.dart +++ b/aws_client/lib/src/generated/kinesis_analytics/v2015_08_14.dart @@ -1525,23 +1525,23 @@ class ApplicationDetail { applicationDescription: json['ApplicationDescription'] as String?, cloudWatchLoggingOptionDescriptions: (json['CloudWatchLoggingOptionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchLoggingOptionDescription.fromJson( e as Map)) .toList(), createTimestamp: timeStampFromJson(json['CreateTimestamp']), inputDescriptions: (json['InputDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDescription.fromJson(e as Map)) .toList(), lastUpdateTimestamp: timeStampFromJson(json['LastUpdateTimestamp']), outputDescriptions: (json['OutputDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDescription.fromJson(e as Map)) .toList(), referenceDataSourceDescriptions: (json['ReferenceDataSourceDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceDataSourceDescription.fromJson( e as Map)) .toList(), @@ -2008,16 +2008,15 @@ class DiscoverInputSchemaResponse { ? SourceSchema.fromJson(json['InputSchema'] as Map) : null, parsedInputRecords: (json['ParsedInputRecords'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), processedInputRecords: (json['ProcessedInputRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rawInputRecords: (json['RawInputRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2208,7 +2207,7 @@ class InputDescription { factory InputDescription.fromJson(Map json) { return InputDescription( inAppStreamNames: (json['InAppStreamNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inputId: json['InputId'] as String?, @@ -3153,7 +3152,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applicationSummaries: (json['ApplicationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), hasMoreApplications: json['HasMoreApplications'] as bool, @@ -3181,7 +3180,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3839,7 +3838,7 @@ class SourceSchema { factory SourceSchema.fromJson(Map json) { return SourceSchema( recordColumns: (json['RecordColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => RecordColumn.fromJson(e as Map)) .toList(), recordFormat: diff --git a/aws_client/lib/src/generated/kinesis_analytics_v2/v2018_05_23.dart b/aws_client/lib/src/generated/kinesis_analytics_v2/v2018_05_23.dart index 9d6024abe..d74c3b009 100644 --- a/aws_client/lib/src/generated/kinesis_analytics_v2/v2018_05_23.dart +++ b/aws_client/lib/src/generated/kinesis_analytics_v2/v2018_05_23.dart @@ -1862,7 +1862,7 @@ class AddApplicationCloudWatchLoggingOptionResponse { applicationVersionId: json['ApplicationVersionId'] as int?, cloudWatchLoggingOptionDescriptions: (json['CloudWatchLoggingOptionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchLoggingOptionDescription.fromJson( e as Map)) .toList(), @@ -1963,7 +1963,7 @@ class AddApplicationInputResponse { applicationARN: json['ApplicationARN'] as String?, applicationVersionId: json['ApplicationVersionId'] as int?, inputDescriptions: (json['InputDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDescription.fromJson(e as Map)) .toList(), ); @@ -2006,7 +2006,7 @@ class AddApplicationOutputResponse { applicationARN: json['ApplicationARN'] as String?, applicationVersionId: json['ApplicationVersionId'] as int?, outputDescriptions: (json['OutputDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDescription.fromJson(e as Map)) .toList(), ); @@ -2049,7 +2049,7 @@ class AddApplicationReferenceDataSourceResponse { applicationVersionId: json['ApplicationVersionId'] as int?, referenceDataSourceDescriptions: (json['ReferenceDataSourceDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceDataSourceDescription.fromJson( e as Map)) .toList(), @@ -2357,7 +2357,7 @@ class ApplicationConfigurationDescription { : null, vpcConfigurationDescriptions: (json['VpcConfigurationDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcConfigurationDescription.fromJson(e as Map)) .toList(), @@ -2606,7 +2606,7 @@ class ApplicationDetail { json['ApplicationVersionUpdatedFrom'] as int?, cloudWatchLoggingOptionDescriptions: (json['CloudWatchLoggingOptionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchLoggingOptionDescription.fromJson( e as Map)) .toList(), @@ -3768,7 +3768,7 @@ class DeleteApplicationCloudWatchLoggingOptionResponse { applicationVersionId: json['ApplicationVersionId'] as int?, cloudWatchLoggingOptionDescriptions: (json['CloudWatchLoggingOptionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchLoggingOptionDescription.fromJson( e as Map)) .toList(), @@ -4135,16 +4135,15 @@ class DiscoverInputSchemaResponse { ? SourceSchema.fromJson(json['InputSchema'] as Map) : null, parsedInputRecords: (json['ParsedInputRecords'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), processedInputRecords: (json['ProcessedInputRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rawInputRecords: (json['RawInputRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4195,7 +4194,7 @@ class EnvironmentPropertyDescriptions { factory EnvironmentPropertyDescriptions.fromJson(Map json) { return EnvironmentPropertyDescriptions( propertyGroupDescriptions: (json['PropertyGroupDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PropertyGroup.fromJson(e as Map)) .toList(), ); @@ -4610,7 +4609,7 @@ class InputDescription { factory InputDescription.fromJson(Map json) { return InputDescription( inAppStreamNames: (json['InAppStreamNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inputId: json['InputId'] as String?, @@ -5495,7 +5494,7 @@ class ListApplicationSnapshotsResponse { return ListApplicationSnapshotsResponse( nextToken: json['NextToken'] as String?, snapshotSummaries: (json['SnapshotSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotDetails.fromJson(e as Map)) .toList(), ); @@ -5536,7 +5535,7 @@ class ListApplicationVersionsResponse { return ListApplicationVersionsResponse( applicationVersionSummaries: (json['ApplicationVersionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationVersionSummary.fromJson(e as Map)) .toList(), @@ -5575,7 +5574,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applicationSummaries: (json['ApplicationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5603,7 +5602,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7056,7 +7055,7 @@ class SourceSchema { factory SourceSchema.fromJson(Map json) { return SourceSchema( recordColumns: (json['RecordColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => RecordColumn.fromJson(e as Map)) .toList(), recordFormat: @@ -7136,16 +7135,16 @@ class SqlApplicationConfigurationDescription { Map json) { return SqlApplicationConfigurationDescription( inputDescriptions: (json['InputDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDescription.fromJson(e as Map)) .toList(), outputDescriptions: (json['OutputDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDescription.fromJson(e as Map)) .toList(), referenceDataSourceDescriptions: (json['ReferenceDataSourceDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceDataSourceDescription.fromJson( e as Map)) .toList(), @@ -7442,13 +7441,11 @@ class VpcConfigurationDescription { factory VpcConfigurationDescription.fromJson(Map json) { return VpcConfigurationDescription( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['SubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['SubnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcConfigurationId: json['VpcConfigurationId'] as String, vpcId: json['VpcId'] as String, ); @@ -7587,7 +7584,7 @@ class ZeppelinApplicationConfigurationDescription { : null, customArtifactsConfigurationDescription: (json['CustomArtifactsConfigurationDescription'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomArtifactConfigurationDescription.fromJson( e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/kinesis_video/v2017_09_30.dart b/aws_client/lib/src/generated/kinesis_video/v2017_09_30.dart index 88193355d..dfbda012c 100644 --- a/aws_client/lib/src/generated/kinesis_video/v2017_09_30.dart +++ b/aws_client/lib/src/generated/kinesis_video/v2017_09_30.dart @@ -1909,7 +1909,7 @@ class DescribeMappedResourceConfigurationOutput { return DescribeMappedResourceConfigurationOutput( mappedResourceConfigurationList: (json['MappedResourceConfigurationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MappedResourceConfigurationListItem.fromJson( e as Map)) .toList(), @@ -2194,7 +2194,7 @@ class GetSignalingChannelEndpointOutput { Map json) { return GetSignalingChannelEndpointOutput( resourceEndpointList: (json['ResourceEndpointList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceEndpointListItem.fromJson(e as Map)) .toList(), @@ -2545,7 +2545,7 @@ class ListEdgeAgentConfigurationsOutput { Map json) { return ListEdgeAgentConfigurationsOutput( edgeConfigs: (json['EdgeConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListEdgeAgentConfigurationsEdgeConfig.fromJson( e as Map)) .toList(), @@ -2579,7 +2579,7 @@ class ListSignalingChannelsOutput { factory ListSignalingChannelsOutput.fromJson(Map json) { return ListSignalingChannelsOutput( channelInfoList: (json['ChannelInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2613,7 +2613,7 @@ class ListStreamsOutput { return ListStreamsOutput( nextToken: json['NextToken'] as String?, streamInfoList: (json['StreamInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamInfo.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/kinesis_video_archived_media/v2017_09_30.dart b/aws_client/lib/src/generated/kinesis_video_archived_media/v2017_09_30.dart index 61dc91bf1..a922faa65 100644 --- a/aws_client/lib/src/generated/kinesis_video_archived_media/v2017_09_30.dart +++ b/aws_client/lib/src/generated/kinesis_video_archived_media/v2017_09_30.dart @@ -1797,7 +1797,7 @@ class GetImagesOutput { factory GetImagesOutput.fromJson(Map json) { return GetImagesOutput( images: (json['Images'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Image.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2143,7 +2143,7 @@ class ListFragmentsOutput { factory ListFragmentsOutput.fromJson(Map json) { return ListFragmentsOutput( fragments: (json['Fragments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Fragment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/kinesis_video_signaling/v2019_12_04.dart b/aws_client/lib/src/generated/kinesis_video_signaling/v2019_12_04.dart index 69f1f15c1..7fab13bc0 100644 --- a/aws_client/lib/src/generated/kinesis_video_signaling/v2019_12_04.dart +++ b/aws_client/lib/src/generated/kinesis_video_signaling/v2019_12_04.dart @@ -165,7 +165,7 @@ class GetIceServerConfigResponse { factory GetIceServerConfigResponse.fromJson(Map json) { return GetIceServerConfigResponse( iceServerList: (json['IceServerList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IceServer.fromJson(e as Map)) .toList(), ); @@ -208,10 +208,7 @@ class IceServer { return IceServer( password: json['Password'] as String?, ttl: json['Ttl'] as int?, - uris: (json['Uris'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + uris: (json['Uris'] as List?)?.nonNulls.map((e) => e as String).toList(), username: json['Username'] as String?, ); } diff --git a/aws_client/lib/src/generated/kms/v2014_11_01.dart b/aws_client/lib/src/generated/kms/v2014_11_01.dart index d915a0a9e..e8250ee51 100644 --- a/aws_client/lib/src/generated/kms/v2014_11_01.dart +++ b/aws_client/lib/src/generated/kms/v2014_11_01.dart @@ -9723,7 +9723,7 @@ class DescribeCustomKeyStoresResponse { factory DescribeCustomKeyStoresResponse.fromJson(Map json) { return DescribeCustomKeyStoresResponse( customKeyStores: (json['CustomKeyStores'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomKeyStoresListEntry.fromJson(e as Map)) .toList(), @@ -10393,7 +10393,7 @@ class GetPublicKeyResponse { customerMasterKeySpec: (json['CustomerMasterKeySpec'] as String?) ?.let(CustomerMasterKeySpec.fromString), encryptionAlgorithms: (json['EncryptionAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EncryptionAlgorithmSpec.fromString((e as String))) .toList(), keyId: json['KeyId'] as String?, @@ -10401,7 +10401,7 @@ class GetPublicKeyResponse { keyUsage: (json['KeyUsage'] as String?)?.let(KeyUsageType.fromString), publicKey: _s.decodeNullableUint8List(json['PublicKey'] as String?), signingAlgorithms: (json['SigningAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SigningAlgorithmSpec.fromString((e as String))) .toList(), ); @@ -10573,7 +10573,7 @@ class GrantListEntry { keyId: json['KeyId'] as String?, name: json['Name'] as String?, operations: (json['Operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrantOperation.fromString((e as String))) .toList(), retiringPrincipal: json['RetiringPrincipal'] as String?, @@ -10929,7 +10929,7 @@ class KeyMetadata { description: json['Description'] as String?, enabled: json['Enabled'] as bool?, encryptionAlgorithms: (json['EncryptionAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EncryptionAlgorithmSpec.fromString((e as String))) .toList(), expirationModel: (json['ExpirationModel'] as String?) @@ -10940,7 +10940,7 @@ class KeyMetadata { keyState: (json['KeyState'] as String?)?.let(KeyState.fromString), keyUsage: (json['KeyUsage'] as String?)?.let(KeyUsageType.fromString), macAlgorithms: (json['MacAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MacAlgorithmSpec.fromString((e as String))) .toList(), multiRegion: json['MultiRegion'] as bool?, @@ -10951,7 +10951,7 @@ class KeyMetadata { origin: (json['Origin'] as String?)?.let(OriginType.fromString), pendingDeletionWindowInDays: json['PendingDeletionWindowInDays'] as int?, signingAlgorithms: (json['SigningAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SigningAlgorithmSpec.fromString((e as String))) .toList(), validTo: timeStampFromJson(json['ValidTo']), @@ -11111,7 +11111,7 @@ class ListAliasesResponse { factory ListAliasesResponse.fromJson(Map json) { return ListAliasesResponse( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AliasListEntry.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -11155,7 +11155,7 @@ class ListGrantsResponse { factory ListGrantsResponse.fromJson(Map json) { return ListGrantsResponse( grants: (json['Grants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrantListEntry.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -11200,7 +11200,7 @@ class ListKeyPoliciesResponse { return ListKeyPoliciesResponse( nextMarker: json['NextMarker'] as String?, policyNames: (json['PolicyNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), truncated: json['Truncated'] as bool?, @@ -11244,7 +11244,7 @@ class ListKeyRotationsResponse { return ListKeyRotationsResponse( nextMarker: json['NextMarker'] as String?, rotations: (json['Rotations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RotationsListEntry.fromJson(e as Map)) .toList(), truncated: json['Truncated'] as bool?, @@ -11287,7 +11287,7 @@ class ListKeysResponse { factory ListKeysResponse.fromJson(Map json) { return ListKeysResponse( keys: (json['Keys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyListEntry.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -11340,7 +11340,7 @@ class ListResourceTagsResponse { return ListResourceTagsResponse( nextMarker: json['NextMarker'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), truncated: json['Truncated'] as bool?, @@ -11422,7 +11422,7 @@ class MultiRegionConfiguration { ? MultiRegionKey.fromJson(json['PrimaryKey'] as Map) : null, replicaKeys: (json['ReplicaKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiRegionKey.fromJson(e as Map)) .toList(), ); @@ -11633,7 +11633,7 @@ class ReplicateKeyResponse { : null, replicaPolicy: json['ReplicaPolicy'] as String?, replicaTags: (json['ReplicaTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/lake_formation/v2017_03_31.dart b/aws_client/lib/src/generated/lake_formation/v2017_03_31.dart index 247dcd613..466e525b6 100644 --- a/aws_client/lib/src/generated/lake_formation/v2017_03_31.dart +++ b/aws_client/lib/src/generated/lake_formation/v2017_03_31.dart @@ -2422,7 +2422,7 @@ class AddLFTagsToResourceResponse { factory AddLFTagsToResourceResponse.fromJson(Map json) { return AddLFTagsToResourceResponse( failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagError.fromJson(e as Map)) .toList(), ); @@ -2582,7 +2582,7 @@ class BatchGrantPermissionsResponse { factory BatchGrantPermissionsResponse.fromJson(Map json) { return BatchGrantPermissionsResponse( failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPermissionsFailureEntry.fromJson(e as Map)) .toList(), @@ -2661,11 +2661,11 @@ class BatchPermissionsRequestEntry { return BatchPermissionsRequestEntry( id: json['Id'] as String, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), permissionsWithGrantOption: (json['PermissionsWithGrantOption'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), principal: json['Principal'] != null @@ -2708,7 +2708,7 @@ class BatchRevokePermissionsResponse { factory BatchRevokePermissionsResponse.fromJson(Map json) { return BatchRevokePermissionsResponse( failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPermissionsFailureEntry.fromJson(e as Map)) .toList(), @@ -2765,7 +2765,7 @@ class ColumnLFTag { factory ColumnLFTag.fromJson(Map json) { return ColumnLFTag( lFTags: (json['LFTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -2795,7 +2795,7 @@ class ColumnWildcard { factory ColumnWildcard.fromJson(Map json) { return ColumnWildcard( excludedColumnNames: (json['ExcludedColumnNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2968,7 +2968,7 @@ class DataCellsFilter { tableCatalogId: json['TableCatalogId'] as String, tableName: json['TableName'] as String, columnNames: (json['ColumnNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), columnWildcard: json['ColumnWildcard'] != null @@ -3205,36 +3205,36 @@ class DataLakeSettings { json['AllowFullTableExternalDataAccess'] as bool?, authorizedSessionTagValueList: (json['AuthorizedSessionTagValueList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createDatabaseDefaultPermissions: (json[ 'CreateDatabaseDefaultPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrincipalPermissions.fromJson(e as Map)) .toList(), createTableDefaultPermissions: (json['CreateTableDefaultPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrincipalPermissions.fromJson(e as Map)) .toList(), dataLakeAdmins: (json['DataLakeAdmins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakePrincipal.fromJson(e as Map)) .toList(), externalDataFilteringAllowList: (json['ExternalDataFilteringAllowList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakePrincipal.fromJson(e as Map)) .toList(), parameters: (json['Parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), readOnlyAdmins: (json['ReadOnlyAdmins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakePrincipal.fromJson(e as Map)) .toList(), trustedResourceOwners: (json['TrustedResourceOwners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3496,7 +3496,7 @@ class DescribeLakeFormationIdentityCenterConfigurationResponse { instanceArn: json['InstanceArn'] as String?, resourceShare: json['ResourceShare'] as String?, shareRecipients: (json['ShareRecipients'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakePrincipal.fromJson(e as Map)) .toList(), ); @@ -3588,7 +3588,7 @@ class DetailsMap { factory DetailsMap.fromJson(Map json) { return DetailsMap( resourceShare: (json['ResourceShare'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3717,7 +3717,7 @@ class ExternalFilteringConfiguration { factory ExternalFilteringConfiguration.fromJson(Map json) { return ExternalFilteringConfiguration( authorizedTargets: (json['AuthorizedTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), status: EnableStatus.fromString((json['Status'] as String)), @@ -3872,7 +3872,7 @@ class GetEffectivePermissionsForPathResponse { return GetEffectivePermissionsForPathResponse( nextToken: json['NextToken'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrincipalResourcePermissions.fromJson(e as Map)) .toList(), @@ -3913,7 +3913,7 @@ class GetLFTagResponse { catalogId: json['CatalogId'] as String?, tagKey: json['TagKey'] as String?, tagValues: (json['TagValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4043,15 +4043,15 @@ class GetResourceLFTagsResponse { factory GetResourceLFTagsResponse.fromJson(Map json) { return GetResourceLFTagsResponse( lFTagOnDatabase: (json['LFTagOnDatabase'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), lFTagsOnColumns: (json['LFTagsOnColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnLFTag.fromJson(e as Map)) .toList(), lFTagsOnTable: (json['LFTagsOnTable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), ); @@ -4085,7 +4085,7 @@ class GetTableObjectsResponse { return GetTableObjectsResponse( nextToken: json['NextToken'] as String?, objects: (json['Objects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionObjects.fromJson(e as Map)) .toList(), ); @@ -4177,7 +4177,7 @@ class GetTemporaryGlueTableCredentialsResponse { secretAccessKey: json['SecretAccessKey'] as String?, sessionToken: json['SessionToken'] as String?, vendedS3Path: (json['VendedS3Path'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4240,7 +4240,7 @@ class GetWorkUnitsResponse { return GetWorkUnitsResponse( queryId: json['QueryId'] as String, workUnitRanges: (json['WorkUnitRanges'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkUnitRange.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4293,10 +4293,8 @@ class LFTag { factory LFTag.fromJson(Map json) { return LFTag( tagKey: json['TagKey'] as String, - tagValues: (json['TagValues'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tagValues: + (json['TagValues'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -4368,10 +4366,8 @@ class LFTagKeyResource { factory LFTagKeyResource.fromJson(Map json) { return LFTagKeyResource( tagKey: json['TagKey'] as String, - tagValues: (json['TagValues'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tagValues: + (json['TagValues'] as List).nonNulls.map((e) => e as String).toList(), catalogId: json['CatalogId'] as String?, ); } @@ -4411,10 +4407,8 @@ class LFTagPair { factory LFTagPair.fromJson(Map json) { return LFTagPair( tagKey: json['TagKey'] as String, - tagValues: (json['TagValues'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tagValues: + (json['TagValues'] as List).nonNulls.map((e) => e as String).toList(), catalogId: json['CatalogId'] as String?, ); } @@ -4455,7 +4449,7 @@ class LFTagPolicyResource { factory LFTagPolicyResource.fromJson(Map json) { return LFTagPolicyResource( expression: (json['Expression'] as List) - .whereNotNull() + .nonNulls .map((e) => LFTag.fromJson(e as Map)) .toList(), resourceType: ResourceType.fromString((json['ResourceType'] as String)), @@ -4538,7 +4532,7 @@ class ListDataCellsFilterResponse { factory ListDataCellsFilterResponse.fromJson(Map json) { return ListDataCellsFilterResponse( dataCellsFilters: (json['DataCellsFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataCellsFilter.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4570,7 +4564,7 @@ class ListLFTagsResponse { factory ListLFTagsResponse.fromJson(Map json) { return ListLFTagsResponse( lFTags: (json['LFTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4604,7 +4598,7 @@ class ListLakeFormationOptInsResponse { return ListLakeFormationOptInsResponse( lakeFormationOptInsInfoList: (json['LakeFormationOptInsInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LakeFormationOptInsInfo.fromJson(e as Map)) .toList(), @@ -4641,7 +4635,7 @@ class ListPermissionsResponse { nextToken: json['NextToken'] as String?, principalResourcePermissions: (json['PrincipalResourcePermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrincipalResourcePermissions.fromJson(e as Map)) .toList(), @@ -4676,7 +4670,7 @@ class ListResourcesResponse { return ListResourcesResponse( nextToken: json['NextToken'] as String?, resourceInfoList: (json['ResourceInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceInfo.fromJson(e as Map)) .toList(), ); @@ -4710,7 +4704,7 @@ class ListTableStorageOptimizersResponse { return ListTableStorageOptimizersResponse( nextToken: json['NextToken'] as String?, storageOptimizerList: (json['StorageOptimizerList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageOptimizer.fromJson(e as Map)) .toList(), ); @@ -4744,7 +4738,7 @@ class ListTransactionsResponse { return ListTransactionsResponse( nextToken: json['NextToken'] as String?, transactions: (json['Transactions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TransactionDescription.fromJson(e as Map)) .toList(), @@ -4793,11 +4787,11 @@ class PartitionObjects { factory PartitionObjects.fromJson(Map json) { return PartitionObjects( objects: (json['Objects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableObject.fromJson(e as Map)) .toList(), partitionValues: (json['PartitionValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4934,7 +4928,7 @@ class PrincipalPermissions { factory PrincipalPermissions.fromJson(Map json) { return PrincipalPermissions( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), principal: json['Principal'] != null @@ -5000,11 +4994,11 @@ class PrincipalResourcePermissions { lastUpdated: timeStampFromJson(json['LastUpdated']), lastUpdatedBy: json['LastUpdatedBy'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), permissionsWithGrantOption: (json['PermissionsWithGrantOption'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), principal: json['Principal'] != null @@ -5188,7 +5182,7 @@ class RemoveLFTagsFromResourceResponse { factory RemoveLFTagsFromResourceResponse.fromJson(Map json) { return RemoveLFTagsFromResourceResponse( failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagError.fromJson(e as Map)) .toList(), ); @@ -5447,7 +5441,7 @@ class SearchDatabasesByLFTagsResponse { factory SearchDatabasesByLFTagsResponse.fromJson(Map json) { return SearchDatabasesByLFTagsResponse( databaseList: (json['DatabaseList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaggedDatabase.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5482,7 +5476,7 @@ class SearchTablesByLFTagsResponse { return SearchTablesByLFTagsResponse( nextToken: json['NextToken'] as String?, tableList: (json['TableList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaggedTable.fromJson(e as Map)) .toList(), ); @@ -5759,7 +5753,7 @@ class TableWithColumnsResource { name: json['Name'] as String, catalogId: json['CatalogId'] as String?, columnNames: (json['ColumnNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), columnWildcard: json['ColumnWildcard'] != null @@ -5804,7 +5798,7 @@ class TaggedDatabase { ? DatabaseResource.fromJson(json['Database'] as Map) : null, lFTags: (json['LFTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), ); @@ -5844,15 +5838,15 @@ class TaggedTable { factory TaggedTable.fromJson(Map json) { return TaggedTable( lFTagOnDatabase: (json['LFTagOnDatabase'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), lFTagsOnColumns: (json['LFTagsOnColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnLFTag.fromJson(e as Map)) .toList(), lFTagsOnTable: (json['LFTagsOnTable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), table: json['Table'] != null diff --git a/aws_client/lib/src/generated/lambda/v2014_11_11.dart b/aws_client/lib/src/generated/lambda/v2014_11_11.dart index 17fcd83d3..973750c39 100644 --- a/aws_client/lib/src/generated/lambda/v2014_11_11.dart +++ b/aws_client/lib/src/generated/lambda/v2014_11_11.dart @@ -914,7 +914,7 @@ class ListEventSourcesResponse { factory ListEventSourcesResponse.fromJson(Map json) { return ListEventSourcesResponse( eventSources: (json['EventSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSourceConfiguration.fromJson(e as Map)) .toList(), @@ -949,7 +949,7 @@ class ListFunctionsResponse { factory ListFunctionsResponse.fromJson(Map json) { return ListFunctionsResponse( functions: (json['Functions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionConfiguration.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, diff --git a/aws_client/lib/src/generated/lambda/v2015_03_31.dart b/aws_client/lib/src/generated/lambda/v2015_03_31.dart index 5b88bf141..484398fcb 100644 --- a/aws_client/lib/src/generated/lambda/v2015_03_31.dart +++ b/aws_client/lib/src/generated/lambda/v2015_03_31.dart @@ -5251,7 +5251,7 @@ class AllowedPublishers { factory AllowedPublishers.fromJson(Map json) { return AllowedPublishers( signingProfileVersionArns: (json['SigningProfileVersionArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -5521,19 +5521,19 @@ class Cors { return Cors( allowCredentials: json['AllowCredentials'] as bool?, allowHeaders: (json['AllowHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allowMethods: (json['AllowMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allowOrigins: (json['AllowOrigins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), exposeHeaders: (json['ExposeHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxAge: json['MaxAge'] as int?, @@ -6107,7 +6107,7 @@ class EventSourceMappingConfiguration { : null, functionArn: json['FunctionArn'] as String?, functionResponseTypes: (json['FunctionResponseTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionResponseType.fromString((e as String))) .toList(), lastModified: timeStampFromJson(json['LastModified']), @@ -6117,10 +6117,8 @@ class EventSourceMappingConfiguration { maximumRecordAgeInSeconds: json['MaximumRecordAgeInSeconds'] as int?, maximumRetryAttempts: json['MaximumRetryAttempts'] as int?, parallelizationFactor: json['ParallelizationFactor'] as int?, - queues: (json['Queues'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + queues: + (json['Queues'] as List?)?.nonNulls.map((e) => e as String).toList(), scalingConfig: json['ScalingConfig'] != null ? ScalingConfig.fromJson( json['ScalingConfig'] as Map) @@ -6136,7 +6134,7 @@ class EventSourceMappingConfiguration { as Map) : null, sourceAccessConfigurations: (json['SourceAccessConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceAccessConfiguration.fromJson(e as Map)) .toList(), @@ -6146,10 +6144,8 @@ class EventSourceMappingConfiguration { timeStampFromJson(json['StartingPositionTimestamp']), state: json['State'] as String?, stateTransitionReason: json['StateTransitionReason'] as String?, - topics: (json['Topics'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + topics: + (json['Topics'] as List?)?.nonNulls.map((e) => e as String).toList(), tumblingWindowInSeconds: json['TumblingWindowInSeconds'] as int?, uuid: json['UUID'] as String?, ); @@ -6325,7 +6321,7 @@ class FilterCriteria { factory FilterCriteria.fromJson(Map json) { return FilterCriteria( filters: (json['Filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Filter.fromJson(e as Map)) .toList(), ); @@ -6632,7 +6628,7 @@ class FunctionConfiguration { factory FunctionConfiguration.fromJson(Map json) { return FunctionConfiguration( architectures: (json['Architectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Architecture.fromString((e as String))) .toList(), codeSha256: json['CodeSha256'] as String?, @@ -6651,7 +6647,7 @@ class FunctionConfiguration { json['EphemeralStorage'] as Map) : null, fileSystemConfigs: (json['FileSystemConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemConfig.fromJson(e as Map)) .toList(), functionArn: json['FunctionArn'] as String?, @@ -6670,7 +6666,7 @@ class FunctionConfiguration { (json['LastUpdateStatusReasonCode'] as String?) ?.let(LastUpdateStatusReasonCode.fromString), layers: (json['Layers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Layer.fromJson(e as Map)) .toList(), loggingConfig: json['LoggingConfig'] != null @@ -7359,11 +7355,11 @@ class GetLayerVersionResponse { factory GetLayerVersionResponse.fromJson(Map json) { return GetLayerVersionResponse( compatibleArchitectures: (json['CompatibleArchitectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Architecture.fromString((e as String))) .toList(), compatibleRuntimes: (json['CompatibleRuntimes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Runtime.fromString((e as String))) .toList(), content: json['Content'] != null @@ -7574,12 +7570,10 @@ class ImageConfig { factory ImageConfig.fromJson(Map json) { return ImageConfig( - command: (json['Command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['Command'] as List?)?.nonNulls.map((e) => e as String).toList(), entryPoint: (json['EntryPoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), workingDirectory: json['WorkingDirectory'] as String?, @@ -8126,11 +8120,11 @@ class LayerVersionsListItem { factory LayerVersionsListItem.fromJson(Map json) { return LayerVersionsListItem( compatibleArchitectures: (json['CompatibleArchitectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Architecture.fromString((e as String))) .toList(), compatibleRuntimes: (json['CompatibleRuntimes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Runtime.fromString((e as String))) .toList(), createdDate: json['CreatedDate'] as String?, @@ -8222,7 +8216,7 @@ class ListAliasesResponse { factory ListAliasesResponse.fromJson(Map json) { return ListAliasesResponse( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AliasConfiguration.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8254,7 +8248,7 @@ class ListCodeSigningConfigsResponse { factory ListCodeSigningConfigsResponse.fromJson(Map json) { return ListCodeSigningConfigsResponse( codeSigningConfigs: (json['CodeSigningConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeSigningConfig.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8287,7 +8281,7 @@ class ListEventSourceMappingsResponse { factory ListEventSourceMappingsResponse.fromJson(Map json) { return ListEventSourceMappingsResponse( eventSourceMappings: (json['EventSourceMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSourceMappingConfiguration.fromJson( e as Map)) .toList(), @@ -8322,7 +8316,7 @@ class ListFunctionEventInvokeConfigsResponse { Map json) { return ListFunctionEventInvokeConfigsResponse( functionEventInvokeConfigs: (json['FunctionEventInvokeConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionEventInvokeConfig.fromJson(e as Map)) .toList(), @@ -8356,7 +8350,7 @@ class ListFunctionUrlConfigsResponse { factory ListFunctionUrlConfigsResponse.fromJson(Map json) { return ListFunctionUrlConfigsResponse( functionUrlConfigs: (json['FunctionUrlConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => FunctionUrlConfig.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8389,7 +8383,7 @@ class ListFunctionsByCodeSigningConfigResponse { Map json) { return ListFunctionsByCodeSigningConfigResponse( functionArns: (json['FunctionArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8422,7 +8416,7 @@ class ListFunctionsResponse { factory ListFunctionsResponse.fromJson(Map json) { return ListFunctionsResponse( functions: (json['Functions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionConfiguration.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8454,7 +8448,7 @@ class ListLayerVersionsResponse { factory ListLayerVersionsResponse.fromJson(Map json) { return ListLayerVersionsResponse( layerVersions: (json['LayerVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LayerVersionsListItem.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8486,7 +8480,7 @@ class ListLayersResponse { factory ListLayersResponse.fromJson(Map json) { return ListLayersResponse( layers: (json['Layers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LayersListItem.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8522,7 +8516,7 @@ class ListProvisionedConcurrencyConfigsResponse { nextMarker: json['NextMarker'] as String?, provisionedConcurrencyConfigs: (json['ProvisionedConcurrencyConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisionedConcurrencyConfigListItem.fromJson( e as Map)) .toList(), @@ -8579,7 +8573,7 @@ class ListVersionsByFunctionResponse { return ListVersionsByFunctionResponse( nextMarker: json['NextMarker'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionConfiguration.fromJson(e as Map)) .toList(), ); @@ -8910,11 +8904,11 @@ class PublishLayerVersionResponse { factory PublishLayerVersionResponse.fromJson(Map json) { return PublishLayerVersionResponse( compatibleArchitectures: (json['CompatibleArchitectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Architecture.fromString((e as String))) .toList(), compatibleRuntimes: (json['CompatibleRuntimes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Runtime.fromString((e as String))) .toList(), content: json['Content'] != null @@ -9288,7 +9282,7 @@ class SelfManagedEventSource { return SelfManagedEventSource( endpoints: (json['Endpoints'] as Map?)?.map((k, e) => MapEntry(EndPointType.fromString(k), - (e as List).whereNotNull().map((e) => e as String).toList())), + (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -9843,11 +9837,11 @@ class VpcConfigResponse { return VpcConfigResponse( ipv6AllowedForDualStack: json['Ipv6AllowedForDualStack'] as bool?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, diff --git a/aws_client/lib/src/generated/launch_wizard/v2018_05_10.dart b/aws_client/lib/src/generated/launch_wizard/v2018_05_10.dart index 817a69689..64bd5ac11 100644 --- a/aws_client/lib/src/generated/launch_wizard/v2018_05_10.dart +++ b/aws_client/lib/src/generated/launch_wizard/v2018_05_10.dart @@ -848,11 +848,11 @@ class DeploymentSpecificationsField { factory DeploymentSpecificationsField.fromJson(Map json) { return DeploymentSpecificationsField( allowedValues: (json['allowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), conditionals: (json['conditionals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentConditionalField.fromJson(e as Map)) .toList(), @@ -1011,7 +1011,7 @@ class ListDeploymentEventsOutput { factory ListDeploymentEventsOutput.fromJson(Map json) { return ListDeploymentEventsOutput( deploymentEvents: (json['deploymentEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentEventDataSummary.fromJson(e as Map)) .toList(), @@ -1045,7 +1045,7 @@ class ListDeploymentsOutput { factory ListDeploymentsOutput.fromJson(Map json) { return ListDeploymentsOutput( deployments: (json['deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentDataSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1103,7 +1103,7 @@ class ListWorkloadDeploymentPatternsOutput { return ListWorkloadDeploymentPatternsOutput( nextToken: json['nextToken'] as String?, workloadDeploymentPatterns: (json['workloadDeploymentPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkloadDeploymentPatternDataSummary.fromJson( e as Map)) .toList(), @@ -1138,7 +1138,7 @@ class ListWorkloadsOutput { return ListWorkloadsOutput( nextToken: json['nextToken'] as String?, workloads: (json['workloads'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkloadDataSummary.fromJson(e as Map)) .toList(), ); @@ -1324,7 +1324,7 @@ class WorkloadDeploymentPatternData { description: json['description'] as String?, displayName: json['displayName'] as String?, specifications: (json['specifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentSpecificationsField.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/lex_model_building_service/v2017_04_19.dart b/aws_client/lib/src/generated/lex_model_building_service/v2017_04_19.dart index f5aecac72..ae5a661d6 100644 --- a/aws_client/lib/src/generated/lex_model_building_service/v2017_04_19.dart +++ b/aws_client/lib/src/generated/lex_model_building_service/v2017_04_19.dart @@ -2828,7 +2828,7 @@ class BuiltinIntentMetadata { return BuiltinIntentMetadata( signature: json['signature'] as String?, supportedLocales: (json['supportedLocales'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Locale.fromString((e as String))) .toList(), ); @@ -2888,7 +2888,7 @@ class BuiltinSlotTypeMetadata { return BuiltinSlotTypeMetadata( signature: json['signature'] as String?, supportedLocales: (json['supportedLocales'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Locale.fromString((e as String))) .toList(), ); @@ -3031,7 +3031,7 @@ class ConversationLogsResponse { return ConversationLogsResponse( iamRoleArn: json['iamRoleArn'] as String?, logSettings: (json['logSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogSettingsResponse.fromJson(e as Map)) .toList(), ); @@ -3175,7 +3175,7 @@ class CreateBotVersionResponse { failureReason: json['failureReason'] as String?, idleSessionTTLInSeconds: json['idleSessionTTLInSeconds'] as int?, intents: (json['intents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Intent.fromJson(e as Map)) .toList(), lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), @@ -3341,7 +3341,7 @@ class CreateIntentVersionResponse { json['fulfillmentActivity'] as Map) : null, inputContexts: (json['inputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputContext.fromJson(e as Map)) .toList(), kendraConfiguration: json['kendraConfiguration'] != null @@ -3351,7 +3351,7 @@ class CreateIntentVersionResponse { lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, outputContexts: (json['outputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputContext.fromJson(e as Map)) .toList(), parentIntentSignature: json['parentIntentSignature'] as String?, @@ -3360,11 +3360,11 @@ class CreateIntentVersionResponse { json['rejectionStatement'] as Map) : null, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), slots: (json['slots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Slot.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -3471,14 +3471,14 @@ class CreateSlotTypeVersionResponse { createdDate: timeStampFromJson(json['createdDate']), description: json['description'] as String?, enumerationValues: (json['enumerationValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnumerationValue.fromJson(e as Map)) .toList(), lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, parentSlotTypeSignature: json['parentSlotTypeSignature'] as String?, slotTypeConfigurations: (json['slotTypeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeConfiguration.fromJson(e as Map)) .toList(), valueSelectionStrategy: (json['valueSelectionStrategy'] as String?) @@ -3565,7 +3565,7 @@ class EnumerationValue { return EnumerationValue( value: json['value'] as String, synonyms: (json['synonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3812,7 +3812,7 @@ class GetBotAliasesResponse { factory GetBotAliasesResponse.fromJson(Map json) { return GetBotAliasesResponse( botAliases: (json['BotAliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotAliasMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3945,7 +3945,7 @@ class GetBotChannelAssociationsResponse { Map json) { return GetBotChannelAssociationsResponse( botChannelAssociations: (json['botChannelAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotChannelAssociation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4115,7 +4115,7 @@ class GetBotResponse { failureReason: json['failureReason'] as String?, idleSessionTTLInSeconds: json['idleSessionTTLInSeconds'] as int?, intents: (json['intents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Intent.fromJson(e as Map)) .toList(), lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), @@ -4195,7 +4195,7 @@ class GetBotVersionsResponse { factory GetBotVersionsResponse.fromJson(Map json) { return GetBotVersionsResponse( bots: (json['bots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4228,7 +4228,7 @@ class GetBotsResponse { factory GetBotsResponse.fromJson(Map json) { return GetBotsResponse( bots: (json['bots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4266,11 +4266,11 @@ class GetBuiltinIntentResponse { return GetBuiltinIntentResponse( signature: json['signature'] as String?, slots: (json['slots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuiltinIntentSlot.fromJson(e as Map)) .toList(), supportedLocales: (json['supportedLocales'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Locale.fromString((e as String))) .toList(), ); @@ -4308,7 +4308,7 @@ class GetBuiltinIntentsResponse { factory GetBuiltinIntentsResponse.fromJson(Map json) { return GetBuiltinIntentsResponse( intents: (json['intents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuiltinIntentMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4343,7 +4343,7 @@ class GetBuiltinSlotTypesResponse { return GetBuiltinSlotTypesResponse( nextToken: json['nextToken'] as String?, slotTypes: (json['slotTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuiltinSlotTypeMetadata.fromJson(e as Map)) .toList(), @@ -4480,7 +4480,7 @@ class GetImportResponse { return GetImportResponse( createdDate: timeStampFromJson(json['createdDate']), failureReason: (json['failureReason'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), importId: json['importId'] as String?, @@ -4627,7 +4627,7 @@ class GetIntentResponse { json['fulfillmentActivity'] as Map) : null, inputContexts: (json['inputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputContext.fromJson(e as Map)) .toList(), kendraConfiguration: json['kendraConfiguration'] != null @@ -4637,7 +4637,7 @@ class GetIntentResponse { lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, outputContexts: (json['outputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputContext.fromJson(e as Map)) .toList(), parentIntentSignature: json['parentIntentSignature'] as String?, @@ -4646,11 +4646,11 @@ class GetIntentResponse { json['rejectionStatement'] as Map) : null, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), slots: (json['slots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Slot.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -4723,7 +4723,7 @@ class GetIntentVersionsResponse { factory GetIntentVersionsResponse.fromJson(Map json) { return GetIntentVersionsResponse( intents: (json['intents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntentMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4757,7 +4757,7 @@ class GetIntentsResponse { factory GetIntentsResponse.fromJson(Map json) { return GetIntentsResponse( intents: (json['intents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntentMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4845,7 +4845,7 @@ class GetMigrationResponse { factory GetMigrationResponse.fromJson(Map json) { return GetMigrationResponse( alerts: (json['alerts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MigrationAlert.fromJson(e as Map)) .toList(), migrationId: json['migrationId'] as String?, @@ -4908,7 +4908,7 @@ class GetMigrationsResponse { factory GetMigrationsResponse.fromJson(Map json) { return GetMigrationsResponse( migrationSummaries: (json['migrationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MigrationSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4978,14 +4978,14 @@ class GetSlotTypeResponse { createdDate: timeStampFromJson(json['createdDate']), description: json['description'] as String?, enumerationValues: (json['enumerationValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnumerationValue.fromJson(e as Map)) .toList(), lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, parentSlotTypeSignature: json['parentSlotTypeSignature'] as String?, slotTypeConfigurations: (json['slotTypeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeConfiguration.fromJson(e as Map)) .toList(), valueSelectionStrategy: (json['valueSelectionStrategy'] as String?) @@ -5044,7 +5044,7 @@ class GetSlotTypeVersionsResponse { return GetSlotTypeVersionsResponse( nextToken: json['nextToken'] as String?, slotTypes: (json['slotTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeMetadata.fromJson(e as Map)) .toList(), ); @@ -5078,7 +5078,7 @@ class GetSlotTypesResponse { return GetSlotTypesResponse( nextToken: json['nextToken'] as String?, slotTypes: (json['slotTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeMetadata.fromJson(e as Map)) .toList(), ); @@ -5114,7 +5114,7 @@ class GetUtterancesViewResponse { return GetUtterancesViewResponse( botName: json['botName'] as String?, utterances: (json['utterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtteranceList.fromJson(e as Map)) .toList(), ); @@ -5319,7 +5319,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5559,13 +5559,11 @@ class MigrationAlert { factory MigrationAlert.fromJson(Map json) { return MigrationAlert( - details: (json['details'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + details: + (json['details'] as List?)?.nonNulls.map((e) => e as String).toList(), message: json['message'] as String?, referenceURLs: (json['referenceURLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(MigrationAlertType.fromString), @@ -5836,7 +5834,7 @@ class Prompt { return Prompt( maxAttempts: json['maxAttempts'] as int, messages: (json['messages'] as List) - .whereNotNull() + .nonNulls .map((e) => Message.fromJson(e as Map)) .toList(), responseCard: json['responseCard'] as String?, @@ -5911,7 +5909,7 @@ class PutBotAliasResponse { lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6109,7 +6107,7 @@ class PutBotResponse { failureReason: json['failureReason'] as String?, idleSessionTTLInSeconds: json['idleSessionTTLInSeconds'] as int?, intents: (json['intents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Intent.fromJson(e as Map)) .toList(), lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), @@ -6119,7 +6117,7 @@ class PutBotResponse { json['nluIntentConfidenceThreshold'] as double?, status: (json['status'] as String?)?.let(Status.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -6301,7 +6299,7 @@ class PutIntentResponse { json['fulfillmentActivity'] as Map) : null, inputContexts: (json['inputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputContext.fromJson(e as Map)) .toList(), kendraConfiguration: json['kendraConfiguration'] != null @@ -6311,7 +6309,7 @@ class PutIntentResponse { lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, outputContexts: (json['outputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputContext.fromJson(e as Map)) .toList(), parentIntentSignature: json['parentIntentSignature'] as String?, @@ -6320,11 +6318,11 @@ class PutIntentResponse { json['rejectionStatement'] as Map) : null, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), slots: (json['slots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Slot.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -6441,14 +6439,14 @@ class PutSlotTypeResponse { createdDate: timeStampFromJson(json['createdDate']), description: json['description'] as String?, enumerationValues: (json['enumerationValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnumerationValue.fromJson(e as Map)) .toList(), lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, parentSlotTypeSignature: json['parentSlotTypeSignature'] as String?, slotTypeConfigurations: (json['slotTypeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeConfiguration.fromJson(e as Map)) .toList(), valueSelectionStrategy: (json['valueSelectionStrategy'] as String?) @@ -6587,7 +6585,7 @@ class Slot { priority: json['priority'] as int?, responseCard: json['responseCard'] as String?, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), slotType: json['slotType'] as String?, @@ -6701,7 +6699,7 @@ class SlotDefaultValueSpec { factory SlotDefaultValueSpec.fromJson(Map json) { return SlotDefaultValueSpec( defaultValueList: (json['defaultValueList'] as List) - .whereNotNull() + .nonNulls .map((e) => SlotDefaultValue.fromJson(e as Map)) .toList(), ); @@ -6919,7 +6917,7 @@ class StartImportResponse { resourceType: (json['resourceType'] as String?)?.let(ResourceType.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7040,7 +7038,7 @@ class Statement { factory Statement.fromJson(Map json) { return Statement( messages: (json['messages'] as List) - .whereNotNull() + .nonNulls .map((e) => Message.fromJson(e as Map)) .toList(), responseCard: json['responseCard'] as String?, @@ -7219,7 +7217,7 @@ class UtteranceList { return UtteranceList( botVersion: json['botVersion'] as String?, utterances: (json['utterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtteranceData.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/lex_models_v2/v2020_08_07.dart b/aws_client/lib/src/generated/lex_models_v2/v2020_08_07.dart index d6a2ab9d1..bacb76985 100644 --- a/aws_client/lib/src/generated/lex_models_v2/v2020_08_07.dart +++ b/aws_client/lib/src/generated/lex_models_v2/v2020_08_07.dart @@ -6647,16 +6647,16 @@ class AnalyticsIntentResult { factory AnalyticsIntentResult.fromJson(Map json) { return AnalyticsIntentResult( binKeys: (json['binKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsBinKey.fromJson(e as Map)) .toList(), groupByKeys: (json['groupByKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsIntentGroupByKey.fromJson(e as Map)) .toList(), metricsResults: (json['metricsResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsIntentMetricResult.fromJson(e as Map)) .toList(), @@ -7107,16 +7107,16 @@ class AnalyticsIntentStageResult { factory AnalyticsIntentStageResult.fromJson(Map json) { return AnalyticsIntentStageResult( binKeys: (json['binKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsBinKey.fromJson(e as Map)) .toList(), groupByKeys: (json['groupByKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsIntentStageGroupByKey.fromJson( e as Map)) .toList(), metricsResults: (json['metricsResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsIntentStageMetricResult.fromJson( e as Map)) .toList(), @@ -7766,16 +7766,16 @@ class AnalyticsSessionResult { factory AnalyticsSessionResult.fromJson(Map json) { return AnalyticsSessionResult( binKeys: (json['binKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsBinKey.fromJson(e as Map)) .toList(), groupByKeys: (json['groupByKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsSessionGroupByKey.fromJson(e as Map)) .toList(), metricsResults: (json['metricsResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsSessionMetricResult.fromJson(e as Map)) .toList(), @@ -8307,21 +8307,21 @@ class AnalyticsUtteranceResult { factory AnalyticsUtteranceResult.fromJson(Map json) { return AnalyticsUtteranceResult( attributeResults: (json['attributeResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsUtteranceAttributeResult.fromJson( e as Map)) .toList(), binKeys: (json['binKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsBinKey.fromJson(e as Map)) .toList(), groupByKeys: (json['groupByKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsUtteranceGroupByKey.fromJson(e as Map)) .toList(), metricsResults: (json['metricsResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsUtteranceMetricResult.fromJson( e as Map)) .toList(), @@ -8617,13 +8617,13 @@ class BatchCreateCustomVocabularyItemResponse { botId: json['botId'] as String?, botVersion: json['botVersion'] as String?, errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCustomVocabularyItem.fromJson(e as Map)) .toList(), localeId: json['localeId'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomVocabularyItem.fromJson(e as Map)) .toList(), ); @@ -8681,13 +8681,13 @@ class BatchDeleteCustomVocabularyItemResponse { botId: json['botId'] as String?, botVersion: json['botVersion'] as String?, errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCustomVocabularyItem.fromJson(e as Map)) .toList(), localeId: json['localeId'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomVocabularyItem.fromJson(e as Map)) .toList(), ); @@ -8746,13 +8746,13 @@ class BatchUpdateCustomVocabularyItemResponse { botId: json['botId'] as String?, botVersion: json['botVersion'] as String?, errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCustomVocabularyItem.fromJson(e as Map)) .toList(), localeId: json['localeId'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomVocabularyItem.fromJson(e as Map)) .toList(), ); @@ -8934,7 +8934,7 @@ class BotAliasReplicaSummary { botVersion: json['botVersion'] as String?, creationDateTime: timeStampFromJson(json['creationDateTime']), failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedDateTime: timeStampFromJson(json['lastUpdatedDateTime']), @@ -9870,7 +9870,7 @@ class BotReplicaSummary { ?.let(BotReplicaStatus.fromString), creationDateTime: timeStampFromJson(json['creationDateTime']), failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), replicaRegion: json['replicaRegion'] as String?, @@ -10127,7 +10127,7 @@ class BotVersionReplicaSummary { ?.let(BotVersionReplicationStatus.fromString), creationDateTime: timeStampFromJson(json['creationDateTime']), failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -10602,7 +10602,7 @@ class CompositeSlotTypeSetting { factory CompositeSlotTypeSetting.fromJson(Map json) { return CompositeSlotTypeSetting( subSlots: (json['subSlots'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SubSlotTypeComposition.fromJson(e as Map)) .toList(), @@ -10716,7 +10716,7 @@ class ConditionalSpecification { return ConditionalSpecification( active: json['active'] as bool, conditionalBranches: (json['conditionalBranches'] as List) - .whereNotNull() + .nonNulls .map((e) => ConditionalBranch.fromJson(e as Map)) .toList(), defaultBranch: DefaultConditionalBranch.fromJson( @@ -10891,12 +10891,12 @@ class ConversationLevelTestResultItem { endToEndResult: TestResultMatchStatus.fromString((json['endToEndResult'] as String)), intentClassificationResults: (json['intentClassificationResults'] as List) - .whereNotNull() + .nonNulls .map((e) => ConversationLevelIntentClassificationResultItem.fromJson( e as Map)) .toList(), slotResolutionResults: (json['slotResolutionResults'] as List) - .whereNotNull() + .nonNulls .map((e) => ConversationLevelSlotResolutionResultItem.fromJson( e as Map)) .toList(), @@ -10934,7 +10934,7 @@ class ConversationLevelTestResults { factory ConversationLevelTestResults.fromJson(Map json) { return ConversationLevelTestResults( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => ConversationLevelTestResultItem.fromJson( e as Map)) .toList(), @@ -10984,11 +10984,11 @@ class ConversationLogSettings { factory ConversationLogSettings.fromJson(Map json) { return ConversationLogSettings( audioLogSettings: (json['audioLogSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudioLogSetting.fromJson(e as Map)) .toList(), textLogSettings: (json['textLogSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TextLogSetting.fromJson(e as Map)) .toList(), ); @@ -11434,7 +11434,7 @@ class CreateBotResponse { return CreateBotResponse( botId: json['botId'] as String?, botMembers: (json['botMembers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotMember.fromJson(e as Map)) .toList(), botName: json['botName'] as String?, @@ -11710,7 +11710,7 @@ class CreateIntentResponse { json['initialResponseSetting'] as Map) : null, inputContexts: (json['inputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputContext.fromJson(e as Map)) .toList(), intentClosingSetting: json['intentClosingSetting'] != null @@ -11729,7 +11729,7 @@ class CreateIntentResponse { : null, localeId: json['localeId'] as String?, outputContexts: (json['outputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputContext.fromJson(e as Map)) .toList(), parentIntentSignature: json['parentIntentSignature'] as String?, @@ -11738,7 +11738,7 @@ class CreateIntentResponse { json['qnAIntentConfiguration'] as Map) : null, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampleUtterance.fromJson(e as Map)) .toList(), ); @@ -12059,7 +12059,7 @@ class CreateSlotTypeResponse { slotTypeId: json['slotTypeId'] as String?, slotTypeName: json['slotTypeName'] as String?, slotTypeValues: (json['slotTypeValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeValue.fromJson(e as Map)) .toList(), valueSelectionSetting: json['valueSelectionSetting'] != null @@ -13041,7 +13041,7 @@ class DescribeBotAliasResponse { factory DescribeBotAliasResponse.fromJson(Map json) { return DescribeBotAliasResponse( botAliasHistoryEvents: (json['botAliasHistoryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotAliasHistoryEvent.fromJson(e as Map)) .toList(), botAliasId: json['botAliasId'] as String?, @@ -13062,7 +13062,7 @@ class DescribeBotAliasResponse { description: json['description'] as String?, lastUpdatedDateTime: timeStampFromJson(json['lastUpdatedDateTime']), parentBotNetworks: (json['parentBotNetworks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParentBotNetwork.fromJson(e as Map)) .toList(), sentimentAnalysisSettings: json['sentimentAnalysisSettings'] != null @@ -13194,7 +13194,7 @@ class DescribeBotLocaleResponse { return DescribeBotLocaleResponse( botId: json['botId'] as String?, botLocaleHistoryEvents: (json['botLocaleHistoryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotLocaleHistoryEvent.fromJson(e as Map)) .toList(), botLocaleStatus: @@ -13203,7 +13203,7 @@ class DescribeBotLocaleResponse { creationDateTime: timeStampFromJson(json['creationDateTime']), description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), generativeAISettings: json['generativeAISettings'] != null @@ -13219,7 +13219,7 @@ class DescribeBotLocaleResponse { nluIntentConfidenceThreshold: json['nluIntentConfidenceThreshold'] as double?, recommendedActions: (json['recommendedActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), slotTypesCount: json['slotTypesCount'] as int?, @@ -13350,7 +13350,7 @@ class DescribeBotRecommendationResponse { json['encryptionSetting'] as Map) : null, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedDateTime: timeStampFromJson(json['lastUpdatedDateTime']), @@ -13431,7 +13431,7 @@ class DescribeBotReplicaResponse { ?.let(BotReplicaStatus.fromString), creationDateTime: timeStampFromJson(json['creationDateTime']), failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), replicaRegion: json['replicaRegion'] as String?, @@ -13514,7 +13514,7 @@ class DescribeBotResourceGenerationResponse { botVersion: json['botVersion'] as String?, creationDateTime: timeStampFromJson(json['creationDateTime']), failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), generatedBotLocaleUrl: json['generatedBotLocaleUrl'] as String?, @@ -13621,7 +13621,7 @@ class DescribeBotResponse { return DescribeBotResponse( botId: json['botId'] as String?, botMembers: (json['botMembers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotMember.fromJson(e as Map)) .toList(), botName: json['botName'] as String?, @@ -13633,7 +13633,7 @@ class DescribeBotResponse { : null, description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), idleSessionTTLInSeconds: json['idleSessionTTLInSeconds'] as int?, @@ -13739,7 +13739,7 @@ class DescribeBotVersionResponse { return DescribeBotVersionResponse( botId: json['botId'] as String?, botMembers: (json['botMembers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotMember.fromJson(e as Map)) .toList(), botName: json['botName'] as String?, @@ -13752,12 +13752,12 @@ class DescribeBotVersionResponse { : null, description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), idleSessionTTLInSeconds: json['idleSessionTTLInSeconds'] as int?, parentBotNetworks: (json['parentBotNetworks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParentBotNetwork.fromJson(e as Map)) .toList(), roleArn: json['roleArn'] as String?, @@ -13909,7 +13909,7 @@ class DescribeExportResponse { exportStatus: (json['exportStatus'] as String?)?.let(ExportStatus.fromString), failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fileFormat: (json['fileFormat'] as String?) @@ -13997,7 +13997,7 @@ class DescribeImportResponse { return DescribeImportResponse( creationDateTime: timeStampFromJson(json['creationDateTime']), failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), importId: json['importId'] as String?, @@ -14155,7 +14155,7 @@ class DescribeIntentResponse { json['initialResponseSetting'] as Map) : null, inputContexts: (json['inputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputContext.fromJson(e as Map)) .toList(), intentClosingSetting: json['intentClosingSetting'] != null @@ -14175,7 +14175,7 @@ class DescribeIntentResponse { lastUpdatedDateTime: timeStampFromJson(json['lastUpdatedDateTime']), localeId: json['localeId'] as String?, outputContexts: (json['outputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputContext.fromJson(e as Map)) .toList(), parentIntentSignature: json['parentIntentSignature'] as String?, @@ -14184,11 +14184,11 @@ class DescribeIntentResponse { json['qnAIntentConfiguration'] as Map) : null, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampleUtterance.fromJson(e as Map)) .toList(), slotPriorities: (json['slotPriorities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotPriority.fromJson(e as Map)) .toList(), ); @@ -14503,7 +14503,7 @@ class DescribeSlotTypeResponse { slotTypeId: json['slotTypeId'] as String?, slotTypeName: json['slotTypeName'] as String?, slotTypeValues: (json['slotTypeValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeValue.fromJson(e as Map)) .toList(), valueSelectionSetting: json['valueSelectionSetting'] != null @@ -14605,7 +14605,7 @@ class DescribeTestExecutionResponse { (json['apiMode'] as String?)?.let(TestExecutionApiMode.fromString), creationDateTime: timeStampFromJson(json['creationDateTime']), failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedDateTime: timeStampFromJson(json['lastUpdatedDateTime']), @@ -14697,7 +14697,7 @@ class DescribeTestSetDiscrepancyReportResponse { return DescribeTestSetDiscrepancyReportResponse( creationDateTime: timeStampFromJson(json['creationDateTime']), failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedDataTime: timeStampFromJson(json['lastUpdatedDataTime']), @@ -14803,7 +14803,7 @@ class DescribeTestSetGenerationResponse { creationDateTime: timeStampFromJson(json['creationDateTime']), description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), generationDataSource: json['generationDataSource'] != null @@ -15740,7 +15740,7 @@ class FulfillmentStartResponseSpecification { return FulfillmentStartResponseSpecification( delayInSeconds: json['delayInSeconds'] as int, messageGroups: (json['messageGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => MessageGroup.fromJson(e as Map)) .toList(), allowInterrupt: json['allowInterrupt'] as bool?, @@ -15787,7 +15787,7 @@ class FulfillmentUpdateResponseSpecification { return FulfillmentUpdateResponseSpecification( frequencyInSeconds: json['frequencyInSeconds'] as int, messageGroups: (json['messageGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => MessageGroup.fromJson(e as Map)) .toList(), allowInterrupt: json['allowInterrupt'] as bool?, @@ -15896,7 +15896,7 @@ class GenerateBotElementResponse { intentId: json['intentId'] as String?, localeId: json['localeId'] as String?, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampleUtterance.fromJson(e as Map)) .toList(), ); @@ -16196,7 +16196,7 @@ class ImageResponseCard { return ImageResponseCard( title: json['title'] as String, buttons: (json['buttons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Button.fromJson(e as Map)) .toList(), imageUrl: json['imageUrl'] as String?, @@ -16614,7 +16614,7 @@ class InputSessionStateSpecification { factory InputSessionStateSpecification.fromJson(Map json) { return InputSessionStateSpecification( activeContexts: (json['activeContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveContext.fromJson(e as Map)) .toList(), runtimeHints: json['runtimeHints'] != null @@ -16738,7 +16738,7 @@ class IntentClassificationTestResults { factory IntentClassificationTestResults.fromJson(Map json) { return IntentClassificationTestResults( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => IntentClassificationTestResultItem.fromJson( e as Map)) .toList(), @@ -17056,7 +17056,7 @@ class IntentLevelSlotResolutionTestResultItem { intentName: json['intentName'] as String, multiTurnConversation: json['multiTurnConversation'] as bool, slotResolutionResults: (json['slotResolutionResults'] as List) - .whereNotNull() + .nonNulls .map((e) => SlotResolutionTestResultItem.fromJson(e as Map)) .toList(), @@ -17088,7 +17088,7 @@ class IntentLevelSlotResolutionTestResults { Map json) { return IntentLevelSlotResolutionTestResults( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => IntentLevelSlotResolutionTestResultItem.fromJson( e as Map)) .toList(), @@ -17258,14 +17258,14 @@ class IntentSummary { return IntentSummary( description: json['description'] as String?, inputContexts: (json['inputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputContext.fromJson(e as Map)) .toList(), intentId: json['intentId'] as String?, intentName: json['intentName'] as String?, lastUpdatedDateTime: timeStampFromJson(json['lastUpdatedDateTime']), outputContexts: (json['outputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputContext.fromJson(e as Map)) .toList(), parentIntentSignature: json['parentIntentSignature'] as String?, @@ -17500,7 +17500,7 @@ class ListAggregatedUtterancesResponse { return ListAggregatedUtterancesResponse( aggregatedUtterancesSummaries: (json['aggregatedUtterancesSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregatedUtterancesSummary.fromJson(e as Map)) .toList(), @@ -17586,7 +17586,7 @@ class ListBotAliasReplicasResponse { factory ListBotAliasReplicasResponse.fromJson(Map json) { return ListBotAliasReplicasResponse( botAliasReplicaSummaries: (json['botAliasReplicaSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BotAliasReplicaSummary.fromJson(e as Map)) .toList(), @@ -17641,7 +17641,7 @@ class ListBotAliasesResponse { factory ListBotAliasesResponse.fromJson(Map json) { return ListBotAliasesResponse( botAliasSummaries: (json['botAliasSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotAliasSummary.fromJson(e as Map)) .toList(), botId: json['botId'] as String?, @@ -17693,7 +17693,7 @@ class ListBotLocalesResponse { return ListBotLocalesResponse( botId: json['botId'] as String?, botLocaleSummaries: (json['botLocaleSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotLocaleSummary.fromJson(e as Map)) .toList(), botVersion: json['botVersion'] as String?, @@ -17750,7 +17750,7 @@ class ListBotRecommendationsResponse { return ListBotRecommendationsResponse( botId: json['botId'] as String?, botRecommendationSummaries: (json['botRecommendationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotRecommendationSummary.fromJson(e as Map)) .toList(), @@ -17797,7 +17797,7 @@ class ListBotReplicasResponse { return ListBotReplicasResponse( botId: json['botId'] as String?, botReplicaSummaries: (json['botReplicaSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotReplicaSummary.fromJson(e as Map)) .toList(), sourceRegion: json['sourceRegion'] as String?, @@ -17852,7 +17852,7 @@ class ListBotResourceGenerationsResponse { botId: json['botId'] as String?, botVersion: json['botVersion'] as String?, generationSummaries: (json['generationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GenerationSummary.fromJson(e as Map)) .toList(), localeId: json['localeId'] as String?, @@ -17906,7 +17906,7 @@ class ListBotVersionReplicasResponse { return ListBotVersionReplicasResponse( botId: json['botId'] as String?, botVersionReplicaSummaries: (json['botVersionReplicaSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotVersionReplicaSummary.fromJson(e as Map)) .toList(), @@ -17961,7 +17961,7 @@ class ListBotVersionsResponse { return ListBotVersionsResponse( botId: json['botId'] as String?, botVersionSummaries: (json['botVersionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotVersionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -18004,7 +18004,7 @@ class ListBotsResponse { factory ListBotsResponse.fromJson(Map json) { return ListBotsResponse( botSummaries: (json['botSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -18048,7 +18048,7 @@ class ListBuiltInIntentsResponse { factory ListBuiltInIntentsResponse.fromJson(Map json) { return ListBuiltInIntentsResponse( builtInIntentSummaries: (json['builtInIntentSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuiltInIntentSummary.fromJson(e as Map)) .toList(), localeId: json['localeId'] as String?, @@ -18096,7 +18096,7 @@ class ListBuiltInSlotTypesResponse { factory ListBuiltInSlotTypesResponse.fromJson(Map json) { return ListBuiltInSlotTypesResponse( builtInSlotTypeSummaries: (json['builtInSlotTypeSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BuiltInSlotTypeSummary.fromJson(e as Map)) .toList(), @@ -18153,7 +18153,7 @@ class ListCustomVocabularyItemsResponse { botId: json['botId'] as String?, botVersion: json['botVersion'] as String?, customVocabularyItems: (json['customVocabularyItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomVocabularyItem.fromJson(e as Map)) .toList(), localeId: json['localeId'] as String?, @@ -18215,7 +18215,7 @@ class ListExportsResponse { botId: json['botId'] as String?, botVersion: json['botVersion'] as String?, exportSummaries: (json['exportSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportSummary.fromJson(e as Map)) .toList(), localeId: json['localeId'] as String?, @@ -18277,7 +18277,7 @@ class ListImportsResponse { botId: json['botId'] as String?, botVersion: json['botVersion'] as String?, importSummaries: (json['importSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportSummary.fromJson(e as Map)) .toList(), localeId: json['localeId'] as String?, @@ -18329,7 +18329,7 @@ class ListIntentMetricsResponse { botId: json['botId'] as String?, nextToken: json['nextToken'] as String?, results: (json['results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsIntentResult.fromJson(e as Map)) .toList(), ); @@ -18359,7 +18359,7 @@ class ListIntentPathsResponse { factory ListIntentPathsResponse.fromJson(Map json) { return ListIntentPathsResponse( nodeSummaries: (json['nodeSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsIntentNodeSummary.fromJson(e as Map)) .toList(), @@ -18402,7 +18402,7 @@ class ListIntentStageMetricsResponse { botId: json['botId'] as String?, nextToken: json['nextToken'] as String?, results: (json['results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsIntentStageResult.fromJson(e as Map)) .toList(), @@ -18458,7 +18458,7 @@ class ListIntentsResponse { botId: json['botId'] as String?, botVersion: json['botVersion'] as String?, intentSummaries: (json['intentSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntentSummary.fromJson(e as Map)) .toList(), localeId: json['localeId'] as String?, @@ -18528,7 +18528,7 @@ class ListRecommendedIntentsResponse { localeId: json['localeId'] as String?, nextToken: json['nextToken'] as String?, summaryList: (json['summaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendedIntentSummary.fromJson(e as Map)) .toList(), @@ -18583,7 +18583,7 @@ class ListSessionAnalyticsDataResponse { botId: json['botId'] as String?, nextToken: json['nextToken'] as String?, sessions: (json['sessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SessionSpecification.fromJson(e as Map)) .toList(), ); @@ -18629,7 +18629,7 @@ class ListSessionMetricsResponse { botId: json['botId'] as String?, nextToken: json['nextToken'] as String?, results: (json['results'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AnalyticsSessionResult.fromJson(e as Map)) .toList(), @@ -18687,7 +18687,7 @@ class ListSlotTypesResponse { localeId: json['localeId'] as String?, nextToken: json['nextToken'] as String?, slotTypeSummaries: (json['slotTypeSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeSummary.fromJson(e as Map)) .toList(), ); @@ -18753,7 +18753,7 @@ class ListSlotsResponse { localeId: json['localeId'] as String?, nextToken: json['nextToken'] as String?, slotSummaries: (json['slotSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotSummary.fromJson(e as Map)) .toList(), ); @@ -18858,7 +18858,7 @@ class ListTestExecutionsResponse { return ListTestExecutionsResponse( nextToken: json['nextToken'] as String?, testExecutions: (json['testExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestExecutionSummary.fromJson(e as Map)) .toList(), ); @@ -18893,7 +18893,7 @@ class ListTestSetRecordsResponse { return ListTestSetRecordsResponse( nextToken: json['nextToken'] as String?, testSetRecords: (json['testSetRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestSetTurnRecord.fromJson(e as Map)) .toList(), ); @@ -18928,7 +18928,7 @@ class ListTestSetsResponse { return ListTestSetsResponse( nextToken: json['nextToken'] as String?, testSets: (json['testSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestSetSummary.fromJson(e as Map)) .toList(), ); @@ -18974,7 +18974,7 @@ class ListUtteranceAnalyticsDataResponse { botId: json['botId'] as String?, nextToken: json['nextToken'] as String?, utterances: (json['utterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => UtteranceSpecification.fromJson(e as Map)) .toList(), @@ -19021,7 +19021,7 @@ class ListUtteranceMetricsResponse { botId: json['botId'] as String?, nextToken: json['nextToken'] as String?, results: (json['results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsUtteranceResult.fromJson(e as Map)) .toList(), @@ -19131,7 +19131,7 @@ class MessageGroup { return MessageGroup( message: Message.fromJson(json['message'] as Map), variations: (json['variations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Message.fromJson(e as Map)) .toList(), ); @@ -19305,7 +19305,7 @@ class OpensearchConfiguration { json['exactResponseFields'] as Map) : null, includeFields: (json['includeFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -19434,7 +19434,7 @@ class OverallTestResults { factory OverallTestResults.fromJson(Map json) { return OverallTestResults( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => OverallTestResultItem.fromJson(e as Map)) .toList(), ); @@ -19494,7 +19494,7 @@ class PathFormat { factory PathFormat.fromJson(Map json) { return PathFormat( objectPrefixes: (json['objectPrefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -19885,7 +19885,7 @@ class PromptSpecification { return PromptSpecification( maxRetries: json['maxRetries'] as int, messageGroups: (json['messageGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => MessageGroup.fromJson(e as Map)) .toList(), allowInterrupt: json['allowInterrupt'] as bool?, @@ -20136,7 +20136,7 @@ class ResponseSpecification { factory ResponseSpecification.fromJson(Map json) { return ResponseSpecification( messageGroups: (json['messageGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => MessageGroup.fromJson(e as Map)) .toList(), allowInterrupt: json['allowInterrupt'] as bool?, @@ -20176,7 +20176,7 @@ class RuntimeHintDetails { factory RuntimeHintDetails.fromJson(Map json) { return RuntimeHintDetails( runtimeHintValues: (json['runtimeHintValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuntimeHintValue.fromJson(e as Map)) .toList(), subSlotHints: (json['subSlotHints'] as Map?)?.map((k, @@ -20550,7 +20550,7 @@ class SearchAssociatedTranscriptsResponse { Map json) { return SearchAssociatedTranscriptsResponse( associatedTranscripts: (json['associatedTranscripts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociatedTranscript.fromJson(e as Map)) .toList(), botId: json['botId'] as String?, @@ -20754,7 +20754,7 @@ class SessionSpecification { conversationEndTime: timeStampFromJson(json['conversationEndTime']), conversationStartTime: timeStampFromJson(json['conversationStartTime']), invokedIntentSamples: (json['invokedIntentSamples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InvokedIntentSample.fromJson(e as Map)) .toList(), localeId: json['localeId'] as String?, @@ -20953,7 +20953,7 @@ class SlotDefaultValueSpecification { factory SlotDefaultValueSpecification.fromJson(Map json) { return SlotDefaultValueSpecification( defaultValueList: (json['defaultValueList'] as List) - .whereNotNull() + .nonNulls .map((e) => SlotDefaultValue.fromJson(e as Map)) .toList(), ); @@ -21598,7 +21598,7 @@ class SlotTypeValue { ? SampleValue.fromJson(json['sampleValue'] as Map) : null, synonyms: (json['synonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampleValue.fromJson(e as Map)) .toList(), ); @@ -21691,7 +21691,7 @@ class SlotValueElicitationSetting { json['promptSpecification'] as Map) : null, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampleUtterance.fromJson(e as Map)) .toList(), slotCaptureSetting: json['slotCaptureSetting'] != null @@ -21763,7 +21763,7 @@ class SlotValueOverride { ? SlotValue.fromJson(json['value'] as Map) : null, values: (json['values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotValueOverride.fromJson(e as Map)) .toList(), ); @@ -22365,7 +22365,7 @@ class StillWaitingResponseSpecification { return StillWaitingResponseSpecification( frequencyInSeconds: json['frequencyInSeconds'] as int, messageGroups: (json['messageGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => MessageGroup.fromJson(e as Map)) .toList(), timeoutInSeconds: json['timeoutInSeconds'] as int, @@ -22549,7 +22549,7 @@ class SubSlotValueElicitationSetting { json['defaultValueSpecification'] as Map) : null, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampleUtterance.fromJson(e as Map)) .toList(), waitAndContinueSpecification: json['waitAndContinueSpecification'] != null @@ -22964,12 +22964,12 @@ class TestSetDiscrepancyErrors { factory TestSetDiscrepancyErrors.fromJson(Map json) { return TestSetDiscrepancyErrors( intentDiscrepancies: (json['intentDiscrepancies'] as List) - .whereNotNull() + .nonNulls .map((e) => TestSetIntentDiscrepancyItem.fromJson(e as Map)) .toList(), slotDiscrepancies: (json['slotDiscrepancies'] as List) - .whereNotNull() + .nonNulls .map((e) => TestSetSlotDiscrepancyItem.fromJson(e as Map)) .toList(), @@ -24002,7 +24002,7 @@ class UpdateBotLocaleResponse { creationDateTime: timeStampFromJson(json['creationDateTime']), description: json['description'] as String?, failureReasons: (json['failureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), generativeAISettings: json['generativeAISettings'] != null @@ -24015,7 +24015,7 @@ class UpdateBotLocaleResponse { nluIntentConfidenceThreshold: json['nluIntentConfidenceThreshold'] as double?, recommendedActions: (json['recommendedActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), voiceSettings: json['voiceSettings'] != null @@ -24220,7 +24220,7 @@ class UpdateBotResponse { return UpdateBotResponse( botId: json['botId'] as String?, botMembers: (json['botMembers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotMember.fromJson(e as Map)) .toList(), botName: json['botName'] as String?, @@ -24450,7 +24450,7 @@ class UpdateIntentResponse { json['initialResponseSetting'] as Map) : null, inputContexts: (json['inputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputContext.fromJson(e as Map)) .toList(), intentClosingSetting: json['intentClosingSetting'] != null @@ -24470,7 +24470,7 @@ class UpdateIntentResponse { lastUpdatedDateTime: timeStampFromJson(json['lastUpdatedDateTime']), localeId: json['localeId'] as String?, outputContexts: (json['outputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputContext.fromJson(e as Map)) .toList(), parentIntentSignature: json['parentIntentSignature'] as String?, @@ -24479,11 +24479,11 @@ class UpdateIntentResponse { json['qnAIntentConfiguration'] as Map) : null, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampleUtterance.fromJson(e as Map)) .toList(), slotPriorities: (json['slotPriorities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotPriority.fromJson(e as Map)) .toList(), ); @@ -24787,7 +24787,7 @@ class UpdateSlotTypeResponse { slotTypeId: json['slotTypeId'] as String?, slotTypeName: json['slotTypeName'] as String?, slotTypeValues: (json['slotTypeValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeValue.fromJson(e as Map)) .toList(), valueSelectionSetting: json['valueSelectionSetting'] != null @@ -25022,7 +25022,7 @@ class UserTurnOutputSpecification { intent: UserTurnIntentOutput.fromJson(json['intent'] as Map), activeContexts: (json['activeContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveContext.fromJson(e as Map)) .toList(), transcript: json['transcript'] as String?, @@ -25163,7 +25163,7 @@ class UserTurnSlotOutput { MapEntry(k, UserTurnSlotOutput.fromJson(e as Map))), value: json['value'] as String?, values: (json['values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserTurnSlotOutput.fromJson(e as Map)) .toList(), ); @@ -25457,7 +25457,7 @@ class UtteranceLevelTestResults { factory UtteranceLevelTestResults.fromJson(Map json) { return UtteranceLevelTestResults( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => UtteranceLevelTestResultItem.fromJson(e as Map)) .toList(), @@ -25649,7 +25649,7 @@ class UtteranceSpecification { botAliasId: json['botAliasId'] as String?, botResponseAudioVoiceId: json['botResponseAudioVoiceId'] as String?, botResponses: (json['botResponses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtteranceBotResponse.fromJson(e as Map)) .toList(), botVersion: json['botVersion'] as String?, diff --git a/aws_client/lib/src/generated/lex_runtime_service/v2016_11_28.dart b/aws_client/lib/src/generated/lex_runtime_service/v2016_11_28.dart index 3593e95d6..bff728204 100644 --- a/aws_client/lib/src/generated/lex_runtime_service/v2016_11_28.dart +++ b/aws_client/lib/src/generated/lex_runtime_service/v2016_11_28.dart @@ -1208,7 +1208,7 @@ class GenericAttachment { return GenericAttachment( attachmentLinkUrl: json['attachmentLinkUrl'] as String?, buttons: (json['buttons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Button.fromJson(e as Map)) .toList(), imageUrl: json['imageUrl'] as String?, @@ -1273,14 +1273,14 @@ class GetSessionResponse { factory GetSessionResponse.fromJson(Map json) { return GetSessionResponse( activeContexts: (json['activeContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveContext.fromJson(e as Map)) .toList(), dialogAction: json['dialogAction'] != null ? DialogAction.fromJson(json['dialogAction'] as Map) : null, recentIntentSummaryView: (json['recentIntentSummaryView'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntentSummary.fromJson(e as Map)) .toList(), sessionAttributes: (json['sessionAttributes'] as Map?) @@ -1946,11 +1946,11 @@ class PostTextResponse { factory PostTextResponse.fromJson(Map json) { return PostTextResponse( activeContexts: (json['activeContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveContext.fromJson(e as Map)) .toList(), alternativeIntents: (json['alternativeIntents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictedIntent.fromJson(e as Map)) .toList(), botVersion: json['botVersion'] as String?, @@ -2224,7 +2224,7 @@ class ResponseCard { contentType: (json['contentType'] as String?)?.let(ContentType.fromString), genericAttachments: (json['genericAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GenericAttachment.fromJson(e as Map)) .toList(), version: json['version'] as String?, diff --git a/aws_client/lib/src/generated/lex_runtime_v2/v2020_08_07.dart b/aws_client/lib/src/generated/lex_runtime_v2/v2020_08_07.dart index 348da8203..69e8f7c6f 100644 --- a/aws_client/lib/src/generated/lex_runtime_v2/v2020_08_07.dart +++ b/aws_client/lib/src/generated/lex_runtime_v2/v2020_08_07.dart @@ -949,11 +949,11 @@ class GetSessionResponse { factory GetSessionResponse.fromJson(Map json) { return GetSessionResponse( interpretations: (json['interpretations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Interpretation.fromJson(e as Map)) .toList(), messages: (json['messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Message.fromJson(e as Map)) .toList(), sessionId: json['sessionId'] as String?, @@ -1012,7 +1012,7 @@ class ImageResponseCard { return ImageResponseCard( title: json['title'] as String, buttons: (json['buttons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Button.fromJson(e as Map)) .toList(), imageUrl: json['imageUrl'] as String?, @@ -1356,11 +1356,11 @@ class RecognizeTextResponse { factory RecognizeTextResponse.fromJson(Map json) { return RecognizeTextResponse( interpretations: (json['interpretations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Interpretation.fromJson(e as Map)) .toList(), messages: (json['messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Message.fromJson(e as Map)) .toList(), recognizedBotMember: json['recognizedBotMember'] != null @@ -1559,7 +1559,7 @@ class RuntimeHintDetails { factory RuntimeHintDetails.fromJson(Map json) { return RuntimeHintDetails( runtimeHintValues: (json['runtimeHintValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuntimeHintValue.fromJson(e as Map)) .toList(), subSlotHints: (json['subSlotHints'] as Map?)?.map((k, @@ -1791,7 +1791,7 @@ class SessionState { factory SessionState.fromJson(Map json) { return SessionState( activeContexts: (json['activeContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveContext.fromJson(e as Map)) .toList(), dialogAction: json['dialogAction'] != null @@ -1878,7 +1878,7 @@ class Slot { ? Value.fromJson(json['value'] as Map) : null, values: (json['values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Slot.fromJson(e as Map)) .toList(), ); @@ -1942,7 +1942,7 @@ class Value { interpretedValue: json['interpretedValue'] as String, originalValue: json['originalValue'] as String?, resolvedValues: (json['resolvedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/license_manager/v2018_08_01.dart b/aws_client/lib/src/generated/license_manager/v2018_08_01.dart index 7cfdbc47c..d46b78bf0 100644 --- a/aws_client/lib/src/generated/license_manager/v2018_08_01.dart +++ b/aws_client/lib/src/generated/license_manager/v2018_08_01.dart @@ -2907,11 +2907,11 @@ class CheckoutBorrowLicenseResponse { factory CheckoutBorrowLicenseResponse.fromJson(Map json) { return CheckoutBorrowLicenseResponse( checkoutMetadata: (json['CheckoutMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Metadata.fromJson(e as Map)) .toList(), entitlementsAllowed: (json['EntitlementsAllowed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitlementData.fromJson(e as Map)) .toList(), expiration: json['Expiration'] as String?, @@ -2988,7 +2988,7 @@ class CheckoutLicenseResponse { checkoutType: (json['CheckoutType'] as String?)?.let(CheckoutType.fromString), entitlementsAllowed: (json['EntitlementsAllowed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitlementData.fromJson(e as Map)) .toList(), expiration: json['Expiration'] as String?, @@ -3917,7 +3917,7 @@ class GetLicenseConfigurationResponse { json['AutomatedDiscoveryInformation'] as Map) : null, consumedLicenseSummaryList: (json['ConsumedLicenseSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ConsumedLicenseSummary.fromJson(e as Map)) .toList(), @@ -3931,23 +3931,23 @@ class GetLicenseConfigurationResponse { licenseCountingType: (json['LicenseCountingType'] as String?) ?.let(LicenseCountingType.fromString), licenseRules: (json['LicenseRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), managedResourceSummaryList: (json['ManagedResourceSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ManagedResourceSummary.fromJson(e as Map)) .toList(), name: json['Name'] as String?, ownerAccountId: json['OwnerAccountId'] as String?, productInformationList: (json['ProductInformationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductInformation.fromJson(e as Map)) .toList(), status: json['Status'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4283,7 +4283,7 @@ class Grant { grantName: json['GrantName'] as String, grantStatus: GrantStatus.fromString((json['GrantStatus'] as String)), grantedOperations: (json['GrantedOperations'] as List) - .whereNotNull() + .nonNulls .map((e) => AllowedOperation.fromString((e as String))) .toList(), granteePrincipalArn: json['GranteePrincipalArn'] as String, @@ -4422,7 +4422,7 @@ class GrantedLicense { : null, createTime: json['CreateTime'] as String?, entitlements: (json['Entitlements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entitlement.fromJson(e as Map)) .toList(), homeRegion: json['HomeRegion'] as String?, @@ -4431,7 +4431,7 @@ class GrantedLicense { : null, licenseArn: json['LicenseArn'] as String?, licenseMetadata: (json['LicenseMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Metadata.fromJson(e as Map)) .toList(), licenseName: json['LicenseName'] as String?, @@ -4667,7 +4667,7 @@ class License { : null, createTime: json['CreateTime'] as String?, entitlements: (json['Entitlements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entitlement.fromJson(e as Map)) .toList(), homeRegion: json['HomeRegion'] as String?, @@ -4676,7 +4676,7 @@ class License { : null, licenseArn: json['LicenseArn'] as String?, licenseMetadata: (json['LicenseMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Metadata.fromJson(e as Map)) .toList(), licenseName: json['LicenseName'] as String?, @@ -4807,7 +4807,7 @@ class LicenseConfiguration { json['AutomatedDiscoveryInformation'] as Map) : null, consumedLicenseSummaryList: (json['ConsumedLicenseSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ConsumedLicenseSummary.fromJson(e as Map)) .toList(), @@ -4821,18 +4821,18 @@ class LicenseConfiguration { licenseCountingType: (json['LicenseCountingType'] as String?) ?.let(LicenseCountingType.fromString), licenseRules: (json['LicenseRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), managedResourceSummaryList: (json['ManagedResourceSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ManagedResourceSummary.fromJson(e as Map)) .toList(), name: json['Name'] as String?, ownerAccountId: json['OwnerAccountId'] as String?, productInformationList: (json['ProductInformationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductInformation.fromJson(e as Map)) .toList(), status: json['Status'] as String?, @@ -5226,7 +5226,7 @@ class LicenseOperationFailure { errorMessage: json['ErrorMessage'] as String?, failureTime: timeStampFromJson(json['FailureTime']), metadataList: (json['MetadataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Metadata.fromJson(e as Map)) .toList(), operationName: json['OperationName'] as String?, @@ -5324,7 +5324,7 @@ class LicenseUsage { factory LicenseUsage.fromJson(Map json) { return LicenseUsage( entitlementUsages: (json['EntitlementUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitlementUsage.fromJson(e as Map)) .toList(), ); @@ -5355,7 +5355,7 @@ class ListAssociationsForLicenseConfigurationResponse { return ListAssociationsForLicenseConfigurationResponse( licenseConfigurationAssociations: (json['LicenseConfigurationAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseConfigurationAssociation.fromJson( e as Map)) .toList(), @@ -5390,7 +5390,7 @@ class ListDistributedGrantsResponse { factory ListDistributedGrantsResponse.fromJson(Map json) { return ListDistributedGrantsResponse( grants: (json['Grants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Grant.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5424,7 +5424,7 @@ class ListFailuresForLicenseConfigurationOperationsResponse { return ListFailuresForLicenseConfigurationOperationsResponse( licenseOperationFailureList: (json['LicenseOperationFailureList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseOperationFailure.fromJson(e as Map)) .toList(), @@ -5459,7 +5459,7 @@ class ListLicenseConfigurationsResponse { Map json) { return ListLicenseConfigurationsResponse( licenseConfigurations: (json['LicenseConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseConfiguration.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5493,7 +5493,7 @@ class ListLicenseConversionTasksResponse { Map json) { return ListLicenseConversionTasksResponse( licenseConversionTasks: (json['LicenseConversionTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseConversionTask.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5529,7 +5529,7 @@ class ListLicenseManagerReportGeneratorsResponse { return ListLicenseManagerReportGeneratorsResponse( nextToken: json['NextToken'] as String?, reportGenerators: (json['ReportGenerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportGenerator.fromJson(e as Map)) .toList(), ); @@ -5561,7 +5561,7 @@ class ListLicenseSpecificationsForResourceResponse { Map json) { return ListLicenseSpecificationsForResourceResponse( licenseSpecifications: (json['LicenseSpecifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseSpecification.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5594,7 +5594,7 @@ class ListLicenseVersionsResponse { factory ListLicenseVersionsResponse.fromJson(Map json) { return ListLicenseVersionsResponse( licenses: (json['Licenses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => License.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5626,7 +5626,7 @@ class ListLicensesResponse { factory ListLicensesResponse.fromJson(Map json) { return ListLicensesResponse( licenses: (json['Licenses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => License.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5659,7 +5659,7 @@ class ListReceivedGrantsForOrganizationResponse { Map json) { return ListReceivedGrantsForOrganizationResponse( grants: (json['Grants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Grant.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5691,7 +5691,7 @@ class ListReceivedGrantsResponse { factory ListReceivedGrantsResponse.fromJson(Map json) { return ListReceivedGrantsResponse( grants: (json['Grants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Grant.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5724,7 +5724,7 @@ class ListReceivedLicensesForOrganizationResponse { Map json) { return ListReceivedLicensesForOrganizationResponse( licenses: (json['Licenses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrantedLicense.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5756,7 +5756,7 @@ class ListReceivedLicensesResponse { factory ListReceivedLicensesResponse.fromJson(Map json) { return ListReceivedLicensesResponse( licenses: (json['Licenses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrantedLicense.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5789,7 +5789,7 @@ class ListResourceInventoryResponse { return ListResourceInventoryResponse( nextToken: json['NextToken'] as String?, resourceInventoryList: (json['ResourceInventoryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceInventory.fromJson(e as Map)) .toList(), ); @@ -5817,7 +5817,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5847,7 +5847,7 @@ class ListTokensResponse { return ListTokensResponse( nextToken: json['NextToken'] as String?, tokens: (json['Tokens'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TokenData.fromJson(e as Map)) .toList(), ); @@ -5880,7 +5880,7 @@ class ListUsageForLicenseConfigurationResponse { return ListUsageForLicenseConfigurationResponse( licenseConfigurationUsageList: (json['LicenseConfigurationUsageList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseConfigurationUsage.fromJson(e as Map)) .toList(), @@ -6129,7 +6129,7 @@ class ProductInformation { return ProductInformation( productInformationFilterList: (json['ProductInformationFilterList'] as List) - .whereNotNull() + .nonNulls .map((e) => ProductInformationFilter.fromJson(e as Map)) .toList(), @@ -6172,7 +6172,7 @@ class ProductInformationFilter { json['ProductInformationFilterName'] as String, productInformationFilterValue: (json['ProductInformationFilterValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6235,7 +6235,7 @@ class ReceivedMetadata { factory ReceivedMetadata.fromJson(Map json) { return ReceivedMetadata( allowedOperations: (json['AllowedOperations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AllowedOperation.fromString((e as String))) .toList(), receivedStatus: @@ -6343,7 +6343,7 @@ class ReportContext { factory ReportContext.fromJson(Map json) { return ReportContext( licenseConfigurationArns: (json['licenseConfigurationArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -6482,14 +6482,14 @@ class ReportGenerator { : null, reportGeneratorName: json['ReportGeneratorName'] as String?, reportType: (json['ReportType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportType.fromString((e as String))) .toList(), s3Location: json['S3Location'] != null ? S3Location.fromJson(json['S3Location'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6737,13 +6737,13 @@ class TokenData { expirationTime: json['ExpirationTime'] as String?, licenseArn: json['LicenseArn'] as String?, roleArns: (json['RoleArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: json['Status'] as String?, tokenId: json['TokenId'] as String?, tokenProperties: (json['TokenProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tokenType: json['TokenType'] as String?, diff --git a/aws_client/lib/src/generated/license_manager_linux_subscriptions/v2018_05_10.dart b/aws_client/lib/src/generated/license_manager_linux_subscriptions/v2018_05_10.dart index ea7f03fdc..c249c4781 100644 --- a/aws_client/lib/src/generated/license_manager_linux_subscriptions/v2018_05_10.dart +++ b/aws_client/lib/src/generated/license_manager_linux_subscriptions/v2018_05_10.dart @@ -309,7 +309,7 @@ class GetServiceSettingsResponse { factory GetServiceSettingsResponse.fromJson(Map json) { return GetServiceSettingsResponse( homeRegions: (json['HomeRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), linuxSubscriptionsDiscovery: @@ -406,7 +406,7 @@ class Instance { instanceType: json['InstanceType'] as String?, lastUpdatedTime: json['LastUpdatedTime'] as String?, productCode: (json['ProductCode'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), region: json['Region'] as String?, @@ -477,7 +477,7 @@ class LinuxSubscriptionsDiscoverySettings { organizationIntegration: OrganizationIntegration.fromString( (json['OrganizationIntegration'] as String)), sourceRegions: (json['SourceRegions'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -509,7 +509,7 @@ class ListLinuxSubscriptionInstancesResponse { Map json) { return ListLinuxSubscriptionInstancesResponse( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Instance.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -542,7 +542,7 @@ class ListLinuxSubscriptionsResponse { return ListLinuxSubscriptionsResponse( nextToken: json['NextToken'] as String?, subscriptions: (json['Subscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subscription.fromJson(e as Map)) .toList(), ); @@ -677,7 +677,7 @@ class UpdateServiceSettingsResponse { factory UpdateServiceSettingsResponse.fromJson(Map json) { return UpdateServiceSettingsResponse( homeRegions: (json['HomeRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), linuxSubscriptionsDiscovery: diff --git a/aws_client/lib/src/generated/license_manager_user_subscriptions/v2018_05_10.dart b/aws_client/lib/src/generated/license_manager_user_subscriptions/v2018_05_10.dart index cb30f57c8..034410222 100644 --- a/aws_client/lib/src/generated/license_manager_user_subscriptions/v2018_05_10.dart +++ b/aws_client/lib/src/generated/license_manager_user_subscriptions/v2018_05_10.dart @@ -760,10 +760,8 @@ class InstanceSummary { factory InstanceSummary.fromJson(Map json) { return InstanceSummary( instanceId: json['InstanceId'] as String, - products: (json['Products'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + products: + (json['Products'] as List).nonNulls.map((e) => e as String).toList(), status: json['Status'] as String, lastStatusCheckDate: json['LastStatusCheckDate'] as String?, statusMessage: json['StatusMessage'] as String?, @@ -875,7 +873,7 @@ class ListIdentityProvidersResponse { factory ListIdentityProvidersResponse.fromJson(Map json) { return ListIdentityProvidersResponse( identityProviderSummaries: (json['IdentityProviderSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => IdentityProviderSummary.fromJson(e as Map)) .toList(), @@ -908,7 +906,7 @@ class ListInstancesResponse { factory ListInstancesResponse.fromJson(Map json) { return ListInstancesResponse( instanceSummaries: (json['InstanceSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -941,7 +939,7 @@ class ListProductSubscriptionsResponse { return ListProductSubscriptionsResponse( nextToken: json['NextToken'] as String?, productUserSummaries: (json['ProductUserSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductUserSummary.fromJson(e as Map)) .toList(), ); @@ -973,7 +971,7 @@ class ListUserAssociationsResponse { factory ListUserAssociationsResponse.fromJson(Map json) { return ListUserAssociationsResponse( instanceUserSummaries: (json['InstanceUserSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceUserSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1109,10 +1107,8 @@ class Settings { factory Settings.fromJson(Map json) { return Settings( securityGroupId: json['SecurityGroupId'] as String, - subnets: (json['Subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/lightsail/v2016_11_28.dart b/aws_client/lib/src/generated/lightsail/v2016_11_28.dart index 2ab6d4073..9f538812d 100644 --- a/aws_client/lib/src/generated/lightsail/v2016_11_28.dart +++ b/aws_client/lib/src/generated/lightsail/v2016_11_28.dart @@ -10813,7 +10813,7 @@ class Alarm { comparisonOperator: (json['comparisonOperator'] as String?) ?.let(ComparisonOperator.fromString), contactProtocols: (json['contactProtocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactProtocol.fromString((e as String))) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -10830,7 +10830,7 @@ class Alarm { name: json['name'] as String?, notificationEnabled: json['notificationEnabled'] as bool?, notificationTriggers: (json['notificationTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmState.fromString((e as String))) .toList(), period: json['period'] as int?, @@ -10927,7 +10927,7 @@ class AllocateStaticIpResult { factory AllocateStaticIpResult.fromJson(Map json) { return AllocateStaticIpResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -10994,7 +10994,7 @@ class AttachDiskResult { factory AttachDiskResult.fromJson(Map json) { return AttachDiskResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -11022,7 +11022,7 @@ class AttachInstancesToLoadBalancerResult { Map json) { return AttachInstancesToLoadBalancerResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -11053,7 +11053,7 @@ class AttachLoadBalancerTlsCertificateResult { Map json) { return AttachLoadBalancerTlsCertificateResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -11080,7 +11080,7 @@ class AttachStaticIpResult { factory AttachStaticIpResult.fromJson(Map json) { return AttachStaticIpResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -11238,7 +11238,7 @@ class AutoSnapshotDetails { createdAt: timeStampFromJson(json['createdAt']), date: json['date'] as String?, fromAttachedDisks: (json['fromAttachedDisks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachedDisk.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(AutoSnapshotStatus.fromString), @@ -11606,12 +11606,12 @@ class Bucket { name: json['name'] as String?, objectVersioning: json['objectVersioning'] as String?, readonlyAccessAccounts: (json['readonlyAccessAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resourceType: json['resourceType'] as String?, resourcesReceivingAccess: (json['resourcesReceivingAccess'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceReceivingAccess.fromJson(e as Map)) .toList(), @@ -11620,7 +11620,7 @@ class Bucket { : null, supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), url: json['url'] as String?, @@ -11931,11 +11931,11 @@ class Bundle { publicIpv4AddressCount: json['publicIpv4AddressCount'] as int?, ramSizeInGb: json['ramSizeInGb'] as double?, supportedAppCategories: (json['supportedAppCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppCategory.fromString((e as String))) .toList(), supportedPlatforms: (json['supportedPlatforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstancePlatform.fromString((e as String))) .toList(), transferPerMonthInGb: json['transferPerMonthInGb'] as int?, @@ -12430,7 +12430,7 @@ class Certificate { createdAt: timeStampFromJson(json['createdAt']), domainName: json['domainName'] as String?, domainValidationRecords: (json['domainValidationRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DomainValidationRecord.fromJson(e as Map)) .toList(), @@ -12452,12 +12452,12 @@ class Certificate { serialNumber: json['serialNumber'] as String?, status: (json['status'] as String?)?.let(CertificateStatus.fromString), subjectAlternativeNames: (json['subjectAlternativeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -12602,7 +12602,7 @@ class CertificateSummary { certificateName: json['certificateName'] as String?, domainName: json['domainName'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -12711,7 +12711,7 @@ class CloudFormationStackRecord { resourceType: (json['resourceType'] as String?)?.let(ResourceType.fromString), sourceInfo: (json['sourceInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudFormationStackRecordSourceInfo.fromJson( e as Map)) .toList(), @@ -13003,10 +13003,8 @@ class Container { factory Container.fromJson(Map json) { return Container( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), environment: (json['environment'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), image: json['image'] as String?, @@ -13260,7 +13258,7 @@ class ContainerService { : null, publicDomainNames: (json['publicDomainNames'] as Map?) ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + k, (e as List).nonNulls.map((e) => e as String).toList())), resourceType: (json['resourceType'] as String?)?.let(ResourceType.fromString), scale: json['scale'] as int?, @@ -13270,7 +13268,7 @@ class ContainerService { json['stateDetail'] as Map) : null, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), url: json['url'] as String?, @@ -13978,7 +13976,7 @@ class ContainerServicesListResult { factory ContainerServicesListResult.fromJson(Map json) { return ContainerServicesListResult( containerServices: (json['containerServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerService.fromJson(e as Map)) .toList(), ); @@ -14015,7 +14013,7 @@ class CookieObject { factory CookieObject.fromJson(Map json) { return CookieObject( cookiesAllowList: (json['cookiesAllowList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), option: (json['option'] as String?)?.let(ForwardValues.fromString), @@ -14045,7 +14043,7 @@ class CopySnapshotResult { factory CopySnapshotResult.fromJson(Map json) { return CopySnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14077,7 +14075,7 @@ class CostEstimate { factory CostEstimate.fromJson(Map json) { return CostEstimate( resultsByTime: (json['resultsByTime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EstimateByTime.fromJson(e as Map)) .toList(), usageType: json['usageType'] as String?, @@ -14114,7 +14112,7 @@ class CreateBucketAccessKeyResult { ? AccessKey.fromJson(json['accessKey'] as Map) : null, operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14150,7 +14148,7 @@ class CreateBucketResult { ? Bucket.fromJson(json['bucket'] as Map) : null, operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14187,7 +14185,7 @@ class CreateCertificateResult { json['certificate'] as Map) : null, operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14216,7 +14214,7 @@ class CreateCloudFormationStackResult { factory CreateCloudFormationStackResult.fromJson(Map json) { return CreateCloudFormationStackResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14243,7 +14241,7 @@ class CreateContactMethodResult { factory CreateContactMethodResult.fromJson(Map json) { return CreateContactMethodResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14348,7 +14346,7 @@ class CreateDiskFromSnapshotResult { factory CreateDiskFromSnapshotResult.fromJson(Map json) { return CreateDiskFromSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14375,7 +14373,7 @@ class CreateDiskResult { factory CreateDiskResult.fromJson(Map json) { return CreateDiskResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14402,7 +14400,7 @@ class CreateDiskSnapshotResult { factory CreateDiskSnapshotResult.fromJson(Map json) { return CreateDiskSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14535,7 +14533,7 @@ class CreateGUISessionAccessDetailsResult { percentageComplete: json['percentageComplete'] as int?, resourceName: json['resourceName'] as String?, sessions: (json['sessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Session.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(Status.fromString), @@ -14571,7 +14569,7 @@ class CreateInstanceSnapshotResult { factory CreateInstanceSnapshotResult.fromJson(Map json) { return CreateInstanceSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14599,7 +14597,7 @@ class CreateInstancesFromSnapshotResult { Map json) { return CreateInstancesFromSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14626,7 +14624,7 @@ class CreateInstancesResult { factory CreateInstancesResult.fromJson(Map json) { return CreateInstancesResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14703,7 +14701,7 @@ class CreateLoadBalancerResult { factory CreateLoadBalancerResult.fromJson(Map json) { return CreateLoadBalancerResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14731,7 +14729,7 @@ class CreateLoadBalancerTlsCertificateResult { Map json) { return CreateLoadBalancerTlsCertificateResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14759,7 +14757,7 @@ class CreateRelationalDatabaseFromSnapshotResult { Map json) { return CreateRelationalDatabaseFromSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14786,7 +14784,7 @@ class CreateRelationalDatabaseResult { factory CreateRelationalDatabaseResult.fromJson(Map json) { return CreateRelationalDatabaseResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14814,7 +14812,7 @@ class CreateRelationalDatabaseSnapshotResult { Map json) { return CreateRelationalDatabaseSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14854,7 +14852,7 @@ class DeleteAlarmResult { factory DeleteAlarmResult.fromJson(Map json) { return DeleteAlarmResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14881,7 +14879,7 @@ class DeleteAutoSnapshotResult { factory DeleteAutoSnapshotResult.fromJson(Map json) { return DeleteAutoSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14908,7 +14906,7 @@ class DeleteBucketAccessKeyResult { factory DeleteBucketAccessKeyResult.fromJson(Map json) { return DeleteBucketAccessKeyResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14935,7 +14933,7 @@ class DeleteBucketResult { factory DeleteBucketResult.fromJson(Map json) { return DeleteBucketResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14962,7 +14960,7 @@ class DeleteCertificateResult { factory DeleteCertificateResult.fromJson(Map json) { return DeleteCertificateResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14989,7 +14987,7 @@ class DeleteContactMethodResult { factory DeleteContactMethodResult.fromJson(Map json) { return DeleteContactMethodResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15040,7 +15038,7 @@ class DeleteDiskResult { factory DeleteDiskResult.fromJson(Map json) { return DeleteDiskResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15067,7 +15065,7 @@ class DeleteDiskSnapshotResult { factory DeleteDiskSnapshotResult.fromJson(Map json) { return DeleteDiskSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15172,7 +15170,7 @@ class DeleteInstanceResult { factory DeleteInstanceResult.fromJson(Map json) { return DeleteInstanceResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15199,7 +15197,7 @@ class DeleteInstanceSnapshotResult { factory DeleteInstanceSnapshotResult.fromJson(Map json) { return DeleteInstanceSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15252,7 +15250,7 @@ class DeleteKnownHostKeysResult { factory DeleteKnownHostKeysResult.fromJson(Map json) { return DeleteKnownHostKeysResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15279,7 +15277,7 @@ class DeleteLoadBalancerResult { factory DeleteLoadBalancerResult.fromJson(Map json) { return DeleteLoadBalancerResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15307,7 +15305,7 @@ class DeleteLoadBalancerTlsCertificateResult { Map json) { return DeleteLoadBalancerTlsCertificateResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15334,7 +15332,7 @@ class DeleteRelationalDatabaseResult { factory DeleteRelationalDatabaseResult.fromJson(Map json) { return DeleteRelationalDatabaseResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15362,7 +15360,7 @@ class DeleteRelationalDatabaseSnapshotResult { Map json) { return DeleteRelationalDatabaseSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15446,7 +15444,7 @@ class DetachDiskResult { factory DetachDiskResult.fromJson(Map json) { return DetachDiskResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15474,7 +15472,7 @@ class DetachInstancesFromLoadBalancerResult { Map json) { return DetachInstancesFromLoadBalancerResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15501,7 +15499,7 @@ class DetachStaticIpResult { factory DetachStaticIpResult.fromJson(Map json) { return DetachStaticIpResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15528,7 +15526,7 @@ class DisableAddOnResult { factory DisableAddOnResult.fromJson(Map json) { return DisableAddOnResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15641,7 +15639,7 @@ class Disk { factory Disk.fromJson(Map json) { return Disk( addOns: (json['addOns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddOn.fromJson(e as Map)) .toList(), arn: json['arn'] as String?, @@ -15665,7 +15663,7 @@ class Disk { state: (json['state'] as String?)?.let(DiskState.fromString), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -15876,7 +15874,7 @@ class DiskSnapshot { state: (json['state'] as String?)?.let(DiskSnapshotState.fromString), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -16178,7 +16176,7 @@ class Domain { arn: json['arn'] as String?, createdAt: timeStampFromJson(json['createdAt']), domainEntries: (json['domainEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainEntry.fromJson(e as Map)) .toList(), location: json['location'] != null @@ -16194,7 +16192,7 @@ class Domain { (json['resourceType'] as String?)?.let(ResourceType.fromString), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -16443,7 +16441,7 @@ class EnableAddOnResult { factory EnableAddOnResult.fromJson(Map json) { return EnableAddOnResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -16734,7 +16732,7 @@ class ExportSnapshotResult { factory ExportSnapshotResult.fromJson(Map json) { return ExportSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -16785,7 +16783,7 @@ class GetActiveNamesResult { factory GetActiveNamesResult.fromJson(Map json) { return GetActiveNamesResult( activeNames: (json['activeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -16823,7 +16821,7 @@ class GetAlarmsResult { factory GetAlarmsResult.fromJson(Map json) { return GetAlarmsResult( alarms: (json['alarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alarm.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -16861,7 +16859,7 @@ class GetAutoSnapshotsResult { factory GetAutoSnapshotsResult.fromJson(Map json) { return GetAutoSnapshotsResult( autoSnapshots: (json['autoSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoSnapshotDetails.fromJson(e as Map)) .toList(), resourceName: json['resourceName'] as String?, @@ -16904,7 +16902,7 @@ class GetBlueprintsResult { factory GetBlueprintsResult.fromJson(Map json) { return GetBlueprintsResult( blueprints: (json['blueprints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Blueprint.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -16932,7 +16930,7 @@ class GetBucketAccessKeysResult { factory GetBucketAccessKeysResult.fromJson(Map json) { return GetBucketAccessKeysResult( accessKeys: (json['accessKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessKey.fromJson(e as Map)) .toList(), ); @@ -16957,7 +16955,7 @@ class GetBucketBundlesResult { factory GetBucketBundlesResult.fromJson(Map json) { return GetBucketBundlesResult( bundles: (json['bundles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BucketBundle.fromJson(e as Map)) .toList(), ); @@ -16986,7 +16984,7 @@ class GetBucketMetricDataResult { factory GetBucketMetricDataResult.fromJson(Map json) { return GetBucketMetricDataResult( metricData: (json['metricData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatapoint.fromJson(e as Map)) .toList(), metricName: @@ -17039,7 +17037,7 @@ class GetBucketsResult { json['accountLevelBpaSync'] as Map) : null, buckets: (json['buckets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Bucket.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -17081,7 +17079,7 @@ class GetBundlesResult { factory GetBundlesResult.fromJson(Map json) { return GetBundlesResult( bundles: (json['bundles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Bundle.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -17116,7 +17114,7 @@ class GetCertificatesResult { factory GetCertificatesResult.fromJson(Map json) { return GetCertificatesResult( certificates: (json['certificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateSummary.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -17155,7 +17153,7 @@ class GetCloudFormationStackRecordsResult { Map json) { return GetCloudFormationStackRecordsResult( cloudFormationStackRecords: (json['cloudFormationStackRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudFormationStackRecord.fromJson(e as Map)) .toList(), @@ -17185,7 +17183,7 @@ class GetContactMethodsResult { factory GetContactMethodsResult.fromJson(Map json) { return GetContactMethodsResult( contactMethods: (json['contactMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactMethod.fromJson(e as Map)) .toList(), ); @@ -17211,7 +17209,7 @@ class GetContainerAPIMetadataResult { factory GetContainerAPIMetadataResult.fromJson(Map json) { return GetContainerAPIMetadataResult( metadata: (json['metadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -17238,7 +17236,7 @@ class GetContainerImagesResult { factory GetContainerImagesResult.fromJson(Map json) { return GetContainerImagesResult( containerImages: (json['containerImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerImage.fromJson(e as Map)) .toList(), ); @@ -17273,7 +17271,7 @@ class GetContainerLogResult { factory GetContainerLogResult.fromJson(Map json) { return GetContainerLogResult( logEvents: (json['logEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerServiceLogEvent.fromJson(e as Map)) .toList(), @@ -17303,7 +17301,7 @@ class GetContainerServiceDeploymentsResult { Map json) { return GetContainerServiceDeploymentsResult( deployments: (json['deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerServiceDeployment.fromJson(e as Map)) .toList(), @@ -17334,7 +17332,7 @@ class GetContainerServiceMetricDataResult { Map json) { return GetContainerServiceMetricDataResult( metricData: (json['metricData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatapoint.fromJson(e as Map)) .toList(), metricName: (json['metricName'] as String?) @@ -17364,7 +17362,7 @@ class GetContainerServicePowersResult { factory GetContainerServicePowersResult.fromJson(Map json) { return GetContainerServicePowersResult( powers: (json['powers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerServicePower.fromJson(e as Map)) .toList(), ); @@ -17389,7 +17387,7 @@ class GetCostEstimateResult { factory GetCostEstimateResult.fromJson(Map json) { return GetCostEstimateResult( resourcesBudgetEstimate: (json['resourcesBudgetEstimate'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ResourceBudgetEstimate.fromJson(e as Map)) .toList(), @@ -17475,7 +17473,7 @@ class GetDiskSnapshotsResult { factory GetDiskSnapshotsResult.fromJson(Map json) { return GetDiskSnapshotsResult( diskSnapshots: (json['diskSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DiskSnapshot.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -17513,7 +17511,7 @@ class GetDisksResult { factory GetDisksResult.fromJson(Map json) { return GetDisksResult( disks: (json['disks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Disk.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -17541,7 +17539,7 @@ class GetDistributionBundlesResult { factory GetDistributionBundlesResult.fromJson(Map json) { return GetDistributionBundlesResult( bundles: (json['bundles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DistributionBundle.fromJson(e as Map)) .toList(), ); @@ -17601,7 +17599,7 @@ class GetDistributionMetricDataResult { factory GetDistributionMetricDataResult.fromJson(Map json) { return GetDistributionMetricDataResult( metricData: (json['metricData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatapoint.fromJson(e as Map)) .toList(), metricName: (json['metricName'] as String?) @@ -17640,7 +17638,7 @@ class GetDistributionsResult { factory GetDistributionsResult.fromJson(Map json) { return GetDistributionsResult( distributions: (json['distributions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LightsailDistribution.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -17704,7 +17702,7 @@ class GetDomainsResult { factory GetDomainsResult.fromJson(Map json) { return GetDomainsResult( domains: (json['domains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Domain.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -17742,7 +17740,7 @@ class GetExportSnapshotRecordsResult { factory GetExportSnapshotRecordsResult.fromJson(Map json) { return GetExportSnapshotRecordsResult( exportSnapshotRecords: (json['exportSnapshotRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportSnapshotRecord.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -17801,7 +17799,7 @@ class GetInstanceMetricDataResult { factory GetInstanceMetricDataResult.fromJson(Map json) { return GetInstanceMetricDataResult( metricData: (json['metricData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatapoint.fromJson(e as Map)) .toList(), metricName: @@ -17831,7 +17829,7 @@ class GetInstancePortStatesResult { factory GetInstancePortStatesResult.fromJson(Map json) { return GetInstancePortStatesResult( portStates: (json['portStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstancePortState.fromJson(e as Map)) .toList(), ); @@ -17918,7 +17916,7 @@ class GetInstanceSnapshotsResult { factory GetInstanceSnapshotsResult.fromJson(Map json) { return GetInstanceSnapshotsResult( instanceSnapshots: (json['instanceSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceSnapshot.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -17980,7 +17978,7 @@ class GetInstancesResult { factory GetInstancesResult.fromJson(Map json) { return GetInstancesResult( instances: (json['instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Instance.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -18042,7 +18040,7 @@ class GetKeyPairsResult { factory GetKeyPairsResult.fromJson(Map json) { return GetKeyPairsResult( keyPairs: (json['keyPairs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyPair.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -18074,7 +18072,7 @@ class GetLoadBalancerMetricDataResult { factory GetLoadBalancerMetricDataResult.fromJson(Map json) { return GetLoadBalancerMetricDataResult( metricData: (json['metricData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatapoint.fromJson(e as Map)) .toList(), metricName: (json['metricName'] as String?) @@ -18129,7 +18127,7 @@ class GetLoadBalancerTlsCertificatesResult { Map json) { return GetLoadBalancerTlsCertificatesResult( tlsCertificates: (json['tlsCertificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancerTlsCertificate.fromJson(e as Map)) .toList(), @@ -18167,7 +18165,7 @@ class GetLoadBalancerTlsPoliciesResult { return GetLoadBalancerTlsPoliciesResult( nextPageToken: json['nextPageToken'] as String?, tlsPolicies: (json['tlsPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancerTlsPolicy.fromJson(e as Map)) .toList(), ); @@ -18204,7 +18202,7 @@ class GetLoadBalancersResult { factory GetLoadBalancersResult.fromJson(Map json) { return GetLoadBalancersResult( loadBalancers: (json['loadBalancers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancer.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -18281,7 +18279,7 @@ class GetOperationsForResourceResult { nextPageCount: json['nextPageCount'] as String?, nextPageToken: json['nextPageToken'] as String?, operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -18323,7 +18321,7 @@ class GetOperationsResult { return GetOperationsResult( nextPageToken: json['nextPageToken'] as String?, operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -18351,7 +18349,7 @@ class GetRegionsResult { factory GetRegionsResult.fromJson(Map json) { return GetRegionsResult( regions: (json['regions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Region.fromJson(e as Map)) .toList(), ); @@ -18388,7 +18386,7 @@ class GetRelationalDatabaseBlueprintsResult { Map json) { return GetRelationalDatabaseBlueprintsResult( blueprints: (json['blueprints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationalDatabaseBlueprint.fromJson(e as Map)) .toList(), @@ -18429,7 +18427,7 @@ class GetRelationalDatabaseBundlesResult { Map json) { return GetRelationalDatabaseBundlesResult( bundles: (json['bundles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationalDatabaseBundle.fromJson(e as Map)) .toList(), @@ -18471,7 +18469,7 @@ class GetRelationalDatabaseEventsResult { return GetRelationalDatabaseEventsResult( nextPageToken: json['nextPageToken'] as String?, relationalDatabaseEvents: (json['relationalDatabaseEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationalDatabaseEvent.fromJson(e as Map)) .toList(), @@ -18514,7 +18512,7 @@ class GetRelationalDatabaseLogEventsResult { nextBackwardToken: json['nextBackwardToken'] as String?, nextForwardToken: json['nextForwardToken'] as String?, resourceLogEvents: (json['resourceLogEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogEvent.fromJson(e as Map)) .toList(), ); @@ -18545,7 +18543,7 @@ class GetRelationalDatabaseLogStreamsResult { Map json) { return GetRelationalDatabaseLogStreamsResult( logStreams: (json['logStreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -18606,7 +18604,7 @@ class GetRelationalDatabaseMetricDataResult { Map json) { return GetRelationalDatabaseMetricDataResult( metricData: (json['metricData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatapoint.fromJson(e as Map)) .toList(), metricName: (json['metricName'] as String?) @@ -18648,7 +18646,7 @@ class GetRelationalDatabaseParametersResult { return GetRelationalDatabaseParametersResult( nextPageToken: json['nextPageToken'] as String?, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationalDatabaseParameter.fromJson(e as Map)) .toList(), @@ -18742,7 +18740,7 @@ class GetRelationalDatabaseSnapshotsResult { nextPageToken: json['nextPageToken'] as String?, relationalDatabaseSnapshots: (json['relationalDatabaseSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationalDatabaseSnapshot.fromJson(e as Map)) .toList(), @@ -18782,7 +18780,7 @@ class GetRelationalDatabasesResult { return GetRelationalDatabasesResult( nextPageToken: json['nextPageToken'] as String?, relationalDatabases: (json['relationalDatabases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationalDatabase.fromJson(e as Map)) .toList(), ); @@ -18821,7 +18819,7 @@ class GetSetupHistoryResult { return GetSetupHistoryResult( nextPageToken: json['nextPageToken'] as String?, setupHistory: (json['setupHistory'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SetupHistory.fromJson(e as Map)) .toList(), ); @@ -18885,7 +18883,7 @@ class GetStaticIpsResult { return GetStaticIpsResult( nextPageToken: json['nextPageToken'] as String?, staticIps: (json['staticIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StaticIp.fromJson(e as Map)) .toList(), ); @@ -18970,7 +18968,7 @@ class HeaderObject { factory HeaderObject.fromJson(Map json) { return HeaderObject( headersAllowList: (json['headersAllowList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HeaderEnum.fromString((e as String))) .toList(), option: (json['option'] as String?)?.let(ForwardValues.fromString), @@ -19312,7 +19310,7 @@ class Instance { factory Instance.fromJson(Map json) { return Instance( addOns: (json['addOns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddOn.fromJson(e as Map)) .toList(), arn: json['arn'] as String?, @@ -19326,7 +19324,7 @@ class Instance { ipAddressType: (json['ipAddressType'] as String?)?.let(IpAddressType.fromString), ipv6Addresses: (json['ipv6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), isStaticIp: json['isStaticIp'] as bool?, @@ -19352,7 +19350,7 @@ class Instance { : null, supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), username: json['username'] as String?, @@ -19484,13 +19482,13 @@ class InstanceAccessDetails { certKey: json['certKey'] as String?, expiresAt: timeStampFromJson(json['expiresAt']), hostKeys: (json['hostKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HostKeyAttributes.fromJson(e as Map)) .toList(), instanceName: json['instanceName'] as String?, ipAddress: json['ipAddress'] as String?, ipv6Addresses: (json['ipv6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), password: json['password'] as String?, @@ -19656,7 +19654,7 @@ class InstanceHardware { return InstanceHardware( cpuCount: json['cpuCount'] as int?, disks: (json['disks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Disk.fromJson(e as Map)) .toList(), ramSizeInGb: json['ramSizeInGb'] as double?, @@ -19982,7 +19980,7 @@ class InstanceNetworking { json['monthlyTransfer'] as Map) : null, ports: (json['ports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstancePortInfo.fromJson(e as Map)) .toList(), ); @@ -20182,17 +20180,15 @@ class InstancePortInfo { accessType: (json['accessType'] as String?)?.let(PortAccessType.fromString), cidrListAliases: (json['cidrListAliases'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - cidrs: (json['cidrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + cidrs: + (json['cidrs'] as List?)?.nonNulls.map((e) => e as String).toList(), commonName: json['commonName'] as String?, fromPort: json['fromPort'] as int?, ipv6Cidrs: (json['ipv6Cidrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), protocol: (json['protocol'] as String?)?.let(NetworkProtocol.fromString), @@ -20378,16 +20374,14 @@ class InstancePortState { factory InstancePortState.fromJson(Map json) { return InstancePortState( cidrListAliases: (json['cidrListAliases'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - cidrs: (json['cidrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + cidrs: + (json['cidrs'] as List?)?.nonNulls.map((e) => e as String).toList(), fromPort: json['fromPort'] as int?, ipv6Cidrs: (json['ipv6Cidrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), protocol: (json['protocol'] as String?)?.let(NetworkProtocol.fromString), @@ -20506,7 +20500,7 @@ class InstanceSnapshot { arn: json['arn'] as String?, createdAt: timeStampFromJson(json['createdAt']), fromAttachedDisks: (json['fromAttachedDisks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Disk.fromJson(e as Map)) .toList(), fromBlueprintId: json['fromBlueprintId'] as String?, @@ -20525,7 +20519,7 @@ class InstanceSnapshot { state: (json['state'] as String?)?.let(InstanceSnapshotState.fromString), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -20594,7 +20588,7 @@ class InstanceSnapshotInfo { fromBlueprintId: json['fromBlueprintId'] as String?, fromBundleId: json['fromBundleId'] as String?, fromDiskInfo: (json['fromDiskInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DiskInfo.fromJson(e as Map)) .toList(), ); @@ -20753,7 +20747,7 @@ class KeyPair { (json['resourceType'] as String?)?.let(ResourceType.fromString), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -20898,7 +20892,7 @@ class LightsailDistribution { return LightsailDistribution( ableToUpdateBundle: json['ableToUpdateBundle'] as bool?, alternativeDomainNames: (json['alternativeDomainNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), arn: json['arn'] as String?, @@ -20908,7 +20902,7 @@ class LightsailDistribution { json['cacheBehaviorSettings'] as Map) : null, cacheBehaviors: (json['cacheBehaviors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CacheBehaviorPerPath.fromJson(e as Map)) .toList(), certificateName: json['certificateName'] as String?, @@ -20934,7 +20928,7 @@ class LightsailDistribution { status: json['status'] as String?, supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), viewerMinimumTlsProtocolVersion: @@ -21110,7 +21104,7 @@ class LoadBalancer { healthCheckPath: json['healthCheckPath'] as String?, httpsRedirectionEnabled: json['httpsRedirectionEnabled'] as bool?, instanceHealthSummary: (json['instanceHealthSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceHealthSummary.fromJson(e as Map)) .toList(), instancePort: json['instancePort'] as int?, @@ -21123,7 +21117,7 @@ class LoadBalancer { protocol: (json['protocol'] as String?)?.let(LoadBalancerProtocol.fromString), publicPorts: (json['publicPorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), resourceType: @@ -21131,11 +21125,11 @@ class LoadBalancer { state: (json['state'] as String?)?.let(LoadBalancerState.fromString), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), tlsCertificateSummaries: (json['tlsCertificateSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancerTlsCertificateSummary.fromJson( e as Map)) .toList(), @@ -21490,7 +21484,7 @@ class LoadBalancerTlsCertificate { createdAt: timeStampFromJson(json['createdAt']), domainName: json['domainName'] as String?, domainValidationRecords: (json['domainValidationRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancerTlsCertificateDomainValidationRecord.fromJson( e as Map)) .toList(), @@ -21522,12 +21516,12 @@ class LoadBalancerTlsCertificate { ?.let(LoadBalancerTlsCertificateStatus.fromString), subject: json['subject'] as String?, subjectAlternativeNames: (json['subjectAlternativeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -21891,7 +21885,7 @@ class LoadBalancerTlsCertificateRenewalSummary { Map json) { return LoadBalancerTlsCertificateRenewalSummary( domainValidationOptions: (json['domainValidationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancerTlsCertificateDomainValidationOption.fromJson( e as Map)) .toList(), @@ -22023,15 +22017,13 @@ class LoadBalancerTlsPolicy { factory LoadBalancerTlsPolicy.fromJson(Map json) { return LoadBalancerTlsPolicy( - ciphers: (json['ciphers'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ciphers: + (json['ciphers'] as List?)?.nonNulls.map((e) => e as String).toList(), description: json['description'] as String?, isDefault: json['isDefault'] as bool?, name: json['name'] as String?, protocols: (json['protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -23188,7 +23180,7 @@ class PutAlarmResult { factory PutAlarmResult.fromJson(Map json) { return PutAlarmResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -23257,7 +23249,7 @@ class QueryStringObject { return QueryStringObject( option: json['option'] as bool?, queryStringsAllowList: (json['queryStringsAllowList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -23353,7 +23345,7 @@ class RebootInstanceResult { factory RebootInstanceResult.fromJson(Map json) { return RebootInstanceResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -23380,7 +23372,7 @@ class RebootRelationalDatabaseResult { factory RebootRelationalDatabaseResult.fromJson(Map json) { return RebootRelationalDatabaseResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -23445,7 +23437,7 @@ class Region { factory Region.fromJson(Map json) { return Region( availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailabilityZone.fromJson(e as Map)) .toList(), continentCode: json['continentCode'] as String?, @@ -23454,7 +23446,7 @@ class Region { name: (json['name'] as String?)?.let(RegionName.fromString), relationalDatabaseAvailabilityZones: (json['relationalDatabaseAvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailabilityZone.fromJson(e as Map)) .toList(), ); @@ -23760,7 +23752,7 @@ class RelationalDatabase { name: json['name'] as String?, parameterApplyStatus: json['parameterApplyStatus'] as String?, pendingMaintenanceActions: (json['pendingMaintenanceActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingMaintenanceAction.fromJson(e as Map)) .toList(), @@ -23780,7 +23772,7 @@ class RelationalDatabase { state: json['state'] as String?, supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -24070,7 +24062,7 @@ class RelationalDatabaseEvent { return RelationalDatabaseEvent( createdAt: timeStampFromJson(json['createdAt']), eventCategories: (json['eventCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), message: json['message'] as String?, @@ -24337,7 +24329,7 @@ class RelationalDatabaseSnapshot { state: json['state'] as String?, supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -24397,7 +24389,7 @@ class ReleaseStaticIpResult { factory ReleaseStaticIpResult.fromJson(Map json) { return ReleaseStaticIpResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -24482,7 +24474,7 @@ class RenewalSummary { factory RenewalSummary.fromJson(Map json) { return RenewalSummary( domainValidationRecords: (json['domainValidationRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DomainValidationRecord.fromJson(e as Map)) .toList(), @@ -24593,7 +24585,7 @@ class ResourceBudgetEstimate { factory ResourceBudgetEstimate.fromJson(Map json) { return ResourceBudgetEstimate( costEstimates: (json['costEstimates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostEstimate.fromJson(e as Map)) .toList(), endTime: timeStampFromJson(json['endTime']), @@ -24767,7 +24759,7 @@ class SendContactMethodVerificationResult { Map json) { return SendContactMethodVerificationResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -24834,7 +24826,7 @@ class SetIpAddressTypeResult { factory SetIpAddressTypeResult.fromJson(Map json) { return SetIpAddressTypeResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -24861,7 +24853,7 @@ class SetResourceAccessForBucketResult { factory SetResourceAccessForBucketResult.fromJson(Map json) { return SetResourceAccessForBucketResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -24970,7 +24962,7 @@ class SetupHistory { factory SetupHistory.fromJson(Map json) { return SetupHistory( executionDetails: (json['executionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SetupExecutionDetails.fromJson(e as Map)) .toList(), operationId: json['operationId'] as String?, @@ -25064,7 +25056,7 @@ class SetupInstanceHttpsResult { factory SetupInstanceHttpsResult.fromJson(Map json) { return SetupInstanceHttpsResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25102,7 +25094,7 @@ class SetupRequest { certificateProvider: (json['certificateProvider'] as String?) ?.let(CertificateProvider.fromString), domainNames: (json['domainNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), instanceName: json['instanceName'] as String?, @@ -25148,7 +25140,7 @@ class StartGUISessionResult { factory StartGUISessionResult.fromJson(Map json) { return StartGUISessionResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25175,7 +25167,7 @@ class StartInstanceResult { factory StartInstanceResult.fromJson(Map json) { return StartInstanceResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25202,7 +25194,7 @@ class StartRelationalDatabaseResult { factory StartRelationalDatabaseResult.fromJson(Map json) { return StartRelationalDatabaseResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25349,7 +25341,7 @@ class StopGUISessionResult { factory StopGUISessionResult.fromJson(Map json) { return StopGUISessionResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25404,7 +25396,7 @@ class StopInstanceResult { factory StopInstanceResult.fromJson(Map json) { return StopInstanceResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25431,7 +25423,7 @@ class StopRelationalDatabaseResult { factory StopRelationalDatabaseResult.fromJson(Map json) { return StopRelationalDatabaseResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25499,7 +25491,7 @@ class TagResourceResult { factory TagResourceResult.fromJson(Map json) { return TagResourceResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25526,7 +25518,7 @@ class TestAlarmResult { factory TestAlarmResult.fromJson(Map json) { return TestAlarmResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25638,7 +25630,7 @@ class UntagResourceResult { factory UntagResourceResult.fromJson(Map json) { return UntagResourceResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25665,7 +25657,7 @@ class UpdateBucketBundleResult { factory UpdateBucketBundleResult.fromJson(Map json) { return UpdateBucketBundleResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25699,7 +25691,7 @@ class UpdateBucketResult { ? Bucket.fromJson(json['bucket'] as Map) : null, operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25805,7 +25797,7 @@ class UpdateDomainEntryResult { factory UpdateDomainEntryResult.fromJson(Map json) { return UpdateDomainEntryResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25860,7 +25852,7 @@ class UpdateLoadBalancerAttributeResult { Map json) { return UpdateLoadBalancerAttributeResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25888,7 +25880,7 @@ class UpdateRelationalDatabaseParametersResult { Map json) { return UpdateRelationalDatabaseParametersResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -25915,7 +25907,7 @@ class UpdateRelationalDatabaseResult { factory UpdateRelationalDatabaseResult.fromJson(Map json) { return UpdateRelationalDatabaseResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/location/v2020_11_19.dart b/aws_client/lib/src/generated/location/v2020_11_19.dart index faf44bd2c..a81c19bd7 100644 --- a/aws_client/lib/src/generated/location/v2020_11_19.dart +++ b/aws_client/lib/src/generated/location/v2020_11_19.dart @@ -3952,15 +3952,15 @@ class ApiKeyRestrictions { factory ApiKeyRestrictions.fromJson(Map json) { return ApiKeyRestrictions( allowActions: (json['AllowActions'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowResources: (json['AllowResources'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowReferers: (json['AllowReferers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4031,7 +4031,7 @@ class BatchDeleteDevicePositionHistoryResponse { Map json) { return BatchDeleteDevicePositionHistoryResponse( errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDeleteDevicePositionHistoryError.fromJson( e as Map)) .toList(), @@ -4088,7 +4088,7 @@ class BatchDeleteGeofenceResponse { factory BatchDeleteGeofenceResponse.fromJson(Map json) { return BatchDeleteGeofenceResponse( errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDeleteGeofenceError.fromJson(e as Map)) .toList(), @@ -4155,7 +4155,7 @@ class BatchEvaluateGeofencesResponse { factory BatchEvaluateGeofencesResponse.fromJson(Map json) { return BatchEvaluateGeofencesResponse( errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchEvaluateGeofencesError.fromJson(e as Map)) .toList(), @@ -4217,11 +4217,11 @@ class BatchGetDevicePositionResponse { factory BatchGetDevicePositionResponse.fromJson(Map json) { return BatchGetDevicePositionResponse( devicePositions: (json['DevicePositions'] as List) - .whereNotNull() + .nonNulls .map((e) => DevicePosition.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetDevicePositionError.fromJson(e as Map)) .toList(), @@ -4374,11 +4374,11 @@ class BatchPutGeofenceResponse { factory BatchPutGeofenceResponse.fromJson(Map json) { return BatchPutGeofenceResponse( errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchPutGeofenceError.fromJson(e as Map)) .toList(), successes: (json['Successes'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchPutGeofenceSuccess.fromJson(e as Map)) .toList(), @@ -4489,7 +4489,7 @@ class BatchUpdateDevicePositionResponse { Map json) { return BatchUpdateDevicePositionResponse( errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchUpdateDevicePositionError.fromJson( e as Map)) .toList(), @@ -4571,24 +4571,22 @@ class CalculateRouteMatrixResponse { factory CalculateRouteMatrixResponse.fromJson(Map json) { return CalculateRouteMatrixResponse( routeMatrix: (json['RouteMatrix'] as List) - .whereNotNull() + .nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => RouteMatrixEntry.fromJson(e as Map)) .toList()) .toList(), summary: CalculateRouteMatrixSummary.fromJson( json['Summary'] as Map), snappedDeparturePositions: (json['SnappedDeparturePositions'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as double).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as double).toList()) .toList(), snappedDestinationPositions: (json['SnappedDestinationPositions'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as double).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as double).toList()) .toList(), ); } @@ -4722,7 +4720,7 @@ class CalculateRouteResponse { factory CalculateRouteResponse.fromJson(Map json) { return CalculateRouteResponse( legs: (json['Legs'] as List) - .whereNotNull() + .nonNulls .map((e) => Leg.fromJson(e as Map)) .toList(), summary: CalculateRouteSummary.fromJson( @@ -4822,10 +4820,8 @@ class CalculateRouteSummary { distance: json['Distance'] as double, distanceUnit: DistanceUnit.fromString((json['DistanceUnit'] as String)), durationSeconds: json['DurationSeconds'] as double, - routeBBox: (json['RouteBBox'] as List) - .whereNotNull() - .map((e) => e as double) - .toList(), + routeBBox: + (json['RouteBBox'] as List).nonNulls.map((e) => e as double).toList(), ); } @@ -4910,10 +4906,8 @@ class Circle { factory Circle.fromJson(Map json) { return Circle( - center: (json['Center'] as List) - .whereNotNull() - .map((e) => e as double) - .toList(), + center: + (json['Center'] as List).nonNulls.map((e) => e as double).toList(), radius: json['Radius'] as double, ); } @@ -6033,10 +6027,8 @@ class DevicePosition { factory DevicePosition.fromJson(Map json) { return DevicePosition( - position: (json['Position'] as List) - .whereNotNull() - .map((e) => e as double) - .toList(), + position: + (json['Position'] as List).nonNulls.map((e) => e as double).toList(), receivedTime: nonNullableTimeStampFromJson(json['ReceivedTime'] as Object), sampleTime: nonNullableTimeStampFromJson(json['SampleTime'] as Object), @@ -6205,11 +6197,10 @@ class GeofenceGeometry { ? Circle.fromJson(json['Circle'] as Map) : null, polygon: (json['Polygon'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as double).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as double).toList()) .toList()) .toList(), ); @@ -6241,7 +6232,7 @@ class GetDevicePositionHistoryResponse { factory GetDevicePositionHistoryResponse.fromJson(Map json) { return GetDevicePositionHistoryResponse( devicePositions: (json['DevicePositions'] as List) - .whereNotNull() + .nonNulls .map((e) => DevicePosition.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6292,10 +6283,8 @@ class GetDevicePositionResponse { factory GetDevicePositionResponse.fromJson(Map json) { return GetDevicePositionResponse( - position: (json['Position'] as List) - .whereNotNull() - .map((e) => e as double) - .toList(), + position: + (json['Position'] as List).nonNulls.map((e) => e as double).toList(), receivedTime: nonNullableTimeStampFromJson(json['ReceivedTime'] as Object), sampleTime: nonNullableTimeStampFromJson(json['SampleTime'] as Object), @@ -6646,15 +6635,15 @@ class Leg { distance: json['Distance'] as double, durationSeconds: json['DurationSeconds'] as double, endPosition: (json['EndPosition'] as List) - .whereNotNull() + .nonNulls .map((e) => e as double) .toList(), startPosition: (json['StartPosition'] as List) - .whereNotNull() + .nonNulls .map((e) => e as double) .toList(), steps: (json['Steps'] as List) - .whereNotNull() + .nonNulls .map((e) => Step.fromJson(e as Map)) .toList(), geometry: json['Geometry'] != null @@ -6704,9 +6693,8 @@ class LegGeometry { factory LegGeometry.fromJson(Map json) { return LegGeometry( lineString: (json['LineString'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as double).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as double).toList()) .toList(), ); } @@ -6735,7 +6723,7 @@ class ListDevicePositionsResponse { factory ListDevicePositionsResponse.fromJson(Map json) { return ListDevicePositionsResponse( entries: (json['Entries'] as List) - .whereNotNull() + .nonNulls .map((e) => ListDevicePositionsResponseEntry.fromJson( e as Map)) .toList(), @@ -6783,10 +6771,8 @@ class ListDevicePositionsResponseEntry { factory ListDevicePositionsResponseEntry.fromJson(Map json) { return ListDevicePositionsResponseEntry( deviceId: json['DeviceId'] as String, - position: (json['Position'] as List) - .whereNotNull() - .map((e) => e as double) - .toList(), + position: + (json['Position'] as List).nonNulls.map((e) => e as double).toList(), sampleTime: nonNullableTimeStampFromJson(json['SampleTime'] as Object), accuracy: json['Accuracy'] != null ? PositionalAccuracy.fromJson( @@ -6830,7 +6816,7 @@ class ListGeofenceCollectionsResponse { factory ListGeofenceCollectionsResponse.fromJson(Map json) { return ListGeofenceCollectionsResponse( entries: (json['Entries'] as List) - .whereNotNull() + .nonNulls .map((e) => ListGeofenceCollectionsResponseEntry.fromJson( e as Map)) .toList(), @@ -7016,7 +7002,7 @@ class ListGeofencesResponse { factory ListGeofencesResponse.fromJson(Map json) { return ListGeofencesResponse( entries: (json['Entries'] as List) - .whereNotNull() + .nonNulls .map((e) => ListGeofenceResponseEntry.fromJson(e as Map)) .toList(), @@ -7052,7 +7038,7 @@ class ListKeysResponse { factory ListKeysResponse.fromJson(Map json) { return ListKeysResponse( entries: (json['Entries'] as List) - .whereNotNull() + .nonNulls .map((e) => ListKeysResponseEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7148,7 +7134,7 @@ class ListMapsResponse { factory ListMapsResponse.fromJson(Map json) { return ListMapsResponse( entries: (json['Entries'] as List) - .whereNotNull() + .nonNulls .map((e) => ListMapsResponseEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7246,7 +7232,7 @@ class ListPlaceIndexesResponse { factory ListPlaceIndexesResponse.fromJson(Map json) { return ListPlaceIndexesResponse( entries: (json['Entries'] as List) - .whereNotNull() + .nonNulls .map((e) => ListPlaceIndexesResponseEntry.fromJson(e as Map)) .toList(), @@ -7359,7 +7345,7 @@ class ListRouteCalculatorsResponse { factory ListRouteCalculatorsResponse.fromJson(Map json) { return ListRouteCalculatorsResponse( entries: (json['Entries'] as List) - .whereNotNull() + .nonNulls .map((e) => ListRouteCalculatorsResponseEntry.fromJson( e as Map)) .toList(), @@ -7516,7 +7502,7 @@ class ListTrackerConsumersResponse { factory ListTrackerConsumersResponse.fromJson(Map json) { return ListTrackerConsumersResponse( consumerArns: (json['ConsumerArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7551,7 +7537,7 @@ class ListTrackersResponse { factory ListTrackersResponse.fromJson(Map json) { return ListTrackersResponse( entries: (json['Entries'] as List) - .whereNotNull() + .nonNulls .map((e) => ListTrackersResponseEntry.fromJson(e as Map)) .toList(), @@ -7806,7 +7792,7 @@ class MapConfiguration { return MapConfiguration( style: json['Style'] as String, customLayers: (json['CustomLayers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), politicalView: json['PoliticalView'] as String?, @@ -8005,7 +7991,7 @@ class Place { PlaceGeometry.fromJson(json['Geometry'] as Map), addressNumber: json['AddressNumber'] as String?, categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), country: json['Country'] as String?, @@ -8019,7 +8005,7 @@ class Place { subMunicipality: json['SubMunicipality'] as String?, subRegion: json['SubRegion'] as String?, supplementalCategories: (json['SupplementalCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), timeZone: json['TimeZone'] != null @@ -8093,10 +8079,8 @@ class PlaceGeometry { factory PlaceGeometry.fromJson(Map json) { return PlaceGeometry( - point: (json['Point'] as List?) - ?.whereNotNull() - .map((e) => e as double) - .toList(), + point: + (json['Point'] as List?)?.nonNulls.map((e) => e as double).toList(), ); } @@ -8464,12 +8448,12 @@ class SearchForSuggestionsResult { return SearchForSuggestionsResult( text: json['Text'] as String, categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), placeId: json['PlaceId'] as String?, supplementalCategories: (json['SupplementalCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8571,7 +8555,7 @@ class SearchPlaceIndexForPositionResponse { Map json) { return SearchPlaceIndexForPositionResponse( results: (json['Results'] as List) - .whereNotNull() + .nonNulls .map((e) => SearchForPositionResult.fromJson(e as Map)) .toList(), @@ -8637,10 +8621,8 @@ class SearchPlaceIndexForPositionSummary { Map json) { return SearchPlaceIndexForPositionSummary( dataSource: json['DataSource'] as String, - position: (json['Position'] as List) - .whereNotNull() - .map((e) => e as double) - .toList(), + position: + (json['Position'] as List).nonNulls.map((e) => e as double).toList(), language: json['Language'] as String?, maxResults: json['MaxResults'] as int?, ); @@ -8680,7 +8662,7 @@ class SearchPlaceIndexForSuggestionsResponse { Map json) { return SearchPlaceIndexForSuggestionsResponse( results: (json['Results'] as List) - .whereNotNull() + .nonNulls .map((e) => SearchForSuggestionsResult.fromJson(e as Map)) .toList(), @@ -8771,19 +8753,19 @@ class SearchPlaceIndexForSuggestionsSummary { dataSource: json['DataSource'] as String, text: json['Text'] as String, biasPosition: (json['BiasPosition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), filterBBox: (json['FilterBBox'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), filterCategories: (json['FilterCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), filterCountries: (json['FilterCountries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), language: json['Language'] as String?, @@ -8837,7 +8819,7 @@ class SearchPlaceIndexForTextResponse { factory SearchPlaceIndexForTextResponse.fromJson(Map json) { return SearchPlaceIndexForTextResponse( results: (json['Results'] as List) - .whereNotNull() + .nonNulls .map((e) => SearchForTextResult.fromJson(e as Map)) .toList(), summary: SearchPlaceIndexForTextSummary.fromJson( @@ -8934,25 +8916,25 @@ class SearchPlaceIndexForTextSummary { dataSource: json['DataSource'] as String, text: json['Text'] as String, biasPosition: (json['BiasPosition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), filterBBox: (json['FilterBBox'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), filterCategories: (json['FilterCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), filterCountries: (json['FilterCountries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), language: json['Language'] as String?, maxResults: json['MaxResults'] as int?, resultBBox: (json['ResultBBox'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -9038,11 +9020,11 @@ class Step { distance: json['Distance'] as double, durationSeconds: json['DurationSeconds'] as double, endPosition: (json['EndPosition'] as List) - .whereNotNull() + .nonNulls .map((e) => e as double) .toList(), startPosition: (json['StartPosition'] as List) - .whereNotNull() + .nonNulls .map((e) => e as double) .toList(), geometryOffset: json['GeometryOffset'] as int?, diff --git a/aws_client/lib/src/generated/lookout_equipment/v2020_12_15.dart b/aws_client/lib/src/generated/lookout_equipment/v2020_12_15.dart index 4f607b6e2..e39436d14 100644 --- a/aws_client/lib/src/generated/lookout_equipment/v2020_12_15.dart +++ b/aws_client/lib/src/generated/lookout_equipment/v2020_12_15.dart @@ -3623,7 +3623,7 @@ class DescribeLabelGroupResponse { return DescribeLabelGroupResponse( createdAt: timeStampFromJson(json['CreatedAt']), faultCodes: (json['FaultCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), labelGroupArn: json['LabelGroupArn'] as String?, @@ -5357,7 +5357,7 @@ class IngestedFilesSummary { ingestedNumberOfFiles: json['IngestedNumberOfFiles'] as int, totalNumberOfFiles: json['TotalNumberOfFiles'] as int, discardedFiles: (json['DiscardedFiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Object.fromJson(e as Map)) .toList(), ); @@ -5811,7 +5811,7 @@ class ListDataIngestionJobsResponse { factory ListDataIngestionJobsResponse.fromJson(Map json) { return ListDataIngestionJobsResponse( dataIngestionJobSummaries: (json['DataIngestionJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataIngestionJobSummary.fromJson(e as Map)) .toList(), @@ -5847,7 +5847,7 @@ class ListDatasetsResponse { factory ListDatasetsResponse.fromJson(Map json) { return ListDatasetsResponse( datasetSummaries: (json['DatasetSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5882,7 +5882,7 @@ class ListInferenceEventsResponse { factory ListInferenceEventsResponse.fromJson(Map json) { return ListInferenceEventsResponse( inferenceEventSummaries: (json['InferenceEventSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceEventSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5925,7 +5925,7 @@ class ListInferenceExecutionsResponse { return ListInferenceExecutionsResponse( inferenceExecutionSummaries: (json['InferenceExecutionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceExecutionSummary.fromJson(e as Map)) .toList(), @@ -5962,7 +5962,7 @@ class ListInferenceSchedulersResponse { return ListInferenceSchedulersResponse( inferenceSchedulerSummaries: (json['InferenceSchedulerSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceSchedulerSummary.fromJson(e as Map)) .toList(), @@ -5997,7 +5997,7 @@ class ListLabelGroupsResponse { factory ListLabelGroupsResponse.fromJson(Map json) { return ListLabelGroupsResponse( labelGroupSummaries: (json['LabelGroupSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6037,7 +6037,7 @@ class ListLabelsResponse { factory ListLabelsResponse.fromJson(Map json) { return ListLabelsResponse( labelSummaries: (json['LabelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6080,7 +6080,7 @@ class ListModelVersionsResponse { factory ListModelVersionsResponse.fromJson(Map json) { return ListModelVersionsResponse( modelVersionSummaries: (json['ModelVersionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelVersionSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6115,7 +6115,7 @@ class ListModelsResponse { factory ListModelsResponse.fromJson(Map json) { return ListModelsResponse( modelSummaries: (json['ModelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6152,7 +6152,7 @@ class ListRetrainingSchedulersResponse { nextToken: json['NextToken'] as String?, retrainingSchedulerSummaries: (json['RetrainingSchedulerSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RetrainingSchedulerSummary.fromJson(e as Map)) .toList(), @@ -6190,7 +6190,7 @@ class ListSensorStatisticsResponse { return ListSensorStatisticsResponse( nextToken: json['NextToken'] as String?, sensorStatisticsSummaries: (json['SensorStatisticsSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SensorStatisticsSummary.fromJson(e as Map)) .toList(), @@ -6219,7 +6219,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/lookout_metrics/v2017_07_25.dart b/aws_client/lib/src/generated/lookout_metrics/v2017_07_25.dart index b45ff88a3..35da57561 100644 --- a/aws_client/lib/src/generated/lookout_metrics/v2017_07_25.dart +++ b/aws_client/lib/src/generated/lookout_metrics/v2017_07_25.dart @@ -1456,11 +1456,11 @@ class AlertFilters { factory AlertFilters.fromJson(Map json) { return AlertFilters( dimensionFilterList: (json['DimensionFilterList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionFilter.fromJson(e as Map)) .toList(), metricList: (json['MetricList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1671,7 +1671,7 @@ class AnomalyDetectorDataQualityMetric { return AnomalyDetectorDataQualityMetric( metricSetDataQualityMetricList: (json['MetricSetDataQualityMetricList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricSetDataQualityMetric.fromJson(e as Map)) .toList(), @@ -1839,7 +1839,7 @@ class AnomalyGroup { anomalyGroupScore: json['AnomalyGroupScore'] as double?, endTime: json['EndTime'] as String?, metricLevelImpactList: (json['MetricLevelImpactList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricLevelImpact.fromJson(e as Map)) .toList(), primaryMetricName: json['PrimaryMetricName'] as String?, @@ -1887,7 +1887,7 @@ class AnomalyGroupStatistics { return AnomalyGroupStatistics( evaluationStartDate: json['EvaluationStartDate'] as String?, itemizedMetricStatsList: (json['ItemizedMetricStatsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ItemizedMetricStats.fromJson(e as Map)) .toList(), totalCount: json['TotalCount'] as int?, @@ -2144,20 +2144,11 @@ class AttributeValue { factory AttributeValue.fromJson(Map json) { return AttributeValue( b: json['B'] as String?, - bs: (json['BS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + bs: (json['BS'] as List?)?.nonNulls.map((e) => e as String).toList(), n: json['N'] as String?, - ns: (json['NS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ns: (json['NS'] as List?)?.nonNulls.map((e) => e as String).toList(), s: json['S'] as String?, - ss: (json['SS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ss: (json['SS'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2332,7 +2323,7 @@ class ContributionMatrix { factory ContributionMatrix.fromJson(Map json) { return ContributionMatrix( dimensionContributionList: (json['DimensionContributionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionContribution.fromJson(e as Map)) .toList(), ); @@ -2450,7 +2441,7 @@ class CsvFormatDescriptor { fileCompression: (json['FileCompression'] as String?) ?.let(CSVFileCompression.fromString), headerList: (json['HeaderList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), quoteSymbol: json['QuoteSymbol'] as String?, @@ -2622,7 +2613,7 @@ class DescribeAnomalyDetectionExecutionsResponse { Map json) { return DescribeAnomalyDetectionExecutionsResponse( executionList: (json['ExecutionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExecutionStatus.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2802,17 +2793,17 @@ class DescribeMetricSetResponse { anomalyDetectorArn: json['AnomalyDetectorArn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), dimensionFilterList: (json['DimensionFilterList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricSetDimensionFilter.fromJson(e as Map)) .toList(), dimensionList: (json['DimensionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastModificationTime: timeStampFromJson(json['LastModificationTime']), metricList: (json['MetricList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Metric.fromJson(e as Map)) .toList(), metricSetArn: json['MetricSetArn'] as String?, @@ -3197,7 +3188,7 @@ class DimensionContribution { dimensionName: json['DimensionName'] as String?, dimensionValueContributionList: (json['DimensionValueContributionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionValueContribution.fromJson(e as Map)) .toList(), @@ -3233,7 +3224,7 @@ class DimensionFilter { return DimensionFilter( dimensionName: json['DimensionName'] as String?, dimensionValueList: (json['DimensionValueList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3487,7 +3478,7 @@ class GetDataQualityMetricsResponse { return GetDataQualityMetricsResponse( anomalyDetectorDataQualityMetricList: (json['AnomalyDetectorDataQualityMetricList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalyDetectorDataQualityMetric.fromJson( e as Map)) .toList(), @@ -3521,7 +3512,7 @@ class GetFeedbackResponse { return GetFeedbackResponse( anomalyGroupTimeSeriesFeedback: (json['AnomalyGroupTimeSeriesFeedback'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesFeedback.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3554,13 +3545,12 @@ class GetSampleDataResponse { factory GetSampleDataResponse.fromJson(Map json) { return GetSampleDataResponse( headerValues: (json['HeaderValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sampleRows: (json['SampleRows'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -3748,7 +3738,7 @@ class ListAlertsResponse { factory ListAlertsResponse.fromJson(Map json) { return ListAlertsResponse( alertSummaryList: (json['AlertSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlertSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3781,7 +3771,7 @@ class ListAnomalyDetectorsResponse { factory ListAnomalyDetectorsResponse.fromJson(Map json) { return ListAnomalyDetectorsResponse( anomalyDetectorSummaryList: (json['AnomalyDetectorSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AnomalyDetectorSummary.fromJson(e as Map)) .toList(), @@ -3817,7 +3807,7 @@ class ListAnomalyGroupRelatedMetricsResponse { Map json) { return ListAnomalyGroupRelatedMetricsResponse( interMetricImpactList: (json['InterMetricImpactList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InterMetricImpactDetails.fromJson(e as Map)) .toList(), @@ -3860,7 +3850,7 @@ class ListAnomalyGroupSummariesResponse { json['AnomalyGroupStatistics'] as Map) : null, anomalyGroupSummaryList: (json['AnomalyGroupSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalyGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3912,11 +3902,11 @@ class ListAnomalyGroupTimeSeriesResponse { metricName: json['MetricName'] as String?, nextToken: json['NextToken'] as String?, timeSeriesList: (json['TimeSeriesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeries.fromJson(e as Map)) .toList(), timestampList: (json['TimestampList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3955,7 +3945,7 @@ class ListMetricSetsResponse { factory ListMetricSetsResponse.fromJson(Map json) { return ListMetricSetsResponse( metricSetSummaryList: (json['MetricSetSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricSetSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4092,7 +4082,7 @@ class MetricSetDataQualityMetric { factory MetricSetDataQualityMetric.fromJson(Map json) { return MetricSetDataQualityMetric( dataQualityMetricList: (json['DataQualityMetricList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityMetric.fromJson(e as Map)) .toList(), metricSetArn: json['MetricSetArn'] as String?, @@ -4130,7 +4120,7 @@ class MetricSetDimensionFilter { factory MetricSetDimensionFilter.fromJson(Map json) { return MetricSetDimensionFilter( filterList: (json['FilterList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Filter.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -4503,12 +4493,12 @@ class S3SourceConfig { json['FileFormatDescriptor'] as Map) : null, historicalDataPathList: (json['HistoricalDataPathList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), roleArn: json['RoleArn'] as String?, templatedPathList: (json['TemplatedPathList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4668,11 +4658,11 @@ class TimeSeries { factory TimeSeries.fromJson(Map json) { return TimeSeries( dimensionList: (json['DimensionList'] as List) - .whereNotNull() + .nonNulls .map((e) => DimensionNameValue.fromJson(e as Map)) .toList(), metricValueList: (json['MetricValueList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as double) .toList(), timeSeriesId: json['TimeSeriesId'] as String, @@ -4848,11 +4838,11 @@ class VpcConfiguration { factory VpcConfiguration.fromJson(Map json) { return VpcConfiguration( securityGroupIdList: (json['SecurityGroupIdList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), subnetIdList: (json['SubnetIdList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/lookout_vision/v2020_11_20.dart b/aws_client/lib/src/generated/lookout_vision/v2020_11_20.dart index 617ee47c7..bd2a85068 100644 --- a/aws_client/lib/src/generated/lookout_vision/v2020_11_20.dart +++ b/aws_client/lib/src/generated/lookout_vision/v2020_11_20.dart @@ -1945,7 +1945,7 @@ class DetectAnomalyResult { factory DetectAnomalyResult.fromJson(Map json) { return DetectAnomalyResult( anomalies: (json['Anomalies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Anomaly.fromJson(e as Map)) .toList(), anomalyMask: _s.decodeNullableUint8List(json['AnomalyMask'] as String?), @@ -2037,7 +2037,7 @@ class GreengrassConfiguration { componentDescription: json['ComponentDescription'] as String?, componentVersion: json['ComponentVersion'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), targetDevice: @@ -2180,7 +2180,7 @@ class ListDatasetEntriesResponse { factory ListDatasetEntriesResponse.fromJson(Map json) { return ListDatasetEntriesResponse( datasetEntries: (json['DatasetEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -2216,7 +2216,7 @@ class ListModelPackagingJobsResponse { factory ListModelPackagingJobsResponse.fromJson(Map json) { return ListModelPackagingJobsResponse( modelPackagingJobs: (json['ModelPackagingJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelPackagingJobMetadata.fromJson(e as Map)) .toList(), @@ -2251,7 +2251,7 @@ class ListModelsResponse { factory ListModelsResponse.fromJson(Map json) { return ListModelsResponse( models: (json['Models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelMetadata.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2286,7 +2286,7 @@ class ListProjectsResponse { return ListProjectsResponse( nextToken: json['NextToken'] as String?, projects: (json['Projects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectMetadata.fromJson(e as Map)) .toList(), ); @@ -2313,7 +2313,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2991,7 +2991,7 @@ class ProjectDescription { return ProjectDescription( creationTimestamp: timeStampFromJson(json['CreationTimestamp']), datasets: (json['Datasets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetMetadata.fromJson(e as Map)) .toList(), projectArn: json['ProjectArn'] as String?, diff --git a/aws_client/lib/src/generated/m2/v2021_04_28.dart b/aws_client/lib/src/generated/m2/v2021_04_28.dart index d6ed1d95f..c112bd2c5 100644 --- a/aws_client/lib/src/generated/m2/v2021_04_28.dart +++ b/aws_client/lib/src/generated/m2/v2021_04_28.dart @@ -3046,16 +3046,16 @@ class GetApplicationResponse { kmsKeyId: json['kmsKeyId'] as String?, lastStartTime: timeStampFromJson(json['lastStartTime']), listenerArns: (json['listenerArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), listenerPorts: (json['listenerPorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), loadBalancerDnsName: json['loadBalancerDnsName'] as String?, logGroups: (json['logGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogGroupSummary.fromJson(e as Map)) .toList(), roleArn: json['roleArn'] as String?, @@ -3063,7 +3063,7 @@ class GetApplicationResponse { tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), targetGroupArns: (json['targetGroupArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3600,14 +3600,12 @@ class GetEnvironmentResponse { instanceType: json['instanceType'] as String, name: json['name'] as String, securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), status: EnvironmentLifecycle.fromString((json['status'] as String)), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['vpcId'] as String, actualCapacity: json['actualCapacity'] as int?, description: json['description'] as String?, @@ -3625,7 +3623,7 @@ class GetEnvironmentResponse { publiclyAccessible: json['publiclyAccessible'] as bool?, statusReason: json['statusReason'] as String?, storageConfigurations: (json['storageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageConfiguration.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -3880,7 +3878,7 @@ class ListApplicationVersionsResponse { factory ListApplicationVersionsResponse.fromJson(Map json) { return ListApplicationVersionsResponse( applicationVersions: (json['applicationVersions'] as List) - .whereNotNull() + .nonNulls .map((e) => ApplicationVersionSummary.fromJson(e as Map)) .toList(), @@ -3915,7 +3913,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applications: (json['applications'] as List) - .whereNotNull() + .nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3948,7 +3946,7 @@ class ListBatchJobDefinitionsResponse { factory ListBatchJobDefinitionsResponse.fromJson(Map json) { return ListBatchJobDefinitionsResponse( batchJobDefinitions: (json['batchJobDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchJobDefinition.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3981,7 +3979,7 @@ class ListBatchJobExecutionsResponse { factory ListBatchJobExecutionsResponse.fromJson(Map json) { return ListBatchJobExecutionsResponse( batchJobExecutions: (json['batchJobExecutions'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchJobExecutionSummary.fromJson(e as Map)) .toList(), @@ -4012,7 +4010,7 @@ class ListBatchJobRestartPointsResponse { Map json) { return ListBatchJobRestartPointsResponse( batchJobSteps: (json['batchJobSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobStep.fromJson(e as Map)) .toList(), ); @@ -4042,7 +4040,7 @@ class ListDataSetImportHistoryResponse { factory ListDataSetImportHistoryResponse.fromJson(Map json) { return ListDataSetImportHistoryResponse( dataSetImportTasks: (json['dataSetImportTasks'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSetImportTask.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4077,7 +4075,7 @@ class ListDataSetsResponse { factory ListDataSetsResponse.fromJson(Map json) { return ListDataSetsResponse( dataSets: (json['dataSets'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSetSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4110,7 +4108,7 @@ class ListDeploymentsResponse { factory ListDeploymentsResponse.fromJson(Map json) { return ListDeploymentsResponse( deployments: (json['deployments'] as List) - .whereNotNull() + .nonNulls .map((e) => DeploymentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4143,7 +4141,7 @@ class ListEngineVersionsResponse { factory ListEngineVersionsResponse.fromJson(Map json) { return ListEngineVersionsResponse( engineVersions: (json['engineVersions'] as List) - .whereNotNull() + .nonNulls .map((e) => EngineVersionsSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4177,7 +4175,7 @@ class ListEnvironmentsResponse { factory ListEnvironmentsResponse.fromJson(Map json) { return ListEnvironmentsResponse( environments: (json['environments'] as List) - .whereNotNull() + .nonNulls .map((e) => EnvironmentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4843,7 +4841,7 @@ class VsamDetailAttributes { factory VsamDetailAttributes.fromJson(Map json) { return VsamDetailAttributes( alternateKeys: (json['alternateKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlternateKey.fromJson(e as Map)) .toList(), cacheAtStartup: json['cacheAtStartup'] as bool?, diff --git a/aws_client/lib/src/generated/m_turk/v2017_01_17.dart b/aws_client/lib/src/generated/m_turk/v2017_01_17.dart index 5426f2017..3d14b0e4c 100644 --- a/aws_client/lib/src/generated/m_turk/v2017_01_17.dart +++ b/aws_client/lib/src/generated/m_turk/v2017_01_17.dart @@ -2995,7 +2995,7 @@ class HIT { json['NumberOfAssignmentsCompleted'] as int?, numberOfAssignmentsPending: json['NumberOfAssignmentsPending'] as int?, qualificationRequirements: (json['QualificationRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QualificationRequirement.fromJson(e as Map)) .toList(), @@ -3155,7 +3155,7 @@ class ListAssignmentsForHITResponse { factory ListAssignmentsForHITResponse.fromJson(Map json) { return ListAssignmentsForHITResponse( assignments: (json['Assignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Assignment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3194,7 +3194,7 @@ class ListBonusPaymentsResponse { factory ListBonusPaymentsResponse.fromJson(Map json) { return ListBonusPaymentsResponse( bonusPayments: (json['BonusPayments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BonusPayment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3233,7 +3233,7 @@ class ListHITsForQualificationTypeResponse { Map json) { return ListHITsForQualificationTypeResponse( hITs: (json['HITs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HIT.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3271,7 +3271,7 @@ class ListHITsResponse { factory ListHITsResponse.fromJson(Map json) { return ListHITsResponse( hITs: (json['HITs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HIT.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3315,7 +3315,7 @@ class ListQualificationRequestsResponse { nextToken: json['NextToken'] as String?, numResults: json['NumResults'] as int?, qualificationRequests: (json['QualificationRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QualificationRequest.fromJson(e as Map)) .toList(), ); @@ -3355,7 +3355,7 @@ class ListQualificationTypesResponse { nextToken: json['NextToken'] as String?, numResults: json['NumResults'] as int?, qualificationTypes: (json['QualificationTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QualificationType.fromJson(e as Map)) .toList(), ); @@ -3463,7 +3463,7 @@ class ListReviewableHITsResponse { factory ListReviewableHITsResponse.fromJson(Map json) { return ListReviewableHITsResponse( hITs: (json['HITs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HIT.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3505,7 +3505,7 @@ class ListWorkerBlocksResponse { nextToken: json['NextToken'] as String?, numResults: json['NumResults'] as int?, workerBlocks: (json['WorkerBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkerBlock.fromJson(e as Map)) .toList(), ); @@ -3545,7 +3545,7 @@ class ListWorkersWithQualificationTypeResponse { nextToken: json['NextToken'] as String?, numResults: json['NumResults'] as int?, qualifications: (json['Qualifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Qualification.fromJson(e as Map)) .toList(), ); @@ -3735,7 +3735,7 @@ class NotifyWorkersResponse { return NotifyWorkersResponse( notifyWorkersFailureStatuses: (json['NotifyWorkersFailureStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotifyWorkersFailureStatus.fromJson(e as Map)) .toList(), @@ -3772,10 +3772,8 @@ class ParameterMapEntry { factory ParameterMapEntry.fromJson(Map json) { return ParameterMapEntry( key: json['Key'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -3810,13 +3808,11 @@ class PolicyParameter { return PolicyParameter( key: json['Key'] as String?, mapEntries: (json['MapEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterMapEntry.fromJson(e as Map)) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4053,11 +4049,11 @@ class QualificationRequirement { actionsGuarded: (json['ActionsGuarded'] as String?)?.let(HITAccessActions.fromString), integerValues: (json['IntegerValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), localeValues: (json['LocaleValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Locale.fromJson(e as Map)) .toList(), requiredToPreview: json['RequiredToPreview'] as bool?, @@ -4391,7 +4387,7 @@ class ReviewPolicy { return ReviewPolicy( policyName: json['PolicyName'] as String, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyParameter.fromJson(e as Map)) .toList(), ); @@ -4440,11 +4436,11 @@ class ReviewReport { factory ReviewReport.fromJson(Map json) { return ReviewReport( reviewActions: (json['ReviewActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReviewActionDetail.fromJson(e as Map)) .toList(), reviewResults: (json['ReviewResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReviewResultDetail.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/machine_learning/v2014_12_12.dart b/aws_client/lib/src/generated/machine_learning/v2014_12_12.dart index 0d3e1b0f4..c4bb0eb28 100644 --- a/aws_client/lib/src/generated/machine_learning/v2014_12_12.dart +++ b/aws_client/lib/src/generated/machine_learning/v2014_12_12.dart @@ -3000,7 +3000,7 @@ class DescribeBatchPredictionsOutput { return DescribeBatchPredictionsOutput( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPrediction.fromJson(e as Map)) .toList(), ); @@ -3035,7 +3035,7 @@ class DescribeDataSourcesOutput { return DescribeDataSourcesOutput( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), ); @@ -3070,7 +3070,7 @@ class DescribeEvaluationsOutput { return DescribeEvaluationsOutput( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Evaluation.fromJson(e as Map)) .toList(), ); @@ -3105,7 +3105,7 @@ class DescribeMLModelsOutput { return DescribeMLModelsOutput( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MLModel.fromJson(e as Map)) .toList(), ); @@ -3144,7 +3144,7 @@ class DescribeTagsOutput { resourceType: (json['ResourceType'] as String?) ?.let(TaggableResourceType.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/macie/v2017_12_19.dart b/aws_client/lib/src/generated/macie/v2017_12_19.dart index 73defa991..4f2afb53a 100644 --- a/aws_client/lib/src/generated/macie/v2017_12_19.dart +++ b/aws_client/lib/src/generated/macie/v2017_12_19.dart @@ -347,7 +347,7 @@ class AssociateS3ResourcesResult { factory AssociateS3ResourcesResult.fromJson(Map json) { return AssociateS3ResourcesResult( failedS3Resources: (json['failedS3Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedS3Resource.fromJson(e as Map)) .toList(), ); @@ -438,7 +438,7 @@ class DisassociateS3ResourcesResult { factory DisassociateS3ResourcesResult.fromJson(Map json) { return DisassociateS3ResourcesResult( failedS3Resources: (json['failedS3Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedS3Resource.fromJson(e as Map)) .toList(), ); @@ -512,7 +512,7 @@ class ListMemberAccountsResult { factory ListMemberAccountsResult.fromJson(Map json) { return ListMemberAccountsResult( memberAccounts: (json['memberAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberAccount.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -549,7 +549,7 @@ class ListS3ResourcesResult { return ListS3ResourcesResult( nextToken: json['nextToken'] as String?, s3Resources: (json['s3Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3ResourceClassification.fromJson(e as Map)) .toList(), @@ -744,7 +744,7 @@ class UpdateS3ResourcesResult { factory UpdateS3ResourcesResult.fromJson(Map json) { return UpdateS3ResourcesResult( failedS3Resources: (json['failedS3Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedS3Resource.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/macie2/v2020_01_01.dart b/aws_client/lib/src/generated/macie2/v2020_01_01.dart index 45cd72722..626944301 100644 --- a/aws_client/lib/src/generated/macie2/v2020_01_01.dart +++ b/aws_client/lib/src/generated/macie2/v2020_01_01.dart @@ -3605,12 +3605,12 @@ class BatchGetCustomDataIdentifiersResponse { Map json) { return BatchGetCustomDataIdentifiersResponse( customDataIdentifiers: (json['customDataIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchGetCustomDataIdentifierSummary.fromJson( e as Map)) .toList(), notFoundIdentifierIds: (json['notFoundIdentifierIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4275,7 +4275,7 @@ class BucketMetadata { sizeInBytes: json['sizeInBytes'] as int?, sizeInBytesCompressed: json['sizeInBytesCompressed'] as int?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), unclassifiableObjectCount: json['unclassifiableObjectCount'] != null @@ -4852,7 +4852,7 @@ class ClassificationResult { : null, mimeType: json['mimeType'] as String?, sensitiveData: (json['sensitiveData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SensitiveDataItem.fromJson(e as Map)) .toList(), sizeClassified: json['sizeClassified'] as int?, @@ -5214,7 +5214,7 @@ class CreateInvitationsResponse { factory CreateInvitationsResponse.fromJson(Map json) { return CreateInvitationsResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -5279,7 +5279,7 @@ class CriteriaBlockForJob { factory CriteriaBlockForJob.fromJson(Map json) { return CriteriaBlockForJob( and: (json['and'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CriteriaForJob.fromJson(e as Map)) .toList(), ); @@ -5382,22 +5382,16 @@ class CriterionAdditionalProperties { factory CriterionAdditionalProperties.fromJson(Map json) { return CriterionAdditionalProperties( - eq: (json['eq'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + eq: (json['eq'] as List?)?.nonNulls.map((e) => e as String).toList(), eqExactMatch: (json['eqExactMatch'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), gt: json['gt'] as int?, gte: json['gte'] as int?, lt: json['lt'] as int?, lte: json['lte'] as int?, - neq: (json['neq'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + neq: (json['neq'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -5508,7 +5502,7 @@ class CustomDataIdentifiers { factory CustomDataIdentifiers.fromJson(Map json) { return CustomDataIdentifiers( detections: (json['detections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomDetection.fromJson(e as Map)) .toList(), totalCount: json['totalCount'] as int?, @@ -5657,7 +5651,7 @@ class DeclineInvitationsResponse { factory DeclineInvitationsResponse.fromJson(Map json) { return DeclineInvitationsResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -5765,7 +5759,7 @@ class DeleteInvitationsResponse { factory DeleteInvitationsResponse.fromJson(Map json) { return DeleteInvitationsResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -5809,7 +5803,7 @@ class DescribeBucketsResponse { factory DescribeBucketsResponse.fromJson(Map json) { return DescribeBucketsResponse( buckets: (json['buckets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BucketMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6024,13 +6018,13 @@ class DescribeClassificationJobResponse { Map json) { return DescribeClassificationJobResponse( allowListIds: (json['allowListIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clientToken: json['clientToken'] as String?, createdAt: timeStampFromJson(json['createdAt']), customDataIdentifierIds: (json['customDataIdentifierIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -6045,7 +6039,7 @@ class DescribeClassificationJobResponse { : null, lastRunTime: timeStampFromJson(json['lastRunTime']), managedDataIdentifierIds: (json['managedDataIdentifierIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), managedDataIdentifierSelector: @@ -7500,18 +7494,18 @@ class GetCustomDataIdentifierResponse { description: json['description'] as String?, id: json['id'] as String?, ignoreWords: (json['ignoreWords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), keywords: (json['keywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maximumMatchDistance: json['maximumMatchDistance'] as int?, name: json['name'] as String?, regex: json['regex'] as String?, severityLevels: (json['severityLevels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SeverityLevel.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -7562,7 +7556,7 @@ class GetFindingStatisticsResponse { factory GetFindingStatisticsResponse.fromJson(Map json) { return GetFindingStatisticsResponse( countsByGroup: (json['countsByGroup'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupCount.fromJson(e as Map)) .toList(), ); @@ -7697,7 +7691,7 @@ class GetFindingsResponse { factory GetFindingsResponse.fromJson(Map json) { return GetFindingsResponse( findings: (json['findings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Finding.fromJson(e as Map)) .toList(), ); @@ -8101,7 +8095,7 @@ class GetSensitiveDataOccurrencesAvailabilityResponse { return GetSensitiveDataOccurrencesAvailabilityResponse( code: (json['code'] as String?)?.let(AvailabilityCode.fromString), reasons: (json['reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnavailabilityReasonCode.fromString((e as String))) .toList(), ); @@ -8162,7 +8156,7 @@ class GetSensitiveDataOccurrencesResponse { ?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => DetectedDataDetails.fromJson(e as Map)) .toList())), @@ -8270,7 +8264,7 @@ class GetUsageStatisticsResponse { return GetUsageStatisticsResponse( nextToken: json['nextToken'] as String?, records: (json['records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageRecord.fromJson(e as Map)) .toList(), timeRange: (json['timeRange'] as String?)?.let(TimeRange.fromString), @@ -8308,7 +8302,7 @@ class GetUsageTotalsResponse { return GetUsageTotalsResponse( timeRange: (json['timeRange'] as String?)?.let(TimeRange.fromString), usageTotals: (json['usageTotals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageTotal.fromJson(e as Map)) .toList(), ); @@ -8919,7 +8913,7 @@ class JobScopingBlock { factory JobScopingBlock.fromJson(Map json) { return JobScopingBlock( and: (json['and'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobScopeTerm.fromJson(e as Map)) .toList(), ); @@ -9055,7 +9049,7 @@ class JobSummary { json['bucketCriteria'] as Map) : null, bucketDefinitions: (json['bucketDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3BucketDefinitionForJob.fromJson(e as Map)) .toList(), @@ -9221,7 +9215,7 @@ class ListAllowListsResponse { factory ListAllowListsResponse.fromJson(Map json) { return ListAllowListsResponse( allowLists: (json['allowLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AllowListSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9255,7 +9249,7 @@ class ListClassificationJobsResponse { factory ListClassificationJobsResponse.fromJson(Map json) { return ListClassificationJobsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9289,7 +9283,7 @@ class ListClassificationScopesResponse { factory ListClassificationScopesResponse.fromJson(Map json) { return ListClassificationScopesResponse( classificationScopes: (json['classificationScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClassificationScopeSummary.fromJson(e as Map)) .toList(), @@ -9325,7 +9319,7 @@ class ListCustomDataIdentifiersResponse { Map json) { return ListCustomDataIdentifiersResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomDataIdentifierSummary.fromJson(e as Map)) .toList(), @@ -9359,7 +9353,7 @@ class ListFindingsFiltersResponse { factory ListFindingsFiltersResponse.fromJson(Map json) { return ListFindingsFiltersResponse( findingsFilterListItems: (json['findingsFilterListItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FindingsFilterListItem.fromJson(e as Map)) .toList(), @@ -9395,7 +9389,7 @@ class ListFindingsResponse { factory ListFindingsResponse.fromJson(Map json) { return ListFindingsResponse( findingIds: (json['findingIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -9429,7 +9423,7 @@ class ListInvitationsResponse { factory ListInvitationsResponse.fromJson(Map json) { return ListInvitationsResponse( invitations: (json['invitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Invitation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9582,7 +9576,7 @@ class ListManagedDataIdentifiersResponse { Map json) { return ListManagedDataIdentifiersResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedDataIdentifierSummary.fromJson(e as Map)) .toList(), @@ -9617,7 +9611,7 @@ class ListMembersResponse { factory ListMembersResponse.fromJson(Map json) { return ListMembersResponse( members: (json['members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Member.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9653,7 +9647,7 @@ class ListOrganizationAdminAccountsResponse { Map json) { return ListOrganizationAdminAccountsResponse( adminAccounts: (json['adminAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdminAccount.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9695,7 +9689,7 @@ class ListResourceProfileArtifactsResponse { Map json) { return ListResourceProfileArtifactsResponse( artifacts: (json['artifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceProfileArtifact.fromJson(e as Map)) .toList(), @@ -9733,7 +9727,7 @@ class ListResourceProfileDetectionsResponse { Map json) { return ListResourceProfileDetectionsResponse( detections: (json['detections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Detection.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9771,7 +9765,7 @@ class ListSensitivityInspectionTemplatesResponse { nextToken: json['nextToken'] as String?, sensitivityInspectionTemplates: (json['sensitivityInspectionTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SensitivityInspectionTemplatesEntry.fromJson( e as Map)) .toList(), @@ -10402,23 +10396,23 @@ class Occurrences { factory Occurrences.fromJson(Map json) { return Occurrences( cells: (json['cells'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cell.fromJson(e as Map)) .toList(), lineRanges: (json['lineRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Range.fromJson(e as Map)) .toList(), offsetRanges: (json['offsetRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Range.fromJson(e as Map)) .toList(), pages: (json['pages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Page.fromJson(e as Map)) .toList(), records: (json['records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), ); @@ -10730,7 +10724,7 @@ class ReplicationDetails { replicated: json['replicated'] as bool?, replicatedExternally: json['replicatedExternally'] as bool?, replicationAccounts: (json['replicationAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11197,7 +11191,7 @@ class S3Bucket { json['publicAccess'] as Map) : null, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), ); @@ -11286,10 +11280,8 @@ class S3BucketDefinitionForJob { factory S3BucketDefinitionForJob.fromJson(Map json) { return S3BucketDefinitionForJob( accountId: json['accountId'] as String, - buckets: (json['buckets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + buckets: + (json['buckets'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -11373,7 +11365,7 @@ class S3ClassificationScopeExclusion { factory S3ClassificationScopeExclusion.fromJson(Map json) { return S3ClassificationScopeExclusion( bucketNames: (json['bucketNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -11528,7 +11520,7 @@ class S3JobDefinition { json['bucketCriteria'] as Map) : null, bucketDefinitions: (json['bucketDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3BucketDefinitionForJob.fromJson(e as Map)) .toList(), @@ -11627,7 +11619,7 @@ class S3Object { storageClass: (json['storageClass'] as String?)?.let(StorageClass.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), versionId: json['versionId'] as String?, @@ -11860,7 +11852,7 @@ class SearchResourcesResponse { factory SearchResourcesResponse.fromJson(Map json) { return SearchResourcesResponse( matchingResources: (json['matchingResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchingResource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -12122,7 +12114,7 @@ class SensitiveDataItem { category: (json['category'] as String?) ?.let(SensitiveDataItemCategory.fromString), detections: (json['detections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefaultDetection.fromJson(e as Map)) .toList(), totalCount: json['totalCount'] as int?, @@ -12244,7 +12236,7 @@ class SensitivityInspectionTemplateExcludes { Map json) { return SensitivityInspectionTemplateExcludes( managedDataIdentifierIds: (json['managedDataIdentifierIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12296,15 +12288,15 @@ class SensitivityInspectionTemplateIncludes { Map json) { return SensitivityInspectionTemplateIncludes( allowListIds: (json['allowListIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), customDataIdentifierIds: (json['customDataIdentifierIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), managedDataIdentifierIds: (json['managedDataIdentifierIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12721,10 +12713,8 @@ class SimpleCriterionForJob { comparator: (json['comparator'] as String?)?.let(JobComparator.fromString), key: (json['key'] as String?)?.let(SimpleCriterionKeyForJob.fromString), - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -12829,10 +12819,8 @@ class SimpleScopeTerm { comparator: (json['comparator'] as String?)?.let(JobComparator.fromString), key: (json['key'] as String?)?.let(ScopeFilterKey.fromString), - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -12984,7 +12972,7 @@ class TagCriterionForJob { comparator: (json['comparator'] as String?)?.let(JobComparator.fromString), tagValues: (json['tagValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TagCriterionPairForJob.fromJson(e as Map)) .toList(), @@ -13078,7 +13066,7 @@ class TagScopeTerm { (json['comparator'] as String?)?.let(JobComparator.fromString), key: json['key'] as String?, tagValues: (json['tagValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagValuePair.fromJson(e as Map)) .toList(), target: (json['target'] as String?)?.let(TagTarget.fromString), @@ -13635,7 +13623,7 @@ class UsageRecord { timeStampFromJson(json['automatedDiscoveryFreeTrialStartDate']), freeTrialStartDate: timeStampFromJson(json['freeTrialStartDate']), usage: (json['usage'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageByAccount.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/mail_manager/v2023_10_17.dart b/aws_client/lib/src/generated/mail_manager/v2023_10_17.dart index bc4c24574..62d049934 100644 --- a/aws_client/lib/src/generated/mail_manager/v2023_10_17.dart +++ b/aws_client/lib/src/generated/mail_manager/v2023_10_17.dart @@ -2290,12 +2290,12 @@ class ArchiveFilters { factory ArchiveFilters.fromJson(Map json) { return ArchiveFilters( include: (json['Include'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ArchiveFilterCondition.fromJson(e as Map)) .toList(), unless: (json['Unless'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ArchiveFilterCondition.fromJson(e as Map)) .toList(), @@ -2392,10 +2392,8 @@ class ArchiveStringExpression { evaluate: ArchiveStringToEvaluate.fromJson( json['Evaluate'] as Map), operator: ArchiveStringOperator.fromString((json['Operator'] as String)), - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -3242,7 +3240,7 @@ class GetArchiveSearchResultsResponse { factory GetArchiveSearchResultsResponse.fromJson(Map json) { return GetArchiveSearchResultsResponse( rows: (json['Rows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Row.fromJson(e as Map)) .toList(), ); @@ -3471,7 +3469,7 @@ class GetRuleSetResponse { ruleSetId: json['RuleSetId'] as String, ruleSetName: json['RuleSetName'] as String, rules: (json['Rules'] as List) - .whereNotNull() + .nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), ); @@ -3542,7 +3540,7 @@ class GetTrafficPolicyResponse { lastUpdatedTimestamp: timeStampFromJson(json['LastUpdatedTimestamp']), maxMessageSizeBytes: json['MaxMessageSizeBytes'] as int?, policyStatements: (json['PolicyStatements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyStatement.fromJson(e as Map)) .toList(), trafficPolicyArn: json['TrafficPolicyArn'] as String?, @@ -3755,10 +3753,8 @@ class IngressIpv4Expression { evaluate: IngressIpToEvaluate.fromJson( json['Evaluate'] as Map), operator: IngressIpOperator.fromString((json['Operator'] as String)), - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -4018,10 +4014,8 @@ class IngressStringExpression { evaluate: IngressStringToEvaluate.fromJson( json['Evaluate'] as Map), operator: IngressStringOperator.fromString((json['Operator'] as String)), - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -4207,7 +4201,7 @@ class ListAddonInstancesResponse { factory ListAddonInstancesResponse.fromJson(Map json) { return ListAddonInstancesResponse( addonInstances: (json['AddonInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddonInstance.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4241,7 +4235,7 @@ class ListAddonSubscriptionsResponse { factory ListAddonSubscriptionsResponse.fromJson(Map json) { return ListAddonSubscriptionsResponse( addonSubscriptions: (json['AddonSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddonSubscription.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4274,7 +4268,7 @@ class ListArchiveExportsResponse { factory ListArchiveExportsResponse.fromJson(Map json) { return ListArchiveExportsResponse( exports: (json['Exports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4308,7 +4302,7 @@ class ListArchiveSearchesResponse { return ListArchiveSearchesResponse( nextToken: json['NextToken'] as String?, searches: (json['Searches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SearchSummary.fromJson(e as Map)) .toList(), ); @@ -4340,7 +4334,7 @@ class ListArchivesResponse { factory ListArchivesResponse.fromJson(Map json) { return ListArchivesResponse( archives: (json['Archives'] as List) - .whereNotNull() + .nonNulls .map((e) => Archive.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4374,7 +4368,7 @@ class ListIngressPointsResponse { factory ListIngressPointsResponse.fromJson(Map json) { return ListIngressPointsResponse( ingressPoints: (json['IngressPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IngressPoint.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4408,7 +4402,7 @@ class ListRelaysResponse { factory ListRelaysResponse.fromJson(Map json) { return ListRelaysResponse( relays: (json['Relays'] as List) - .whereNotNull() + .nonNulls .map((e) => Relay.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4442,7 +4436,7 @@ class ListRuleSetsResponse { factory ListRuleSetsResponse.fromJson(Map json) { return ListRuleSetsResponse( ruleSets: (json['RuleSets'] as List) - .whereNotNull() + .nonNulls .map((e) => RuleSet.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4471,7 +4465,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4503,7 +4497,7 @@ class ListTrafficPoliciesResponse { return ListTrafficPoliciesResponse( nextToken: json['NextToken'] as String?, trafficPolicies: (json['TrafficPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrafficPolicy.fromJson(e as Map)) .toList(), ); @@ -4668,7 +4662,7 @@ class PolicyStatement { return PolicyStatement( action: AcceptAction.fromString((json['Action'] as String)), conditions: (json['Conditions'] as List) - .whereNotNull() + .nonNulls .map((e) => PolicyCondition.fromJson(e as Map)) .toList(), ); @@ -4819,7 +4813,7 @@ class ReplaceRecipientAction { factory ReplaceRecipientAction.fromJson(Map json) { return ReplaceRecipientAction( replaceWith: (json['ReplaceWith'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4933,7 +4927,7 @@ class Row { inReplyTo: json['InReplyTo'] as String?, messageId: json['MessageId'] as String?, receivedHeaders: (json['ReceivedHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), receivedTimestamp: timeStampFromJson(json['ReceivedTimestamp']), @@ -5015,16 +5009,16 @@ class Rule { factory Rule.fromJson(Map json) { return Rule( actions: (json['Actions'] as List) - .whereNotNull() + .nonNulls .map((e) => RuleAction.fromJson(e as Map)) .toList(), conditions: (json['Conditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleCondition.fromJson(e as Map)) .toList(), name: json['Name'] as String?, unless: (json['Unless'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleCondition.fromJson(e as Map)) .toList(), ); @@ -5323,7 +5317,7 @@ class RuleDmarcExpression { return RuleDmarcExpression( operator: RuleDmarcOperator.fromString((json['Operator'] as String)), values: (json['Values'] as List) - .whereNotNull() + .nonNulls .map((e) => RuleDmarcPolicy.fromString((e as String))) .toList(), ); @@ -5412,10 +5406,8 @@ class RuleIpExpression { evaluate: RuleIpToEvaluate.fromJson(json['Evaluate'] as Map), operator: RuleIpOperator.fromString((json['Operator'] as String)), - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -5653,10 +5645,8 @@ class RuleStringExpression { evaluate: RuleStringToEvaluate.fromJson( json['Evaluate'] as Map), operator: RuleStringOperator.fromString((json['Operator'] as String)), - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -5772,7 +5762,7 @@ class RuleVerdictExpression { json['Evaluate'] as Map), operator: RuleVerdictOperator.fromString((json['Operator'] as String)), values: (json['Values'] as List) - .whereNotNull() + .nonNulls .map((e) => RuleVerdict.fromString((e as String))) .toList(), ); diff --git a/aws_client/lib/src/generated/managed_blockchain/v2018_09_24.dart b/aws_client/lib/src/generated/managed_blockchain/v2018_09_24.dart index 4e17a6cc0..e8def9e5a 100644 --- a/aws_client/lib/src/generated/managed_blockchain/v2018_09_24.dart +++ b/aws_client/lib/src/generated/managed_blockchain/v2018_09_24.dart @@ -2075,7 +2075,7 @@ class ListAccessorsOutput { factory ListAccessorsOutput.fromJson(Map json) { return ListAccessorsOutput( accessors: (json['Accessors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessorSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2107,7 +2107,7 @@ class ListInvitationsOutput { factory ListInvitationsOutput.fromJson(Map json) { return ListInvitationsOutput( invitations: (json['Invitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Invitation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2140,7 +2140,7 @@ class ListMembersOutput { factory ListMembersOutput.fromJson(Map json) { return ListMembersOutput( members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2173,7 +2173,7 @@ class ListNetworksOutput { factory ListNetworksOutput.fromJson(Map json) { return ListNetworksOutput( networks: (json['Networks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2207,7 +2207,7 @@ class ListNodesOutput { return ListNodesOutput( nextToken: json['NextToken'] as String?, nodes: (json['Nodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NodeSummary.fromJson(e as Map)) .toList(), ); @@ -2239,7 +2239,7 @@ class ListProposalVotesOutput { return ListProposalVotesOutput( nextToken: json['NextToken'] as String?, proposalVotes: (json['ProposalVotes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoteSummary.fromJson(e as Map)) .toList(), ); @@ -2271,7 +2271,7 @@ class ListProposalsOutput { return ListProposalsOutput( nextToken: json['NextToken'] as String?, proposals: (json['Proposals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProposalSummary.fromJson(e as Map)) .toList(), ); @@ -3968,11 +3968,11 @@ class ProposalActions { factory ProposalActions.fromJson(Map json) { return ProposalActions( invitations: (json['Invitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InviteAction.fromJson(e as Map)) .toList(), removals: (json['Removals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemoveAction.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/managed_blockchain_query/v2023_05_04.dart b/aws_client/lib/src/generated/managed_blockchain_query/v2023_05_04.dart index e0c2718f8..d38ec6a2c 100644 --- a/aws_client/lib/src/generated/managed_blockchain_query/v2023_05_04.dart +++ b/aws_client/lib/src/generated/managed_blockchain_query/v2023_05_04.dart @@ -748,12 +748,12 @@ class BatchGetTokenBalanceOutput { factory BatchGetTokenBalanceOutput.fromJson(Map json) { return BatchGetTokenBalanceOutput( errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetTokenBalanceErrorItem.fromJson(e as Map)) .toList(), tokenBalances: (json['tokenBalances'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetTokenBalanceOutputItem.fromJson( e as Map)) .toList(), @@ -1150,7 +1150,7 @@ class ListAssetContractsOutput { factory ListAssetContractsOutput.fromJson(Map json) { return ListAssetContractsOutput( contracts: (json['contracts'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetContract.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1183,7 +1183,7 @@ class ListFilteredTransactionEventsOutput { Map json) { return ListFilteredTransactionEventsOutput( events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => TransactionEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1259,7 +1259,7 @@ class ListTokenBalancesOutput { factory ListTokenBalancesOutput.fromJson(Map json) { return ListTokenBalancesOutput( tokenBalances: (json['tokenBalances'] as List) - .whereNotNull() + .nonNulls .map((e) => TokenBalance.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1292,7 +1292,7 @@ class ListTransactionEventsOutput { factory ListTransactionEventsOutput.fromJson(Map json) { return ListTransactionEventsOutput( events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => TransactionEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1324,7 +1324,7 @@ class ListTransactionsOutput { factory ListTransactionsOutput.fromJson(Map json) { return ListTransactionsOutput( transactions: (json['transactions'] as List) - .whereNotNull() + .nonNulls .map((e) => TransactionOutputItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/marketplace_agreement/v2020_03_01.dart b/aws_client/lib/src/generated/marketplace_agreement/v2020_03_01.dart index 8dc75bcb6..bf9d67f7d 100644 --- a/aws_client/lib/src/generated/marketplace_agreement/v2020_03_01.dart +++ b/aws_client/lib/src/generated/marketplace_agreement/v2020_03_01.dart @@ -700,7 +700,7 @@ class ConfigurableUpfrontPricingTerm { : null, currencyCode: json['currencyCode'] as String?, rateCards: (json['rateCards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurableUpfrontRateCardItem.fromJson( e as Map)) .toList(), @@ -742,7 +742,7 @@ class ConfigurableUpfrontPricingTermConfiguration { Map json) { return ConfigurableUpfrontPricingTermConfiguration( dimensions: (json['dimensions'] as List) - .whereNotNull() + .nonNulls .map((e) => Dimension.fromJson(e as Map)) .toList(), selectorValue: json['selectorValue'] as String, @@ -786,7 +786,7 @@ class ConfigurableUpfrontRateCardItem { ? Constraints.fromJson(json['constraints'] as Map) : null, rateCard: (json['rateCard'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RateCardItem.fromJson(e as Map)) .toList(), selector: json['selector'] != null @@ -1202,7 +1202,7 @@ class FixedUpfrontPricingTerm { currencyCode: json['currencyCode'] as String?, duration: json['duration'] as String?, grants: (json['grants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrantItem.fromJson(e as Map)) .toList(), price: json['price'] as String?, @@ -1249,7 +1249,7 @@ class FreeTrialPricingTerm { return FreeTrialPricingTerm( duration: json['duration'] as String?, grants: (json['grants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrantItem.fromJson(e as Map)) .toList(), type: json['type'] as String?, @@ -1284,7 +1284,7 @@ class GetAgreementTermsOutput { factory GetAgreementTermsOutput.fromJson(Map json) { return GetAgreementTermsOutput( acceptedTerms: (json['acceptedTerms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AcceptedTerm.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1354,7 +1354,7 @@ class LegalTerm { factory LegalTerm.fromJson(Map json) { return LegalTerm( documents: (json['documents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentItem.fromJson(e as Map)) .toList(), type: json['type'] as String?, @@ -1395,7 +1395,7 @@ class PaymentScheduleTerm { return PaymentScheduleTerm( currencyCode: json['currencyCode'] as String?, schedule: (json['schedule'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduleItem.fromJson(e as Map)) .toList(), type: json['type'] as String?, @@ -1431,7 +1431,7 @@ class ProposalSummary { return ProposalSummary( offerId: json['offerId'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -1698,7 +1698,7 @@ class SearchAgreementsOutput { factory SearchAgreementsOutput.fromJson(Map json) { return SearchAgreementsOutput( agreementViewSummaries: (json['agreementViewSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgreementViewSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1842,7 +1842,7 @@ class UsageBasedPricingTerm { return UsageBasedPricingTerm( currencyCode: json['currencyCode'] as String?, rateCards: (json['rateCards'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => UsageBasedRateCardItem.fromJson(e as Map)) .toList(), @@ -1876,7 +1876,7 @@ class UsageBasedRateCardItem { factory UsageBasedRateCardItem.fromJson(Map json) { return UsageBasedRateCardItem( rateCard: (json['rateCard'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RateCardItem.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/marketplace_catalog/v2018_09_17.dart b/aws_client/lib/src/generated/marketplace_catalog/v2018_09_17.dart index 8b1afe4f8..2028da10f 100644 --- a/aws_client/lib/src/generated/marketplace_catalog/v2018_09_17.dart +++ b/aws_client/lib/src/generated/marketplace_catalog/v2018_09_17.dart @@ -1051,7 +1051,7 @@ class ChangeSetSummaryListItem { changeSetName: json['ChangeSetName'] as String?, endTime: json['EndTime'] as String?, entityIdList: (json['EntityIdList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failureCode: @@ -1146,7 +1146,7 @@ class ChangeSummary { ? Entity.fromJson(json['Entity'] as Map) : null, errorDetailList: (json['ErrorDetailList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetail.fromJson(e as Map)) .toList(), ); @@ -1702,7 +1702,7 @@ class DescribeChangeSetResponse { factory DescribeChangeSetResponse.fromJson(Map json) { return DescribeChangeSetResponse( changeSet: (json['ChangeSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeSummary.fromJson(e as Map)) .toList(), changeSetArn: json['ChangeSetArn'] as String?, @@ -2314,7 +2314,7 @@ class ListChangeSetsResponse { factory ListChangeSetsResponse.fromJson(Map json) { return ListChangeSetsResponse( changeSetSummaryList: (json['ChangeSetSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeSetSummaryListItem.fromJson(e as Map)) .toList(), @@ -2348,7 +2348,7 @@ class ListEntitiesResponse { factory ListEntitiesResponse.fromJson(Map json) { return ListEntitiesResponse( entitySummaryList: (json['EntitySummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitySummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2382,7 +2382,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( resourceArn: json['ResourceArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2823,7 +2823,7 @@ class OfferSummary { return OfferSummary( availabilityEndDate: json['AvailabilityEndDate'] as String?, buyerAccounts: (json['BuyerAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -2832,7 +2832,7 @@ class OfferSummary { resaleAuthorizationId: json['ResaleAuthorizationId'] as String?, state: (json['State'] as String?)?.let(OfferStateString.fromString), targeting: (json['Targeting'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OfferTargetingString.fromString((e as String))) .toList(), ); diff --git a/aws_client/lib/src/generated/marketplace_entitlement_service/v2017_01_11.dart b/aws_client/lib/src/generated/marketplace_entitlement_service/v2017_01_11.dart index 5d27c1773..9e3ce7152 100644 --- a/aws_client/lib/src/generated/marketplace_entitlement_service/v2017_01_11.dart +++ b/aws_client/lib/src/generated/marketplace_entitlement_service/v2017_01_11.dart @@ -263,7 +263,7 @@ class GetEntitlementsResult { factory GetEntitlementsResult.fromJson(Map json) { return GetEntitlementsResult( entitlements: (json['Entitlements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entitlement.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/marketplace_metering/v2016_01_14.dart b/aws_client/lib/src/generated/marketplace_metering/v2016_01_14.dart index 686ea9b38..fef9f8d82 100644 --- a/aws_client/lib/src/generated/marketplace_metering/v2016_01_14.dart +++ b/aws_client/lib/src/generated/marketplace_metering/v2016_01_14.dart @@ -390,11 +390,11 @@ class BatchMeterUsageResult { factory BatchMeterUsageResult.fromJson(Map json) { return BatchMeterUsageResult( results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageRecordResult.fromJson(e as Map)) .toList(), unprocessedRecords: (json['UnprocessedRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageRecord.fromJson(e as Map)) .toList(), ); @@ -565,7 +565,7 @@ class UsageAllocation { return UsageAllocation( allocatedUsageQuantity: json['AllocatedUsageQuantity'] as int, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -627,7 +627,7 @@ class UsageRecord { timestamp: nonNullableTimeStampFromJson(json['Timestamp'] as Object), quantity: json['Quantity'] as int?, usageAllocations: (json['UsageAllocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageAllocation.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/media_connect/v2018_11_14.dart b/aws_client/lib/src/generated/media_connect/v2018_11_14.dart index 4e09af1fa..ceeac27ef 100644 --- a/aws_client/lib/src/generated/media_connect/v2018_11_14.dart +++ b/aws_client/lib/src/generated/media_connect/v2018_11_14.dart @@ -2177,7 +2177,7 @@ class AddBridgeOutputsResponse { return AddBridgeOutputsResponse( bridgeArn: json['bridgeArn'] as String?, outputs: (json['outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BridgeOutput.fromJson(e as Map)) .toList(), ); @@ -2229,7 +2229,7 @@ class AddBridgeSourcesResponse { return AddBridgeSourcesResponse( bridgeArn: json['bridgeArn'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BridgeSource.fromJson(e as Map)) .toList(), ); @@ -2277,7 +2277,7 @@ class AddFlowMediaStreamsResponse { return AddFlowMediaStreamsResponse( flowArn: json['flowArn'] as String?, mediaStreams: (json['mediaStreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaStream.fromJson(e as Map)) .toList(), ); @@ -2309,7 +2309,7 @@ class AddFlowOutputsResponse { return AddFlowOutputsResponse( flowArn: json['flowArn'] as String?, outputs: (json['outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), ); @@ -2341,7 +2341,7 @@ class AddFlowSourcesResponse { return AddFlowSourcesResponse( flowArn: json['flowArn'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), ); @@ -2373,7 +2373,7 @@ class AddFlowVpcInterfacesResponse { return AddFlowVpcInterfacesResponse( flowArn: json['flowArn'] as String?, vpcInterfaces: (json['vpcInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcInterface.fromJson(e as Map)) .toList(), ); @@ -2669,7 +2669,7 @@ class Bridge { name: json['name'] as String, placementArn: json['placementArn'] as String, bridgeMessages: (json['bridgeMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageDetail.fromJson(e as Map)) .toList(), egressGatewayBridge: json['egressGatewayBridge'] != null @@ -2681,7 +2681,7 @@ class Bridge { json['ingressGatewayBridge'] as Map) : null, outputs: (json['outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BridgeOutput.fromJson(e as Map)) .toList(), sourceFailoverConfig: json['sourceFailoverConfig'] != null @@ -2689,7 +2689,7 @@ class Bridge { json['sourceFailoverConfig'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BridgeSource.fromJson(e as Map)) .toList(), ); @@ -3308,7 +3308,7 @@ class DescribeFlowSourceMetadataResponse { return DescribeFlowSourceMetadataResponse( flowArn: json['flowArn'] as String?, messages: (json['messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageDetail.fromJson(e as Map)) .toList(), timestamp: timeStampFromJson(json['timestamp']), @@ -3809,7 +3809,7 @@ class Entitlement { entitlementArn: json['entitlementArn'] as String, name: json['name'] as String, subscribers: (json['subscribers'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), dataTransferSubscriberFeePercent: @@ -3986,13 +3986,13 @@ class Flow { return Flow( availabilityZone: json['availabilityZone'] as String, entitlements: (json['entitlements'] as List) - .whereNotNull() + .nonNulls .map((e) => Entitlement.fromJson(e as Map)) .toList(), flowArn: json['flowArn'] as String, name: json['name'] as String, outputs: (json['outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), source: Source.fromJson(json['source'] as Map), @@ -4003,7 +4003,7 @@ class Flow { ? Maintenance.fromJson(json['maintenance'] as Map) : null, mediaStreams: (json['mediaStreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaStream.fromJson(e as Map)) .toList(), sourceFailoverConfig: json['sourceFailoverConfig'] != null @@ -4011,11 +4011,11 @@ class Flow { json['sourceFailoverConfig'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), vpcInterfaces: (json['vpcInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcInterface.fromJson(e as Map)) .toList(), ); @@ -4245,17 +4245,17 @@ class Gateway { factory Gateway.fromJson(Map json) { return Gateway( egressCidrBlocks: (json['egressCidrBlocks'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), gatewayArn: json['gatewayArn'] as String, name: json['name'] as String, networks: (json['networks'] as List) - .whereNotNull() + .nonNulls .map((e) => GatewayNetwork.fromJson(e as Map)) .toList(), gatewayMessages: (json['gatewayMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageDetail.fromJson(e as Map)) .toList(), gatewayState: @@ -4367,7 +4367,7 @@ class GatewayInstance { InstanceState.fromString((json['instanceState'] as String)), runningBridgeCount: json['runningBridgeCount'] as int, instanceMessages: (json['instanceMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageDetail.fromJson(e as Map)) .toList(), ); @@ -4521,7 +4521,7 @@ class GrantFlowEntitlementsResponse { factory GrantFlowEntitlementsResponse.fromJson(Map json) { return GrantFlowEntitlementsResponse( entitlements: (json['entitlements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entitlement.fromJson(e as Map)) .toList(), flowArn: json['flowArn'] as String?, @@ -4731,7 +4731,7 @@ class ListBridgesResponse { factory ListBridgesResponse.fromJson(Map json) { return ListBridgesResponse( bridges: (json['bridges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListedBridge.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4768,7 +4768,7 @@ class ListEntitlementsResponse { factory ListEntitlementsResponse.fromJson(Map json) { return ListEntitlementsResponse( entitlements: (json['entitlements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListedEntitlement.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4804,7 +4804,7 @@ class ListFlowsResponse { factory ListFlowsResponse.fromJson(Map json) { return ListFlowsResponse( flows: (json['flows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListedFlow.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4840,7 +4840,7 @@ class ListGatewayInstancesResponse { factory ListGatewayInstancesResponse.fromJson(Map json) { return ListGatewayInstancesResponse( instances: (json['instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListedGatewayInstance.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4876,7 +4876,7 @@ class ListGatewaysResponse { factory ListGatewaysResponse.fromJson(Map json) { return ListGatewaysResponse( gateways: (json['gateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListedGateway.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4914,7 +4914,7 @@ class ListOfferingsResponse { return ListOfferingsResponse( nextToken: json['nextToken'] as String?, offerings: (json['offerings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Offering.fromJson(e as Map)) .toList(), ); @@ -4951,7 +4951,7 @@ class ListReservationsResponse { return ListReservationsResponse( nextToken: json['nextToken'] as String?, reservations: (json['reservations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Reservation.fromJson(e as Map)) .toList(), ); @@ -5471,7 +5471,7 @@ class MediaStreamOutputConfiguration { encodingName: EncodingName.fromString((json['encodingName'] as String)), mediaStreamName: json['mediaStreamName'] as String, destinationConfigurations: (json['destinationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DestinationConfiguration.fromJson(e as Map)) .toList(), @@ -5564,7 +5564,7 @@ class MediaStreamSourceConfiguration { encodingName: EncodingName.fromString((json['encodingName'] as String)), mediaStreamName: json['mediaStreamName'] as String, inputConfigurations: (json['inputConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputConfiguration.fromJson(e as Map)) .toList(), ); @@ -5680,10 +5680,8 @@ class Messages { factory Messages.fromJson(Map json) { return Messages( - errors: (json['errors'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + errors: + (json['errors'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -5869,7 +5867,7 @@ class Output { outputArn: json['outputArn'] as String, bridgeArn: json['bridgeArn'] as String?, bridgePorts: (json['bridgePorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), dataTransferSubscriberFeePercent: @@ -5884,7 +5882,7 @@ class Output { mediaLiveInputArn: json['mediaLiveInputArn'] as String?, mediaStreamOutputConfigurations: (json['mediaStreamOutputConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaStreamOutputConfiguration.fromJson( e as Map)) .toList(), @@ -6175,7 +6173,7 @@ class RemoveFlowVpcInterfaceResponse { flowArn: json['flowArn'] as String?, nonDeletedNetworkInterfaceIds: (json['nonDeletedNetworkInterfaceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcInterfaceName: json['vpcInterfaceName'] as String?, @@ -6693,7 +6691,7 @@ class Source { ingestPort: json['ingestPort'] as int?, mediaStreamSourceConfigurations: (json['mediaStreamSourceConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaStreamSourceConfiguration.fromJson( e as Map)) .toList(), @@ -6971,7 +6969,7 @@ class Transport { return Transport( protocol: Protocol.fromString((json['protocol'] as String)), cidrAllowList: (json['cidrAllowList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxBitrate: json['maxBitrate'] as int?, @@ -7033,7 +7031,7 @@ class TransportMediaInfo { factory TransportMediaInfo.fromJson(Map json) { return TransportMediaInfo( programs: (json['programs'] as List) - .whereNotNull() + .nonNulls .map( (e) => TransportStreamProgram.fromJson(e as Map)) .toList(), @@ -7155,7 +7153,7 @@ class TransportStreamProgram { programNumber: json['programNumber'] as int, programPid: json['programPid'] as int, streams: (json['streams'] as List) - .whereNotNull() + .nonNulls .map((e) => TransportStream.fromJson(e as Map)) .toList(), programName: json['programName'] as String?, @@ -7819,14 +7817,14 @@ class VpcInterface { return VpcInterface( name: json['name'] as String, networkInterfaceIds: (json['networkInterfaceIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), networkInterfaceType: NetworkInterfaceType.fromString( (json['networkInterfaceType'] as String)), roleArn: json['roleArn'] as String, securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), subnetId: json['subnetId'] as String, diff --git a/aws_client/lib/src/generated/media_convert/v2017_08_29.dart b/aws_client/lib/src/generated/media_convert/v2017_08_29.dart index 3db07ab2e..a131e90ea 100644 --- a/aws_client/lib/src/generated/media_convert/v2017_08_29.dart +++ b/aws_client/lib/src/generated/media_convert/v2017_08_29.dart @@ -2298,7 +2298,7 @@ class AudioChannelTaggingSettings { channelTag: (json['channelTag'] as String?)?.let(AudioChannelTag.fromString), channelTags: (json['channelTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudioChannelTag.fromString((e as String))) .toList(), ); @@ -3003,8 +3003,7 @@ class AudioSelector { languageCode: (json['languageCode'] as String?)?.let(LanguageCode.fromString), offset: json['offset'] as int?, - pids: - (json['pids'] as List?)?.whereNotNull().map((e) => e as int).toList(), + pids: (json['pids'] as List?)?.nonNulls.map((e) => e as int).toList(), programSelection: json['programSelection'] as int?, remixSettings: json['remixSettings'] != null ? RemixSettings.fromJson( @@ -3012,10 +3011,7 @@ class AudioSelector { : null, selectorType: (json['selectorType'] as String?)?.let(AudioSelectorType.fromString), - tracks: (json['tracks'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + tracks: (json['tracks'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } @@ -3070,7 +3066,7 @@ class AudioSelectorGroup { factory AudioSelectorGroup.fromJson(Map json) { return AudioSelectorGroup( audioSelectorNames: (json['audioSelectorNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3200,11 +3196,11 @@ class AutomatedAbrRule { factory AutomatedAbrRule.fromJson(Map json) { return AutomatedAbrRule( allowedRenditions: (json['allowedRenditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AllowedRenditionSize.fromJson(e as Map)) .toList(), forceIncludeRenditions: (json['forceIncludeRenditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ForceIncludeRenditionSize.fromJson(e as Map)) .toList(), @@ -3286,7 +3282,7 @@ class AutomatedAbrSettings { maxRenditions: json['maxRenditions'] as int?, minAbrBitrate: json['minAbrBitrate'] as int?, rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomatedAbrRule.fromJson(e as Map)) .toList(), ); @@ -5387,7 +5383,7 @@ class ChannelMapping { factory ChannelMapping.fromJson(Map json) { return ChannelMapping( outputChannels: (json['outputChannels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputChannelMapping.fromJson(e as Map)) .toList(), ); @@ -5497,7 +5493,7 @@ class CmafAdditionalManifest { return CmafAdditionalManifest( manifestNameModifier: json['manifestNameModifier'] as String?, selectedOutputs: (json['selectedOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5859,7 +5855,7 @@ class CmafGroupSettings { factory CmafGroupSettings.fromJson(Map json) { return CmafGroupSettings( additionalManifests: (json['additionalManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CmafAdditionalManifest.fromJson(e as Map)) .toList(), @@ -7510,7 +7506,7 @@ class DashAdditionalManifest { return DashAdditionalManifest( manifestNameModifier: json['manifestNameModifier'] as String?, selectedOutputs: (json['selectedOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7778,7 +7774,7 @@ class DashIsoGroupSettings { factory DashIsoGroupSettings.fromJson(Map json) { return DashIsoGroupSettings( additionalManifests: (json['additionalManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DashAdditionalManifest.fromJson(e as Map)) .toList(), @@ -8444,7 +8440,7 @@ class DescribeEndpointsResponse { factory DescribeEndpointsResponse.fromJson(Map json) { return DescribeEndpointsResponse( endpoints: (json['endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -13979,7 +13975,7 @@ class HlsAdditionalManifest { return HlsAdditionalManifest( manifestNameModifier: json['manifestNameModifier'] as String?, selectedOutputs: (json['selectedOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -14569,18 +14565,18 @@ class HlsGroupSettings { factory HlsGroupSettings.fromJson(Map json) { return HlsGroupSettings( adMarkers: (json['adMarkers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HlsAdMarkers.fromString((e as String))) .toList(), additionalManifests: (json['additionalManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HlsAdditionalManifest.fromJson(e as Map)) .toList(), audioOnlyHeader: (json['audioOnlyHeader'] as String?) ?.let(HlsAudioOnlyHeader.fromString), baseUrl: json['baseUrl'] as String?, captionLanguageMappings: (json['captionLanguageMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HlsCaptionLanguageMapping.fromJson(e as Map)) .toList(), @@ -15382,7 +15378,7 @@ class ImageInserter { factory ImageInserter.fromJson(Map json) { return ImageInserter( insertableImages: (json['insertableImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsertableImage.fromJson(e as Map)) .toList(), sdrReferenceWhiteLevel: json['sdrReferenceWhiteLevel'] as int?, @@ -15748,7 +15744,7 @@ class Input { json['imageInserter'] as Map) : null, inputClippings: (json['inputClippings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputClipping.fromJson(e as Map)) .toList(), inputScanType: @@ -15760,7 +15756,7 @@ class Input { psiControl: (json['psiControl'] as String?)?.let(InputPsiControl.fromString), supplementalImps: (json['supplementalImps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), timecodeSource: (json['timecodeSource'] as String?) @@ -15771,7 +15767,7 @@ class Input { json['videoGenerator'] as Map) : null, videoOverlays: (json['videoOverlays'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VideoOverlay.fromJson(e as Map)) .toList(), videoSelector: json['videoSelector'] != null @@ -16319,7 +16315,7 @@ class InputTemplate { json['imageInserter'] as Map) : null, inputClippings: (json['inputClippings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputClipping.fromJson(e as Map)) .toList(), inputScanType: @@ -16334,7 +16330,7 @@ class InputTemplate { ?.let(InputTimecodeSource.fromString), timecodeStart: json['timecodeStart'] as String?, videoOverlays: (json['videoOverlays'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VideoOverlay.fromJson(e as Map)) .toList(), videoSelector: json['videoSelector'] != null @@ -16748,7 +16744,7 @@ class Job { errorCode: json['errorCode'] as int?, errorMessage: json['errorMessage'] as String?, hopDestinations: (json['hopDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HopDestination.fromJson(e as Map)) .toList(), id: json['id'] as String?, @@ -16758,13 +16754,13 @@ class Job { ? JobMessages.fromJson(json['messages'] as Map) : null, outputGroupDetails: (json['outputGroupDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputGroupDetail.fromJson(e as Map)) .toList(), priority: json['priority'] as int?, queue: json['queue'] as String?, queueTransitions: (json['queueTransitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueueTransition.fromJson(e as Map)) .toList(), retryCount: json['retryCount'] as int?, @@ -16779,7 +16775,7 @@ class Job { userMetadata: (json['userMetadata'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WarningGroup.fromJson(e as Map)) .toList(), ); @@ -16868,14 +16864,9 @@ class JobMessages { factory JobMessages.fromJson(Map json) { return JobMessages( - info: (json['info'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - warning: (json['warning'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + info: (json['info'] as List?)?.nonNulls.map((e) => e as String).toList(), + warning: + (json['warning'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -17022,7 +17013,7 @@ class JobSettings { : null, colorConversion3DLUTSettings: (json['colorConversion3DLUTSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColorConversion3DLUTSetting.fromJson(e as Map)) .toList(), @@ -17035,7 +17026,7 @@ class JobSettings { : null, followSource: json['followSource'] as int?, inputs: (json['inputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Input.fromJson(e as Map)) .toList(), kantarWatermark: json['kantarWatermark'] != null @@ -17055,7 +17046,7 @@ class JobSettings { json['nielsenNonLinearWatermark'] as Map) : null, outputGroups: (json['outputGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputGroup.fromJson(e as Map)) .toList(), timecodeConfig: json['timecodeConfig'] != null @@ -17208,7 +17199,7 @@ class JobTemplate { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, hopDestinations: (json['hopDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HopDestination.fromJson(e as Map)) .toList(), lastUpdated: timeStampFromJson(json['lastUpdated']), @@ -17391,7 +17382,7 @@ class JobTemplateSettings { : null, colorConversion3DLUTSettings: (json['colorConversion3DLUTSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColorConversion3DLUTSetting.fromJson(e as Map)) .toList(), @@ -17404,7 +17395,7 @@ class JobTemplateSettings { : null, followSource: json['followSource'] as int?, inputs: (json['inputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputTemplate.fromJson(e as Map)) .toList(), kantarWatermark: json['kantarWatermark'] != null @@ -17424,7 +17415,7 @@ class JobTemplateSettings { json['nielsenNonLinearWatermark'] as Map) : null, outputGroups: (json['outputGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputGroup.fromJson(e as Map)) .toList(), timecodeConfig: json['timecodeConfig'] != null @@ -17837,7 +17828,7 @@ class ListJobTemplatesResponse { factory ListJobTemplatesResponse.fromJson(Map json) { return ListJobTemplatesResponse( jobTemplates: (json['jobTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobTemplate.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -17869,7 +17860,7 @@ class ListJobsResponse { factory ListJobsResponse.fromJson(Map json) { return ListJobsResponse( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -17902,7 +17893,7 @@ class ListPresetsResponse { return ListPresetsResponse( nextToken: json['nextToken'] as String?, presets: (json['presets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Preset.fromJson(e as Map)) .toList(), ); @@ -17934,7 +17925,7 @@ class ListQueuesResponse { return ListQueuesResponse( nextToken: json['nextToken'] as String?, queues: (json['queues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Queue.fromJson(e as Map)) .toList(), ); @@ -18625,10 +18616,8 @@ class M2tsSettings { audioDuration: (json['audioDuration'] as String?)?.let(M2tsAudioDuration.fromString), audioFramesPerPes: json['audioFramesPerPes'] as int?, - audioPids: (json['audioPids'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + audioPids: + (json['audioPids'] as List?)?.nonNulls.map((e) => e as int).toList(), bitrate: json['bitrate'] as int?, bufferModel: (json['bufferModel'] as String?)?.let(M2tsBufferModel.fromString), @@ -18642,10 +18631,8 @@ class M2tsSettings { ? DvbSdtSettings.fromJson( json['dvbSdtSettings'] as Map) : null, - dvbSubPids: (json['dvbSubPids'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + dvbSubPids: + (json['dvbSubPids'] as List?)?.nonNulls.map((e) => e as int).toList(), dvbTdtSettings: json['dvbTdtSettings'] != null ? DvbTdtSettings.fromJson( json['dvbTdtSettings'] as Map) @@ -19038,10 +19025,8 @@ class M3u8Settings { audioDuration: (json['audioDuration'] as String?)?.let(M3u8AudioDuration.fromString), audioFramesPerPes: json['audioFramesPerPes'] as int?, - audioPids: (json['audioPids'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + audioPids: + (json['audioPids'] as List?)?.nonNulls.map((e) => e as int).toList(), dataPTSControl: (json['dataPTSControl'] as String?) ?.let(M3u8DataPtsControl.fromString), maxPcrInterval: json['maxPcrInterval'] as int?, @@ -21025,7 +21010,7 @@ class MsSmoothAdditionalManifest { return MsSmoothAdditionalManifest( manifestNameModifier: json['manifestNameModifier'] as String?, selectedOutputs: (json['selectedOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -21169,7 +21154,7 @@ class MsSmoothGroupSettings { factory MsSmoothGroupSettings.fromJson(Map json) { return MsSmoothGroupSettings( additionalManifests: (json['additionalManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MsSmoothAdditionalManifest.fromJson(e as Map)) .toList(), @@ -22099,11 +22084,11 @@ class Output { factory Output.fromJson(Map json) { return Output( audioDescriptions: (json['audioDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudioDescription.fromJson(e as Map)) .toList(), captionDescriptions: (json['captionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionDescription.fromJson(e as Map)) .toList(), containerSettings: json['containerSettings'] != null @@ -22166,11 +22151,11 @@ class OutputChannelMapping { factory OutputChannelMapping.fromJson(Map json) { return OutputChannelMapping( inputChannels: (json['inputChannels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), inputChannelsFineTune: (json['inputChannelsFineTune'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -22262,7 +22247,7 @@ class OutputGroup { json['outputGroupSettings'] as Map) : null, outputs: (json['outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), ); @@ -22298,7 +22283,7 @@ class OutputGroupDetail { factory OutputGroupDetail.fromJson(Map json) { return OutputGroupDetail( outputDetails: (json['outputDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDetail.fromJson(e as Map)) .toList(), ); @@ -22680,11 +22665,11 @@ class PresetSettings { factory PresetSettings.fromJson(Map json) { return PresetSettings( audioDescriptions: (json['audioDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudioDescription.fromJson(e as Map)) .toList(), captionDescriptions: (json['captionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionDescriptionPreset.fromJson(e as Map)) .toList(), @@ -24121,7 +24106,7 @@ class SpekeKeyProvider { certificateArn: json['certificateArn'] as String?, resourceId: json['resourceId'] as String?, systemIds: (json['systemIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), url: json['url'] as String?, @@ -24184,11 +24169,11 @@ class SpekeKeyProviderCmaf { return SpekeKeyProviderCmaf( certificateArn: json['certificateArn'] as String?, dashSignaledSystemIds: (json['dashSignaledSystemIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), hlsSignaledSystemIds: (json['hlsSignaledSystemIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resourceId: json['resourceId'] as String?, @@ -24386,7 +24371,7 @@ class TeletextDestinationSettings { return TeletextDestinationSettings( pageNumber: json['pageNumber'] as String?, pageTypes: (json['pageTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TeletextPageType.fromString((e as String))) .toList(), ); @@ -24647,7 +24632,7 @@ class TimedMetadataInsertion { factory TimedMetadataInsertion.fromJson(Map json) { return TimedMetadataInsertion( id3Insertions: (json['id3Insertions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Id3Insertion.fromJson(e as Map)) .toList(), ); @@ -26001,7 +25986,7 @@ class VideoOverlayInput { return VideoOverlayInput( fileInput: json['fileInput'] as String?, inputClippings: (json['inputClippings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VideoOverlayInputClipping.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/media_live/v2017_10_14.dart b/aws_client/lib/src/generated/media_live/v2017_10_14.dart index 420721bb8..b5ea5d7ec 100644 --- a/aws_client/lib/src/generated/media_live/v2017_10_14.dart +++ b/aws_client/lib/src/generated/media_live/v2017_10_14.dart @@ -4174,7 +4174,7 @@ class AudioChannelMapping { factory AudioChannelMapping.fromJson(Map json) { return AudioChannelMapping( inputChannelLevels: (json['inputChannelLevels'] as List) - .whereNotNull() + .nonNulls .map((e) => InputChannelLevel.fromJson(e as Map)) .toList(), outputChannel: json['outputChannel'] as int, @@ -4342,7 +4342,7 @@ class AudioDescription { audioSelectorName: json['audioSelectorName'] as String, name: json['name'] as String, audioDashRoles: (json['audioDashRoles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashRoleAudio.fromString((e as String))) .toList(), audioNormalizationSettings: json['audioNormalizationSettings'] != null @@ -4924,7 +4924,7 @@ class AudioTrackSelection { factory AudioTrackSelection.fromJson(Map json) { return AudioTrackSelection( tracks: (json['tracks'] as List) - .whereNotNull() + .nonNulls .map((e) => AudioTrack.fromJson(e as Map)) .toList(), dolbyEDecode: json['dolbyEDecode'] != null @@ -5037,7 +5037,7 @@ class AutomaticInputFailoverSettings { secondaryInputId: json['secondaryInputId'] as String, errorClearTimeMsec: json['errorClearTimeMsec'] as int?, failoverConditions: (json['failoverConditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailoverCondition.fromJson(e as Map)) .toList(), inputPreference: @@ -5215,12 +5215,12 @@ class BatchDeleteResponse { factory BatchDeleteResponse.fromJson(Map json) { return BatchDeleteResponse( failed: (json['failed'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BatchFailedResultModel.fromJson(e as Map)) .toList(), successful: (json['successful'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchSuccessfulResultModel.fromJson(e as Map)) .toList(), @@ -5311,7 +5311,7 @@ class BatchScheduleActionCreateResult { factory BatchScheduleActionCreateResult.fromJson(Map json) { return BatchScheduleActionCreateResult( scheduleActions: (json['scheduleActions'] as List) - .whereNotNull() + .nonNulls .map((e) => ScheduleAction.fromJson(e as Map)) .toList(), ); @@ -5354,7 +5354,7 @@ class BatchScheduleActionDeleteResult { factory BatchScheduleActionDeleteResult.fromJson(Map json) { return BatchScheduleActionDeleteResult( scheduleActions: (json['scheduleActions'] as List) - .whereNotNull() + .nonNulls .map((e) => ScheduleAction.fromJson(e as Map)) .toList(), ); @@ -5384,12 +5384,12 @@ class BatchStartResponse { factory BatchStartResponse.fromJson(Map json) { return BatchStartResponse( failed: (json['failed'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BatchFailedResultModel.fromJson(e as Map)) .toList(), successful: (json['successful'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchSuccessfulResultModel.fromJson(e as Map)) .toList(), @@ -5422,12 +5422,12 @@ class BatchStopResponse { factory BatchStopResponse.fromJson(Map json) { return BatchStopResponse( failed: (json['failed'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BatchFailedResultModel.fromJson(e as Map)) .toList(), successful: (json['successful'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchSuccessfulResultModel.fromJson(e as Map)) .toList(), @@ -5980,7 +5980,7 @@ class CaptionDescription { accessibility: (json['accessibility'] as String?)?.let(AccessibilityType.fromString), captionDashRoles: (json['captionDashRoles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashRoleCaption.fromString((e as String))) .toList(), destinationSettings: json['destinationSettings'] != null @@ -6534,11 +6534,11 @@ class Channel { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), encoderSettings: json['encoderSettings'] != null @@ -6547,7 +6547,7 @@ class Channel { : null, id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -6561,7 +6561,7 @@ class Channel { : null, name: json['name'] as String?, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDetail.fromJson(e as Map)) .toList(), pipelinesRunningCount: json['pipelinesRunningCount'] as int?, @@ -6765,16 +6765,16 @@ class ChannelSummary { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -6912,7 +6912,7 @@ class ColorCorrectionSettings { factory ColorCorrectionSettings.fromJson(Map json) { return ColorCorrectionSettings( globalColorCorrections: (json['globalColorCorrections'] as List) - .whereNotNull() + .nonNulls .map((e) => ColorCorrection.fromJson(e as Map)) .toList(), ); @@ -7191,11 +7191,11 @@ class DeleteChannelResponse { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), encoderSettings: json['encoderSettings'] != null @@ -7204,7 +7204,7 @@ class DeleteChannelResponse { : null, id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -7218,7 +7218,7 @@ class DeleteChannelResponse { : null, name: json['name'] as String?, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDetail.fromJson(e as Map)) .toList(), pipelinesRunningCount: json['pipelinesRunningCount'] as int?, @@ -7344,7 +7344,7 @@ class DeleteMultiplexProgramResponse { json['packetIdentifiersMap'] as Map) : null, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexProgramPipelineDetail.fromJson( e as Map)) .toList(), @@ -7419,11 +7419,11 @@ class DeleteMultiplexResponse { return DeleteMultiplexResponse( arn: json['arn'] as String?, availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexOutputDestination.fromJson(e as Map)) .toList(), @@ -7759,11 +7759,11 @@ class DescribeChannelResponse { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), encoderSettings: json['encoderSettings'] != null @@ -7772,7 +7772,7 @@ class DescribeChannelResponse { : null, id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -7786,7 +7786,7 @@ class DescribeChannelResponse { : null, name: json['name'] as String?, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDetail.fromJson(e as Map)) .toList(), pipelinesRunningCount: json['pipelinesRunningCount'] as int?, @@ -7938,7 +7938,7 @@ class DescribeInputDeviceResponse { id: json['id'] as String?, macAddress: json['macAddress'] as String?, medialiveInputArns: (json['medialiveInputArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -8118,37 +8118,37 @@ class DescribeInputResponse { return DescribeInputResponse( arn: json['arn'] as String?, attachedChannels: (json['attachedChannels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDestination.fromJson(e as Map)) .toList(), id: json['id'] as String?, inputClass: (json['inputClass'] as String?)?.let(InputClass.fromString), inputDevices: (json['inputDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDeviceSettings.fromJson(e as Map)) .toList(), inputPartnerIds: (json['inputPartnerIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inputSourceType: (json['inputSourceType'] as String?)?.let(InputSourceType.fromString), mediaConnectFlows: (json['mediaConnectFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaConnectFlow.fromJson(e as Map)) .toList(), name: json['name'] as String?, roleArn: json['roleArn'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputSource.fromJson(e as Map)) .toList(), state: (json['state'] as String?)?.let(InputState.fromString), @@ -8230,16 +8230,14 @@ class DescribeInputSecurityGroupResponse { return DescribeInputSecurityGroupResponse( arn: json['arn'] as String?, id: json['id'] as String?, - inputs: (json['inputs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['inputs'] as List?)?.nonNulls.map((e) => e as String).toList(), state: (json['state'] as String?)?.let(InputSecurityGroupState.fromString), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), whitelistRules: (json['whitelistRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputWhitelistRule.fromJson(e as Map)) .toList(), ); @@ -8304,7 +8302,7 @@ class DescribeMultiplexProgramResponse { json['packetIdentifiersMap'] as Map) : null, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexProgramPipelineDetail.fromJson( e as Map)) .toList(), @@ -8379,11 +8377,11 @@ class DescribeMultiplexResponse { return DescribeMultiplexResponse( arn: json['arn'] as String?, availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexOutputDestination.fromJson(e as Map)) .toList(), @@ -8713,7 +8711,7 @@ class DescribeScheduleResponse { return DescribeScheduleResponse( nextToken: json['nextToken'] as String?, scheduleActions: (json['scheduleActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduleAction.fromJson(e as Map)) .toList(), ); @@ -8740,7 +8738,7 @@ class DescribeThumbnailsResponse { factory DescribeThumbnailsResponse.fromJson(Map json) { return DescribeThumbnailsResponse( thumbnailDetails: (json['thumbnailDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThumbnailDetail.fromJson(e as Map)) .toList(), ); @@ -10148,17 +10146,17 @@ class EncoderSettings { factory EncoderSettings.fromJson(Map json) { return EncoderSettings( audioDescriptions: (json['audioDescriptions'] as List) - .whereNotNull() + .nonNulls .map((e) => AudioDescription.fromJson(e as Map)) .toList(), outputGroups: (json['outputGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => OutputGroup.fromJson(e as Map)) .toList(), timecodeConfig: TimecodeConfig.fromJson( json['timecodeConfig'] as Map), videoDescriptions: (json['videoDescriptions'] as List) - .whereNotNull() + .nonNulls .map((e) => VideoDescription.fromJson(e as Map)) .toList(), availBlanking: json['availBlanking'] != null @@ -10174,7 +10172,7 @@ class EncoderSettings { json['blackoutSlate'] as Map) : null, captionDescriptions: (json['captionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionDescription.fromJson(e as Map)) .toList(), colorCorrectionSettings: json['colorCorrectionSettings'] != null @@ -13326,7 +13324,7 @@ class HlsGroupSettings { destination: OutputLocationRef.fromJson( json['destination'] as Map), adMarkers: (json['adMarkers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HlsAdMarkers.fromString((e as String))) .toList(), baseUrlContent: json['baseUrlContent'] as String?, @@ -13334,7 +13332,7 @@ class HlsGroupSettings { baseUrlManifest: json['baseUrlManifest'] as String?, baseUrlManifest1: json['baseUrlManifest1'] as String?, captionLanguageMappings: (json['captionLanguageMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CaptionLanguageMapping.fromJson(e as Map)) .toList(), @@ -14324,37 +14322,37 @@ class Input { return Input( arn: json['arn'] as String?, attachedChannels: (json['attachedChannels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDestination.fromJson(e as Map)) .toList(), id: json['id'] as String?, inputClass: (json['inputClass'] as String?)?.let(InputClass.fromString), inputDevices: (json['inputDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDeviceSettings.fromJson(e as Map)) .toList(), inputPartnerIds: (json['inputPartnerIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inputSourceType: (json['inputSourceType'] as String?)?.let(InputSourceType.fromString), mediaConnectFlows: (json['mediaConnectFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaConnectFlow.fromJson(e as Map)) .toList(), name: json['name'] as String?, roleArn: json['roleArn'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputSource.fromJson(e as Map)) .toList(), state: (json['state'] as String?)?.let(InputState.fromString), @@ -15033,7 +15031,7 @@ class InputDeviceNetworkSettings { factory InputDeviceNetworkSettings.fromJson(Map json) { return InputDeviceNetworkSettings( dnsAddresses: (json['dnsAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), gateway: json['gateway'] as String?, @@ -15242,7 +15240,7 @@ class InputDeviceSummary { id: json['id'] as String?, macAddress: json['macAddress'] as String?, medialiveInputArns: (json['medialiveInputArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -15405,7 +15403,7 @@ class InputDeviceUhdSettings { activeInput: (json['activeInput'] as String?) ?.let(InputDeviceActiveInput.fromString), audioChannelPairs: (json['audioChannelPairs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDeviceUhdAudioChannelPairConfig.fromJson( e as Map)) .toList(), @@ -15754,10 +15752,8 @@ class InputPrepareScheduleActionSettings { ? InputClippingSettings.fromJson( json['inputClippingSettings'] as Map) : null, - urlPath: (json['urlPath'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + urlPath: + (json['urlPath'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -15826,16 +15822,14 @@ class InputSecurityGroup { return InputSecurityGroup( arn: json['arn'] as String?, id: json['id'] as String?, - inputs: (json['inputs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['inputs'] as List?)?.nonNulls.map((e) => e as String).toList(), state: (json['state'] as String?)?.let(InputSecurityGroupState.fromString), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), whitelistRules: (json['whitelistRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputWhitelistRule.fromJson(e as Map)) .toList(), ); @@ -15944,11 +15938,11 @@ class InputSettings { factory InputSettings.fromJson(Map json) { return InputSettings( audioSelectors: (json['audioSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudioSelector.fromJson(e as Map)) .toList(), captionSelectors: (json['captionSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionSelector.fromJson(e as Map)) .toList(), deblockFilter: (json['deblockFilter'] as String?) @@ -16199,10 +16193,8 @@ class InputSwitchScheduleActionSettings { ? InputClippingSettings.fromJson( json['inputClippingSettings'] as Map) : null, - urlPath: (json['urlPath'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + urlPath: + (json['urlPath'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -16385,7 +16377,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -16419,7 +16411,7 @@ class ListInputDeviceTransfersResponse { factory ListInputDeviceTransfersResponse.fromJson(Map json) { return ListInputDeviceTransfersResponse( inputDeviceTransfers: (json['inputDeviceTransfers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransferringInputDeviceSummary.fromJson( e as Map)) .toList(), @@ -16454,7 +16446,7 @@ class ListInputDevicesResponse { factory ListInputDevicesResponse.fromJson(Map json) { return ListInputDevicesResponse( inputDevices: (json['inputDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDeviceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -16485,7 +16477,7 @@ class ListInputSecurityGroupsResponse { factory ListInputSecurityGroupsResponse.fromJson(Map json) { return ListInputSecurityGroupsResponse( inputSecurityGroups: (json['inputSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputSecurityGroup.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -16516,7 +16508,7 @@ class ListInputsResponse { factory ListInputsResponse.fromJson(Map json) { return ListInputsResponse( inputs: (json['inputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Input.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -16549,7 +16541,7 @@ class ListMultiplexProgramsResponse { factory ListMultiplexProgramsResponse.fromJson(Map json) { return ListMultiplexProgramsResponse( multiplexPrograms: (json['multiplexPrograms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexProgramSummary.fromJson(e as Map)) .toList(), @@ -16583,7 +16575,7 @@ class ListMultiplexesResponse { factory ListMultiplexesResponse.fromJson(Map json) { return ListMultiplexesResponse( multiplexes: (json['multiplexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -16617,7 +16609,7 @@ class ListOfferingsResponse { return ListOfferingsResponse( nextToken: json['nextToken'] as String?, offerings: (json['offerings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Offering.fromJson(e as Map)) .toList(), ); @@ -16650,7 +16642,7 @@ class ListReservationsResponse { return ListReservationsResponse( nextToken: json['nextToken'] as String?, reservations: (json['reservations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Reservation.fromJson(e as Map)) .toList(), ); @@ -18840,11 +18832,11 @@ class Multiplex { return Multiplex( arn: json['arn'] as String?, availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexOutputDestination.fromJson(e as Map)) .toList(), @@ -19018,7 +19010,7 @@ class MultiplexProgram { json['packetIdentifiersMap'] as Map) : null, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexProgramPipelineDetail.fromJson( e as Map)) .toList(), @@ -19116,28 +19108,22 @@ class MultiplexProgramPacketIdentifiersMap { factory MultiplexProgramPacketIdentifiersMap.fromJson( Map json) { return MultiplexProgramPacketIdentifiersMap( - audioPids: (json['audioPids'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), - dvbSubPids: (json['dvbSubPids'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + audioPids: + (json['audioPids'] as List?)?.nonNulls.map((e) => e as int).toList(), + dvbSubPids: + (json['dvbSubPids'] as List?)?.nonNulls.map((e) => e as int).toList(), dvbTeletextPid: json['dvbTeletextPid'] as int?, etvPlatformPid: json['etvPlatformPid'] as int?, etvSignalPid: json['etvSignalPid'] as int?, klvDataPids: (json['klvDataPids'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), pcrPid: json['pcrPid'] as int?, pmtPid: json['pmtPid'] as int?, privateMetadataPid: json['privateMetadataPid'] as int?, - scte27Pids: (json['scte27Pids'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + scte27Pids: + (json['scte27Pids'] as List?)?.nonNulls.map((e) => e as int).toList(), scte35Pid: json['scte35Pid'] as int?, timedMetadataPid: json['timedMetadataPid'] as int?, videoPid: json['videoPid'] as int?, @@ -19504,7 +19490,7 @@ class MultiplexSummary { return MultiplexSummary( arn: json['arn'] as String?, availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), id: json['id'] as String?, @@ -20034,11 +20020,11 @@ class Output { outputSettings: OutputSettings.fromJson( json['outputSettings'] as Map), audioDescriptionNames: (json['audioDescriptionNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), captionDescriptionNames: (json['captionDescriptionNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), outputName: json['outputName'] as String?, @@ -20093,7 +20079,7 @@ class OutputDestination { return OutputDestination( id: json['id'] as String?, mediaPackageSettings: (json['mediaPackageSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaPackageOutputDestinationSettings.fromJson( e as Map)) .toList(), @@ -20102,7 +20088,7 @@ class OutputDestination { json['multiplexSettings'] as Map) : null, settings: (json['settings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestinationSettings.fromJson(e as Map)) .toList(), @@ -20189,7 +20175,7 @@ class OutputGroup { outputGroupSettings: OutputGroupSettings.fromJson( json['outputGroupSettings'] as Map), outputs: (json['outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -20479,7 +20465,7 @@ class PauseStateScheduleActionSettings { factory PauseStateScheduleActionSettings.fromJson(Map json) { return PauseStateScheduleActionSettings( pipelines: (json['pipelines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelinePauseStateSettings.fromJson(e as Map)) .toList(), @@ -20757,7 +20743,7 @@ class RemixSettings { factory RemixSettings.fromJson(Map json) { return RemixSettings( channelMappings: (json['channelMappings'] as List) - .whereNotNull() + .nonNulls .map((e) => AudioChannelMapping.fromJson(e as Map)) .toList(), channelsIn: json['channelsIn'] as int?, @@ -21334,7 +21320,7 @@ class RtmpGroupSettings { factory RtmpGroupSettings.fromJson(Map json) { return RtmpGroupSettings( adMarkers: (json['adMarkers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RtmpAdMarkers.fromString((e as String))) .toList(), authenticationScheme: (json['authenticationScheme'] as String?) @@ -22497,7 +22483,7 @@ class Scte35TimeSignalScheduleActionSettings { Map json) { return Scte35TimeSignalScheduleActionSettings( scte35Descriptors: (json['scte35Descriptors'] as List) - .whereNotNull() + .nonNulls .map((e) => Scte35Descriptor.fromJson(e as Map)) .toList(), ); @@ -22806,11 +22792,11 @@ class StartChannelResponse { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), encoderSettings: json['encoderSettings'] != null @@ -22819,7 +22805,7 @@ class StartChannelResponse { : null, id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -22833,7 +22819,7 @@ class StartChannelResponse { : null, name: json['name'] as String?, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDetail.fromJson(e as Map)) .toList(), pipelinesRunningCount: json['pipelinesRunningCount'] as int?, @@ -22968,11 +22954,11 @@ class StartMultiplexResponse { return StartMultiplexResponse( arn: json['arn'] as String?, availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexOutputDestination.fromJson(e as Map)) .toList(), @@ -23257,7 +23243,7 @@ class StaticImageOutputActivateScheduleActionSettings { return StaticImageOutputActivateScheduleActionSettings( image: InputLocation.fromJson(json['image'] as Map), outputNames: (json['outputNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), duration: json['duration'] as int?, @@ -23322,7 +23308,7 @@ class StaticImageOutputDeactivateScheduleActionSettings { Map json) { return StaticImageOutputDeactivateScheduleActionSettings( outputNames: (json['outputNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), fadeOut: json['fadeOut'] as int?, @@ -23461,11 +23447,11 @@ class StopChannelResponse { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), encoderSettings: json['encoderSettings'] != null @@ -23474,7 +23460,7 @@ class StopChannelResponse { : null, id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -23488,7 +23474,7 @@ class StopChannelResponse { : null, name: json['name'] as String?, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDetail.fromJson(e as Map)) .toList(), pipelinesRunningCount: json['pipelinesRunningCount'] as int?, @@ -23609,11 +23595,11 @@ class StopMultiplexResponse { return StopMultiplexResponse( arn: json['arn'] as String?, availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexOutputDestination.fromJson(e as Map)) .toList(), @@ -23917,7 +23903,7 @@ class ThumbnailDetail { return ThumbnailDetail( pipelineId: json['pipelineId'] as String?, thumbnails: (json['thumbnails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Thumbnail.fromJson(e as Map)) .toList(), ); @@ -24508,7 +24494,7 @@ class UpdateInputDeviceResponse { id: json['id'] as String?, macAddress: json['macAddress'] as String?, medialiveInputArns: (json['medialiveInputArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -25181,19 +25167,19 @@ class VpcOutputSettingsDescription { factory VpcOutputSettingsDescription.fromJson(Map json) { return VpcOutputSettingsDescription( availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), networkInterfaceIds: (json['networkInterfaceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -25562,11 +25548,11 @@ class RestartChannelPipelinesResponse { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), encoderSettings: json['encoderSettings'] != null @@ -25575,7 +25561,7 @@ class RestartChannelPipelinesResponse { : null, id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -25590,7 +25576,7 @@ class RestartChannelPipelinesResponse { maintenanceStatus: json['maintenanceStatus'] as String?, name: json['name'] as String?, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDetail.fromJson(e as Map)) .toList(), pipelinesRunningCount: json['pipelinesRunningCount'] as int?, @@ -26513,7 +26499,7 @@ class CreateEventBridgeRuleTemplateResponse { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, eventTargets: (json['eventTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBridgeRuleTemplateTarget.fromJson(e as Map)) .toList(), @@ -26617,7 +26603,7 @@ class CreateSignalMapResponse { arn: json['arn'] as String?, cloudWatchAlarmTemplateGroupIds: (json['cloudWatchAlarmTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -26626,7 +26612,7 @@ class CreateSignalMapResponse { errorMessage: json['errorMessage'] as String?, eventBridgeRuleTemplateGroupIds: (json['eventBridgeRuleTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failedMediaResourceMap: (json['failedMediaResourceMap'] @@ -27220,7 +27206,7 @@ class GetEventBridgeRuleTemplateResponse { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, eventTargets: (json['eventTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBridgeRuleTemplateTarget.fromJson(e as Map)) .toList(), @@ -27324,7 +27310,7 @@ class GetSignalMapResponse { arn: json['arn'] as String?, cloudWatchAlarmTemplateGroupIds: (json['cloudWatchAlarmTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -27333,7 +27319,7 @@ class GetSignalMapResponse { errorMessage: json['errorMessage'] as String?, eventBridgeRuleTemplateGroupIds: (json['eventBridgeRuleTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failedMediaResourceMap: (json['failedMediaResourceMap'] @@ -27437,7 +27423,7 @@ class ListCloudWatchAlarmTemplateGroupsResponse { return ListCloudWatchAlarmTemplateGroupsResponse( cloudWatchAlarmTemplateGroups: (json['cloudWatchAlarmTemplateGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchAlarmTemplateGroupSummary.fromJson( e as Map)) .toList(), @@ -27473,7 +27459,7 @@ class ListCloudWatchAlarmTemplatesResponse { Map json) { return ListCloudWatchAlarmTemplatesResponse( cloudWatchAlarmTemplates: (json['cloudWatchAlarmTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchAlarmTemplateSummary.fromJson( e as Map)) .toList(), @@ -27511,7 +27497,7 @@ class ListEventBridgeRuleTemplateGroupsResponse { return ListEventBridgeRuleTemplateGroupsResponse( eventBridgeRuleTemplateGroups: (json['eventBridgeRuleTemplateGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBridgeRuleTemplateGroupSummary.fromJson( e as Map)) .toList(), @@ -27547,7 +27533,7 @@ class ListEventBridgeRuleTemplatesResponse { Map json) { return ListEventBridgeRuleTemplatesResponse( eventBridgeRuleTemplates: (json['eventBridgeRuleTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBridgeRuleTemplateSummary.fromJson( e as Map)) .toList(), @@ -27582,7 +27568,7 @@ class ListSignalMapsResponse { return ListSignalMapsResponse( nextToken: json['nextToken'] as String?, signalMaps: (json['signalMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SignalMapSummary.fromJson(e as Map)) .toList(), ); @@ -27615,12 +27601,12 @@ class MediaResource { factory MediaResource.fromJson(Map json) { return MediaResource( destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaResourceNeighbor.fromJson(e as Map)) .toList(), name: json['name'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaResourceNeighbor.fromJson(e as Map)) .toList(), ); @@ -27889,7 +27875,7 @@ class StartDeleteMonitorDeploymentResponse { arn: json['arn'] as String?, cloudWatchAlarmTemplateGroupIds: (json['cloudWatchAlarmTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -27898,7 +27884,7 @@ class StartDeleteMonitorDeploymentResponse { errorMessage: json['errorMessage'] as String?, eventBridgeRuleTemplateGroupIds: (json['eventBridgeRuleTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failedMediaResourceMap: (json['failedMediaResourceMap'] @@ -28046,7 +28032,7 @@ class StartMonitorDeploymentResponse { arn: json['arn'] as String?, cloudWatchAlarmTemplateGroupIds: (json['cloudWatchAlarmTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -28055,7 +28041,7 @@ class StartMonitorDeploymentResponse { errorMessage: json['errorMessage'] as String?, eventBridgeRuleTemplateGroupIds: (json['eventBridgeRuleTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failedMediaResourceMap: (json['failedMediaResourceMap'] @@ -28203,7 +28189,7 @@ class StartUpdateSignalMapResponse { arn: json['arn'] as String?, cloudWatchAlarmTemplateGroupIds: (json['cloudWatchAlarmTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -28212,7 +28198,7 @@ class StartUpdateSignalMapResponse { errorMessage: json['errorMessage'] as String?, eventBridgeRuleTemplateGroupIds: (json['eventBridgeRuleTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failedMediaResourceMap: (json['failedMediaResourceMap'] @@ -28632,7 +28618,7 @@ class UpdateEventBridgeRuleTemplateResponse { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, eventTargets: (json['eventTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBridgeRuleTemplateTarget.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/media_package/v2017_10_12.dart b/aws_client/lib/src/generated/media_package/v2017_10_12.dart index 2b06bbd23..4d97a46d1 100644 --- a/aws_client/lib/src/generated/media_package/v2017_10_12.dart +++ b/aws_client/lib/src/generated/media_package/v2017_10_12.dart @@ -947,7 +947,7 @@ class CmafPackage { ? CmafEncryption.fromJson(json['encryption'] as Map) : null, hlsManifests: (json['hlsManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HlsManifest.fromJson(e as Map)) .toList(), segmentDurationSeconds: json['segmentDurationSeconds'] as int?, @@ -1348,7 +1348,7 @@ class CreateOriginEndpointResponse { timeDelaySeconds: json['timeDelaySeconds'] as int?, url: json['url'] as String?, whitelist: (json['whitelist'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1514,7 +1514,7 @@ class DashPackage { factory DashPackage.fromJson(Map json) { return DashPackage( adTriggers: (json['adTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdTriggersElement.fromString((e as String))) .toList(), adsOnDeliveryRestrictions: (json['adsOnDeliveryRestrictions'] as String?) @@ -1529,7 +1529,7 @@ class DashPackage { minBufferTimeSeconds: json['minBufferTimeSeconds'] as int?, minUpdatePeriodSeconds: json['minUpdatePeriodSeconds'] as int?, periodTriggers: (json['periodTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PeriodTriggersElement.fromString((e as String))) .toList(), profile: (json['profile'] as String?)?.let(Profile.fromString), @@ -1879,7 +1879,7 @@ class DescribeOriginEndpointResponse { timeDelaySeconds: json['timeDelaySeconds'] as int?, url: json['url'] as String?, whitelist: (json['whitelist'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2161,7 +2161,7 @@ class HlsIngest { factory HlsIngest.fromJson(Map json) { return HlsIngest( ingestEndpoints: (json['ingestEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IngestEndpoint.fromJson(e as Map)) .toList(), ); @@ -2247,7 +2247,7 @@ class HlsManifest { id: json['id'] as String, adMarkers: (json['adMarkers'] as String?)?.let(AdMarkers.fromString), adTriggers: (json['adTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdTriggersElement.fromString((e as String))) .toList(), adsOnDeliveryRestrictions: (json['adsOnDeliveryRestrictions'] as String?) @@ -2462,7 +2462,7 @@ class HlsPackage { return HlsPackage( adMarkers: (json['adMarkers'] as String?)?.let(AdMarkers.fromString), adTriggers: (json['adTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdTriggersElement.fromString((e as String))) .toList(), adsOnDeliveryRestrictions: (json['adsOnDeliveryRestrictions'] as String?) @@ -2607,7 +2607,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2640,7 +2640,7 @@ class ListHarvestJobsResponse { factory ListHarvestJobsResponse.fromJson(Map json) { return ListHarvestJobsResponse( harvestJobs: (json['harvestJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HarvestJob.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2674,7 +2674,7 @@ class ListOriginEndpointsResponse { return ListOriginEndpointsResponse( nextToken: json['nextToken'] as String?, originEndpoints: (json['originEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OriginEndpoint.fromJson(e as Map)) .toList(), ); @@ -2902,7 +2902,7 @@ class OriginEndpoint { timeDelaySeconds: json['timeDelaySeconds'] as int?, url: json['url'] as String?, whitelist: (json['whitelist'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3272,10 +3272,8 @@ class SpekeKeyProvider { return SpekeKeyProvider( resourceId: json['resourceId'] as String, roleArn: json['roleArn'] as String, - systemIds: (json['systemIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + systemIds: + (json['systemIds'] as List).nonNulls.map((e) => e as String).toList(), url: json['url'] as String, certificateArn: json['certificateArn'] as String?, encryptionContractConfiguration: @@ -3551,7 +3549,7 @@ class UpdateOriginEndpointResponse { timeDelaySeconds: json['timeDelaySeconds'] as int?, url: json['url'] as String?, whitelist: (json['whitelist'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/media_package_v2/v2022_12_25.dart b/aws_client/lib/src/generated/media_package_v2/v2022_12_25.dart index 5cb370ef0..6f502ba46 100644 --- a/aws_client/lib/src/generated/media_package_v2/v2022_12_25.dart +++ b/aws_client/lib/src/generated/media_package_v2/v2022_12_25.dart @@ -1466,7 +1466,7 @@ class CreateChannelResponse { description: json['Description'] as String?, eTag: json['ETag'] as String?, ingestEndpoints: (json['IngestEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IngestEndpoint.fromJson(e as Map)) .toList(), tags: (json['Tags'] as Map?) @@ -1822,19 +1822,19 @@ class CreateOriginEndpointResponse { originEndpointName: json['OriginEndpointName'] as String, segment: Segment.fromJson(json['Segment'] as Map), dashManifests: (json['DashManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GetDashManifestConfiguration.fromJson(e as Map)) .toList(), description: json['Description'] as String?, eTag: json['ETag'] as String?, hlsManifests: (json['HlsManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GetHlsManifestConfiguration.fromJson(e as Map)) .toList(), lowLatencyHlsManifests: (json['LowLatencyHlsManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GetLowLatencyHlsManifestConfiguration.fromJson( e as Map)) .toList(), @@ -2487,7 +2487,7 @@ class GetChannelResponse { description: json['Description'] as String?, eTag: json['ETag'] as String?, ingestEndpoints: (json['IngestEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IngestEndpoint.fromJson(e as Map)) .toList(), tags: (json['Tags'] as Map?) @@ -2609,7 +2609,7 @@ class GetDashManifestConfiguration { minBufferTimeSeconds: json['MinBufferTimeSeconds'] as int?, minUpdatePeriodSeconds: json['MinUpdatePeriodSeconds'] as int?, periodTriggers: (json['PeriodTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashPeriodTrigger.fromString((e as String))) .toList(), scteDash: json['ScteDash'] != null @@ -2973,19 +2973,19 @@ class GetOriginEndpointResponse { originEndpointName: json['OriginEndpointName'] as String, segment: Segment.fromJson(json['Segment'] as Map), dashManifests: (json['DashManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GetDashManifestConfiguration.fromJson(e as Map)) .toList(), description: json['Description'] as String?, eTag: json['ETag'] as String?, hlsManifests: (json['HlsManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GetHlsManifestConfiguration.fromJson(e as Map)) .toList(), lowLatencyHlsManifests: (json['LowLatencyHlsManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GetLowLatencyHlsManifestConfiguration.fromJson( e as Map)) .toList(), @@ -3079,7 +3079,7 @@ class ListChannelGroupsResponse { factory ListChannelGroupsResponse.fromJson(Map json) { return ListChannelGroupsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelGroupListConfiguration.fromJson(e as Map)) .toList(), @@ -3112,7 +3112,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelListConfiguration.fromJson(e as Map)) .toList(), @@ -3273,7 +3273,7 @@ class ListOriginEndpointsResponse { factory ListOriginEndpointsResponse.fromJson(Map json) { return ListOriginEndpointsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OriginEndpointListConfiguration.fromJson( e as Map)) .toList(), @@ -3383,18 +3383,18 @@ class OriginEndpointListConfiguration { originEndpointName: json['OriginEndpointName'] as String, createdAt: timeStampFromJson(json['CreatedAt']), dashManifests: (json['DashManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListDashManifestConfiguration.fromJson(e as Map)) .toList(), description: json['Description'] as String?, hlsManifests: (json['HlsManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListHlsManifestConfiguration.fromJson(e as Map)) .toList(), lowLatencyHlsManifests: (json['LowLatencyHlsManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListLowLatencyHlsManifestConfiguration.fromJson( e as Map)) .toList(), @@ -3509,7 +3509,7 @@ class Scte { factory Scte.fromJson(Map json) { return Scte( scteFilter: (json['ScteFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScteFilter.fromString((e as String))) .toList(), ); @@ -3765,7 +3765,7 @@ class SpekeKeyProvider { factory SpekeKeyProvider.fromJson(Map json) { return SpekeKeyProvider( drmSystems: (json['DrmSystems'] as List) - .whereNotNull() + .nonNulls .map((e) => DrmSystem.fromString((e as String))) .toList(), encryptionContractConfiguration: EncryptionContractConfiguration.fromJson( @@ -3938,7 +3938,7 @@ class UpdateChannelResponse { description: json['Description'] as String?, eTag: json['ETag'] as String?, ingestEndpoints: (json['IngestEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IngestEndpoint.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -4057,19 +4057,19 @@ class UpdateOriginEndpointResponse { originEndpointName: json['OriginEndpointName'] as String, segment: Segment.fromJson(json['Segment'] as Map), dashManifests: (json['DashManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GetDashManifestConfiguration.fromJson(e as Map)) .toList(), description: json['Description'] as String?, eTag: json['ETag'] as String?, hlsManifests: (json['HlsManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GetHlsManifestConfiguration.fromJson(e as Map)) .toList(), lowLatencyHlsManifests: (json['LowLatencyHlsManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GetLowLatencyHlsManifestConfiguration.fromJson( e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/media_package_vod/v2018_11_07.dart b/aws_client/lib/src/generated/media_package_vod/v2018_11_07.dart index f5ebc9231..f4e86000e 100644 --- a/aws_client/lib/src/generated/media_package_vod/v2018_11_07.dart +++ b/aws_client/lib/src/generated/media_package_vod/v2018_11_07.dart @@ -733,7 +733,7 @@ class CmafPackage { factory CmafPackage.fromJson(Map json) { return CmafPackage( hlsManifests: (json['hlsManifests'] as List) - .whereNotNull() + .nonNulls .map((e) => HlsManifest.fromJson(e as Map)) .toList(), encryption: json['encryption'] != null @@ -871,7 +871,7 @@ class CreateAssetResponse { arn: json['arn'] as String?, createdAt: json['createdAt'] as String?, egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EgressEndpoint.fromJson(e as Map)) .toList(), id: json['id'] as String?, @@ -1194,7 +1194,7 @@ class DashPackage { factory DashPackage.fromJson(Map json) { return DashPackage( dashManifests: (json['dashManifests'] as List) - .whereNotNull() + .nonNulls .map((e) => DashManifest.fromJson(e as Map)) .toList(), encryption: json['encryption'] != null @@ -1204,7 +1204,7 @@ class DashPackage { json['includeEncoderConfigurationInSegments'] as bool?, includeIframeOnlyStream: json['includeIframeOnlyStream'] as bool?, periodTriggers: (json['periodTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PeriodTriggersElement.fromString((e as String))) .toList(), segmentDurationSeconds: json['segmentDurationSeconds'] as int?, @@ -1320,7 +1320,7 @@ class DescribeAssetResponse { arn: json['arn'] as String?, createdAt: json['createdAt'] as String?, egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EgressEndpoint.fromJson(e as Map)) .toList(), id: json['id'] as String?, @@ -1778,7 +1778,7 @@ class HlsPackage { factory HlsPackage.fromJson(Map json) { return HlsPackage( hlsManifests: (json['hlsManifests'] as List) - .whereNotNull() + .nonNulls .map((e) => HlsManifest.fromJson(e as Map)) .toList(), encryption: json['encryption'] != null @@ -1825,7 +1825,7 @@ class ListAssetsResponse { factory ListAssetsResponse.fromJson(Map json) { return ListAssetsResponse( assets: (json['assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetShallow.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1860,7 +1860,7 @@ class ListPackagingConfigurationsResponse { return ListPackagingConfigurationsResponse( nextToken: json['nextToken'] as String?, packagingConfigurations: (json['packagingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => PackagingConfiguration.fromJson(e as Map)) .toList(), @@ -1895,7 +1895,7 @@ class ListPackagingGroupsResponse { return ListPackagingGroupsResponse( nextToken: json['nextToken'] as String?, packagingGroups: (json['packagingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackagingGroup.fromJson(e as Map)) .toList(), ); @@ -2021,7 +2021,7 @@ class MssPackage { factory MssPackage.fromJson(Map json) { return MssPackage( mssManifests: (json['mssManifests'] as List) - .whereNotNull() + .nonNulls .map((e) => MssManifest.fromJson(e as Map)) .toList(), encryption: json['encryption'] != null @@ -2306,10 +2306,8 @@ class SpekeKeyProvider { factory SpekeKeyProvider.fromJson(Map json) { return SpekeKeyProvider( roleArn: json['roleArn'] as String, - systemIds: (json['systemIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + systemIds: + (json['systemIds'] as List).nonNulls.map((e) => e as String).toList(), url: json['url'] as String, encryptionContractConfiguration: json['encryptionContractConfiguration'] != null diff --git a/aws_client/lib/src/generated/media_store/v2017_09_01.dart b/aws_client/lib/src/generated/media_store/v2017_09_01.dart index 5ae069d0c..aff48b596 100644 --- a/aws_client/lib/src/generated/media_store/v2017_09_01.dart +++ b/aws_client/lib/src/generated/media_store/v2017_09_01.dart @@ -986,19 +986,19 @@ class CorsRule { factory CorsRule.fromJson(Map json) { return CorsRule( allowedHeaders: (json['AllowedHeaders'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowedOrigins: (json['AllowedOrigins'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowedMethods: (json['AllowedMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MethodName.fromString((e as String))) .toList(), exposeHeaders: (json['ExposeHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxAgeSeconds: json['MaxAgeSeconds'] as int?, @@ -1178,7 +1178,7 @@ class GetCorsPolicyOutput { factory GetCorsPolicyOutput.fromJson(Map json) { return GetCorsPolicyOutput( corsPolicy: (json['CorsPolicy'] as List) - .whereNotNull() + .nonNulls .map((e) => CorsRule.fromJson(e as Map)) .toList(), ); @@ -1255,7 +1255,7 @@ class ListContainersOutput { factory ListContainersOutput.fromJson(Map json) { return ListContainersOutput( containers: (json['Containers'] as List) - .whereNotNull() + .nonNulls .map((e) => Container.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1283,7 +1283,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1345,7 +1345,7 @@ class MetricPolicy { containerLevelMetrics: ContainerLevelMetrics.fromString( (json['ContainerLevelMetrics'] as String)), metricPolicyRules: (json['MetricPolicyRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricPolicyRule.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/media_store_data/v2017_09_01.dart b/aws_client/lib/src/generated/media_store_data/v2017_09_01.dart index c628dd39a..a746af262 100644 --- a/aws_client/lib/src/generated/media_store_data/v2017_09_01.dart +++ b/aws_client/lib/src/generated/media_store_data/v2017_09_01.dart @@ -531,7 +531,7 @@ class ListItemsResponse { factory ListItemsResponse.fromJson(Map json) { return ListItemsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Item.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/media_tailor/v2018_04_23.dart b/aws_client/lib/src/generated/media_tailor/v2018_04_23.dart index 0cc22b72f..3126ee970 100644 --- a/aws_client/lib/src/generated/media_tailor/v2018_04_23.dart +++ b/aws_client/lib/src/generated/media_tailor/v2018_04_23.dart @@ -1735,7 +1735,7 @@ class AdBreak { return AdBreak( offsetMillis: json['OffsetMillis'] as int, adBreakMetadata: (json['AdBreakMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), messageType: @@ -1881,7 +1881,7 @@ class Alert { lastModifiedTime: nonNullableTimeStampFromJson(json['LastModifiedTime'] as Object), relatedResourceArns: (json['RelatedResourceArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), resourceArn: json['ResourceArn'] as String, @@ -1959,7 +1959,7 @@ class AlternateMedia { factory AlternateMedia.fromJson(Map json) { return AlternateMedia( adBreaks: (json['AdBreaks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdBreak.fromJson(e as Map)) .toList(), clipRange: json['ClipRange'] != null @@ -2010,7 +2010,7 @@ class AudienceMedia { factory AudienceMedia.fromJson(Map json) { return AudienceMedia( alternateMedia: (json['AlternateMedia'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlternateMedia.fromJson(e as Map)) .toList(), audience: json['Audience'] as String?, @@ -2292,13 +2292,13 @@ class Channel { logConfiguration: LogConfigurationForChannel.fromJson( json['LogConfiguration'] as Map), outputs: (json['Outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => ResponseOutputItem.fromJson(e as Map)) .toList(), playbackMode: json['PlaybackMode'] as String, tier: json['Tier'] as String, audiences: (json['Audiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -2406,7 +2406,7 @@ class ConfigureLogsForChannelResponse { return ConfigureLogsForChannelResponse( channelName: json['ChannelName'] as String?, logTypes: (json['LogTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogType.fromString((e as String))) .toList(), ); @@ -2515,7 +2515,7 @@ class CreateChannelResponse { return CreateChannelResponse( arn: json['Arn'] as String?, audiences: (json['Audiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), channelName: json['ChannelName'] as String?, @@ -2527,7 +2527,7 @@ class CreateChannelResponse { : null, lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseOutputItem.fromJson(e as Map)) .toList(), playbackMode: json['PlaybackMode'] as String?, @@ -2615,7 +2615,7 @@ class CreateLiveSourceResponse { arn: json['Arn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), httpPackageConfigurations: (json['HttpPackageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -2780,12 +2780,12 @@ class CreateProgramResponse { factory CreateProgramResponse.fromJson(Map json) { return CreateProgramResponse( adBreaks: (json['AdBreaks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdBreak.fromJson(e as Map)) .toList(), arn: json['Arn'] as String?, audienceMedia: (json['AudienceMedia'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudienceMedia.fromJson(e as Map)) .toList(), channelName: json['ChannelName'] as String?, @@ -2904,7 +2904,7 @@ class CreateSourceLocationResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), segmentDeliveryConfigurations: (json['SegmentDeliveryConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentDeliveryConfiguration.fromJson(e as Map)) .toList(), @@ -2986,7 +2986,7 @@ class CreateVodSourceResponse { arn: json['Arn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), httpPackageConfigurations: (json['HttpPackageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -3363,7 +3363,7 @@ class DescribeChannelResponse { json['LogConfiguration'] as Map), arn: json['Arn'] as String?, audiences: (json['Audiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), channelName: json['ChannelName'] as String?, @@ -3375,7 +3375,7 @@ class DescribeChannelResponse { : null, lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseOutputItem.fromJson(e as Map)) .toList(), playbackMode: json['PlaybackMode'] as String?, @@ -3465,7 +3465,7 @@ class DescribeLiveSourceResponse { arn: json['Arn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), httpPackageConfigurations: (json['HttpPackageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -3557,12 +3557,12 @@ class DescribeProgramResponse { factory DescribeProgramResponse.fromJson(Map json) { return DescribeProgramResponse( adBreaks: (json['AdBreaks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdBreak.fromJson(e as Map)) .toList(), arn: json['Arn'] as String?, audienceMedia: (json['AudienceMedia'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudienceMedia.fromJson(e as Map)) .toList(), channelName: json['ChannelName'] as String?, @@ -3677,7 +3677,7 @@ class DescribeSourceLocationResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), segmentDeliveryConfigurations: (json['SegmentDeliveryConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentDeliveryConfiguration.fromJson(e as Map)) .toList(), @@ -3761,13 +3761,13 @@ class DescribeVodSourceResponse { factory DescribeVodSourceResponse.fromJson(Map json) { return DescribeVodSourceResponse( adBreakOpportunities: (json['AdBreakOpportunities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdBreakOpportunity.fromJson(e as Map)) .toList(), arn: json['Arn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), httpPackageConfigurations: (json['HttpPackageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -3858,7 +3858,7 @@ class GetChannelScheduleResponse { factory GetChannelScheduleResponse.fromJson(Map json) { return GetChannelScheduleResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduleEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4236,7 +4236,7 @@ class HlsPlaylistSettings { factory HlsPlaylistSettings.fromJson(Map json) { return HlsPlaylistSettings( adMarkupType: (json['AdMarkupType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdMarkupType.fromString((e as String))) .toList(), manifestWindowSeconds: json['ManifestWindowSeconds'] as int?, @@ -4390,7 +4390,7 @@ class ListAlertsResponse { factory ListAlertsResponse.fromJson(Map json) { return ListAlertsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alert.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4423,7 +4423,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4456,7 +4456,7 @@ class ListLiveSourcesResponse { factory ListLiveSourcesResponse.fromJson(Map json) { return ListLiveSourcesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LiveSource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4492,7 +4492,7 @@ class ListPlaybackConfigurationsResponse { Map json) { return ListPlaybackConfigurationsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlaybackConfiguration.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4526,7 +4526,7 @@ class ListPrefetchSchedulesResponse { factory ListPrefetchSchedulesResponse.fromJson(Map json) { return ListPrefetchSchedulesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrefetchSchedule.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4559,7 +4559,7 @@ class ListSourceLocationsResponse { factory ListSourceLocationsResponse.fromJson(Map json) { return ListSourceLocationsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceLocation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4619,7 +4619,7 @@ class ListVodSourcesResponse { factory ListVodSourcesResponse.fromJson(Map json) { return ListVodSourcesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VodSource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4714,7 +4714,7 @@ class LiveSource { return LiveSource( arn: json['Arn'] as String, httpPackageConfigurations: (json['HttpPackageConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -4793,7 +4793,7 @@ class LogConfigurationForChannel { factory LogConfigurationForChannel.fromJson(Map json) { return LogConfigurationForChannel( logTypes: (json['LogTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogType.fromString((e as String))) .toList(), ); @@ -5204,7 +5204,7 @@ class PrefetchConsumption { return PrefetchConsumption( endTime: nonNullableTimeStampFromJson(json['EndTime'] as Object), availMatchingCriteria: (json['AvailMatchingCriteria'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailMatchingCriteria.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -5845,12 +5845,12 @@ class ScheduleEntry { approximateDurationSeconds: json['ApproximateDurationSeconds'] as int?, approximateStartTime: timeStampFromJson(json['ApproximateStartTime']), audiences: (json['Audiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), liveSourceName: json['LiveSourceName'] as String?, scheduleAdBreaks: (json['ScheduleAdBreaks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduleAdBreak.fromJson(e as Map)) .toList(), scheduleEntryType: (json['ScheduleEntryType'] as String?) @@ -6197,7 +6197,7 @@ class SourceLocation { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), segmentDeliveryConfigurations: (json['SegmentDeliveryConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentDeliveryConfiguration.fromJson(e as Map)) .toList(), @@ -6380,7 +6380,7 @@ class TimeSignalMessage { factory TimeSignalMessage.fromJson(Map json) { return TimeSignalMessage( segmentationDescriptors: (json['SegmentationDescriptors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SegmentationDescriptor.fromJson(e as Map)) .toList(), @@ -6543,7 +6543,7 @@ class UpdateChannelResponse { return UpdateChannelResponse( arn: json['Arn'] as String?, audiences: (json['Audiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), channelName: json['ChannelName'] as String?, @@ -6555,7 +6555,7 @@ class UpdateChannelResponse { : null, lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseOutputItem.fromJson(e as Map)) .toList(), playbackMode: json['PlaybackMode'] as String?, @@ -6643,7 +6643,7 @@ class UpdateLiveSourceResponse { arn: json['Arn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), httpPackageConfigurations: (json['HttpPackageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -6733,12 +6733,12 @@ class UpdateProgramResponse { factory UpdateProgramResponse.fromJson(Map json) { return UpdateProgramResponse( adBreaks: (json['AdBreaks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdBreak.fromJson(e as Map)) .toList(), arn: json['Arn'] as String?, audienceMedia: (json['AudienceMedia'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudienceMedia.fromJson(e as Map)) .toList(), channelName: json['ChannelName'] as String?, @@ -6905,7 +6905,7 @@ class UpdateSourceLocationResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), segmentDeliveryConfigurations: (json['SegmentDeliveryConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentDeliveryConfiguration.fromJson(e as Map)) .toList(), @@ -6987,7 +6987,7 @@ class UpdateVodSourceResponse { arn: json['Arn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), httpPackageConfigurations: (json['HttpPackageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -7063,7 +7063,7 @@ class VodSource { return VodSource( arn: json['Arn'] as String, httpPackageConfigurations: (json['HttpPackageConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/medical_imaging/v2023_07_19.dart b/aws_client/lib/src/generated/medical_imaging/v2023_07_19.dart index 119d32bf5..f4b6dc6da 100644 --- a/aws_client/lib/src/generated/medical_imaging/v2023_07_19.dart +++ b/aws_client/lib/src/generated/medical_imaging/v2023_07_19.dart @@ -2140,7 +2140,7 @@ class ListDICOMImportJobsResponse { factory ListDICOMImportJobsResponse.fromJson(Map json) { return ListDICOMImportJobsResponse( jobSummaries: (json['jobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => DICOMImportJobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2173,7 +2173,7 @@ class ListDatastoresResponse { factory ListDatastoresResponse.fromJson(Map json) { return ListDatastoresResponse( datastoreSummaries: (json['datastoreSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatastoreSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2206,7 +2206,7 @@ class ListImageSetVersionsResponse { factory ListImageSetVersionsResponse.fromJson(Map json) { return ListImageSetVersionsResponse( imageSetPropertiesList: (json['imageSetPropertiesList'] as List) - .whereNotNull() + .nonNulls .map((e) => ImageSetProperties.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2407,7 +2407,7 @@ class SearchImageSetsResponse { factory SearchImageSetsResponse.fromJson(Map json) { return SearchImageSetsResponse( imageSetsMetadataSummaries: (json['imageSetsMetadataSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ImageSetsMetadataSummary.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/memory_db/v2021_01_01.dart b/aws_client/lib/src/generated/memory_db/v2021_01_01.dart index 8bd6851c8..724964b56 100644 --- a/aws_client/lib/src/generated/memory_db/v2021_01_01.dart +++ b/aws_client/lib/src/generated/memory_db/v2021_01_01.dart @@ -2172,7 +2172,7 @@ class ACL { return ACL( arn: json['ARN'] as String?, clusters: (json['Clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), minimumEngineVersion: json['MinimumEngineVersion'] as String?, @@ -2183,7 +2183,7 @@ class ACL { : null, status: json['Status'] as String?, userNames: (json['UserNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2226,11 +2226,11 @@ class ACLPendingChanges { factory ACLPendingChanges.fromJson(Map json) { return ACLPendingChanges( userNamesToAdd: (json['UserNamesToAdd'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userNamesToRemove: (json['UserNamesToRemove'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2394,11 +2394,11 @@ class BatchUpdateClusterResponse { factory BatchUpdateClusterResponse.fromJson(Map json) { return BatchUpdateClusterResponse( processedClusters: (json['ProcessedClusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cluster.fromJson(e as Map)) .toList(), unprocessedClusters: (json['UnprocessedClusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedCluster.fromJson(e as Map)) .toList(), ); @@ -2565,12 +2565,12 @@ class Cluster { json['PendingUpdates'] as Map) : null, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityGroupMembership.fromJson(e as Map)) .toList(), shards: (json['Shards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Shard.fromJson(e as Map)) .toList(), snapshotRetentionLimit: json['SnapshotRetentionLimit'] as int?, @@ -2716,7 +2716,7 @@ class ClusterConfiguration { parameterGroupName: json['ParameterGroupName'] as String?, port: json['Port'] as int?, shards: (json['Shards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ShardDetail.fromJson(e as Map)) .toList(), snapshotRetentionLimit: json['SnapshotRetentionLimit'] as int?, @@ -2789,7 +2789,7 @@ class ClusterPendingUpdates { json['Resharding'] as Map) : null, serviceUpdates: (json['ServiceUpdates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingModifiedServiceUpdate.fromJson(e as Map)) .toList(), @@ -3156,7 +3156,7 @@ class DescribeACLsResponse { factory DescribeACLsResponse.fromJson(Map json) { return DescribeACLsResponse( aCLs: (json['ACLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ACL.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3192,7 +3192,7 @@ class DescribeClustersResponse { factory DescribeClustersResponse.fromJson(Map json) { return DescribeClustersResponse( clusters: (json['Clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cluster.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3229,7 +3229,7 @@ class DescribeEngineVersionsResponse { factory DescribeEngineVersionsResponse.fromJson(Map json) { return DescribeEngineVersionsResponse( engineVersions: (json['EngineVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngineVersionInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3266,7 +3266,7 @@ class DescribeEventsResponse { factory DescribeEventsResponse.fromJson(Map json) { return DescribeEventsResponse( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3304,7 +3304,7 @@ class DescribeParameterGroupsResponse { return DescribeParameterGroupsResponse( nextToken: json['NextToken'] as String?, parameterGroups: (json['ParameterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterGroup.fromJson(e as Map)) .toList(), ); @@ -3341,7 +3341,7 @@ class DescribeParametersResponse { return DescribeParametersResponse( nextToken: json['NextToken'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), ); @@ -3377,7 +3377,7 @@ class DescribeReservedNodesOfferingsResponse { return DescribeReservedNodesOfferingsResponse( nextToken: json['NextToken'] as String?, reservedNodesOfferings: (json['ReservedNodesOfferings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservedNodesOffering.fromJson(e as Map)) .toList(), ); @@ -3414,7 +3414,7 @@ class DescribeReservedNodesResponse { return DescribeReservedNodesResponse( nextToken: json['NextToken'] as String?, reservedNodes: (json['ReservedNodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservedNode.fromJson(e as Map)) .toList(), ); @@ -3450,7 +3450,7 @@ class DescribeServiceUpdatesResponse { return DescribeServiceUpdatesResponse( nextToken: json['NextToken'] as String?, serviceUpdates: (json['ServiceUpdates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceUpdate.fromJson(e as Map)) .toList(), ); @@ -3487,7 +3487,7 @@ class DescribeSnapshotsResponse { return DescribeSnapshotsResponse( nextToken: json['NextToken'] as String?, snapshots: (json['Snapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Snapshot.fromJson(e as Map)) .toList(), ); @@ -3524,7 +3524,7 @@ class DescribeSubnetGroupsResponse { return DescribeSubnetGroupsResponse( nextToken: json['NextToken'] as String?, subnetGroups: (json['SubnetGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubnetGroup.fromJson(e as Map)) .toList(), ); @@ -3560,7 +3560,7 @@ class DescribeUsersResponse { return DescribeUsersResponse( nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -3771,11 +3771,11 @@ class ListAllowedNodeTypeUpdatesResponse { Map json) { return ListAllowedNodeTypeUpdatesResponse( scaleDownNodeTypes: (json['ScaleDownNodeTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), scaleUpNodeTypes: (json['ScaleUpNodeTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3802,7 +3802,7 @@ class ListTagsResponse { factory ListTagsResponse.fromJson(Map json) { return ListTagsResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4167,7 +4167,7 @@ class ReservedNode { nodeType: json['NodeType'] as String?, offeringType: json['OfferingType'] as String?, recurringCharges: (json['RecurringCharges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecurringCharge.fromJson(e as Map)) .toList(), reservationId: json['ReservationId'] as String?, @@ -4244,7 +4244,7 @@ class ReservedNodesOffering { nodeType: json['NodeType'] as String?, offeringType: json['OfferingType'] as String?, recurringCharges: (json['RecurringCharges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecurringCharge.fromJson(e as Map)) .toList(), reservedNodesOfferingId: json['ReservedNodesOfferingId'] as String?, @@ -4507,7 +4507,7 @@ class Shard { return Shard( name: json['Name'] as String?, nodes: (json['Nodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Node.fromJson(e as Map)) .toList(), numberOfNodes: json['NumberOfNodes'] as int?, @@ -4825,7 +4825,7 @@ class SubnetGroup { description: json['Description'] as String?, name: json['Name'] as String?, subnets: (json['Subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subnet.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -4895,7 +4895,7 @@ class TagResourceResponse { factory TagResourceResponse.fromJson(Map json) { return TagResourceResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4957,7 +4957,7 @@ class UntagResourceResponse { factory UntagResourceResponse.fromJson(Map json) { return UntagResourceResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5131,7 +5131,7 @@ class User { factory User.fromJson(Map json) { return User( aCLNames: (json['ACLNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), arn: json['ARN'] as String?, diff --git a/aws_client/lib/src/generated/mgn/v2020_02_26.dart b/aws_client/lib/src/generated/mgn/v2020_02_26.dart index 18af566bb..16562b2ee 100644 --- a/aws_client/lib/src/generated/mgn/v2020_02_26.dart +++ b/aws_client/lib/src/generated/mgn/v2020_02_26.dart @@ -3465,7 +3465,7 @@ class DataReplicationInfo { lagDuration: json['lagDuration'] as String?, lastSnapshotDateTime: json['lastSnapshotDateTime'] as String?, replicatedDisks: (json['replicatedDisks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataReplicationInfoReplicatedDisk.fromJson( e as Map)) .toList(), @@ -3573,7 +3573,7 @@ class DataReplicationInitiation { nextAttemptDateTime: json['nextAttemptDateTime'] as String?, startDateTime: json['startDateTime'] as String?, steps: (json['steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataReplicationInitiationStep.fromJson(e as Map)) .toList(), @@ -3781,7 +3781,7 @@ class DescribeJobLogItemsResponse { factory DescribeJobLogItemsResponse.fromJson(Map json) { return DescribeJobLogItemsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobLog.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3842,7 +3842,7 @@ class DescribeJobsResponse { factory DescribeJobsResponse.fromJson(Map json) { return DescribeJobsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3875,7 +3875,7 @@ class DescribeLaunchConfigurationTemplatesResponse { Map json) { return DescribeLaunchConfigurationTemplatesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchConfigurationTemplate.fromJson(e as Map)) .toList(), @@ -3909,7 +3909,7 @@ class DescribeReplicationConfigurationTemplatesResponse { Map json) { return DescribeReplicationConfigurationTemplatesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationConfigurationTemplate.fromJson( e as Map)) .toList(), @@ -3985,7 +3985,7 @@ class DescribeSourceServersResponse { factory DescribeSourceServersResponse.fromJson(Map json) { return DescribeSourceServersResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceServer.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4017,7 +4017,7 @@ class DescribeVcenterClientsResponse { factory DescribeVcenterClientsResponse.fromJson(Map json) { return DescribeVcenterClientsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VcenterClient.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4767,7 +4767,7 @@ class Job { initiatedBy: (json['initiatedBy'] as String?)?.let(InitiatedBy.fromString), participatingServers: (json['participatingServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParticipatingServer.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(JobStatus.fromString), @@ -5782,7 +5782,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5831,7 +5831,7 @@ class ListConnectorsResponse { factory ListConnectorsResponse.fromJson(Map json) { return ListConnectorsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connector.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5864,7 +5864,7 @@ class ListExportErrorsResponse { factory ListExportErrorsResponse.fromJson(Map json) { return ListExportErrorsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportTaskError.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5914,7 +5914,7 @@ class ListExportsResponse { factory ListExportsResponse.fromJson(Map json) { return ListExportsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportTask.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5947,7 +5947,7 @@ class ListImportErrorsResponse { factory ListImportErrorsResponse.fromJson(Map json) { return ListImportErrorsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportTaskError.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5997,7 +5997,7 @@ class ListImportsResponse { factory ListImportsResponse.fromJson(Map json) { return ListImportsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportTask.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6030,7 +6030,7 @@ class ListManagedAccountsResponse { factory ListManagedAccountsResponse.fromJson(Map json) { return ListManagedAccountsResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => ManagedAccount.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6063,7 +6063,7 @@ class ListSourceServerActionsResponse { factory ListSourceServerActionsResponse.fromJson(Map json) { return ListSourceServerActionsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceServerActionDocument.fromJson(e as Map)) .toList(), @@ -6119,7 +6119,7 @@ class ListTemplateActionsResponse { factory ListTemplateActionsResponse.fromJson(Map json) { return ListTemplateActionsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TemplateActionDocument.fromJson(e as Map)) .toList(), @@ -6175,7 +6175,7 @@ class ListWavesResponse { factory ListWavesResponse.fromJson(Map json) { return ListWavesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Wave.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6234,10 +6234,7 @@ class NetworkInterface { factory NetworkInterface.fromJson(Map json) { return NetworkInterface( - ips: (json['ips'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ips: (json['ips'] as List?)?.nonNulls.map((e) => e as String).toList(), isPrimary: json['isPrimary'] as bool?, macAddress: json['macAddress'] as String?, ); @@ -6377,7 +6374,7 @@ class PostLaunchActions { s3LogBucket: json['s3LogBucket'] as String?, s3OutputKeyPrefix: json['s3OutputKeyPrefix'] as String?, ssmDocuments: (json['ssmDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SsmDocument.fromJson(e as Map)) .toList(), ); @@ -6435,7 +6432,7 @@ class PostLaunchActionsStatus { return PostLaunchActionsStatus( postLaunchActionsLaunchStatusList: (json['postLaunchActionsLaunchStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobPostLaunchActionsLaunchStatus.fromJson( e as Map)) .toList(), @@ -6566,7 +6563,7 @@ class ReplicationConfiguration { ebsEncryptionKeyArn: json['ebsEncryptionKeyArn'] as String?, name: json['name'] as String?, replicatedDisks: (json['replicatedDisks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationConfigurationReplicatedDisk.fromJson( e as Map)) .toList(), @@ -6574,7 +6571,7 @@ class ReplicationConfiguration { json['replicationServerInstanceType'] as String?, replicationServersSecurityGroupsIDs: (json['replicationServersSecurityGroupsIDs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceServerID: json['sourceServerID'] as String?, @@ -6848,7 +6845,7 @@ class ReplicationConfigurationTemplate { json['replicationServerInstanceType'] as String?, replicationServersSecurityGroupsIDs: (json['replicationServersSecurityGroupsIDs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stagingAreaSubnetId: json['stagingAreaSubnetId'] as String?, @@ -7003,11 +7000,11 @@ class SourceProperties { factory SourceProperties.fromJson(Map json) { return SourceProperties( cpus: (json['cpus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CPU.fromJson(e as Map)) .toList(), disks: (json['disks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Disk.fromJson(e as Map)) .toList(), identificationHints: json['identificationHints'] != null @@ -7016,7 +7013,7 @@ class SourceProperties { : null, lastUpdatedDateTime: json['lastUpdatedDateTime'] as String?, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), os: json['os'] != null @@ -7253,7 +7250,7 @@ class SourceServerActionDocument { MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => SsmParameterStoreParameter.fromJson( e as Map)) .toList())), @@ -7381,7 +7378,7 @@ class SsmDocument { MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => SsmParameterStoreParameter.fromJson( e as Map)) .toList())), @@ -7679,7 +7676,7 @@ class TemplateActionDocument { MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => SsmParameterStoreParameter.fromJson( e as Map)) .toList())), diff --git a/aws_client/lib/src/generated/migration_hub/v2017_05_31.dart b/aws_client/lib/src/generated/migration_hub/v2017_05_31.dart index 9208eb359..2fd933a72 100644 --- a/aws_client/lib/src/generated/migration_hub/v2017_05_31.dart +++ b/aws_client/lib/src/generated/migration_hub/v2017_05_31.dart @@ -1353,7 +1353,7 @@ class ListApplicationStatesResult { factory ListApplicationStatesResult.fromJson(Map json) { return ListApplicationStatesResult( applicationStateList: (json['ApplicationStateList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationState.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1388,7 +1388,7 @@ class ListCreatedArtifactsResult { factory ListCreatedArtifactsResult.fromJson(Map json) { return ListCreatedArtifactsResult( createdArtifactList: (json['CreatedArtifactList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CreatedArtifact.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1423,7 +1423,7 @@ class ListDiscoveredResourcesResult { factory ListDiscoveredResourcesResult.fromJson(Map json) { return ListDiscoveredResourcesResult( discoveredResourceList: (json['DiscoveredResourceList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DiscoveredResource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1460,7 +1460,7 @@ class ListMigrationTasksResult { factory ListMigrationTasksResult.fromJson(Map json) { return ListMigrationTasksResult( migrationTaskSummaryList: (json['MigrationTaskSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MigrationTaskSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1497,7 +1497,7 @@ class ListProgressUpdateStreamsResult { nextToken: json['NextToken'] as String?, progressUpdateStreamSummaryList: (json['ProgressUpdateStreamSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProgressUpdateStreamSummary.fromJson(e as Map)) .toList(), @@ -1549,7 +1549,7 @@ class MigrationTask { migrationTaskName: json['MigrationTaskName'] as String?, progressUpdateStream: json['ProgressUpdateStream'] as String?, resourceAttributeList: (json['ResourceAttributeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceAttribute.fromJson(e as Map)) .toList(), task: json['Task'] != null diff --git a/aws_client/lib/src/generated/migration_hub_config/v2019_06_30.dart b/aws_client/lib/src/generated/migration_hub_config/v2019_06_30.dart index a6871946d..ec4f523ec 100644 --- a/aws_client/lib/src/generated/migration_hub_config/v2019_06_30.dart +++ b/aws_client/lib/src/generated/migration_hub_config/v2019_06_30.dart @@ -301,7 +301,7 @@ class DescribeHomeRegionControlsResult { factory DescribeHomeRegionControlsResult.fromJson(Map json) { return DescribeHomeRegionControlsResult( homeRegionControls: (json['HomeRegionControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HomeRegionControl.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/migration_hub_orchestrator/v2021_08_28.dart b/aws_client/lib/src/generated/migration_hub_orchestrator/v2021_08_28.dart index 7bd53e98d..d8cdb6842 100644 --- a/aws_client/lib/src/generated/migration_hub_orchestrator/v2021_08_28.dart +++ b/aws_client/lib/src/generated/migration_hub_orchestrator/v2021_08_28.dart @@ -1290,7 +1290,7 @@ class CreateMigrationWorkflowResponse { status: (json['status'] as String?) ?.let(MigrationWorkflowStatusEnum.fromString), stepTargets: (json['stepTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -1415,16 +1415,13 @@ class CreateWorkflowStepGroupResponse { description: json['description'] as String?, id: json['id'] as String?, name: json['name'] as String?, - next: (json['next'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + next: (json['next'] as List?)?.nonNulls.map((e) => e as String).toList(), previous: (json['previous'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tools: (json['tools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tool.fromJson(e as Map)) .toList(), workflowId: json['workflowId'] as String?, @@ -1693,7 +1690,7 @@ class GetMigrationWorkflowResponse { ?.map((k, e) => MapEntry(k, e as String)), templateId: json['templateId'] as String?, tools: (json['tools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tool.fromJson(e as Map)) .toList(), totalSteps: json['totalSteps'] as int?, @@ -1840,7 +1837,7 @@ class GetMigrationWorkflowTemplateResponse { description: json['description'] as String?, id: json['id'] as String?, inputs: (json['inputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateInput.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -1852,7 +1849,7 @@ class GetMigrationWorkflowTemplateResponse { templateArn: json['templateArn'] as String?, templateClass: json['templateClass'] as String?, tools: (json['tools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tool.fromJson(e as Map)) .toList(), ); @@ -1940,18 +1937,15 @@ class GetTemplateStepGroupResponse { id: json['id'] as String?, lastModifiedTime: timeStampFromJson(json['lastModifiedTime']), name: json['name'] as String?, - next: (json['next'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + next: (json['next'] as List?)?.nonNulls.map((e) => e as String).toList(), previous: (json['previous'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(StepGroupStatus.fromString), templateId: json['templateId'] as String?, tools: (json['tools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tool.fromJson(e as Map)) .toList(), ); @@ -2040,16 +2034,13 @@ class GetTemplateStepResponse { description: json['description'] as String?, id: json['id'] as String?, name: json['name'] as String?, - next: (json['next'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + next: (json['next'] as List?)?.nonNulls.map((e) => e as String).toList(), outputs: (json['outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StepOutput.fromJson(e as Map)) .toList(), previous: (json['previous'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stepActionType: @@ -2152,18 +2143,15 @@ class GetWorkflowStepGroupResponse { id: json['id'] as String?, lastModifiedTime: timeStampFromJson(json['lastModifiedTime']), name: json['name'] as String?, - next: (json['next'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + next: (json['next'] as List?)?.nonNulls.map((e) => e as String).toList(), owner: (json['owner'] as String?)?.let(Owner.fromString), previous: (json['previous'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(StepGroupStatus.fromString), tools: (json['tools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tool.fromJson(e as Map)) .toList(), workflowId: json['workflowId'] as String?, @@ -2299,19 +2287,16 @@ class GetWorkflowStepResponse { endTime: timeStampFromJson(json['endTime']), lastStartTime: timeStampFromJson(json['lastStartTime']), name: json['name'] as String?, - next: (json['next'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + next: (json['next'] as List?)?.nonNulls.map((e) => e as String).toList(), noOfSrvCompleted: json['noOfSrvCompleted'] as int?, noOfSrvFailed: json['noOfSrvFailed'] as int?, outputs: (json['outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowStepOutput.fromJson(e as Map)) .toList(), owner: (json['owner'] as String?)?.let(Owner.fromString), previous: (json['previous'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), scriptOutputLocation: json['scriptOutputLocation'] as String?, @@ -2322,7 +2307,7 @@ class GetWorkflowStepResponse { stepGroupId: json['stepGroupId'] as String?, stepId: json['stepId'] as String?, stepTarget: (json['stepTarget'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), totalNoOfSrv: json['totalNoOfSrv'] as int?, @@ -2406,7 +2391,7 @@ class ListMigrationWorkflowTemplatesResponse { Map json) { return ListMigrationWorkflowTemplatesResponse( templateSummary: (json['templateSummary'] as List) - .whereNotNull() + .nonNulls .map((e) => TemplateSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2438,7 +2423,7 @@ class ListMigrationWorkflowsResponse { factory ListMigrationWorkflowsResponse.fromJson(Map json) { return ListMigrationWorkflowsResponse( migrationWorkflowSummary: (json['migrationWorkflowSummary'] as List) - .whereNotNull() + .nonNulls .map((e) => MigrationWorkflowSummary.fromJson(e as Map)) .toList(), @@ -2472,7 +2457,7 @@ class ListPluginsResponse { return ListPluginsResponse( nextToken: json['nextToken'] as String?, plugins: (json['plugins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PluginSummary.fromJson(e as Map)) .toList(), ); @@ -2526,7 +2511,7 @@ class ListTemplateStepGroupsResponse { factory ListTemplateStepGroupsResponse.fromJson(Map json) { return ListTemplateStepGroupsResponse( templateStepGroupSummary: (json['templateStepGroupSummary'] as List) - .whereNotNull() + .nonNulls .map((e) => TemplateStepGroupSummary.fromJson(e as Map)) .toList(), @@ -2560,7 +2545,7 @@ class ListTemplateStepsResponse { return ListTemplateStepsResponse( nextToken: json['nextToken'] as String?, templateStepSummaryList: (json['templateStepSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateStepSummary.fromJson(e as Map)) .toList(), ); @@ -2592,7 +2577,7 @@ class ListWorkflowStepGroupsResponse { factory ListWorkflowStepGroupsResponse.fromJson(Map json) { return ListWorkflowStepGroupsResponse( workflowStepGroupsSummary: (json['workflowStepGroupsSummary'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkflowStepGroupSummary.fromJson(e as Map)) .toList(), @@ -2625,7 +2610,7 @@ class ListWorkflowStepsResponse { factory ListWorkflowStepsResponse.fromJson(Map json) { return ListWorkflowStepsResponse( workflowStepsSummary: (json['workflowStepsSummary'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkflowStepSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3139,7 +3124,7 @@ class StepInput { return StepInput( integerValue: json['integerValue'] as int?, listOfStringsValue: (json['listOfStringsValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), mapOfStringValue: (json['mapOfStringValue'] as Map?) @@ -3395,12 +3380,9 @@ class TemplateStepGroupSummary { return TemplateStepGroupSummary( id: json['id'] as String?, name: json['name'] as String?, - next: (json['next'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + next: (json['next'] as List?)?.nonNulls.map((e) => e as String).toList(), previous: (json['previous'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3466,13 +3448,10 @@ class TemplateStepSummary { return TemplateStepSummary( id: json['id'] as String?, name: json['name'] as String?, - next: (json['next'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + next: (json['next'] as List?)?.nonNulls.map((e) => e as String).toList(), owner: (json['owner'] as String?)?.let(Owner.fromString), previous: (json['previous'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stepActionType: @@ -3658,7 +3637,7 @@ class UpdateMigrationWorkflowResponse { status: (json['status'] as String?) ?.let(MigrationWorkflowStatusEnum.fromString), stepTargets: (json['stepTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -3786,16 +3765,13 @@ class UpdateWorkflowStepGroupResponse { id: json['id'] as String?, lastModifiedTime: timeStampFromJson(json['lastModifiedTime']), name: json['name'] as String?, - next: (json['next'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + next: (json['next'] as List?)?.nonNulls.map((e) => e as String).toList(), previous: (json['previous'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tools: (json['tools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tool.fromJson(e as Map)) .toList(), workflowId: json['workflowId'] as String?, @@ -3961,13 +3937,10 @@ class WorkflowStepGroupSummary { return WorkflowStepGroupSummary( id: json['id'] as String?, name: json['name'] as String?, - next: (json['next'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + next: (json['next'] as List?)?.nonNulls.map((e) => e as String).toList(), owner: (json['owner'] as String?)?.let(Owner.fromString), previous: (json['previous'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(StepGroupStatus.fromString), @@ -4060,7 +4033,7 @@ class WorkflowStepOutputUnion { return WorkflowStepOutputUnion( integerValue: json['integerValue'] as int?, listOfStringValue: (json['listOfStringValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stringValue: json['stringValue'] as String?, @@ -4141,15 +4114,12 @@ class WorkflowStepSummary { return WorkflowStepSummary( description: json['description'] as String?, name: json['name'] as String?, - next: (json['next'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + next: (json['next'] as List?)?.nonNulls.map((e) => e as String).toList(), noOfSrvCompleted: json['noOfSrvCompleted'] as int?, noOfSrvFailed: json['noOfSrvFailed'] as int?, owner: (json['owner'] as String?)?.let(Owner.fromString), previous: (json['previous'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), scriptLocation: json['scriptLocation'] as String?, diff --git a/aws_client/lib/src/generated/migration_hub_refactor_spaces/v2021_10_26.dart b/aws_client/lib/src/generated/migration_hub_refactor_spaces/v2021_10_26.dart index 595339cdf..e665018d2 100644 --- a/aws_client/lib/src/generated/migration_hub_refactor_spaces/v2021_10_26.dart +++ b/aws_client/lib/src/generated/migration_hub_refactor_spaces/v2021_10_26.dart @@ -2336,7 +2336,7 @@ class EnvironmentVpc { return EnvironmentVpc( accountId: json['AccountId'] as String?, cidrBlocks: (json['CidrBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdTime: timeStampFromJson(json['CreatedTime']), @@ -2841,7 +2841,7 @@ class GetRouteResponse { includeChildPaths: json['IncludeChildPaths'] as bool?, lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), methods: (json['Methods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpMethod.fromString((e as String))) .toList(), ownerAccountId: json['OwnerAccountId'] as String?, @@ -3156,7 +3156,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applicationSummaryList: (json['ApplicationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3189,7 +3189,7 @@ class ListEnvironmentVpcsResponse { factory ListEnvironmentVpcsResponse.fromJson(Map json) { return ListEnvironmentVpcsResponse( environmentVpcList: (json['EnvironmentVpcList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentVpc.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3221,7 +3221,7 @@ class ListEnvironmentsResponse { factory ListEnvironmentsResponse.fromJson(Map json) { return ListEnvironmentsResponse( environmentSummaryList: (json['EnvironmentSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3255,7 +3255,7 @@ class ListRoutesResponse { return ListRoutesResponse( nextToken: json['NextToken'] as String?, routeSummaryList: (json['RouteSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteSummary.fromJson(e as Map)) .toList(), ); @@ -3287,7 +3287,7 @@ class ListServicesResponse { return ListServicesResponse( nextToken: json['NextToken'] as String?, serviceSummaryList: (json['ServiceSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceSummary.fromJson(e as Map)) .toList(), ); @@ -3500,7 +3500,7 @@ class RouteSummary { includeChildPaths: json['IncludeChildPaths'] as bool?, lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), methods: (json['Methods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpMethod.fromString((e as String))) .toList(), ownerAccountId: json['OwnerAccountId'] as String?, @@ -3882,7 +3882,7 @@ class UriPathRouteInput { appendSourcePath: json['AppendSourcePath'] as bool?, includeChildPaths: json['IncludeChildPaths'] as bool?, methods: (json['Methods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpMethod.fromString((e as String))) .toList(), ); diff --git a/aws_client/lib/src/generated/migration_hub_strategy/v2020_02_19.dart b/aws_client/lib/src/generated/migration_hub_strategy/v2020_02_19.dart index a1b352894..09af45f25 100644 --- a/aws_client/lib/src/generated/migration_hub_strategy/v2020_02_19.dart +++ b/aws_client/lib/src/generated/migration_hub_strategy/v2020_02_19.dart @@ -1260,7 +1260,7 @@ class ApplicationComponentDetail { lastAnalyzedTimestamp: timeStampFromJson(json['lastAnalyzedTimestamp']), listAntipatternSeveritySummary: (json['listAntipatternSeveritySummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AntipatternSeveritySummary.fromJson(e as Map)) .toList(), @@ -1275,14 +1275,14 @@ class ApplicationComponentDetail { resourceSubType: (json['resourceSubType'] as String?)?.let(ResourceSubType.fromString), resultList: (json['resultList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), runtimeStatus: (json['runtimeStatus'] as String?) ?.let(RuntimeAnalysisStatus.fromString), runtimeStatusMessage: json['runtimeStatusMessage'] as String?, sourceCodeRepositories: (json['sourceCodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceCodeRepository.fromJson(e as Map)) .toList(), statusMessage: json['statusMessage'] as String?, @@ -1596,37 +1596,37 @@ class AssessmentSummary { lastAnalyzedTimestamp: timeStampFromJson(json['lastAnalyzedTimestamp']), listAntipatternSeveritySummary: (json['listAntipatternSeveritySummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AntipatternSeveritySummary.fromJson(e as Map)) .toList(), listApplicationComponentStatusSummary: (json['listApplicationComponentStatusSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationComponentStatusSummary.fromJson( e as Map)) .toList(), listApplicationComponentStrategySummary: (json['listApplicationComponentStrategySummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StrategySummary.fromJson(e as Map)) .toList(), listApplicationComponentSummary: (json['listApplicationComponentSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationComponentSummary.fromJson(e as Map)) .toList(), listServerStatusSummary: (json['listServerStatusSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerStatusSummary.fromJson(e as Map)) .toList(), listServerStrategySummary: (json['listServerStrategySummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StrategySummary.fromJson(e as Map)) .toList(), listServerSummary: (json['listServerSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerSummary.fromJson(e as Map)) .toList(), ); @@ -1696,10 +1696,8 @@ class AssessmentTarget { return AssessmentTarget( condition: Condition.fromString((json['condition'] as String)), name: json['name'] as String, - values: (json['values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -1773,7 +1771,7 @@ class AwsManagedResources { factory AwsManagedResources.fromJson(Map json) { return AwsManagedResources( targetDestination: (json['targetDestination'] as List) - .whereNotNull() + .nonNulls .map((e) => AwsManagedTargetDestination.fromString((e as String))) .toList(), ); @@ -2013,12 +2011,12 @@ class ConfigurationSummary { return ConfigurationSummary( ipAddressBasedRemoteInfoList: (json['ipAddressBasedRemoteInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IPAddressBasedRemoteInfo.fromJson(e as Map)) .toList(), pipelineInfoList: (json['pipelineInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineInfo.fromJson(e as Map)) .toList(), remoteSourceCodeAnalysisServerInfo: @@ -2028,12 +2026,12 @@ class ConfigurationSummary { as Map) : null, vcenterBasedRemoteInfoList: (json['vcenterBasedRemoteInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => VcenterBasedRemoteInfo.fromJson(e as Map)) .toList(), versionControlInfoList: (json['versionControlInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionControlInfo.fromJson(e as Map)) .toList(), ); @@ -2310,11 +2308,11 @@ class GetApplicationComponentDetailsResponse { json['applicationComponentDetail'] as Map) : null, associatedApplications: (json['associatedApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociatedApplication.fromJson(e as Map)) .toList(), associatedServerIds: (json['associatedServerIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), moreApplicationResource: json['moreApplicationResource'] as bool?, @@ -2352,7 +2350,7 @@ class GetApplicationComponentStrategiesResponse { return GetApplicationComponentStrategiesResponse( applicationComponentStrategies: (json['applicationComponentStrategies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationComponentStrategy.fromJson(e as Map)) .toList(), @@ -2387,7 +2385,7 @@ class GetAssessmentResponse { factory GetAssessmentResponse.fromJson(Map json) { return GetAssessmentResponse( assessmentTargets: (json['assessmentTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssessmentTarget.fromJson(e as Map)) .toList(), dataCollectionDetails: json['dataCollectionDetails'] != null @@ -2669,7 +2667,7 @@ class GetServerDetailsResponse { factory GetServerDetailsResponse.fromJson(Map json) { return GetServerDetailsResponse( associatedApplications: (json['associatedApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociatedApplication.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2703,7 +2701,7 @@ class GetServerStrategiesResponse { factory GetServerStrategiesResponse.fromJson(Map json) { return GetServerStrategiesResponse( serverStrategies: (json['serverStrategies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerStrategy.fromJson(e as Map)) .toList(), ); @@ -2767,7 +2765,7 @@ class Heterogeneous { factory Heterogeneous.fromJson(Map json) { return Heterogeneous( targetDatabaseEngine: (json['targetDatabaseEngine'] as List) - .whereNotNull() + .nonNulls .map((e) => HeterogeneousTargetDatabaseEngine.fromString((e as String))) .toList(), @@ -2817,7 +2815,7 @@ class Homogeneous { factory Homogeneous.fromJson(Map json) { return Homogeneous( targetDatabaseEngine: (json['targetDatabaseEngine'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HomogeneousTargetDatabaseEngine.fromString((e as String))) .toList(), ); @@ -3038,7 +3036,7 @@ class ListAnalyzableServersResponse { factory ListAnalyzableServersResponse.fromJson(Map json) { return ListAnalyzableServersResponse( analyzableServers: (json['analyzableServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyzableServerSummary.fromJson(e as Map)) .toList(), @@ -3074,7 +3072,7 @@ class ListApplicationComponentsResponse { Map json) { return ListApplicationComponentsResponse( applicationComponentInfos: (json['applicationComponentInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationComponentDetail.fromJson(e as Map)) .toList(), @@ -3109,7 +3107,7 @@ class ListCollectorsResponse { factory ListCollectorsResponse.fromJson(Map json) { return ListCollectorsResponse( collectors: (json['Collectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Collector.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3143,7 +3141,7 @@ class ListImportFileTaskResponse { return ListImportFileTaskResponse( nextToken: json['nextToken'] as String?, taskInfos: (json['taskInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportFileTaskInformation.fromJson(e as Map)) .toList(), @@ -3177,7 +3175,7 @@ class ListServersResponse { return ListServersResponse( nextToken: json['nextToken'] as String?, serverInfos: (json['serverInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerDetail.fromJson(e as Map)) .toList(), ); @@ -3303,7 +3301,7 @@ class NoDatabaseMigrationPreference { factory NoDatabaseMigrationPreference.fromJson(Map json) { return NoDatabaseMigrationPreference( targetDatabaseEngine: (json['targetDatabaseEngine'] as List) - .whereNotNull() + .nonNulls .map((e) => TargetDatabaseEngine.fromString((e as String))) .toList(), ); @@ -3329,7 +3327,7 @@ class NoManagementPreference { factory NoManagementPreference.fromJson(Map json) { return NoManagementPreference( targetDestination: (json['targetDestination'] as List) - .whereNotNull() + .nonNulls .map((e) => NoPreferenceTargetDestination.fromString((e as String))) .toList(), ); @@ -3539,10 +3537,8 @@ class RecommendationReportDetails { return RecommendationReportDetails( completionTime: timeStampFromJson(json['completionTime']), s3Bucket: json['s3Bucket'] as String?, - s3Keys: (json['s3Keys'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + s3Keys: + (json['s3Keys'] as List?)?.nonNulls.map((e) => e as String).toList(), startTime: timeStampFromJson(json['startTime']), status: (json['status'] as String?) ?.let(RecommendationReportStatus.fromString), @@ -3703,7 +3699,7 @@ class Result { (json['analysisType'] as String?)?.let(AnalysisType.fromString), antipatternReportResultList: (json['antipatternReportResultList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AntipatternReportResult.fromJson(e as Map)) .toList(), @@ -3823,7 +3819,7 @@ class SelfManageResources { factory SelfManageResources.fromJson(Map json) { return SelfManageResources( targetDestination: (json['targetDestination'] as List) - .whereNotNull() + .nonNulls .map((e) => SelfManageTargetDestination.fromString((e as String))) .toList(), ); @@ -3948,7 +3944,7 @@ class ServerDetail { json['antipatternReportStatusMessage'] as String?, applicationComponentStrategySummary: (json['applicationComponentStrategySummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StrategySummary.fromJson(e as Map)) .toList(), dataCollectionStatus: (json['dataCollectionStatus'] as String?) @@ -3957,7 +3953,7 @@ class ServerDetail { lastAnalyzedTimestamp: timeStampFromJson(json['lastAnalyzedTimestamp']), listAntipatternSeveritySummary: (json['listAntipatternSeveritySummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AntipatternSeveritySummary.fromJson(e as Map)) .toList(), @@ -4554,7 +4550,7 @@ class SystemInfo { cpuArchitecture: json['cpuArchitecture'] as String?, fileSystemType: json['fileSystemType'] as String?, networkInfoList: (json['networkInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInfo.fromJson(e as Map)) .toList(), osInfo: json['osInfo'] != null diff --git a/aws_client/lib/src/generated/mobile/v2017_07_01.dart b/aws_client/lib/src/generated/mobile/v2017_07_01.dart index 437f43abc..122306550 100644 --- a/aws_client/lib/src/generated/mobile/v2017_07_01.dart +++ b/aws_client/lib/src/generated/mobile/v2017_07_01.dart @@ -410,7 +410,7 @@ class BundleDetails { factory BundleDetails.fromJson(Map json) { return BundleDetails( availablePlatforms: (json['availablePlatforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Platform.fromString((e as String))) .toList(), bundleId: json['bundleId'] as String?, @@ -482,11 +482,11 @@ class DeleteProjectResult { factory DeleteProjectResult.fromJson(Map json) { return DeleteProjectResult( deletedResources: (json['deletedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), orphanedResources: (json['orphanedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -690,7 +690,7 @@ class ListBundlesResult { factory ListBundlesResult.fromJson(Map json) { return ListBundlesResult( bundleList: (json['bundleList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BundleDetails.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -721,7 +721,7 @@ class ListProjectsResult { return ListProjectsResult( nextToken: json['nextToken'] as String?, projects: (json['projects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSummary.fromJson(e as Map)) .toList(), ); @@ -815,7 +815,7 @@ class ProjectDetails { projectId: json['projectId'] as String?, region: json['region'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), state: (json['state'] as String?)?.let(ProjectState.fromString), diff --git a/aws_client/lib/src/generated/mq/v2017_11_27.dart b/aws_client/lib/src/generated/mq/v2017_11_27.dart index bd152bcaa..21b1011cc 100644 --- a/aws_client/lib/src/generated/mq/v2017_11_27.dart +++ b/aws_client/lib/src/generated/mq/v2017_11_27.dart @@ -1190,7 +1190,7 @@ class BrokerEngineType { return BrokerEngineType( engineType: (json['engineType'] as String?)?.let(EngineType.fromString), engineVersions: (json['engineVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngineVersion.fromJson(e as Map)) .toList(), ); @@ -1228,7 +1228,7 @@ class BrokerInstance { return BrokerInstance( consoleURL: json['consoleURL'] as String?, endpoints: (json['endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ipAddress: json['ipAddress'] as String?, @@ -1279,7 +1279,7 @@ class BrokerInstanceOption { factory BrokerInstanceOption.fromJson(Map json) { return BrokerInstanceOption( availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailabilityZone.fromJson(e as Map)) .toList(), engineType: (json['engineType'] as String?)?.let(EngineType.fromString), @@ -1287,11 +1287,11 @@ class BrokerInstanceOption { storageType: (json['storageType'] as String?)?.let(BrokerStorageType.fromString), supportedDeploymentModes: (json['supportedDeploymentModes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentMode.fromString((e as String))) .toList(), supportedEngineVersions: (json['supportedEngineVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1636,7 +1636,7 @@ class Configurations { ? ConfigurationId.fromJson(json['current'] as Map) : null, history: (json['history'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationId.fromJson(e as Map)) .toList(), pending: json['pending'] != null @@ -1940,7 +1940,7 @@ class DescribeBrokerEngineTypesResponse { Map json) { return DescribeBrokerEngineTypesResponse( brokerEngineTypes: (json['brokerEngineTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BrokerEngineType.fromJson(e as Map)) .toList(), maxResults: json['maxResults'] as int?, @@ -1982,7 +1982,7 @@ class DescribeBrokerInstanceOptionsResponse { Map json) { return DescribeBrokerInstanceOptionsResponse( brokerInstanceOptions: (json['brokerInstanceOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BrokerInstanceOption.fromJson(e as Map)) .toList(), maxResults: json['maxResults'] as int?, @@ -2168,7 +2168,7 @@ class DescribeBrokerResponse { factory DescribeBrokerResponse.fromJson(Map json) { return DescribeBrokerResponse( actionsRequired: (json['actionsRequired'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionRequired.fromJson(e as Map)) .toList(), authenticationStrategy: (json['authenticationStrategy'] as String?) @@ -2177,7 +2177,7 @@ class DescribeBrokerResponse { brokerArn: json['brokerArn'] as String?, brokerId: json['brokerId'] as String?, brokerInstances: (json['brokerInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BrokerInstance.fromJson(e as Map)) .toList(), brokerName: json['brokerName'] as String?, @@ -2232,24 +2232,24 @@ class DescribeBrokerResponse { json['pendingLdapServerMetadata'] as Map) : null, pendingSecurityGroups: (json['pendingSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), publiclyAccessible: json['publiclyAccessible'] as bool?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), storageType: (json['storageType'] as String?)?.let(BrokerStorageType.fromString), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), users: (json['users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserSummary.fromJson(e as Map)) .toList(), ); @@ -2518,10 +2518,8 @@ class DescribeUserResponse { return DescribeUserResponse( brokerId: json['brokerId'] as String?, consoleAccess: json['consoleAccess'] as bool?, - groups: (json['groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['groups'] as List?)?.nonNulls.map((e) => e as String).toList(), pending: json['pending'] != null ? UserPendingChanges.fromJson(json['pending'] as Map) : null, @@ -2805,10 +2803,7 @@ class LdapServerMetadataOutput { factory LdapServerMetadataOutput.fromJson(Map json) { return LdapServerMetadataOutput( - hosts: (json['hosts'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + hosts: (json['hosts'] as List).nonNulls.map((e) => e as String).toList(), roleBase: json['roleBase'] as String, roleSearchMatching: json['roleSearchMatching'] as String, serviceAccountUsername: json['serviceAccountUsername'] as String, @@ -2863,7 +2858,7 @@ class ListBrokersResponse { factory ListBrokersResponse.fromJson(Map json) { return ListBrokersResponse( brokerSummaries: (json['brokerSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BrokerSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2909,7 +2904,7 @@ class ListConfigurationRevisionsResponse { maxResults: json['maxResults'] as int?, nextToken: json['nextToken'] as String?, revisions: (json['revisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationRevision.fromJson(e as Map)) .toList(), ); @@ -2950,7 +2945,7 @@ class ListConfigurationsResponse { factory ListConfigurationsResponse.fromJson(Map json) { return ListConfigurationsResponse( configurations: (json['configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), maxResults: json['maxResults'] as int?, @@ -3022,7 +3017,7 @@ class ListUsersResponse { maxResults: json['maxResults'] as int?, nextToken: json['nextToken'] as String?, users: (json['users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserSummary.fromJson(e as Map)) .toList(), ); @@ -3378,7 +3373,7 @@ class UpdateBrokerResponse { (json['pendingDataReplicationMode'] as String?) ?.let(DataReplicationMode.fromString), securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3467,7 +3462,7 @@ class UpdateConfigurationResponse { : null, name: json['name'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SanitizationWarning.fromJson(e as Map)) .toList(), ); @@ -3597,10 +3592,8 @@ class UserPendingChanges { return UserPendingChanges( pendingChange: ChangeType.fromString((json['pendingChange'] as String)), consoleAccess: json['consoleAccess'] as bool?, - groups: (json['groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['groups'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/mwaa/v2020_07_01.dart b/aws_client/lib/src/generated/mwaa/v2020_07_01.dart index 631cf94a1..083390d46 100644 --- a/aws_client/lib/src/generated/mwaa/v2020_07_01.dart +++ b/aws_client/lib/src/generated/mwaa/v2020_07_01.dart @@ -1640,7 +1640,7 @@ class ListEnvironmentsOutput { factory ListEnvironmentsOutput.fromJson(Map json) { return ListEnvironmentsOutput( environments: (json['Environments'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -1957,11 +1957,11 @@ class NetworkConfiguration { factory NetworkConfiguration.fromJson(Map json) { return NetworkConfiguration( securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/neptune/v2014_10_31.dart b/aws_client/lib/src/generated/neptune/v2014_10_31.dart index 0a8138fea..8bb6b02c4 100644 --- a/aws_client/lib/src/generated/neptune/v2014_10_31.dart +++ b/aws_client/lib/src/generated/neptune/v2014_10_31.dart @@ -9614,7 +9614,7 @@ class Event { sourceIdentifier: _s.extractXmlStringValue(elem, 'SourceIdentifier'), sourceType: _s .extractXmlStringValue(elem, 'SourceType') - ?.let(SourceType.fromString) /* Nullability(true, true) */, + ?.let(SourceType.fromString), ); } @@ -10681,7 +10681,7 @@ class Parameter { allowedValues: _s.extractXmlStringValue(elem, 'AllowedValues'), applyMethod: _s .extractXmlStringValue(elem, 'ApplyMethod') - ?.let(ApplyMethod.fromString) /* Nullability(true, true) */, + ?.let(ApplyMethod.fromString), applyType: _s.extractXmlStringValue(elem, 'ApplyType'), dataType: _s.extractXmlStringValue(elem, 'DataType'), description: _s.extractXmlStringValue(elem, 'Description'), diff --git a/aws_client/lib/src/generated/neptunedata/v2023_08_01.dart b/aws_client/lib/src/generated/neptunedata/v2023_08_01.dart index bdaaed535..3f962cb75 100644 --- a/aws_client/lib/src/generated/neptunedata/v2023_08_01.dart +++ b/aws_client/lib/src/generated/neptunedata/v2023_08_01.dart @@ -3511,7 +3511,7 @@ class EdgeStructure { return EdgeStructure( count: json['count'] as int?, edgeProperties: (json['edgeProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4077,7 +4077,7 @@ class GetMLModelTrainingJobOutput { : null, id: json['id'] as String?, mlModels: (json['mlModels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MlConfigDefinition.fromJson(e as Map)) .toList(), modelTransformJob: json['modelTransformJob'] != null @@ -4142,7 +4142,7 @@ class GetMLModelTransformJobOutput { : null, id: json['id'] as String?, models: (json['models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MlConfigDefinition.fromJson(e as Map)) .toList(), remoteModelTransformJob: json['remoteModelTransformJob'] != null @@ -4278,7 +4278,7 @@ class GetPropertygraphStreamOutput { .map((k, e) => MapEntry(k, e as String)), lastTrxTimestampInMillis: json['lastTrxTimestamp'] as int, records: (json['records'] as List) - .whereNotNull() + .nonNulls .map((e) => PropertygraphRecord.fromJson(e as Map)) .toList(), totalRecords: json['totalRecords'] as int, @@ -4440,7 +4440,7 @@ class GetSparqlStreamOutput { .map((k, e) => MapEntry(k, e as String)), lastTrxTimestampInMillis: json['lastTrxTimestamp'] as int, records: (json['records'] as List) - .whereNotNull() + .nonNulls .map((e) => SparqlRecord.fromJson(e as Map)) .toList(), totalRecords: json['totalRecords'] as int, @@ -4597,7 +4597,7 @@ class ListGremlinQueriesOutput { return ListGremlinQueriesOutput( acceptedQueryCount: json['acceptedQueryCount'] as int?, queries: (json['queries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GremlinQueryStatus.fromJson(e as Map)) .toList(), runningQueryCount: json['runningQueryCount'] as int?, @@ -4655,10 +4655,7 @@ class ListMLDataProcessingJobsOutput { factory ListMLDataProcessingJobsOutput.fromJson(Map json) { return ListMLDataProcessingJobsOutput( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4680,10 +4677,7 @@ class ListMLEndpointsOutput { factory ListMLEndpointsOutput.fromJson(Map json) { return ListMLEndpointsOutput( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4705,10 +4699,7 @@ class ListMLModelTrainingJobsOutput { factory ListMLModelTrainingJobsOutput.fromJson(Map json) { return ListMLModelTrainingJobsOutput( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4730,10 +4721,7 @@ class ListMLModelTransformJobsOutput { factory ListMLModelTransformJobsOutput.fromJson(Map json) { return ListMLModelTransformJobsOutput( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4766,7 +4754,7 @@ class ListOpenCypherQueriesOutput { return ListOpenCypherQueriesOutput( acceptedQueryCount: json['acceptedQueryCount'] as int?, queries: (json['queries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GremlinQueryStatus.fromJson(e as Map)) .toList(), runningQueryCount: json['runningQueryCount'] as int?, @@ -4796,10 +4784,8 @@ class LoaderIdResult { factory LoaderIdResult.fromJson(Map json) { return LoaderIdResult( - loadIds: (json['loadIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + loadIds: + (json['loadIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -5002,11 +4988,11 @@ class NodeStructure { return NodeStructure( count: json['count'] as int?, distinctOutgoingEdgeLabels: (json['distinctOutgoingEdgeLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nodeProperties: (json['nodeProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5263,29 +5249,29 @@ class PropertygraphSummary { factory PropertygraphSummary.fromJson(Map json) { return PropertygraphSummary( edgeLabels: (json['edgeLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), edgeProperties: (json['edgeProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, e as int))) .toList(), edgeStructures: (json['edgeStructures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EdgeStructure.fromJson(e as Map)) .toList(), nodeLabels: (json['nodeLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nodeProperties: (json['nodeProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, e as int))) .toList(), nodeStructures: (json['nodeStructures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NodeStructure.fromJson(e as Map)) .toList(), numEdgeLabels: json['numEdgeLabels'] as int?, @@ -5486,21 +5472,19 @@ class RDFGraphSummary { factory RDFGraphSummary.fromJson(Map json) { return RDFGraphSummary( - classes: (json['classes'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + classes: + (json['classes'] as List?)?.nonNulls.map((e) => e as String).toList(), numClasses: json['numClasses'] as int?, numDistinctPredicates: json['numDistinctPredicates'] as int?, numDistinctSubjects: json['numDistinctSubjects'] as int?, numQuads: json['numQuads'] as int?, predicates: (json['predicates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, e as int))) .toList(), subjectStructures: (json['subjectStructures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubjectStructure.fromJson(e as Map)) .toList(), ); @@ -6013,7 +5997,7 @@ class SubjectStructure { return SubjectStructure( count: json['count'] as int?, predicates: (json['predicates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/network_firewall/v2020_11_12.dart b/aws_client/lib/src/generated/network_firewall/v2020_11_12.dart index 6d1b219bc..f163b0343 100644 --- a/aws_client/lib/src/generated/network_firewall/v2020_11_12.dart +++ b/aws_client/lib/src/generated/network_firewall/v2020_11_12.dart @@ -2757,7 +2757,7 @@ class AnalysisResult { return AnalysisResult( analysisDetail: json['AnalysisDetail'] as String?, identifiedRuleIds: (json['IdentifiedRuleIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identifiedType: @@ -2873,7 +2873,7 @@ class AssociateSubnetsResponse { firewallArn: json['FirewallArn'] as String?, firewallName: json['FirewallName'] as String?, subnetMappings: (json['SubnetMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubnetMapping.fromJson(e as Map)) .toList(), updateToken: json['UpdateToken'] as String?, @@ -3945,7 +3945,7 @@ class DisassociateSubnetsResponse { firewallArn: json['FirewallArn'] as String?, firewallName: json['FirewallName'] as String?, subnetMappings: (json['SubnetMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubnetMapping.fromJson(e as Map)) .toList(), updateToken: json['UpdateToken'] as String?, @@ -4110,7 +4110,7 @@ class Firewall { firewallId: json['FirewallId'] as String, firewallPolicyArn: json['FirewallPolicyArn'] as String, subnetMappings: (json['SubnetMappings'] as List) - .whereNotNull() + .nonNulls .map((e) => SubnetMapping.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String, @@ -4126,7 +4126,7 @@ class Firewall { json['FirewallPolicyChangeProtection'] as bool?, subnetChangeProtection: json['SubnetChangeProtection'] as bool?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4302,12 +4302,12 @@ class FirewallPolicy { factory FirewallPolicy.fromJson(Map json) { return FirewallPolicy( statelessDefaultActions: (json['StatelessDefaultActions'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), statelessFragmentDefaultActions: (json['StatelessFragmentDefaultActions'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), policyVariables: json['PolicyVariables'] != null @@ -4315,7 +4315,7 @@ class FirewallPolicy { json['PolicyVariables'] as Map) : null, statefulDefaultActions: (json['StatefulDefaultActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statefulEngineOptions: json['StatefulEngineOptions'] != null @@ -4324,17 +4324,17 @@ class FirewallPolicy { : null, statefulRuleGroupReferences: (json['StatefulRuleGroupReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StatefulRuleGroupReference.fromJson(e as Map)) .toList(), statelessCustomActions: (json['StatelessCustomActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomAction.fromJson(e as Map)) .toList(), statelessRuleGroupReferences: (json['StatelessRuleGroupReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StatelessRuleGroupReference.fromJson(e as Map)) .toList(), @@ -4489,7 +4489,7 @@ class FirewallPolicyResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), numberOfAssociations: json['NumberOfAssociations'] as int?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4799,7 +4799,7 @@ class IPSet { factory IPSet.fromJson(Map json) { return IPSet( definition: (json['Definition'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -4915,7 +4915,7 @@ class ListFirewallPoliciesResponse { factory ListFirewallPoliciesResponse.fromJson(Map json) { return ListFirewallPoliciesResponse( firewallPolicies: (json['FirewallPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FirewallPolicyMetadata.fromJson(e as Map)) .toList(), @@ -4954,7 +4954,7 @@ class ListFirewallsResponse { factory ListFirewallsResponse.fromJson(Map json) { return ListFirewallsResponse( firewalls: (json['Firewalls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallMetadata.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4993,7 +4993,7 @@ class ListRuleGroupsResponse { return ListRuleGroupsResponse( nextToken: json['NextToken'] as String?, ruleGroups: (json['RuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupMetadata.fromJson(e as Map)) .toList(), ); @@ -5033,7 +5033,7 @@ class ListTLSInspectionConfigurationsResponse { nextToken: json['NextToken'] as String?, tLSInspectionConfigurations: (json['TLSInspectionConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TLSInspectionConfigurationMetadata.fromJson( e as Map)) .toList(), @@ -5071,7 +5071,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5209,7 +5209,7 @@ class LoggingConfiguration { factory LoggingConfiguration.fromJson(Map json) { return LoggingConfiguration( logDestinationConfigs: (json['LogDestinationConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => LogDestinationConfig.fromJson(e as Map)) .toList(), ); @@ -5271,27 +5271,25 @@ class MatchAttributes { factory MatchAttributes.fromJson(Map json) { return MatchAttributes( destinationPorts: (json['DestinationPorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRange.fromJson(e as Map)) .toList(), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Address.fromJson(e as Map)) .toList(), - protocols: (json['Protocols'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + protocols: + (json['Protocols'] as List?)?.nonNulls.map((e) => e as int).toList(), sourcePorts: (json['SourcePorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRange.fromJson(e as Map)) .toList(), sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Address.fromJson(e as Map)) .toList(), tCPFlags: (json['TCPFlags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TCPFlagField.fromJson(e as Map)) .toList(), ); @@ -5458,7 +5456,7 @@ class PortSet { factory PortSet.fromJson(Map json) { return PortSet( definition: (json['Definition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5486,7 +5484,7 @@ class PublishMetricAction { factory PublishMetricAction.fromJson(Map json) { return PublishMetricAction( dimensions: (json['Dimensions'] as List) - .whereNotNull() + .nonNulls .map((e) => Dimension.fromJson(e as Map)) .toList(), ); @@ -5655,10 +5653,8 @@ class RuleDefinition { factory RuleDefinition.fromJson(Map json) { return RuleDefinition( - actions: (json['Actions'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List).nonNulls.map((e) => e as String).toList(), matchAttributes: MatchAttributes.fromJson( json['MatchAttributes'] as Map), ); @@ -5884,7 +5880,7 @@ class RuleGroupResponse { ruleGroupId: json['RuleGroupId'] as String, ruleGroupName: json['RuleGroupName'] as String, analysisResults: (json['AnalysisResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisResult.fromJson(e as Map)) .toList(), capacity: json['Capacity'] as int?, @@ -5904,7 +5900,7 @@ class RuleGroupResponse { json['SourceMetadata'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(RuleGroupType.fromString), @@ -5992,7 +5988,7 @@ class RuleOption { return RuleOption( keyword: json['Keyword'] as String, settings: (json['Settings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6103,7 +6099,7 @@ class RulesSource { : null, rulesString: json['RulesString'] as String?, statefulRules: (json['StatefulRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StatefulRule.fromJson(e as Map)) .toList(), statelessRulesAndCustomActions: json['StatelessRulesAndCustomActions'] != @@ -6181,13 +6177,11 @@ class RulesSourceList { generatedRulesType: GeneratedRulesType.fromString((json['GeneratedRulesType'] as String)), targetTypes: (json['TargetTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => TargetType.fromString((e as String))) .toList(), - targets: (json['Targets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['Targets'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -6314,12 +6308,12 @@ class ServerCertificateConfiguration { as Map) : null, scopes: (json['Scopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ServerCertificateScope.fromJson(e as Map)) .toList(), serverCertificates: (json['ServerCertificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerCertificate.fromJson(e as Map)) .toList(), ); @@ -6386,23 +6380,21 @@ class ServerCertificateScope { factory ServerCertificateScope.fromJson(Map json) { return ServerCertificateScope( destinationPorts: (json['DestinationPorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRange.fromJson(e as Map)) .toList(), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Address.fromJson(e as Map)) .toList(), - protocols: (json['Protocols'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + protocols: + (json['Protocols'] as List?)?.nonNulls.map((e) => e as int).toList(), sourcePorts: (json['SourcePorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRange.fromJson(e as Map)) .toList(), sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Address.fromJson(e as Map)) .toList(), ); @@ -6605,7 +6597,7 @@ class StatefulRule { action: StatefulAction.fromString((json['Action'] as String)), header: Header.fromJson(json['Header'] as Map), ruleOptions: (json['RuleOptions'] as List) - .whereNotNull() + .nonNulls .map((e) => RuleOption.fromJson(e as Map)) .toList(), ); @@ -6881,11 +6873,11 @@ class StatelessRulesAndCustomActions { factory StatelessRulesAndCustomActions.fromJson(Map json) { return StatelessRulesAndCustomActions( statelessRules: (json['StatelessRules'] as List) - .whereNotNull() + .nonNulls .map((e) => StatelessRule.fromJson(e as Map)) .toList(), customActions: (json['CustomActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomAction.fromJson(e as Map)) .toList(), ); @@ -7064,11 +7056,11 @@ class TCPFlagField { factory TCPFlagField.fromJson(Map json) { return TCPFlagField( flags: (json['Flags'] as List) - .whereNotNull() + .nonNulls .map((e) => TCPFlag.fromString((e as String))) .toList(), masks: (json['Masks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TCPFlag.fromString((e as String))) .toList(), ); @@ -7116,7 +7108,7 @@ class TLSInspectionConfiguration { return TLSInspectionConfiguration( serverCertificateConfigurations: (json['ServerCertificateConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerCertificateConfiguration.fromJson( e as Map)) .toList(), @@ -7239,7 +7231,7 @@ class TLSInspectionConfigurationResponse { json['CertificateAuthority'] as Map) : null, certificates: (json['Certificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TlsCertificateData.fromJson(e as Map)) .toList(), description: json['Description'] as String?, @@ -7253,7 +7245,7 @@ class TLSInspectionConfigurationResponse { (json['TLSInspectionConfigurationStatus'] as String?) ?.let(ResourceStatus.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/network_manager/v2019_07_05.dart b/aws_client/lib/src/generated/network_manager/v2019_07_05.dart index 956b971af..ba8fd24d6 100644 --- a/aws_client/lib/src/generated/network_manager/v2019_07_05.dart +++ b/aws_client/lib/src/generated/network_manager/v2019_07_05.dart @@ -4056,7 +4056,7 @@ class Attachment { segmentName: json['SegmentName'] as String?, state: (json['State'] as String?)?.let(AttachmentState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), updatedAt: timeStampFromJson(json['UpdatedAt']), @@ -4379,7 +4379,7 @@ class ConnectPeer { state: (json['State'] as String?)?.let(ConnectPeerState.fromString), subnetArn: json['SubnetArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4551,13 +4551,13 @@ class ConnectPeerConfiguration { factory ConnectPeerConfiguration.fromJson(Map json) { return ConnectPeerConfiguration( bgpConfigurations: (json['BgpConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectPeerBgpConfiguration.fromJson(e as Map)) .toList(), coreNetworkAddress: json['CoreNetworkAddress'] as String?, insideCidrBlocks: (json['InsideCidrBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), peerAddress: json['PeerAddress'] as String?, @@ -4646,7 +4646,7 @@ class ConnectPeerSummary { edgeLocation: json['EdgeLocation'] as String?, subnetArn: json['SubnetArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4737,7 +4737,7 @@ class Connection { linkId: json['LinkId'] as String?, state: (json['State'] as String?)?.let(ConnectionState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4903,17 +4903,17 @@ class CoreNetwork { createdAt: timeStampFromJson(json['CreatedAt']), description: json['Description'] as String?, edges: (json['Edges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoreNetworkEdge.fromJson(e as Map)) .toList(), globalNetworkId: json['GlobalNetworkId'] as String?, segments: (json['Segments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoreNetworkSegment.fromJson(e as Map)) .toList(), state: (json['State'] as String?)?.let(CoreNetworkState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5157,16 +5157,16 @@ class CoreNetworkChangeValues { cidr: json['Cidr'] as String?, destinationIdentifier: json['DestinationIdentifier'] as String?, edgeLocations: (json['EdgeLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), insideCidrBlocks: (json['InsideCidrBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), segmentName: json['SegmentName'] as String?, sharedSegments: (json['SharedSegments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5215,7 +5215,7 @@ class CoreNetworkEdge { asn: json['Asn'] as int?, edgeLocation: json['EdgeLocation'] as String?, insideCidrBlocks: (json['InsideCidrBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5283,7 +5283,7 @@ class CoreNetworkPolicy { ? null : jsonDecode(json['PolicyDocument'] as String), policyErrors: (json['PolicyErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CoreNetworkPolicyError.fromJson(e as Map)) .toList(), @@ -5446,12 +5446,12 @@ class CoreNetworkSegment { factory CoreNetworkSegment.fromJson(Map json) { return CoreNetworkSegment( edgeLocations: (json['EdgeLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, sharedSegments: (json['SharedSegments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5565,7 +5565,7 @@ class CoreNetworkSummary { ownerAccountId: json['OwnerAccountId'] as String?, state: (json['State'] as String?)?.let(CoreNetworkState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6261,7 +6261,7 @@ class DescribeGlobalNetworksResponse { factory DescribeGlobalNetworksResponse.fromJson(Map json) { return DescribeGlobalNetworksResponse( globalNetworks: (json['GlobalNetworks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlobalNetwork.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6357,7 +6357,7 @@ class Device { siteId: json['SiteId'] as String?, state: (json['State'] as String?)?.let(DeviceState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: json['Type'] as String?, @@ -6578,7 +6578,7 @@ class GetConnectPeerAssociationsResponse { Map json) { return GetConnectPeerAssociationsResponse( connectPeerAssociations: (json['ConnectPeerAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ConnectPeerAssociation.fromJson(e as Map)) .toList(), @@ -6636,7 +6636,7 @@ class GetConnectionsResponse { factory GetConnectionsResponse.fromJson(Map json) { return GetConnectionsResponse( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6669,7 +6669,7 @@ class GetCoreNetworkChangeEventsResponse { Map json) { return GetCoreNetworkChangeEventsResponse( coreNetworkChangeEvents: (json['CoreNetworkChangeEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CoreNetworkChangeEvent.fromJson(e as Map)) .toList(), @@ -6703,7 +6703,7 @@ class GetCoreNetworkChangeSetResponse { factory GetCoreNetworkChangeSetResponse.fromJson(Map json) { return GetCoreNetworkChangeSetResponse( coreNetworkChanges: (json['CoreNetworkChanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoreNetworkChange.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6786,7 +6786,7 @@ class GetCustomerGatewayAssociationsResponse { return GetCustomerGatewayAssociationsResponse( customerGatewayAssociations: (json['CustomerGatewayAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomerGatewayAssociation.fromJson(e as Map)) .toList(), @@ -6820,7 +6820,7 @@ class GetDevicesResponse { factory GetDevicesResponse.fromJson(Map json) { return GetDevicesResponse( devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Device.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6852,7 +6852,7 @@ class GetLinkAssociationsResponse { factory GetLinkAssociationsResponse.fromJson(Map json) { return GetLinkAssociationsResponse( linkAssociations: (json['LinkAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LinkAssociation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6884,7 +6884,7 @@ class GetLinksResponse { factory GetLinksResponse.fromJson(Map json) { return GetLinksResponse( links: (json['Links'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Link.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6916,7 +6916,7 @@ class GetNetworkResourceCountsResponse { factory GetNetworkResourceCountsResponse.fromJson(Map json) { return GetNetworkResourceCountsResponse( networkResourceCounts: (json['NetworkResourceCounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkResourceCount.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6951,7 +6951,7 @@ class GetNetworkResourceRelationshipsResponse { return GetNetworkResourceRelationshipsResponse( nextToken: json['NextToken'] as String?, relationships: (json['Relationships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Relationship.fromJson(e as Map)) .toList(), ); @@ -6982,7 +6982,7 @@ class GetNetworkResourcesResponse { factory GetNetworkResourcesResponse.fromJson(Map json) { return GetNetworkResourcesResponse( networkResources: (json['NetworkResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkResource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7030,7 +7030,7 @@ class GetNetworkRoutesResponse { json['CoreNetworkSegmentEdge'] as Map) : null, networkRoutes: (json['NetworkRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkRoute.fromJson(e as Map)) .toList(), routeTableArn: json['RouteTableArn'] as String?, @@ -7073,7 +7073,7 @@ class GetNetworkTelemetryResponse { factory GetNetworkTelemetryResponse.fromJson(Map json) { return GetNetworkTelemetryResponse( networkTelemetry: (json['NetworkTelemetry'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkTelemetry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7182,7 +7182,7 @@ class GetSitesResponse { return GetSitesResponse( nextToken: json['NextToken'] as String?, sites: (json['Sites'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Site.fromJson(e as Map)) .toList(), ); @@ -7217,7 +7217,7 @@ class GetTransitGatewayConnectPeerAssociationsResponse { nextToken: json['NextToken'] as String?, transitGatewayConnectPeerAssociations: (json['TransitGatewayConnectPeerAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransitGatewayConnectPeerAssociation.fromJson( e as Map)) .toList(), @@ -7281,7 +7281,7 @@ class GetTransitGatewayRegistrationsResponse { nextToken: json['NextToken'] as String?, transitGatewayRegistrations: (json['TransitGatewayRegistrations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransitGatewayRegistration.fromJson(e as Map)) .toList(), @@ -7394,7 +7394,7 @@ class GlobalNetwork { globalNetworkId: json['GlobalNetworkId'] as String?, state: (json['State'] as String?)?.let(GlobalNetworkState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7498,7 +7498,7 @@ class Link { siteId: json['SiteId'] as String?, state: (json['State'] as String?)?.let(LinkState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: json['Type'] as String?, @@ -7627,7 +7627,7 @@ class ListAttachmentsResponse { factory ListAttachmentsResponse.fromJson(Map json) { return ListAttachmentsResponse( attachments: (json['Attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7659,7 +7659,7 @@ class ListConnectPeersResponse { factory ListConnectPeersResponse.fromJson(Map json) { return ListConnectPeersResponse( connectPeers: (json['ConnectPeers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectPeerSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7692,7 +7692,7 @@ class ListCoreNetworkPolicyVersionsResponse { Map json) { return ListCoreNetworkPolicyVersionsResponse( coreNetworkPolicyVersions: (json['CoreNetworkPolicyVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoreNetworkPolicyVersion.fromJson(e as Map)) .toList(), @@ -7726,7 +7726,7 @@ class ListCoreNetworksResponse { factory ListCoreNetworksResponse.fromJson(Map json) { return ListCoreNetworksResponse( coreNetworks: (json['CoreNetworks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoreNetworkSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7793,7 +7793,7 @@ class ListPeeringsResponse { return ListPeeringsResponse( nextToken: json['NextToken'] as String?, peerings: (json['Peerings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Peering.fromJson(e as Map)) .toList(), ); @@ -7820,7 +7820,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7987,7 +7987,7 @@ class NetworkResource { resourceId: json['ResourceId'] as String?, resourceType: json['ResourceType'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8144,7 +8144,7 @@ class NetworkRoute { return NetworkRoute( destinationCidrBlock: json['DestinationCidrBlock'] as String?, destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkRouteDestination.fromJson(e as Map)) .toList(), @@ -8342,7 +8342,7 @@ class OrganizationStatus { factory OrganizationStatus.fromJson(Map json) { return OrganizationStatus( accountStatusList: (json['AccountStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountStatus.fromJson(e as Map)) .toList(), organizationAwsServiceAccessStatus: @@ -8469,7 +8469,7 @@ class Peering { resourceArn: json['ResourceArn'] as String?, state: (json['State'] as String?)?.let(PeeringState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8554,7 +8554,7 @@ class ProposedSegmentChange { attachmentPolicyRuleNumber: json['AttachmentPolicyRuleNumber'] as int?, segmentName: json['SegmentName'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -9029,7 +9029,7 @@ class RouteAnalysisPath { json['CompletionStatus'] as Map) : null, path: (json['Path'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PathComponent.fromJson(e as Map)) .toList(), ); @@ -9180,7 +9180,7 @@ class Site { siteId: json['SiteId'] as String?, state: (json['State'] as String?)?.let(SiteState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -9855,7 +9855,7 @@ class VpcAttachment { ? VpcOptions.fromJson(json['Options'] as Map) : null, subnetArns: (json['SubnetArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/network_monitor/v2023_08_01.dart b/aws_client/lib/src/generated/network_monitor/v2023_08_01.dart index e8060d690..6490a3aa3 100644 --- a/aws_client/lib/src/generated/network_monitor/v2023_08_01.dart +++ b/aws_client/lib/src/generated/network_monitor/v2023_08_01.dart @@ -896,7 +896,7 @@ class GetMonitorOutput { monitorName: json['monitorName'] as String, state: MonitorState.fromString((json['state'] as String)), probes: (json['probes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Probe.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -1055,7 +1055,7 @@ class ListMonitorsOutput { factory ListMonitorsOutput.fromJson(Map json) { return ListMonitorsOutput( monitors: (json['monitors'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitorSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/nimble/v2020_08_01.dart b/aws_client/lib/src/generated/nimble/v2020_08_01.dart index 9feb6a8b9..c4f2d7d9d 100644 --- a/aws_client/lib/src/generated/nimble/v2020_08_01.dart +++ b/aws_client/lib/src/generated/nimble/v2020_08_01.dart @@ -2363,7 +2363,7 @@ class AcceptEulasResponse { factory AcceptEulasResponse.fromJson(Map json) { return AcceptEulasResponse( eulaAcceptances: (json['eulaAcceptances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EulaAcceptance.fromJson(e as Map)) .toList(), ); @@ -2431,7 +2431,7 @@ class ActiveDirectoryConfiguration { factory ActiveDirectoryConfiguration.fromJson(Map json) { return ActiveDirectoryConfiguration( computerAttributes: (json['computerAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveDirectoryComputerAttribute.fromJson( e as Map)) .toList(), @@ -2948,11 +2948,11 @@ class GetLaunchProfileDetailsResponse { json['launchProfile'] as Map) : null, streamingImages: (json['streamingImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamingImage.fromJson(e as Map)) .toList(), studioComponentSummaries: (json['studioComponentSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => StudioComponentSummary.fromJson(e as Map)) .toList(), @@ -3315,13 +3315,13 @@ class LaunchProfile { createdBy: json['createdBy'] as String?, description: json['description'] as String?, ec2SubnetIds: (json['ec2SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), launchProfileId: json['launchProfileId'] as String?, launchProfileProtocolVersions: (json['launchProfileProtocolVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -3334,7 +3334,7 @@ class LaunchProfile { json['streamConfiguration'] as Map) : null, studioComponentIds: (json['studioComponentIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -3342,7 +3342,7 @@ class LaunchProfile { updatedAt: timeStampFromJson(json['updatedAt']), updatedBy: json['updatedBy'] as String?, validationResults: (json['validationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationResult.fromJson(e as Map)) .toList(), ); @@ -3444,7 +3444,7 @@ class LaunchProfileInitialization { json['activeDirectory'] as Map) : null, ec2SecurityGroupIds: (json['ec2SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), launchProfileId: json['launchProfileId'] as String?, @@ -3456,12 +3456,12 @@ class LaunchProfileInitialization { (json['platform'] as String?)?.let(LaunchProfilePlatform.fromString), systemInitializationScripts: (json['systemInitializationScripts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchProfileInitializationScript.fromJson( e as Map)) .toList(), userInitializationScripts: (json['userInitializationScripts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchProfileInitializationScript.fromJson( e as Map)) .toList(), @@ -3535,14 +3535,14 @@ class LaunchProfileInitializationActiveDirectory { Map json) { return LaunchProfileInitializationActiveDirectory( computerAttributes: (json['computerAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveDirectoryComputerAttribute.fromJson( e as Map)) .toList(), directoryId: json['directoryId'] as String?, directoryName: json['directoryName'] as String?, dnsIpAddresses: (json['dnsIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), organizationalUnitDistinguishedName: @@ -3891,7 +3891,7 @@ class ListEulaAcceptancesResponse { factory ListEulaAcceptancesResponse.fromJson(Map json) { return ListEulaAcceptancesResponse( eulaAcceptances: (json['eulaAcceptances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EulaAcceptance.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3923,7 +3923,7 @@ class ListEulasResponse { factory ListEulasResponse.fromJson(Map json) { return ListEulasResponse( eulas: (json['eulas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Eula.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3955,7 +3955,7 @@ class ListLaunchProfileMembersResponse { factory ListLaunchProfileMembersResponse.fromJson(Map json) { return ListLaunchProfileMembersResponse( members: (json['members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchProfileMembership.fromJson(e as Map)) .toList(), @@ -3988,7 +3988,7 @@ class ListLaunchProfilesResponse { factory ListLaunchProfilesResponse.fromJson(Map json) { return ListLaunchProfilesResponse( launchProfiles: (json['launchProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchProfile.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4021,7 +4021,7 @@ class ListStreamingImagesResponse { return ListStreamingImagesResponse( nextToken: json['nextToken'] as String?, streamingImages: (json['streamingImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamingImage.fromJson(e as Map)) .toList(), ); @@ -4054,7 +4054,7 @@ class ListStreamingSessionBackupsResponse { return ListStreamingSessionBackupsResponse( nextToken: json['nextToken'] as String?, streamingSessionBackups: (json['streamingSessionBackups'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => StreamingSessionBackup.fromJson(e as Map)) .toList(), @@ -4088,7 +4088,7 @@ class ListStreamingSessionsResponse { return ListStreamingSessionsResponse( nextToken: json['nextToken'] as String?, sessions: (json['sessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamingSession.fromJson(e as Map)) .toList(), ); @@ -4120,7 +4120,7 @@ class ListStudioComponentsResponse { return ListStudioComponentsResponse( nextToken: json['nextToken'] as String?, studioComponents: (json['studioComponents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StudioComponent.fromJson(e as Map)) .toList(), ); @@ -4151,7 +4151,7 @@ class ListStudioMembersResponse { factory ListStudioMembersResponse.fromJson(Map json) { return ListStudioMembersResponse( members: (json['members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StudioMembership.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4183,7 +4183,7 @@ class ListStudiosResponse { factory ListStudiosResponse.fromJson(Map json) { return ListStudiosResponse( studios: (json['studios'] as List) - .whereNotNull() + .nonNulls .map((e) => Studio.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4575,11 +4575,11 @@ class StreamConfiguration { clipboardMode: StreamingClipboardMode.fromString((json['clipboardMode'] as String)), ec2InstanceTypes: (json['ec2InstanceTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => StreamingInstanceType.fromString((e as String))) .toList(), streamingImageIds: (json['streamingImageIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), automaticTerminationMode: (json['automaticTerminationMode'] as String?) @@ -4817,7 +4817,7 @@ class StreamConfigurationSessionStorage { Map json) { return StreamConfigurationSessionStorage( mode: (json['mode'] as List) - .whereNotNull() + .nonNulls .map((e) => StreamingSessionStorageMode.fromString((e as String))) .toList(), root: json['root'] != null @@ -4933,10 +4933,8 @@ class StreamingImage { ? StreamingImageEncryptionConfiguration.fromJson( json['encryptionConfiguration'] as Map) : null, - eulaIds: (json['eulaIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + eulaIds: + (json['eulaIds'] as List?)?.nonNulls.map((e) => e as String).toList(), name: json['name'] as String?, owner: json['owner'] as String?, platform: json['platform'] as String?, @@ -5931,18 +5929,18 @@ class StudioComponent { createdBy: json['createdBy'] as String?, description: json['description'] as String?, ec2SecurityGroupIds: (json['ec2SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), initializationScripts: (json['initializationScripts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StudioComponentInitializationScript.fromJson( e as Map)) .toList(), name: json['name'] as String?, runtimeRoleArn: json['runtimeRoleArn'] as String?, scriptParameters: (json['scriptParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScriptParameterKeyValue.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/oam/v2022_06_10.dart b/aws_client/lib/src/generated/oam/v2022_06_10.dart index 387c4516a..5ec31db60 100644 --- a/aws_client/lib/src/generated/oam/v2022_06_10.dart +++ b/aws_client/lib/src/generated/oam/v2022_06_10.dart @@ -771,7 +771,7 @@ class CreateLinkOutput { json['LinkConfiguration'] as Map) : null, resourceTypes: (json['ResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sinkArn: json['SinkArn'] as String?, @@ -923,7 +923,7 @@ class GetLinkOutput { json['LinkConfiguration'] as Map) : null, resourceTypes: (json['ResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sinkArn: json['SinkArn'] as String?, @@ -1102,7 +1102,7 @@ class ListAttachedLinksItem { label: json['Label'] as String?, linkArn: json['LinkArn'] as String?, resourceTypes: (json['ResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1136,7 +1136,7 @@ class ListAttachedLinksOutput { factory ListAttachedLinksOutput.fromJson(Map json) { return ListAttachedLinksOutput( items: (json['Items'] as List) - .whereNotNull() + .nonNulls .map((e) => ListAttachedLinksItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1187,7 +1187,7 @@ class ListLinksItem { id: json['Id'] as String?, label: json['Label'] as String?, resourceTypes: (json['ResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sinkArn: json['SinkArn'] as String?, @@ -1226,7 +1226,7 @@ class ListLinksOutput { factory ListLinksOutput.fromJson(Map json) { return ListLinksOutput( items: (json['Items'] as List) - .whereNotNull() + .nonNulls .map((e) => ListLinksItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1298,7 +1298,7 @@ class ListSinksOutput { factory ListSinksOutput.fromJson(Map json) { return ListSinksOutput( items: (json['Items'] as List) - .whereNotNull() + .nonNulls .map((e) => ListSinksItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1613,7 +1613,7 @@ class UpdateLinkOutput { json['LinkConfiguration'] as Map) : null, resourceTypes: (json['ResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sinkArn: json['SinkArn'] as String?, diff --git a/aws_client/lib/src/generated/omics/v2022_11_28.dart b/aws_client/lib/src/generated/omics/v2022_11_28.dart index 743678513..d6a5b1790 100644 --- a/aws_client/lib/src/generated/omics/v2022_11_28.dart +++ b/aws_client/lib/src/generated/omics/v2022_11_28.dart @@ -3978,7 +3978,7 @@ class BatchDeleteReadSetResponse { factory BatchDeleteReadSetResponse.fromJson(Map json) { return BatchDeleteReadSetResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReadSetBatchError.fromJson(e as Map)) .toList(), ); @@ -4669,7 +4669,7 @@ class DeleteAnnotationStoreVersionsResponse { Map json) { return DeleteAnnotationStoreVersionsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionDeleteError.fromJson(e as Map)) .toList(), ); @@ -5208,7 +5208,7 @@ class GetAnnotationImportResponse { FormatOptions.fromJson(json['formatOptions'] as Map), id: json['id'] as String, items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => AnnotationImportItemDetail.fromJson(e as Map)) .toList(), @@ -5534,7 +5534,7 @@ class GetReadSetActivationJobResponse { status: ReadSetActivationJobStatus.fromString((json['status'] as String)), completionTime: timeStampFromJson(json['completionTime']), sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActivateReadSetSourceItem.fromJson(e as Map)) .toList(), @@ -5609,7 +5609,7 @@ class GetReadSetExportJobResponse { status: ReadSetExportJobStatus.fromString((json['status'] as String)), completionTime: timeStampFromJson(json['completionTime']), readSets: (json['readSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportReadSetDetail.fromJson(e as Map)) .toList(), statusMessage: json['statusMessage'] as String?, @@ -5683,7 +5683,7 @@ class GetReadSetImportJobResponse { roleArn: json['roleArn'] as String, sequenceStoreId: json['sequenceStoreId'] as String, sources: (json['sources'] as List) - .whereNotNull() + .nonNulls .map((e) => ImportReadSetSourceItem.fromJson(e as Map)) .toList(), @@ -5915,7 +5915,7 @@ class GetReferenceImportJobResponse { referenceStoreId: json['referenceStoreId'] as String, roleArn: json['roleArn'] as String, sources: (json['sources'] as List) - .whereNotNull() + .nonNulls .map((e) => ImportReferenceSourceItem.fromJson(e as Map)) .toList(), @@ -6708,7 +6708,7 @@ class GetVariantImportResponse { destinationName: json['destinationName'] as String, id: json['id'] as String, items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => VariantImportItemDetail.fromJson(e as Map)) .toList(), @@ -7383,7 +7383,7 @@ class ListAnnotationImportJobsResponse { factory ListAnnotationImportJobsResponse.fromJson(Map json) { return ListAnnotationImportJobsResponse( annotationImportJobs: (json['annotationImportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnnotationImportJobItem.fromJson(e as Map)) .toList(), @@ -7437,7 +7437,7 @@ class ListAnnotationStoreVersionsResponse { Map json) { return ListAnnotationStoreVersionsResponse( annotationStoreVersions: (json['annotationStoreVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnnotationStoreVersionItem.fromJson(e as Map)) .toList(), @@ -7488,7 +7488,7 @@ class ListAnnotationStoresResponse { factory ListAnnotationStoresResponse.fromJson(Map json) { return ListAnnotationStoresResponse( annotationStores: (json['annotationStores'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnnotationStoreItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7523,7 +7523,7 @@ class ListMultipartReadSetUploadsResponse { return ListMultipartReadSetUploadsResponse( nextToken: json['nextToken'] as String?, uploads: (json['uploads'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultipartReadSetUploadListItem.fromJson( e as Map)) .toList(), @@ -7556,7 +7556,7 @@ class ListReadSetActivationJobsResponse { Map json) { return ListReadSetActivationJobsResponse( activationJobs: (json['activationJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ActivateReadSetJobItem.fromJson(e as Map)) .toList(), @@ -7589,7 +7589,7 @@ class ListReadSetExportJobsResponse { factory ListReadSetExportJobsResponse.fromJson(Map json) { return ListReadSetExportJobsResponse( exportJobs: (json['exportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ExportReadSetJobDetail.fromJson(e as Map)) .toList(), @@ -7622,7 +7622,7 @@ class ListReadSetImportJobsResponse { factory ListReadSetImportJobsResponse.fromJson(Map json) { return ListReadSetImportJobsResponse( importJobs: (json['importJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportReadSetJobItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7656,7 +7656,7 @@ class ListReadSetUploadPartsResponse { return ListReadSetUploadPartsResponse( nextToken: json['nextToken'] as String?, parts: (json['parts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReadSetUploadPartListItem.fromJson(e as Map)) .toList(), @@ -7688,7 +7688,7 @@ class ListReadSetsResponse { factory ListReadSetsResponse.fromJson(Map json) { return ListReadSetsResponse( readSets: (json['readSets'] as List) - .whereNotNull() + .nonNulls .map((e) => ReadSetListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7720,7 +7720,7 @@ class ListReferenceImportJobsResponse { factory ListReferenceImportJobsResponse.fromJson(Map json) { return ListReferenceImportJobsResponse( importJobs: (json['importJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ImportReferenceJobItem.fromJson(e as Map)) .toList(), @@ -7753,7 +7753,7 @@ class ListReferenceStoresResponse { factory ListReferenceStoresResponse.fromJson(Map json) { return ListReferenceStoresResponse( referenceStores: (json['referenceStores'] as List) - .whereNotNull() + .nonNulls .map((e) => ReferenceStoreDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7785,7 +7785,7 @@ class ListReferencesResponse { factory ListReferencesResponse.fromJson(Map json) { return ListReferencesResponse( references: (json['references'] as List) - .whereNotNull() + .nonNulls .map((e) => ReferenceListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7817,7 +7817,7 @@ class ListRunGroupsResponse { factory ListRunGroupsResponse.fromJson(Map json) { return ListRunGroupsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RunGroupListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7849,7 +7849,7 @@ class ListRunTasksResponse { factory ListRunTasksResponse.fromJson(Map json) { return ListRunTasksResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7881,7 +7881,7 @@ class ListRunsResponse { factory ListRunsResponse.fromJson(Map json) { return ListRunsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RunListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7913,7 +7913,7 @@ class ListSequenceStoresResponse { factory ListSequenceStoresResponse.fromJson(Map json) { return ListSequenceStoresResponse( sequenceStores: (json['sequenceStores'] as List) - .whereNotNull() + .nonNulls .map((e) => SequenceStoreDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7946,7 +7946,7 @@ class ListSharesResponse { factory ListSharesResponse.fromJson(Map json) { return ListSharesResponse( shares: (json['shares'] as List) - .whereNotNull() + .nonNulls .map((e) => ShareDetails.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8025,7 +8025,7 @@ class ListVariantImportJobsResponse { return ListVariantImportJobsResponse( nextToken: json['nextToken'] as String?, variantImportJobs: (json['variantImportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VariantImportJobItem.fromJson(e as Map)) .toList(), ); @@ -8074,7 +8074,7 @@ class ListVariantStoresResponse { return ListVariantStoresResponse( nextToken: json['nextToken'] as String?, variantStores: (json['variantStores'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VariantStoreItem.fromJson(e as Map)) .toList(), ); @@ -8105,7 +8105,7 @@ class ListWorkflowsResponse { factory ListWorkflowsResponse.fromJson(Map json) { return ListWorkflowsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -10496,7 +10496,7 @@ class TsvStoreOptions { formatToHeader: (json['formatToHeader'] as Map?)?.map( (k, e) => MapEntry(FormatToHeaderKey.fromString(k), e as String)), schema: (json['schema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map( (k, e) => MapEntry(k, SchemaValueType.fromString((e as String))))) .toList(), @@ -10542,7 +10542,7 @@ class TsvVersionOptions { formatToHeader: (json['formatToHeader'] as Map?)?.map( (k, e) => MapEntry(FormatToHeaderKey.fromString(k), e as String)), schema: (json['schema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map( (k, e) => MapEntry(k, SchemaValueType.fromString((e as String))))) .toList(), diff --git a/aws_client/lib/src/generated/open_search/v2021_01_01.dart b/aws_client/lib/src/generated/open_search/v2021_01_01.dart index bb24fa087..7b6ae689c 100644 --- a/aws_client/lib/src/generated/open_search/v2021_01_01.dart +++ b/aws_client/lib/src/generated/open_search/v2021_01_01.dart @@ -2892,7 +2892,7 @@ class AdditionalLimit { return AdditionalLimit( limitName: json['LimitName'] as String?, limitValues: (json['LimitValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3381,7 +3381,7 @@ class AutoTuneOptions { desiredState: (json['DesiredState'] as String?) ?.let(AutoTuneDesiredState.fromString), maintenanceSchedules: (json['MaintenanceSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoTuneMaintenanceSchedule.fromJson(e as Map)) .toList(), @@ -3714,11 +3714,11 @@ class CancelDomainConfigChangeResponse { factory CancelDomainConfigChangeResponse.fromJson(Map json) { return CancelDomainConfigChangeResponse( cancelledChangeIds: (json['CancelledChangeIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cancelledChangeProperties: (json['CancelledChangeProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CancelledChangeProperty.fromJson(e as Map)) .toList(), @@ -3969,11 +3969,11 @@ class ChangeProgressStatusDetails { return ChangeProgressStatusDetails( changeId: json['ChangeId'] as String?, changeProgressStages: (json['ChangeProgressStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeProgressStage.fromJson(e as Map)) .toList(), completedProperties: (json['CompletedProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), configChangeStatus: (json['ConfigChangeStatus'] as String?) @@ -3982,7 +3982,7 @@ class ChangeProgressStatusDetails { (json['InitiatedBy'] as String?)?.let(InitiatedBy.fromString), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), pendingProperties: (json['PendingProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -4308,7 +4308,7 @@ class CompatibleVersionsMap { return CompatibleVersionsMap( sourceVersion: json['SourceVersion'] as String?, targetVersions: (json['TargetVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4872,7 +4872,7 @@ class DescribeDomainAutoTunesResponse { factory DescribeDomainAutoTunesResponse.fromJson(Map json) { return DescribeDomainAutoTunesResponse( autoTunes: (json['AutoTunes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoTune.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5062,7 +5062,7 @@ class DescribeDomainHealthResponse { domainState: (json['DomainState'] as String?)?.let(DomainState.fromString), environmentInformation: (json['EnvironmentInformation'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentInfo.fromJson(e as Map)) .toList(), masterEligibleNodeCount: json['MasterEligibleNodeCount'] as String?, @@ -5128,7 +5128,7 @@ class DescribeDomainNodesResponse { factory DescribeDomainNodesResponse.fromJson(Map json) { return DescribeDomainNodesResponse( domainNodesStatusList: (json['DomainNodesStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainNodesStatus.fromJson(e as Map)) .toList(), ); @@ -5180,7 +5180,7 @@ class DescribeDomainsResponse { factory DescribeDomainsResponse.fromJson(Map json) { return DescribeDomainsResponse( domainStatusList: (json['DomainStatusList'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainStatus.fromJson(e as Map)) .toList(), ); @@ -5259,7 +5259,7 @@ class DescribeInboundConnectionsResponse { Map json) { return DescribeInboundConnectionsResponse( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InboundConnection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5323,7 +5323,7 @@ class DescribeOutboundConnectionsResponse { Map json) { return DescribeOutboundConnectionsResponse( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutboundConnection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5402,7 +5402,7 @@ class DescribePackagesResponse { return DescribePackagesResponse( nextToken: json['NextToken'] as String?, packageDetailsList: (json['PackageDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageDetails.fromJson(e as Map)) .toList(), ); @@ -5440,7 +5440,7 @@ class DescribeReservedInstanceOfferingsResponse { return DescribeReservedInstanceOfferingsResponse( nextToken: json['NextToken'] as String?, reservedInstanceOfferings: (json['ReservedInstanceOfferings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservedInstanceOffering.fromJson(e as Map)) .toList(), @@ -5479,7 +5479,7 @@ class DescribeReservedInstancesResponse { return DescribeReservedInstancesResponse( nextToken: json['NextToken'] as String?, reservedInstances: (json['ReservedInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservedInstance.fromJson(e as Map)) .toList(), ); @@ -5510,11 +5510,11 @@ class DescribeVpcEndpointsResponse { factory DescribeVpcEndpointsResponse.fromJson(Map json) { return DescribeVpcEndpointsResponse( vpcEndpointErrors: (json['VpcEndpointErrors'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpointError.fromJson(e as Map)) .toList(), vpcEndpoints: (json['VpcEndpoints'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpoint.fromJson(e as Map)) .toList(), ); @@ -5704,7 +5704,7 @@ class DomainConfig { json['LogPublishingOptions'] as Map) : null, modifyingProperties: (json['ModifyingProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModifyingProperties.fromJson(e as Map)) .toList(), nodeToNodeEncryptionOptions: json['NodeToNodeEncryptionOptions'] != null @@ -6472,7 +6472,7 @@ class DomainStatus { MapEntry(LogType.fromString(k), LogPublishingOption.fromJson(e as Map))), modifyingProperties: (json['ModifyingProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModifyingProperties.fromJson(e as Map)) .toList(), nodeToNodeEncryptionOptions: json['NodeToNodeEncryptionOptions'] != null @@ -6632,7 +6632,7 @@ class DryRunProgressStatus { dryRunStatus: json['DryRunStatus'] as String, updateDate: json['UpdateDate'] as String, validationFailures: (json['ValidationFailures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationFailure.fromJson(e as Map)) .toList(), ); @@ -6912,7 +6912,7 @@ class EnvironmentInfo { return EnvironmentInfo( availabilityZoneInformation: (json['AvailabilityZoneInformation'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailabilityZoneInfo.fromJson(e as Map)) .toList(), ); @@ -6997,7 +6997,7 @@ class GetCompatibleVersionsResponse { factory GetCompatibleVersionsResponse.fromJson(Map json) { return GetCompatibleVersionsResponse( compatibleVersions: (json['CompatibleVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CompatibleVersionsMap.fromJson(e as Map)) .toList(), ); @@ -7145,7 +7145,7 @@ class GetPackageVersionHistoryResponse { nextToken: json['NextToken'] as String?, packageID: json['PackageID'] as String?, packageVersionHistoryList: (json['PackageVersionHistoryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageVersionHistory.fromJson(e as Map)) .toList(), ); @@ -7186,7 +7186,7 @@ class GetUpgradeHistoryResponse { return GetUpgradeHistoryResponse( nextToken: json['NextToken'] as String?, upgradeHistories: (json['UpgradeHistories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpgradeHistory.fromJson(e as Map)) .toList(), ); @@ -7551,13 +7551,13 @@ class InstanceTypeDetails { advancedSecurityEnabled: json['AdvancedSecurityEnabled'] as bool?, appLogsEnabled: json['AppLogsEnabled'] as bool?, availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cognitoEnabled: json['CognitoEnabled'] as bool?, encryptionEnabled: json['EncryptionEnabled'] as bool?, instanceRole: (json['InstanceRole'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), instanceType: (json['InstanceType'] as String?) @@ -7610,7 +7610,7 @@ class Limits { factory Limits.fromJson(Map json) { return Limits( additionalLimits: (json['AdditionalLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalLimit.fromJson(e as Map)) .toList(), instanceLimits: json['InstanceLimits'] != null @@ -7618,7 +7618,7 @@ class Limits { json['InstanceLimits'] as Map) : null, storageTypes: (json['StorageTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageType.fromJson(e as Map)) .toList(), ); @@ -7648,7 +7648,7 @@ class ListDataSourcesResponse { factory ListDataSourcesResponse.fromJson(Map json) { return ListDataSourcesResponse( dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceDetails.fromJson(e as Map)) .toList(), ); @@ -7682,7 +7682,7 @@ class ListDomainMaintenancesResponse { factory ListDomainMaintenancesResponse.fromJson(Map json) { return ListDomainMaintenancesResponse( domainMaintenances: (json['DomainMaintenances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainMaintenanceDetails.fromJson(e as Map)) .toList(), @@ -7714,7 +7714,7 @@ class ListDomainNamesResponse { factory ListDomainNamesResponse.fromJson(Map json) { return ListDomainNamesResponse( domainNames: (json['DomainNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainInfo.fromJson(e as Map)) .toList(), ); @@ -7748,7 +7748,7 @@ class ListDomainsForPackageResponse { factory ListDomainsForPackageResponse.fromJson(Map json) { return ListDomainsForPackageResponse( domainPackageDetailsList: (json['DomainPackageDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainPackageDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7785,7 +7785,7 @@ class ListInstanceTypeDetailsResponse { factory ListInstanceTypeDetailsResponse.fromJson(Map json) { return ListInstanceTypeDetailsResponse( instanceTypeDetails: (json['InstanceTypeDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceTypeDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7823,7 +7823,7 @@ class ListPackagesForDomainResponse { factory ListPackagesForDomainResponse.fromJson(Map json) { return ListPackagesForDomainResponse( domainPackageDetailsList: (json['DomainPackageDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainPackageDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7860,7 +7860,7 @@ class ListScheduledActionsResponse { return ListScheduledActionsResponse( nextToken: json['NextToken'] as String?, scheduledActions: (json['ScheduledActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduledAction.fromJson(e as Map)) .toList(), ); @@ -7888,7 +7888,7 @@ class ListTagsResponse { factory ListTagsResponse.fromJson(Map json) { return ListTagsResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7924,7 +7924,7 @@ class ListVersionsResponse { return ListVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7960,7 +7960,7 @@ class ListVpcEndpointAccessResponse { factory ListVpcEndpointAccessResponse.fromJson(Map json) { return ListVpcEndpointAccessResponse( authorizedPrincipalList: (json['AuthorizedPrincipalList'] as List) - .whereNotNull() + .nonNulls .map((e) => AuthorizedPrincipal.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String, @@ -7997,7 +7997,7 @@ class ListVpcEndpointsForDomainResponse { return ListVpcEndpointsForDomainResponse( nextToken: json['NextToken'] as String, vpcEndpointSummaryList: (json['VpcEndpointSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpointSummary.fromJson(e as Map)) .toList(), ); @@ -8032,7 +8032,7 @@ class ListVpcEndpointsResponse { return ListVpcEndpointsResponse( nextToken: json['NextToken'] as String, vpcEndpointSummaryList: (json['VpcEndpointSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpointSummary.fromJson(e as Map)) .toList(), ); @@ -9367,7 +9367,7 @@ class ReservedInstance { paymentOption: (json['PaymentOption'] as String?) ?.let(ReservedInstancePaymentOption.fromString), recurringCharges: (json['RecurringCharges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecurringCharge.fromJson(e as Map)) .toList(), reservationName: json['ReservationName'] as String?, @@ -9466,7 +9466,7 @@ class ReservedInstanceOffering { paymentOption: (json['PaymentOption'] as String?) ?.let(ReservedInstancePaymentOption.fromString), recurringCharges: (json['RecurringCharges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecurringCharge.fromJson(e as Map)) .toList(), reservedInstanceOfferingId: json['ReservedInstanceOfferingId'] as String?, @@ -10208,7 +10208,7 @@ class StorageType { return StorageType( storageSubTypeName: json['StorageSubTypeName'] as String?, storageTypeLimits: (json['StorageTypeLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageTypeLimit.fromJson(e as Map)) .toList(), storageTypeName: json['StorageTypeName'] as String?, @@ -10274,7 +10274,7 @@ class StorageTypeLimit { return StorageTypeLimit( limitName: json['LimitName'] as String?, limitValues: (json['LimitValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -10607,7 +10607,7 @@ class UpgradeHistory { return UpgradeHistory( startTimestamp: timeStampFromJson(json['StartTimestamp']), stepsList: (json['StepsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpgradeStepItem.fromJson(e as Map)) .toList(), upgradeName: json['UpgradeName'] as String?, @@ -10718,10 +10718,8 @@ class UpgradeStepItem { factory UpgradeStepItem.fromJson(Map json) { return UpgradeStepItem( - issues: (json['Issues'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + issues: + (json['Issues'] as List?)?.nonNulls.map((e) => e as String).toList(), progressPercent: json['ProgressPercent'] as double?, upgradeStep: (json['UpgradeStep'] as String?)?.let(UpgradeStep.fromString), @@ -10775,15 +10773,15 @@ class VPCDerivedInfo { factory VPCDerivedInfo.fromJson(Map json) { return VPCDerivedInfo( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vPCId: json['VPCId'] as String?, diff --git a/aws_client/lib/src/generated/open_search_serverless/v2021_11_01.dart b/aws_client/lib/src/generated/open_search_serverless/v2021_11_01.dart index 970cd1c79..96397860d 100644 --- a/aws_client/lib/src/generated/open_search_serverless/v2021_11_01.dart +++ b/aws_client/lib/src/generated/open_search_serverless/v2021_11_01.dart @@ -1935,11 +1935,11 @@ class BatchGetCollectionResponse { factory BatchGetCollectionResponse.fromJson(Map json) { return BatchGetCollectionResponse( collectionDetails: (json['collectionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CollectionDetail.fromJson(e as Map)) .toList(), collectionErrorDetails: (json['collectionErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CollectionErrorDetail.fromJson(e as Map)) .toList(), ); @@ -1974,13 +1974,13 @@ class BatchGetEffectiveLifecyclePolicyResponse { return BatchGetEffectiveLifecyclePolicyResponse( effectiveLifecyclePolicyDetails: (json['effectiveLifecyclePolicyDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectiveLifecyclePolicyDetail.fromJson( e as Map)) .toList(), effectiveLifecyclePolicyErrorDetails: (json['effectiveLifecyclePolicyErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectiveLifecyclePolicyErrorDetail.fromJson( e as Map)) .toList(), @@ -2019,12 +2019,12 @@ class BatchGetLifecyclePolicyResponse { factory BatchGetLifecyclePolicyResponse.fromJson(Map json) { return BatchGetLifecyclePolicyResponse( lifecyclePolicyDetails: (json['lifecyclePolicyDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecyclePolicyDetail.fromJson(e as Map)) .toList(), lifecyclePolicyErrorDetails: (json['lifecyclePolicyErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecyclePolicyErrorDetail.fromJson(e as Map)) .toList(), @@ -2058,11 +2058,11 @@ class BatchGetVpcEndpointResponse { factory BatchGetVpcEndpointResponse.fromJson(Map json) { return BatchGetVpcEndpointResponse( vpcEndpointDetails: (json['vpcEndpointDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcEndpointDetail.fromJson(e as Map)) .toList(), vpcEndpointErrorDetails: (json['vpcEndpointErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => VpcEndpointErrorDetail.fromJson(e as Map)) .toList(), @@ -3387,7 +3387,7 @@ class ListAccessPoliciesResponse { factory ListAccessPoliciesResponse.fromJson(Map json) { return ListAccessPoliciesResponse( accessPolicySummaries: (json['accessPolicySummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessPolicySummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3423,7 +3423,7 @@ class ListCollectionsResponse { factory ListCollectionsResponse.fromJson(Map json) { return ListCollectionsResponse( collectionSummaries: (json['collectionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CollectionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3459,7 +3459,7 @@ class ListLifecyclePoliciesResponse { factory ListLifecyclePoliciesResponse.fromJson(Map json) { return ListLifecyclePoliciesResponse( lifecyclePolicySummaries: (json['lifecyclePolicySummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => LifecyclePolicySummary.fromJson(e as Map)) .toList(), @@ -3497,7 +3497,7 @@ class ListSecurityConfigsResponse { return ListSecurityConfigsResponse( nextToken: json['nextToken'] as String?, securityConfigSummaries: (json['securityConfigSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityConfigSummary.fromJson(e as Map)) .toList(), ); @@ -3533,7 +3533,7 @@ class ListSecurityPoliciesResponse { return ListSecurityPoliciesResponse( nextToken: json['nextToken'] as String?, securityPolicySummaries: (json['securityPolicySummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityPolicySummary.fromJson(e as Map)) .toList(), ); @@ -3561,7 +3561,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3594,7 +3594,7 @@ class ListVpcEndpointsResponse { return ListVpcEndpointsResponse( nextToken: json['nextToken'] as String?, vpcEndpointSummaries: (json['vpcEndpointSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcEndpointSummary.fromJson(e as Map)) .toList(), ); @@ -4338,12 +4338,12 @@ class UpdateVpcEndpointDetail { lastModifiedDate: json['lastModifiedDate'] as int?, name: json['name'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(VpcEndpointStatus.fromString), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4434,12 +4434,12 @@ class VpcEndpointDetail { id: json['id'] as String?, name: json['name'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(VpcEndpointStatus.fromString), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, diff --git a/aws_client/lib/src/generated/ops_works/v2013_02_18.dart b/aws_client/lib/src/generated/ops_works/v2013_02_18.dart index 64902750e..98b1697dc 100644 --- a/aws_client/lib/src/generated/ops_works/v2013_02_18.dart +++ b/aws_client/lib/src/generated/ops_works/v2013_02_18.dart @@ -5110,17 +5110,15 @@ class App { (k, e) => MapEntry(AppAttributesKeys.fromString(k), e as String)), createdAt: json['CreatedAt'] as String?, dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), description: json['Description'] as String?, - domains: (json['Domains'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + domains: + (json['Domains'] as List?)?.nonNulls.map((e) => e as String).toList(), enableSsl: json['EnableSsl'] as bool?, environment: (json['Environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentVariable.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -5280,10 +5278,8 @@ class AutoScalingThresholds { factory AutoScalingThresholds.fromJson(Map json) { return AutoScalingThresholds( - alarms: (json['Alarms'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + alarms: + (json['Alarms'] as List?)?.nonNulls.map((e) => e as String).toList(), cpuThreshold: json['CpuThreshold'] as double?, ignoreMetricsTime: json['IgnoreMetricsTime'] as int?, instanceCount: json['InstanceCount'] as int?, @@ -5452,7 +5448,7 @@ class CloudWatchLogsConfiguration { return CloudWatchLogsConfiguration( enabled: json['Enabled'] as bool?, logStreams: (json['LogStreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchLogsLogStream.fromJson(e as Map)) .toList(), @@ -6151,7 +6147,7 @@ class Deployment { duration: json['Duration'] as int?, iamUserArn: json['IamUserArn'] as String?, instanceIds: (json['InstanceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stackId: json['StackId'] as String?, @@ -6283,8 +6279,8 @@ class DeploymentCommand { factory DeploymentCommand.fromJson(Map json) { return DeploymentCommand( name: DeploymentCommandName.fromString((json['Name'] as String)), - args: (json['Args'] as Map?)?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + args: (json['Args'] as Map?)?.map((k, e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -6337,7 +6333,7 @@ class DescribeAgentVersionsResult { factory DescribeAgentVersionsResult.fromJson(Map json) { return DescribeAgentVersionsResult( agentVersions: (json['AgentVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentVersion.fromJson(e as Map)) .toList(), ); @@ -6363,7 +6359,7 @@ class DescribeAppsResult { factory DescribeAppsResult.fromJson(Map json) { return DescribeAppsResult( apps: (json['Apps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => App.fromJson(e as Map)) .toList(), ); @@ -6390,7 +6386,7 @@ class DescribeCommandsResult { factory DescribeCommandsResult.fromJson(Map json) { return DescribeCommandsResult( commands: (json['Commands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Command.fromJson(e as Map)) .toList(), ); @@ -6416,7 +6412,7 @@ class DescribeDeploymentsResult { factory DescribeDeploymentsResult.fromJson(Map json) { return DescribeDeploymentsResult( deployments: (json['Deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Deployment.fromJson(e as Map)) .toList(), ); @@ -6451,7 +6447,7 @@ class DescribeEcsClustersResult { factory DescribeEcsClustersResult.fromJson(Map json) { return DescribeEcsClustersResult( ecsClusters: (json['EcsClusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EcsCluster.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6481,7 +6477,7 @@ class DescribeElasticIpsResult { factory DescribeElasticIpsResult.fromJson(Map json) { return DescribeElasticIpsResult( elasticIps: (json['ElasticIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ElasticIp.fromJson(e as Map)) .toList(), ); @@ -6510,7 +6506,7 @@ class DescribeElasticLoadBalancersResult { Map json) { return DescribeElasticLoadBalancersResult( elasticLoadBalancers: (json['ElasticLoadBalancers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ElasticLoadBalancer.fromJson(e as Map)) .toList(), ); @@ -6537,7 +6533,7 @@ class DescribeInstancesResult { factory DescribeInstancesResult.fromJson(Map json) { return DescribeInstancesResult( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Instance.fromJson(e as Map)) .toList(), ); @@ -6563,7 +6559,7 @@ class DescribeLayersResult { factory DescribeLayersResult.fromJson(Map json) { return DescribeLayersResult( layers: (json['Layers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Layer.fromJson(e as Map)) .toList(), ); @@ -6594,7 +6590,7 @@ class DescribeLoadBasedAutoScalingResult { return DescribeLoadBasedAutoScalingResult( loadBasedAutoScalingConfigurations: (json['LoadBasedAutoScalingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBasedAutoScalingConfiguration.fromJson( e as Map)) .toList(), @@ -6651,7 +6647,7 @@ class DescribeOperatingSystemsResponse { factory DescribeOperatingSystemsResponse.fromJson(Map json) { return DescribeOperatingSystemsResponse( operatingSystems: (json['OperatingSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OperatingSystem.fromJson(e as Map)) .toList(), ); @@ -6696,7 +6692,7 @@ class DescribePermissionsResult { factory DescribePermissionsResult.fromJson(Map json) { return DescribePermissionsResult( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromJson(e as Map)) .toList(), ); @@ -6722,7 +6718,7 @@ class DescribeRaidArraysResult { factory DescribeRaidArraysResult.fromJson(Map json) { return DescribeRaidArraysResult( raidArrays: (json['RaidArrays'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RaidArray.fromJson(e as Map)) .toList(), ); @@ -6749,7 +6745,7 @@ class DescribeRdsDbInstancesResult { factory DescribeRdsDbInstancesResult.fromJson(Map json) { return DescribeRdsDbInstancesResult( rdsDbInstances: (json['RdsDbInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RdsDbInstance.fromJson(e as Map)) .toList(), ); @@ -6776,7 +6772,7 @@ class DescribeServiceErrorsResult { factory DescribeServiceErrorsResult.fromJson(Map json) { return DescribeServiceErrorsResult( serviceErrors: (json['ServiceErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceError.fromJson(e as Map)) .toList(), ); @@ -6860,7 +6856,7 @@ class DescribeStacksResult { factory DescribeStacksResult.fromJson(Map json) { return DescribeStacksResult( stacks: (json['Stacks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Stack.fromJson(e as Map)) .toList(), ); @@ -6891,7 +6887,7 @@ class DescribeTimeBasedAutoScalingResult { return DescribeTimeBasedAutoScalingResult( timeBasedAutoScalingConfigurations: (json['TimeBasedAutoScalingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeBasedAutoScalingConfiguration.fromJson( e as Map)) .toList(), @@ -6921,7 +6917,7 @@ class DescribeUserProfilesResult { factory DescribeUserProfilesResult.fromJson(Map json) { return DescribeUserProfilesResult( userProfiles: (json['UserProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserProfile.fromJson(e as Map)) .toList(), ); @@ -6947,7 +6943,7 @@ class DescribeVolumesResult { factory DescribeVolumesResult.fromJson(Map json) { return DescribeVolumesResult( volumes: (json['Volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -7170,12 +7166,12 @@ class ElasticLoadBalancer { factory ElasticLoadBalancer.fromJson(Map json) { return ElasticLoadBalancer( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dnsName: json['DnsName'] as String?, ec2InstanceIds: (json['Ec2InstanceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), elasticLoadBalancerName: json['ElasticLoadBalancerName'] as String?, @@ -7183,7 +7179,7 @@ class ElasticLoadBalancer { region: json['Region'] as String?, stackId: json['StackId'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -7585,7 +7581,7 @@ class Instance { (json['AutoScalingType'] as String?)?.let(AutoScalingType.fromString), availabilityZone: json['AvailabilityZone'] as String?, blockDeviceMappings: (json['BlockDeviceMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BlockDeviceMapping.fromJson(e as Map)) .toList(), createdAt: json['CreatedAt'] as String?, @@ -7602,7 +7598,7 @@ class Instance { instanceType: json['InstanceType'] as String?, lastServiceErrorId: json['LastServiceErrorId'] as String?, layerIds: (json['LayerIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), os: json['Os'] as String?, @@ -7620,7 +7616,7 @@ class Instance { (json['RootDeviceType'] as String?)?.let(RootDeviceType.fromString), rootDeviceVolumeId: json['RootDeviceVolumeId'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sshHostDsaKeyFingerprint: json['SshHostDsaKeyFingerprint'] as String?, @@ -8071,14 +8067,14 @@ class Layer { ? Recipes.fromJson(json['CustomRecipes'] as Map) : null, customSecurityGroupIds: (json['CustomSecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultRecipes: json['DefaultRecipes'] != null ? Recipes.fromJson(json['DefaultRecipes'] as Map) : null, defaultSecurityGroupNames: (json['DefaultSecurityGroupNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), enableAutoHealing: json['EnableAutoHealing'] as bool?, @@ -8090,7 +8086,7 @@ class Layer { : null, name: json['Name'] as String?, packages: (json['Packages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), shortname: json['Shortname'] as String?, @@ -8098,7 +8094,7 @@ class Layer { type: (json['Type'] as String?)?.let(LayerType.fromString), useEbsOptimizedInstances: json['UseEbsOptimizedInstances'] as bool?, volumeConfigurations: (json['VolumeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeConfiguration.fromJson(e as Map)) .toList(), ); @@ -8386,7 +8382,7 @@ class OperatingSystem { factory OperatingSystem.fromJson(Map json) { return OperatingSystem( configurationManagers: (json['ConfigurationManagers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OperatingSystemConfigurationManager.fromJson( e as Map)) .toList(), @@ -8767,23 +8763,19 @@ class Recipes { factory Recipes.fromJson(Map json) { return Recipes( configure: (json['Configure'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - deploy: (json['Deploy'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - setup: (json['Setup'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + deploy: + (json['Deploy'] as List?)?.nonNulls.map((e) => e as String).toList(), + setup: + (json['Setup'] as List?)?.nonNulls.map((e) => e as String).toList(), shutdown: (json['Shutdown'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), undeploy: (json['Undeploy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/ops_works_cm/v2016_11_01.dart b/aws_client/lib/src/generated/ops_works_cm/v2016_11_01.dart index 5d1f4ed43..2b294b65d 100644 --- a/aws_client/lib/src/generated/ops_works_cm/v2016_11_01.dart +++ b/aws_client/lib/src/generated/ops_works_cm/v2016_11_01.dart @@ -1618,7 +1618,7 @@ class Backup { s3DataUrl: json['S3DataUrl'] as String?, s3LogUrl: json['S3LogUrl'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serverName: json['ServerName'] as String?, @@ -1626,7 +1626,7 @@ class Backup { status: (json['Status'] as String?)?.let(BackupStatus.fromString), statusDescription: json['StatusDescription'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), toolsVersion: json['ToolsVersion'] as String?, @@ -1805,7 +1805,7 @@ class DescribeAccountAttributesResponse { Map json) { return DescribeAccountAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAttribute.fromJson(e as Map)) .toList(), ); @@ -1834,7 +1834,7 @@ class DescribeBackupsResponse { factory DescribeBackupsResponse.fromJson(Map json) { return DescribeBackupsResponse( backups: (json['Backups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Backup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1875,7 +1875,7 @@ class DescribeEventsResponse { return DescribeEventsResponse( nextToken: json['NextToken'] as String?, serverEvents: (json['ServerEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerEvent.fromJson(e as Map)) .toList(), ); @@ -1922,7 +1922,7 @@ class DescribeNodeAssociationStatusResponse { Map json) { return DescribeNodeAssociationStatusResponse( engineAttributes: (json['EngineAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngineAttribute.fromJson(e as Map)) .toList(), nodeAssociationStatus: (json['NodeAssociationStatus'] as String?) @@ -1983,7 +1983,7 @@ class DescribeServersResponse { return DescribeServersResponse( nextToken: json['NextToken'] as String?, servers: (json['Servers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Server.fromJson(e as Map)) .toList(), ); @@ -2104,7 +2104,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2354,7 +2354,7 @@ class Server { endpoint: json['Endpoint'] as String?, engine: json['Engine'] as String?, engineAttributes: (json['EngineAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngineAttribute.fromJson(e as Map)) .toList(), engineModel: json['EngineModel'] as String?, @@ -2367,7 +2367,7 @@ class Server { preferredBackupWindow: json['PreferredBackupWindow'] as String?, preferredMaintenanceWindow: json['PreferredMaintenanceWindow'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serverArn: json['ServerArn'] as String?, @@ -2376,7 +2376,7 @@ class Server { status: (json['Status'] as String?)?.let(ServerStatus.fromString), statusReason: json['StatusReason'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/organizations/v2016_11_28.dart b/aws_client/lib/src/generated/organizations/v2016_11_28.dart index 566e018db..74b360767 100644 --- a/aws_client/lib/src/generated/organizations/v2016_11_28.dart +++ b/aws_client/lib/src/generated/organizations/v2016_11_28.dart @@ -5674,12 +5674,12 @@ class Handshake { expirationTimestamp: timeStampFromJson(json['ExpirationTimestamp']), id: json['Id'] as String?, parties: (json['Parties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HandshakeParty.fromJson(e as Map)) .toList(), requestedTimestamp: timeStampFromJson(json['RequestedTimestamp']), resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HandshakeResource.fromJson(e as Map)) .toList(), state: (json['State'] as String?)?.let(HandshakeState.fromString), @@ -5844,7 +5844,7 @@ class HandshakeResource { factory HandshakeResource.fromJson(Map json) { return HandshakeResource( resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HandshakeResource.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(HandshakeResourceType.fromString), @@ -5968,7 +5968,7 @@ class ListAWSServiceAccessForOrganizationResponse { Map json) { return ListAWSServiceAccessForOrganizationResponse( enabledServicePrincipals: (json['EnabledServicePrincipals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnabledServicePrincipal.fromJson(e as Map)) .toList(), @@ -6006,7 +6006,7 @@ class ListAccountsForParentResponse { factory ListAccountsForParentResponse.fromJson(Map json) { return ListAccountsForParentResponse( accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Account.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6042,7 +6042,7 @@ class ListAccountsResponse { factory ListAccountsResponse.fromJson(Map json) { return ListAccountsResponse( accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Account.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6078,7 +6078,7 @@ class ListChildrenResponse { factory ListChildrenResponse.fromJson(Map json) { return ListChildrenResponse( children: (json['Children'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Child.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6116,7 +6116,7 @@ class ListCreateAccountStatusResponse { factory ListCreateAccountStatusResponse.fromJson(Map json) { return ListCreateAccountStatusResponse( createAccountStatuses: (json['CreateAccountStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CreateAccountStatus.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6154,7 +6154,7 @@ class ListDelegatedAdministratorsResponse { Map json) { return ListDelegatedAdministratorsResponse( delegatedAdministrators: (json['DelegatedAdministrators'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DelegatedAdministrator.fromJson(e as Map)) .toList(), @@ -6193,7 +6193,7 @@ class ListDelegatedServicesForAccountResponse { Map json) { return ListDelegatedServicesForAccountResponse( delegatedServices: (json['DelegatedServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DelegatedService.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6230,7 +6230,7 @@ class ListHandshakesForAccountResponse { factory ListHandshakesForAccountResponse.fromJson(Map json) { return ListHandshakesForAccountResponse( handshakes: (json['Handshakes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Handshake.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6268,7 +6268,7 @@ class ListHandshakesForOrganizationResponse { Map json) { return ListHandshakesForOrganizationResponse( handshakes: (json['Handshakes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Handshake.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6306,7 +6306,7 @@ class ListOrganizationalUnitsForParentResponse { return ListOrganizationalUnitsForParentResponse( nextToken: json['NextToken'] as String?, organizationalUnits: (json['OrganizationalUnits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationalUnit.fromJson(e as Map)) .toList(), ); @@ -6343,7 +6343,7 @@ class ListParentsResponse { return ListParentsResponse( nextToken: json['NextToken'] as String?, parents: (json['Parents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parent.fromJson(e as Map)) .toList(), ); @@ -6379,7 +6379,7 @@ class ListPoliciesForTargetResponse { return ListPoliciesForTargetResponse( nextToken: json['NextToken'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicySummary.fromJson(e as Map)) .toList(), ); @@ -6417,7 +6417,7 @@ class ListPoliciesResponse { return ListPoliciesResponse( nextToken: json['NextToken'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicySummary.fromJson(e as Map)) .toList(), ); @@ -6453,7 +6453,7 @@ class ListRootsResponse { return ListRootsResponse( nextToken: json['NextToken'] as String?, roots: (json['Roots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Root.fromJson(e as Map)) .toList(), ); @@ -6489,7 +6489,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6526,7 +6526,7 @@ class ListTargetsForPolicyResponse { return ListTargetsForPolicyResponse( nextToken: json['NextToken'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyTargetSummary.fromJson(e as Map)) .toList(), ); @@ -6613,7 +6613,7 @@ class Organization { return Organization( arn: json['Arn'] as String?, availablePolicyTypes: (json['AvailablePolicyTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyTypeSummary.fromJson(e as Map)) .toList(), featureSet: (json['FeatureSet'] as String?) @@ -7167,7 +7167,7 @@ class Root { id: json['Id'] as String?, name: json['Name'] as String?, policyTypes: (json['PolicyTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyTypeSummary.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/osis/v2022_01_01.dart b/aws_client/lib/src/generated/osis/v2022_01_01.dart index 4198a857b..adf188909 100644 --- a/aws_client/lib/src/generated/osis/v2022_01_01.dart +++ b/aws_client/lib/src/generated/osis/v2022_01_01.dart @@ -697,7 +697,7 @@ class ChangeProgressStatus { factory ChangeProgressStatus.fromJson(Map json) { return ChangeProgressStatus( changeProgressStages: (json['ChangeProgressStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeProgressStage.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -869,7 +869,7 @@ class GetPipelineChangeProgressResponse { Map json) { return GetPipelineChangeProgressResponse( changeProgressStatuses: (json['ChangeProgressStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeProgressStatus.fromJson(e as Map)) .toList(), ); @@ -919,7 +919,7 @@ class ListPipelineBlueprintsResponse { factory ListPipelineBlueprintsResponse.fromJson(Map json) { return ListPipelineBlueprintsResponse( blueprints: (json['Blueprints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineBlueprintSummary.fromJson(e as Map)) .toList(), @@ -953,7 +953,7 @@ class ListPipelinesResponse { return ListPipelinesResponse( nextToken: json['NextToken'] as String?, pipelines: (json['Pipelines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineSummary.fromJson(e as Map)) .toList(), ); @@ -980,7 +980,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1111,7 +1111,7 @@ class Pipeline { : null, createdAt: timeStampFromJson(json['CreatedAt']), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDestination.fromJson(e as Map)) .toList(), encryptionAtRestOptions: json['EncryptionAtRestOptions'] != null @@ -1119,7 +1119,7 @@ class Pipeline { json['EncryptionAtRestOptions'] as Map) : null, ingestEndpointUrls: (json['IngestEndpointUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedAt: timeStampFromJson(json['LastUpdatedAt']), @@ -1133,7 +1133,7 @@ class Pipeline { pipelineConfigurationBody: json['PipelineConfigurationBody'] as String?, pipelineName: json['PipelineName'] as String?, serviceVpcEndpoints: (json['ServiceVpcEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceVpcEndpoint.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(PipelineStatus.fromString), @@ -1142,11 +1142,11 @@ class Pipeline { json['StatusReason'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcEndpoints: (json['VpcEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcEndpoint.fromJson(e as Map)) .toList(), ); @@ -1430,7 +1430,7 @@ class PipelineSummary { return PipelineSummary( createdAt: timeStampFromJson(json['CreatedAt']), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDestination.fromJson(e as Map)) .toList(), lastUpdatedAt: timeStampFromJson(json['LastUpdatedAt']), @@ -1444,7 +1444,7 @@ class PipelineSummary { json['StatusReason'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1652,7 +1652,7 @@ class ValidatePipelineResponse { factory ValidatePipelineResponse.fromJson(Map json) { return ValidatePipelineResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationMessage.fromJson(e as Map)) .toList(), isValid: json['isValid'] as bool?, @@ -1799,12 +1799,10 @@ class VpcOptions { factory VpcOptions.fromJson(Map json) { return VpcOptions( - subnetIds: (json['SubnetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnetIds: + (json['SubnetIds'] as List).nonNulls.map((e) => e as String).toList(), securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcAttachmentOptions: json['VpcAttachmentOptions'] != null diff --git a/aws_client/lib/src/generated/outposts/v2019_12_03.dart b/aws_client/lib/src/generated/outposts/v2019_12_03.dart index 9c91ed68d..3baf0203d 100644 --- a/aws_client/lib/src/generated/outposts/v2019_12_03.dart +++ b/aws_client/lib/src/generated/outposts/v2019_12_03.dart @@ -1713,18 +1713,18 @@ class CatalogItem { return CatalogItem( catalogItemId: json['CatalogItemId'] as String?, eC2Capacities: (json['EC2Capacities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EC2Capacity.fromJson(e as Map)) .toList(), itemStatus: (json['ItemStatus'] as String?)?.let(CatalogItemStatus.fromString), powerKva: json['PowerKva'] as double?, supportedStorage: (json['SupportedStorage'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedStorageEnum.fromString((e as String))) .toList(), supportedUplinkGbps: (json['SupportedUplinkGbps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), weightLbs: json['WeightLbs'] as int?, @@ -1838,7 +1838,7 @@ class ComputeAttributes { return ComputeAttributes( hostId: json['HostId'] as String?, instanceFamilies: (json['InstanceFamilies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), state: (json['State'] as String?)?.let(ComputeAssetState.fromString), @@ -1889,7 +1889,7 @@ class ConnectionDetails { factory ConnectionDetails.fromJson(Map json) { return ConnectionDetails( allowedIps: (json['AllowedIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clientPublicKey: json['ClientPublicKey'] as String?, @@ -2144,7 +2144,7 @@ class GetCapacityTaskOutput { orderId: json['OrderId'] as String?, outpostId: json['OutpostId'] as String?, requestedInstancePools: (json['RequestedInstancePools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceTypeCapacity.fromJson(e as Map)) .toList(), ); @@ -2278,7 +2278,7 @@ class GetOutpostInstanceTypesOutput { factory GetOutpostInstanceTypesOutput.fromJson(Map json) { return GetOutpostInstanceTypesOutput( instanceTypes: (json['InstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceTypeItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2337,7 +2337,7 @@ class GetOutpostSupportedInstanceTypesOutput { Map json) { return GetOutpostSupportedInstanceTypesOutput( instanceTypes: (json['InstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceTypeItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2507,7 +2507,7 @@ class LineItem { factory LineItem.fromJson(Map json) { return LineItem( assetInformationList: (json['AssetInformationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineItemAssetInformation.fromJson(e as Map)) .toList(), @@ -2565,7 +2565,7 @@ class LineItemAssetInformation { return LineItemAssetInformation( assetId: json['AssetId'] as String?, macAddressList: (json['MacAddressList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2639,7 +2639,7 @@ class ListAssetsOutput { factory ListAssetsOutput.fromJson(Map json) { return ListAssetsOutput( assets: (json['Assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2669,7 +2669,7 @@ class ListCapacityTasksOutput { factory ListCapacityTasksOutput.fromJson(Map json) { return ListCapacityTasksOutput( capacityTasks: (json['CapacityTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityTaskSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2699,7 +2699,7 @@ class ListCatalogItemsOutput { factory ListCatalogItemsOutput.fromJson(Map json) { return ListCatalogItemsOutput( catalogItems: (json['CatalogItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CatalogItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2731,7 +2731,7 @@ class ListOrdersOutput { return ListOrdersOutput( nextToken: json['NextToken'] as String?, orders: (json['Orders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrderSummary.fromJson(e as Map)) .toList(), ); @@ -2760,7 +2760,7 @@ class ListOutpostsOutput { return ListOutpostsOutput( nextToken: json['NextToken'] as String?, outposts: (json['Outposts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Outpost.fromJson(e as Map)) .toList(), ); @@ -2789,7 +2789,7 @@ class ListSitesOutput { return ListSitesOutput( nextToken: json['NextToken'] as String?, sites: (json['Sites'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Site.fromJson(e as Map)) .toList(), ); @@ -2939,7 +2939,7 @@ class Order { factory Order.fromJson(Map json) { return Order( lineItems: (json['LineItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineItem.fromJson(e as Map)) .toList(), orderFulfilledDate: timeStampFromJson(json['OrderFulfilledDate']), @@ -3593,7 +3593,7 @@ class StartCapacityTaskOutput { orderId: json['OrderId'] as String?, outpostId: json['OutpostId'] as String?, requestedInstancePools: (json['RequestedInstancePools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceTypeCapacity.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/panorama/v2019_07_24.dart b/aws_client/lib/src/generated/panorama/v2019_07_24.dart index 7f6a69b39..218a23e5a 100644 --- a/aws_client/lib/src/generated/panorama/v2019_07_24.dart +++ b/aws_client/lib/src/generated/panorama/v2019_07_24.dart @@ -1340,7 +1340,7 @@ class ApplicationInstance { ?.let(ApplicationInstanceHealthStatus.fromString), name: json['Name'] as String?, runtimeContextStates: (json['RuntimeContextStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportedRuntimeContextState.fromJson(e as Map)) .toList(), @@ -1476,7 +1476,7 @@ class CreateJobForDevicesResponse { factory CreateJobForDevicesResponse.fromJson(Map json) { return CreateJobForDevicesResponse( jobs: (json['Jobs'] as List) - .whereNotNull() + .nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), ); @@ -1784,7 +1784,7 @@ class DescribeApplicationInstanceResponse { lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), name: json['Name'] as String?, runtimeContextStates: (json['RuntimeContextStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportedRuntimeContextState.fromJson(e as Map)) .toList(), @@ -2007,7 +2007,7 @@ class DescribeDeviceResponse { factory DescribeDeviceResponse.fromJson(Map json) { return DescribeDeviceResponse( alternateSoftwares: (json['AlternateSoftwares'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlternateSoftwareMetadata.fromJson(e as Map)) .toList(), @@ -2167,7 +2167,7 @@ class DescribeNodeFromTemplateJobResponse { .map((k, e) => MapEntry(k, e as String)), templateType: TemplateType.fromString((json['TemplateType'] as String)), jobTags: (json['JobTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobResourceTags.fromJson(e as Map)) .toList(), nodeDescription: json['NodeDescription'] as String?, @@ -2384,7 +2384,7 @@ class DescribePackageImportJobResponse { statusMessage: json['StatusMessage'] as String, clientToken: json['ClientToken'] as String?, jobTags: (json['JobTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobResourceTags.fromJson(e as Map)) .toList(), ); @@ -2465,11 +2465,11 @@ class DescribePackageResponse { tags: (json['Tags'] as Map) .map((k, e) => MapEntry(k, e as String)), readAccessPrincipalArns: (json['ReadAccessPrincipalArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), writeAccessPrincipalArns: (json['WriteAccessPrincipalArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3117,7 +3117,7 @@ class ListApplicationInstanceDependenciesResponse { return ListApplicationInstanceDependenciesResponse( nextToken: json['NextToken'] as String?, packageObjects: (json['PackageObjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageObject.fromJson(e as Map)) .toList(), ); @@ -3150,7 +3150,7 @@ class ListApplicationInstanceNodeInstancesResponse { return ListApplicationInstanceNodeInstancesResponse( nextToken: json['NextToken'] as String?, nodeInstances: (json['NodeInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NodeInstance.fromJson(e as Map)) .toList(), ); @@ -3181,7 +3181,7 @@ class ListApplicationInstancesResponse { factory ListApplicationInstancesResponse.fromJson(Map json) { return ListApplicationInstancesResponse( applicationInstances: (json['ApplicationInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationInstance.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3214,7 +3214,7 @@ class ListDevicesJobsResponse { factory ListDevicesJobsResponse.fromJson(Map json) { return ListDevicesJobsResponse( deviceJobs: (json['DeviceJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceJob.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3246,7 +3246,7 @@ class ListDevicesResponse { factory ListDevicesResponse.fromJson(Map json) { return ListDevicesResponse( devices: (json['Devices'] as List) - .whereNotNull() + .nonNulls .map((e) => Device.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3295,7 +3295,7 @@ class ListNodeFromTemplateJobsResponse { factory ListNodeFromTemplateJobsResponse.fromJson(Map json) { return ListNodeFromTemplateJobsResponse( nodeFromTemplateJobs: (json['NodeFromTemplateJobs'] as List) - .whereNotNull() + .nonNulls .map((e) => NodeFromTemplateJob.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3328,7 +3328,7 @@ class ListNodesResponse { return ListNodesResponse( nextToken: json['NextToken'] as String?, nodes: (json['Nodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Node.fromJson(e as Map)) .toList(), ); @@ -3359,7 +3359,7 @@ class ListPackageImportJobsResponse { factory ListPackageImportJobsResponse.fromJson(Map json) { return ListPackageImportJobsResponse( packageImportJobs: (json['PackageImportJobs'] as List) - .whereNotNull() + .nonNulls .map((e) => PackageImportJob.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3392,7 +3392,7 @@ class ListPackagesResponse { return ListPackagesResponse( nextToken: json['NextToken'] as String?, packages: (json['Packages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageListItem.fromJson(e as Map)) .toList(), ); @@ -3933,11 +3933,11 @@ class NodeInterface { factory NodeInterface.fromJson(Map json) { return NodeInterface( inputs: (json['Inputs'] as List) - .whereNotNull() + .nonNulls .map((e) => NodeInputPort.fromJson(e as Map)) .toList(), outputs: (json['Outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => NodeOutputPort.fromJson(e as Map)) .toList(), ); @@ -4041,7 +4041,7 @@ class NtpPayload { factory NtpPayload.fromJson(Map json) { return NtpPayload( ntpServers: (json['NtpServers'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -4740,8 +4740,7 @@ class StaticIpConnectionInfo { factory StaticIpConnectionInfo.fromJson(Map json) { return StaticIpConnectionInfo( defaultGateway: json['DefaultGateway'] as String, - dns: - (json['Dns'] as List).whereNotNull().map((e) => e as String).toList(), + dns: (json['Dns'] as List).nonNulls.map((e) => e as String).toList(), ipAddress: json['IpAddress'] as String, mask: json['Mask'] as String, ); diff --git a/aws_client/lib/src/generated/payment_cryptography/v2021_09_14.dart b/aws_client/lib/src/generated/payment_cryptography/v2021_09_14.dart index 53fb21571..55490eefd 100644 --- a/aws_client/lib/src/generated/payment_cryptography/v2021_09_14.dart +++ b/aws_client/lib/src/generated/payment_cryptography/v2021_09_14.dart @@ -3215,7 +3215,7 @@ class ListAliasesOutput { factory ListAliasesOutput.fromJson(Map json) { return ListAliasesOutput( aliases: (json['Aliases'] as List) - .whereNotNull() + .nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3249,7 +3249,7 @@ class ListKeysOutput { factory ListKeysOutput.fromJson(Map json) { return ListKeysOutput( keys: (json['Keys'] as List) - .whereNotNull() + .nonNulls .map((e) => KeySummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3283,7 +3283,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/pca_connector_ad/v2018_05_10.dart b/aws_client/lib/src/generated/pca_connector_ad/v2018_05_10.dart index 57c809150..78dfaa4c6 100644 --- a/aws_client/lib/src/generated/pca_connector_ad/v2018_05_10.dart +++ b/aws_client/lib/src/generated/pca_connector_ad/v2018_05_10.dart @@ -1160,7 +1160,7 @@ class ApplicationPolicies { factory ApplicationPolicies.fromJson(Map json) { return ApplicationPolicies( policies: (json['Policies'] as List) - .whereNotNull() + .nonNulls .map((e) => ApplicationPolicy.fromJson(e as Map)) .toList(), critical: json['Critical'] as bool?, @@ -2619,7 +2619,7 @@ class ListConnectorsResponse { factory ListConnectorsResponse.fromJson(Map json) { return ListConnectorsResponse( connectors: (json['Connectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectorSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2654,7 +2654,7 @@ class ListDirectoryRegistrationsResponse { Map json) { return ListDirectoryRegistrationsResponse( directoryRegistrations: (json['DirectoryRegistrations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectoryRegistrationSummary.fromJson(e as Map)) .toList(), @@ -2693,7 +2693,7 @@ class ListServicePrincipalNamesResponse { return ListServicePrincipalNamesResponse( nextToken: json['NextToken'] as String?, servicePrincipalNames: (json['ServicePrincipalNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServicePrincipalNameSummary.fromJson(e as Map)) .toList(), @@ -2753,7 +2753,7 @@ class ListTemplateGroupAccessControlEntriesResponse { Map json) { return ListTemplateGroupAccessControlEntriesResponse( accessControlEntries: (json['AccessControlEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessControlEntrySummary.fromJson(e as Map)) .toList(), @@ -2790,7 +2790,7 @@ class ListTemplatesResponse { return ListTemplatesResponse( nextToken: json['NextToken'] as String?, templates: (json['Templates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateSummary.fromJson(e as Map)) .toList(), ); @@ -2846,7 +2846,7 @@ class PrivateKeyAttributesV2 { keySpec: KeySpec.fromString((json['KeySpec'] as String)), minimalKeyLength: json['MinimalKeyLength'] as int, cryptoProviders: (json['CryptoProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2900,7 +2900,7 @@ class PrivateKeyAttributesV3 { json['KeyUsageProperty'] as Map), minimalKeyLength: json['MinimalKeyLength'] as int, cryptoProviders: (json['CryptoProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2957,7 +2957,7 @@ class PrivateKeyAttributesV4 { algorithm: (json['Algorithm'] as String?)?.let(PrivateKeyAlgorithm.fromString), cryptoProviders: (json['CryptoProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), keyUsageProperty: json['KeyUsageProperty'] != null @@ -3975,7 +3975,7 @@ class TemplateV2 { subjectNameFlags: SubjectNameFlagsV2.fromJson( json['SubjectNameFlags'] as Map), supersededTemplates: (json['SupersededTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4074,7 +4074,7 @@ class TemplateV3 { subjectNameFlags: SubjectNameFlagsV3.fromJson( json['SubjectNameFlags'] as Map), supersededTemplates: (json['SupersededTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4179,7 +4179,7 @@ class TemplateV4 { hashAlgorithm: (json['HashAlgorithm'] as String?)?.let(HashAlgorithm.fromString), supersededTemplates: (json['SupersededTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4279,7 +4279,7 @@ class VpcInformation { factory VpcInformation.fromJson(Map json) { return VpcInformation( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/personalize/v2018_05_22.dart b/aws_client/lib/src/generated/personalize/v2018_05_22.dart index 65c450215..139f4e55b 100644 --- a/aws_client/lib/src/generated/personalize/v2018_05_22.dart +++ b/aws_client/lib/src/generated/personalize/v2018_05_22.dart @@ -4118,7 +4118,7 @@ class AutoMLConfig { return AutoMLConfig( metricName: json['metricName'] as String?, recipeList: (json['recipeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5167,10 +5167,8 @@ class CategoricalHyperParameterRange { factory CategoricalHyperParameterRange.fromJson(Map json) { return CategoricalHyperParameterRange( name: json['name'] as String?, - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6806,10 +6804,8 @@ class DefaultCategoricalHyperParameterRange { return DefaultCategoricalHyperParameterRange( isTunable: json['isTunable'] as bool?, name: json['name'] as String?, - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6896,19 +6892,19 @@ class DefaultHyperParameterRanges { return DefaultHyperParameterRanges( categoricalHyperParameterRanges: (json['categoricalHyperParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefaultCategoricalHyperParameterRange.fromJson( e as Map)) .toList(), continuousHyperParameterRanges: (json['continuousHyperParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefaultContinuousHyperParameterRange.fromJson( e as Map)) .toList(), integerHyperParameterRanges: (json['integerHyperParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefaultIntegerHyperParameterRange.fromJson( e as Map)) .toList(), @@ -8066,19 +8062,19 @@ class HyperParameterRanges { return HyperParameterRanges( categoricalHyperParameterRanges: (json['categoricalHyperParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CategoricalHyperParameterRange.fromJson( e as Map)) .toList(), continuousHyperParameterRanges: (json['continuousHyperParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContinuousHyperParameterRange.fromJson(e as Map)) .toList(), integerHyperParameterRanges: (json['integerHyperParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegerHyperParameterRange.fromJson(e as Map)) .toList(), @@ -8184,7 +8180,7 @@ class ListBatchInferenceJobsResponse { factory ListBatchInferenceJobsResponse.fromJson(Map json) { return ListBatchInferenceJobsResponse( batchInferenceJobs: (json['batchInferenceJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchInferenceJobSummary.fromJson(e as Map)) .toList(), @@ -8218,7 +8214,7 @@ class ListBatchSegmentJobsResponse { factory ListBatchSegmentJobsResponse.fromJson(Map json) { return ListBatchSegmentJobsResponse( batchSegmentJobs: (json['batchSegmentJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BatchSegmentJobSummary.fromJson(e as Map)) .toList(), @@ -8251,7 +8247,7 @@ class ListCampaignsResponse { factory ListCampaignsResponse.fromJson(Map json) { return ListCampaignsResponse( campaigns: (json['campaigns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CampaignSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8283,7 +8279,7 @@ class ListDataDeletionJobsResponse { factory ListDataDeletionJobsResponse.fromJson(Map json) { return ListDataDeletionJobsResponse( dataDeletionJobs: (json['dataDeletionJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DataDeletionJobSummary.fromJson(e as Map)) .toList(), @@ -8316,7 +8312,7 @@ class ListDatasetExportJobsResponse { factory ListDatasetExportJobsResponse.fromJson(Map json) { return ListDatasetExportJobsResponse( datasetExportJobs: (json['datasetExportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetExportJobSummary.fromJson(e as Map)) .toList(), @@ -8349,7 +8345,7 @@ class ListDatasetGroupsResponse { factory ListDatasetGroupsResponse.fromJson(Map json) { return ListDatasetGroupsResponse( datasetGroups: (json['datasetGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8381,7 +8377,7 @@ class ListDatasetImportJobsResponse { factory ListDatasetImportJobsResponse.fromJson(Map json) { return ListDatasetImportJobsResponse( datasetImportJobs: (json['datasetImportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetImportJobSummary.fromJson(e as Map)) .toList(), @@ -8415,7 +8411,7 @@ class ListDatasetsResponse { factory ListDatasetsResponse.fromJson(Map json) { return ListDatasetsResponse( datasets: (json['datasets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8447,7 +8443,7 @@ class ListEventTrackersResponse { factory ListEventTrackersResponse.fromJson(Map json) { return ListEventTrackersResponse( eventTrackers: (json['eventTrackers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventTrackerSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8479,7 +8475,7 @@ class ListFiltersResponse { factory ListFiltersResponse.fromJson(Map json) { return ListFiltersResponse( filters: (json['Filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8514,7 +8510,7 @@ class ListMetricAttributionMetricsResponse { Map json) { return ListMetricAttributionMetricsResponse( metrics: (json['metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricAttribute.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8547,7 +8543,7 @@ class ListMetricAttributionsResponse { factory ListMetricAttributionsResponse.fromJson(Map json) { return ListMetricAttributionsResponse( metricAttributions: (json['metricAttributions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricAttributionSummary.fromJson(e as Map)) .toList(), @@ -8581,7 +8577,7 @@ class ListRecipesResponse { return ListRecipesResponse( nextToken: json['nextToken'] as String?, recipes: (json['recipes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecipeSummary.fromJson(e as Map)) .toList(), ); @@ -8613,7 +8609,7 @@ class ListRecommendersResponse { return ListRecommendersResponse( nextToken: json['nextToken'] as String?, recommenders: (json['recommenders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommenderSummary.fromJson(e as Map)) .toList(), ); @@ -8645,7 +8641,7 @@ class ListSchemasResponse { return ListSchemasResponse( nextToken: json['nextToken'] as String?, schemas: (json['schemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetSchemaSummary.fromJson(e as Map)) .toList(), ); @@ -8677,7 +8673,7 @@ class ListSolutionVersionsResponse { return ListSolutionVersionsResponse( nextToken: json['nextToken'] as String?, solutionVersions: (json['solutionVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SolutionVersionSummary.fromJson(e as Map)) .toList(), @@ -8710,7 +8706,7 @@ class ListSolutionsResponse { return ListSolutionsResponse( nextToken: json['nextToken'] as String?, solutions: (json['solutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SolutionSummary.fromJson(e as Map)) .toList(), ); @@ -8737,7 +8733,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -10366,10 +10362,10 @@ class TrainingDataConfig { factory TrainingDataConfig.fromJson(Map json) { return TrainingDataConfig( - excludedDatasetColumns: (json['excludedDatasetColumns'] - as Map?) - ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + excludedDatasetColumns: + (json['excludedDatasetColumns'] as Map?)?.map( + (k, e) => MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), ); } diff --git a/aws_client/lib/src/generated/personalize_runtime/v2018_05_22.dart b/aws_client/lib/src/generated/personalize_runtime/v2018_05_22.dart index dfef6e4f3..739971d87 100644 --- a/aws_client/lib/src/generated/personalize_runtime/v2018_05_22.dart +++ b/aws_client/lib/src/generated/personalize_runtime/v2018_05_22.dart @@ -379,7 +379,7 @@ class GetActionRecommendationsResponse { factory GetActionRecommendationsResponse.fromJson(Map json) { return GetActionRecommendationsResponse( actionList: (json['actionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictedAction.fromJson(e as Map)) .toList(), recommendationId: json['recommendationId'] as String?, @@ -412,7 +412,7 @@ class GetPersonalizedRankingResponse { factory GetPersonalizedRankingResponse.fromJson(Map json) { return GetPersonalizedRankingResponse( personalizedRanking: (json['personalizedRanking'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictedItem.fromJson(e as Map)) .toList(), recommendationId: json['recommendationId'] as String?, @@ -446,7 +446,7 @@ class GetRecommendationsResponse { factory GetRecommendationsResponse.fromJson(Map json) { return GetRecommendationsResponse( itemList: (json['itemList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictedItem.fromJson(e as Map)) .toList(), recommendationId: json['recommendationId'] as String?, @@ -555,10 +555,8 @@ class PredictedItem { metadata: (json['metadata'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), promotionName: json['promotionName'] as String?, - reason: (json['reason'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + reason: + (json['reason'] as List?)?.nonNulls.map((e) => e as String).toList(), score: json['score'] as double?, ); } diff --git a/aws_client/lib/src/generated/pi/v2018_02_27.dart b/aws_client/lib/src/generated/pi/v2018_02_27.dart index 1107fa457..6e273995a 100644 --- a/aws_client/lib/src/generated/pi/v2018_02_27.dart +++ b/aws_client/lib/src/generated/pi/v2018_02_27.dart @@ -1136,7 +1136,7 @@ class AnalysisReport { endTime: timeStampFromJson(json['EndTime']), identifier: json['Identifier'] as String?, insights: (json['Insights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Insight.fromJson(e as Map)) .toList(), serviceType: @@ -1205,7 +1205,7 @@ class AnalysisReportSummary { startTime: timeStampFromJson(json['StartTime']), status: (json['Status'] as String?)?.let(AnalysisStatus.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1398,13 +1398,13 @@ class DescribeDimensionKeysResponse { alignedEndTime: timeStampFromJson(json['AlignedEndTime']), alignedStartTime: timeStampFromJson(json['AlignedStartTime']), keys: (json['Keys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionKeyDescription.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponsePartitionKey.fromJson(e as Map)) .toList(), ); @@ -1760,7 +1760,7 @@ class DimensionGroupDetail { factory DimensionGroupDetail.fromJson(Map json) { return DimensionGroupDetail( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionDetail.fromJson(e as Map)) .toList(), group: json['Group'] as String?, @@ -1808,7 +1808,7 @@ class DimensionKeyDescription { dimensions: (json['Dimensions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), partitions: (json['Partitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), total: json['Total'] as double?, @@ -1998,7 +1998,7 @@ class GetDimensionKeyDetailsResponse { factory GetDimensionKeyDetailsResponse.fromJson(Map json) { return GetDimensionKeyDetailsResponse( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionKeyDetail.fromJson(e as Map)) .toList(), ); @@ -2116,7 +2116,7 @@ class GetResourceMetricsResponse { alignedStartTime: timeStampFromJson(json['AlignedStartTime']), identifier: json['Identifier'] as String?, metricList: (json['MetricList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricKeyDataPoints.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2204,25 +2204,25 @@ class Insight { return Insight( insightId: json['InsightId'] as String, baselineData: (json['BaselineData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Data.fromJson(e as Map)) .toList(), context: (json['Context'] as String?)?.let(ContextType.fromString), description: json['Description'] as String?, endTime: timeStampFromJson(json['EndTime']), insightData: (json['InsightData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Data.fromJson(e as Map)) .toList(), insightType: json['InsightType'] as String?, recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), severity: (json['Severity'] as String?)?.let(Severity.fromString), startTime: timeStampFromJson(json['StartTime']), supportingInsights: (json['SupportingInsights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Insight.fromJson(e as Map)) .toList(), ); @@ -2274,7 +2274,7 @@ class ListAvailableResourceDimensionsResponse { Map json) { return ListAvailableResourceDimensionsResponse( metricDimensions: (json['MetricDimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDimensionGroups.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2311,7 +2311,7 @@ class ListAvailableResourceMetricsResponse { Map json) { return ListAvailableResourceMetricsResponse( metrics: (json['Metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ResponseResourceMetric.fromJson(e as Map)) .toList(), @@ -2348,7 +2348,7 @@ class ListPerformanceAnalysisReportsResponse { Map json) { return ListPerformanceAnalysisReportsResponse( analysisReports: (json['AnalysisReports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisReportSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2377,7 +2377,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2407,7 +2407,7 @@ class MetricDimensionGroups { factory MetricDimensionGroups.fromJson(Map json) { return MetricDimensionGroups( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionGroupDetail.fromJson(e as Map)) .toList(), metric: json['Metric'] as String?, @@ -2442,7 +2442,7 @@ class MetricKeyDataPoints { factory MetricKeyDataPoints.fromJson(Map json) { return MetricKeyDataPoints( dataPoints: (json['DataPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataPoint.fromJson(e as Map)) .toList(), key: json['Key'] != null diff --git a/aws_client/lib/src/generated/pinpoint/v2016_12_01.dart b/aws_client/lib/src/generated/pinpoint/v2016_12_01.dart index 55cf636f3..12ccf59a9 100644 --- a/aws_client/lib/src/generated/pinpoint/v2016_12_01.dart +++ b/aws_client/lib/src/generated/pinpoint/v2016_12_01.dart @@ -6288,7 +6288,7 @@ class ActivitiesResponse { factory ActivitiesResponse.fromJson(Map json) { return ActivitiesResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => ActivityResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7038,7 +7038,7 @@ class ApplicationsResponse { factory ApplicationsResponse.fromJson(Map json) { return ApplicationsResponse( item: (json['Item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7088,10 +7088,8 @@ class AttributeDimension { factory AttributeDimension.fromJson(Map json) { return AttributeDimension( - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), attributeType: (json['AttributeType'] as String?)?.let(AttributeType.fromString), ); @@ -7165,7 +7163,7 @@ class AttributesResource { applicationId: json['ApplicationId'] as String, attributeType: json['AttributeType'] as String, attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7456,7 +7454,7 @@ class BaseKpiResult { factory BaseKpiResult.fromJson(Map json) { return BaseKpiResult( rows: (json['Rows'] as List) - .whereNotNull() + .nonNulls .map((e) => ResultRow.fromJson(e as Map)) .toList(), ); @@ -7626,7 +7624,7 @@ class CampaignEmailMessage { body: json['Body'] as String?, fromAddress: json['FromAddress'] as String?, headers: (json['Headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageHeader.fromJson(e as Map)) .toList(), htmlBody: json['HtmlBody'] as String?, @@ -7764,7 +7762,7 @@ class CampaignInAppMessage { return CampaignInAppMessage( body: json['Body'] as String?, content: (json['Content'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InAppMessageContent.fromJson(e as Map)) .toList(), customConfig: (json['CustomConfig'] as Map?) @@ -7980,7 +7978,7 @@ class CampaignResponse { segmentId: json['SegmentId'] as String, segmentVersion: json['SegmentVersion'] as int, additionalTreatments: (json['AdditionalTreatments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TreatmentResource.fromJson(e as Map)) .toList(), customDeliveryConfiguration: json['CustomDeliveryConfiguration'] != null @@ -8223,7 +8221,7 @@ class CampaignsResponse { factory CampaignsResponse.fromJson(Map json) { return CampaignsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => CampaignResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8392,7 +8390,7 @@ class Condition { factory Condition.fromJson(Map json) { return Condition( conditions: (json['Conditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimpleCondition.fromJson(e as Map)) .toList(), operator: (json['Operator'] as String?)?.let(Operator.fromString), @@ -8920,7 +8918,7 @@ class CustomDeliveryConfiguration { return CustomDeliveryConfiguration( deliveryUri: json['DeliveryUri'] as String, endpointTypes: (json['EndpointTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointTypesElement.fromString((e as String))) .toList(), ); @@ -8999,7 +8997,7 @@ class CustomMessageActivity { return CustomMessageActivity( deliveryUri: json['DeliveryUri'] as String?, endpointTypes: (json['EndpointTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointTypesElement.fromString((e as String))) .toList(), messageConfig: json['MessageConfig'] != null @@ -10250,7 +10248,7 @@ class EmailTemplateResponse { arn: json['Arn'] as String?, defaultSubstitutions: json['DefaultSubstitutions'] as String?, headers: (json['Headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageHeader.fromJson(e as Map)) .toList(), htmlPart: json['HtmlPart'] as String?, @@ -10911,8 +10909,7 @@ class EndpointResponse { address: json['Address'] as String?, applicationId: json['ApplicationId'] as String?, attributes: (json['Attributes'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), channelType: (json['ChannelType'] as String?)?.let(ChannelType.fromString), cohortId: json['CohortId'] as String?, @@ -11052,9 +11049,9 @@ class EndpointUser { factory EndpointUser.fromJson(Map json) { return EndpointUser( - userAttributes: (json['UserAttributes'] as Map?)?.map( - (k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + userAttributes: (json['UserAttributes'] as Map?)?.map((k, + e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), userId: json['UserId'] as String?, ); } @@ -11083,7 +11080,7 @@ class EndpointsResponse { factory EndpointsResponse.fromJson(Map json) { return EndpointsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => EndpointResponse.fromJson(e as Map)) .toList(), ); @@ -11679,7 +11676,7 @@ class ExportJobResponse { completionDate: json['CompletionDate'] as String?, failedPieces: json['FailedPieces'] as int?, failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), totalFailures: json['TotalFailures'] as int?, @@ -11741,7 +11738,7 @@ class ExportJobsResponse { factory ExportJobsResponse.fromJson(Map json) { return ExportJobsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => ExportJobResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13265,7 +13262,7 @@ class ImportJobResponse { completionDate: json['CompletionDate'] as String?, failedPieces: json['FailedPieces'] as int?, failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), totalFailures: json['TotalFailures'] as int?, @@ -13327,7 +13324,7 @@ class ImportJobsResponse { factory ImportJobsResponse.fromJson(Map json) { return ImportJobsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => ImportJobResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13408,7 +13405,7 @@ class InAppMessage { factory InAppMessage.fromJson(Map json) { return InAppMessage( content: (json['Content'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InAppMessageContent.fromJson(e as Map)) .toList(), customConfig: (json['CustomConfig'] as Map?) @@ -13722,7 +13719,7 @@ class InAppMessagesResponse { factory InAppMessagesResponse.fromJson(Map json) { return InAppMessagesResponse( inAppMessageCampaigns: (json['InAppMessageCampaigns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InAppMessageCampaign.fromJson(e as Map)) .toList(), ); @@ -13855,7 +13852,7 @@ class InAppTemplateResponse { templateType: TemplateType.fromString((json['TemplateType'] as String)), arn: json['Arn'] as String?, content: (json['Content'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InAppMessageContent.fromJson(e as Map)) .toList(), customConfig: (json['CustomConfig'] as Map?) @@ -14596,7 +14593,7 @@ class JourneyResponse { : null, state: (json['State'] as String?)?.let(State.fromString), timezoneEstimationMethods: (json['TimezoneEstimationMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TimezoneEstimationMethodsElement.fromString((e as String))) .toList(), @@ -14886,7 +14883,7 @@ class JourneyRunsResponse { factory JourneyRunsResponse.fromJson(Map json) { return JourneyRunsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => JourneyRunResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15119,7 +15116,7 @@ class JourneysResponse { factory JourneysResponse.fromJson(Map json) { return JourneysResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => JourneyResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15189,7 +15186,7 @@ class ListRecommenderConfigurationsResponse { Map json) { return ListRecommenderConfigurationsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => RecommenderConfigurationResponse.fromJson( e as Map)) .toList(), @@ -15864,7 +15861,7 @@ class MultiConditionalSplitActivity { factory MultiConditionalSplitActivity.fromJson(Map json) { return MultiConditionalSplitActivity( branches: (json['Branches'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MultiConditionalBranch.fromJson(e as Map)) .toList(), @@ -16603,7 +16600,7 @@ class RandomSplitActivity { factory RandomSplitActivity.fromJson(Map json) { return RandomSplitActivity( branches: (json['Branches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RandomSplitEntry.fromJson(e as Map)) .toList(), ); @@ -16911,11 +16908,11 @@ class ResultRow { factory ResultRow.fromJson(Map json) { return ResultRow( groupedBys: (json['GroupedBys'] as List) - .whereNotNull() + .nonNulls .map((e) => ResultRowValue.fromJson(e as Map)) .toList(), values: (json['Values'] as List) - .whereNotNull() + .nonNulls .map((e) => ResultRowValue.fromJson(e as Map)) .toList(), ); @@ -17774,11 +17771,11 @@ class SegmentGroup { factory SegmentGroup.fromJson(Map json) { return SegmentGroup( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentDimensions.fromJson(e as Map)) .toList(), sourceSegments: (json['SourceSegments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentReference.fromJson(e as Map)) .toList(), sourceType: (json['SourceType'] as String?)?.let(SourceType.fromString), @@ -17821,7 +17818,7 @@ class SegmentGroupList { factory SegmentGroupList.fromJson(Map json) { return SegmentGroupList( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentGroup.fromJson(e as Map)) .toList(), include: (json['Include'] as String?)?.let(Include.fromString), @@ -18136,7 +18133,7 @@ class SegmentsResponse { factory SegmentsResponse.fromJson(Map json) { return SegmentsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => SegmentResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -18428,10 +18425,8 @@ class SetDimension { factory SetDimension.fromJson(Map json) { return SetDimension( - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), dimensionType: (json['DimensionType'] as String?)?.let(DimensionType.fromString), ); @@ -19094,7 +19089,7 @@ class TemplateVersionsResponse { factory TemplateVersionsResponse.fromJson(Map json) { return TemplateVersionsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => TemplateVersionResponse.fromJson(e as Map)) .toList(), @@ -19138,7 +19133,7 @@ class TemplatesResponse { factory TemplatesResponse.fromJson(Map json) { return TemplatesResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => TemplateResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -20994,31 +20989,31 @@ class OpenHours { custom: (json['CUSTOM'] as Map?)?.map((k, e) => MapEntry( DayOfWeek.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => OpenHoursRule.fromJson(e as Map)) .toList())), email: (json['EMAIL'] as Map?)?.map((k, e) => MapEntry( DayOfWeek.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => OpenHoursRule.fromJson(e as Map)) .toList())), push: (json['PUSH'] as Map?)?.map((k, e) => MapEntry( DayOfWeek.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => OpenHoursRule.fromJson(e as Map)) .toList())), sms: (json['SMS'] as Map?)?.map((k, e) => MapEntry( DayOfWeek.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => OpenHoursRule.fromJson(e as Map)) .toList())), voice: (json['VOICE'] as Map?)?.map((k, e) => MapEntry( DayOfWeek.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => OpenHoursRule.fromJson(e as Map)) .toList())), ); @@ -21106,23 +21101,23 @@ class ClosedDays { factory ClosedDays.fromJson(Map json) { return ClosedDays( custom: (json['CUSTOM'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClosedDaysRule.fromJson(e as Map)) .toList(), email: (json['EMAIL'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClosedDaysRule.fromJson(e as Map)) .toList(), push: (json['PUSH'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClosedDaysRule.fromJson(e as Map)) .toList(), sms: (json['SMS'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClosedDaysRule.fromJson(e as Map)) .toList(), voice: (json['VOICE'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClosedDaysRule.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/pinpoint_email/v2018_07_26.dart b/aws_client/lib/src/generated/pinpoint_email/v2018_07_26.dart index 5ee177381..6f30a410e 100644 --- a/aws_client/lib/src/generated/pinpoint_email/v2018_07_26.dart +++ b/aws_client/lib/src/generated/pinpoint_email/v2018_07_26.dart @@ -1682,7 +1682,7 @@ class CloudWatchDestination { factory CloudWatchDestination.fromJson(Map json) { return CloudWatchDestination( dimensionConfigurations: (json['DimensionConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => CloudWatchDimensionConfiguration.fromJson( e as Map)) .toList(), @@ -1948,7 +1948,7 @@ class DailyVolume { factory DailyVolume.fromJson(Map json) { return DailyVolume( domainIspPlacements: (json['DomainIspPlacements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainIspPlacement.fromJson(e as Map)) .toList(), startDate: timeStampFromJson(json['StartDate']), @@ -2346,10 +2346,8 @@ class DkimAttributes { return DkimAttributes( signingEnabled: json['SigningEnabled'] as bool?, status: (json['Status'] as String?)?.let(DkimStatus.fromString), - tokens: (json['Tokens'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tokens: + (json['Tokens'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2495,10 +2493,7 @@ class DomainDeliverabilityCampaign { return DomainDeliverabilityCampaign( campaignId: json['CampaignId'] as String?, deleteRate: json['DeleteRate'] as double?, - esps: (json['Esps'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + esps: (json['Esps'] as List?)?.nonNulls.map((e) => e as String).toList(), firstSeenDateTime: timeStampFromJson(json['FirstSeenDateTime']), fromAddress: json['FromAddress'] as String?, imageUrl: json['ImageUrl'] as String?, @@ -2508,7 +2503,7 @@ class DomainDeliverabilityCampaign { readDeleteRate: json['ReadDeleteRate'] as double?, readRate: json['ReadRate'] as double?, sendingIps: (json['SendingIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), spamCount: json['SpamCount'] as int?, @@ -2779,7 +2774,7 @@ class EventDestination { factory EventDestination.fromJson(Map json) { return EventDestination( matchingEventTypes: (json['MatchingEventTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => EventType.fromString((e as String))) .toList(), name: json['Name'] as String, @@ -3023,7 +3018,7 @@ class GetBlacklistReportsResponse { (k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map( (e) => BlacklistEntry.fromJson(e as Map)) .toList())), @@ -3052,7 +3047,7 @@ class GetConfigurationSetEventDestinationsResponse { Map json) { return GetConfigurationSetEventDestinationsResponse( eventDestinations: (json['EventDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDestination.fromJson(e as Map)) .toList(), ); @@ -3116,7 +3111,7 @@ class GetConfigurationSetResponse { json['SendingOptions'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trackingOptions: json['TrackingOptions'] != null @@ -3191,7 +3186,7 @@ class GetDedicatedIpsResponse { factory GetDedicatedIpsResponse.fromJson(Map json) { return GetDedicatedIpsResponse( dedicatedIps: (json['DedicatedIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DedicatedIp.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3254,13 +3249,13 @@ class GetDeliverabilityDashboardOptionsResponse { accountStatus: (json['AccountStatus'] as String?) ?.let(DeliverabilityDashboardAccountStatus.fromString), activeSubscribedDomains: (json['ActiveSubscribedDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainDeliverabilityTrackingOption.fromJson( e as Map)) .toList(), pendingExpirationSubscribedDomains: (json['PendingExpirationSubscribedDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainDeliverabilityTrackingOption.fromJson( e as Map)) .toList(), @@ -3325,14 +3320,14 @@ class GetDeliverabilityTestReportResponse { deliverabilityTestReport: DeliverabilityTestReport.fromJson( json['DeliverabilityTestReport'] as Map), ispPlacements: (json['IspPlacements'] as List) - .whereNotNull() + .nonNulls .map((e) => IspPlacement.fromJson(e as Map)) .toList(), overallPlacement: PlacementStatistics.fromJson( json['OverallPlacement'] as Map), message: json['Message'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3404,7 +3399,7 @@ class GetDomainStatisticsReportResponse { Map json) { return GetDomainStatisticsReportResponse( dailyVolumes: (json['DailyVolumes'] as List) - .whereNotNull() + .nonNulls .map((e) => DailyVolume.fromJson(e as Map)) .toList(), overallVolume: @@ -3485,7 +3480,7 @@ class GetEmailIdentityResponse { json['MailFromAttributes'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), verifiedForSendingStatus: json['VerifiedForSendingStatus'] as bool?, @@ -3615,7 +3610,7 @@ class InboxPlacementTrackingOption { return InboxPlacementTrackingOption( global: json['Global'] as bool?, trackedIsps: (json['TrackedIsps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3722,7 +3717,7 @@ class ListConfigurationSetsResponse { factory ListConfigurationSetsResponse.fromJson(Map json) { return ListConfigurationSetsResponse( configurationSets: (json['ConfigurationSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -3759,7 +3754,7 @@ class ListDedicatedIpPoolsResponse { factory ListDedicatedIpPoolsResponse.fromJson(Map json) { return ListDedicatedIpPoolsResponse( dedicatedIpPools: (json['DedicatedIpPools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -3798,7 +3793,7 @@ class ListDeliverabilityTestReportsResponse { Map json) { return ListDeliverabilityTestReportsResponse( deliverabilityTestReports: (json['DeliverabilityTestReports'] as List) - .whereNotNull() + .nonNulls .map((e) => DeliverabilityTestReport.fromJson(e as Map)) .toList(), @@ -3841,7 +3836,7 @@ class ListDomainDeliverabilityCampaignsResponse { return ListDomainDeliverabilityCampaignsResponse( domainDeliverabilityCampaigns: (json['DomainDeliverabilityCampaigns'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainDeliverabilityCampaign.fromJson(e as Map)) .toList(), @@ -3881,7 +3876,7 @@ class ListEmailIdentitiesResponse { factory ListEmailIdentitiesResponse.fromJson(Map json) { return ListEmailIdentitiesResponse( emailIdentities: (json['EmailIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3911,7 +3906,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4130,7 +4125,7 @@ class OverallVolume { factory OverallVolume.fromJson(Map json) { return OverallVolume( domainIspPlacements: (json['DomainIspPlacements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainIspPlacement.fromJson(e as Map)) .toList(), readRatePercent: json['ReadRatePercent'] as double?, diff --git a/aws_client/lib/src/generated/pinpoint_sms_voice/v2018_09_05.dart b/aws_client/lib/src/generated/pinpoint_sms_voice/v2018_09_05.dart index 9a67044ac..bfef53fd7 100644 --- a/aws_client/lib/src/generated/pinpoint_sms_voice/v2018_09_05.dart +++ b/aws_client/lib/src/generated/pinpoint_sms_voice/v2018_09_05.dart @@ -439,7 +439,7 @@ class EventDestination { json['KinesisFirehoseDestination'] as Map) : null, matchingEventTypes: (json['MatchingEventTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventType.fromString((e as String))) .toList(), name: json['Name'] as String?, @@ -542,7 +542,7 @@ class GetConfigurationSetEventDestinationsResponse { Map json) { return GetConfigurationSetEventDestinationsResponse( eventDestinations: (json['EventDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDestination.fromJson(e as Map)) .toList(), ); @@ -608,7 +608,7 @@ class ListConfigurationSetsResponse { factory ListConfigurationSetsResponse.fromJson(Map json) { return ListConfigurationSetsResponse( configurationSets: (json['ConfigurationSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/pinpoint_sms_voice_v2/v2022_03_31.dart b/aws_client/lib/src/generated/pinpoint_sms_voice_v2/v2022_03_31.dart index 5a2370f8d..be63c57f8 100644 --- a/aws_client/lib/src/generated/pinpoint_sms_voice_v2/v2022_03_31.dart +++ b/aws_client/lib/src/generated/pinpoint_sms_voice_v2/v2022_03_31.dart @@ -4766,7 +4766,7 @@ class ConfigurationSetInformation { createdTimestamp: nonNullableTimeStampFromJson(json['CreatedTimestamp'] as Object), eventDestinations: (json['EventDestinations'] as List) - .whereNotNull() + .nonNulls .map((e) => EventDestination.fromJson(e as Map)) .toList(), defaultMessageType: @@ -4826,7 +4826,7 @@ class CreateConfigurationSetResult { configurationSetName: json['ConfigurationSetName'] as String?, createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4917,7 +4917,7 @@ class CreateOptOutListResult { optOutListArn: json['OptOutListArn'] as String?, optOutListName: json['OptOutListName'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5029,7 +5029,7 @@ class CreatePoolResult { sharedRoutesEnabled: json['SharedRoutesEnabled'] as bool?, status: (json['Status'] as String?)?.let(PoolStatus.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), twoWayChannelArn: json['TwoWayChannelArn'] as String?, @@ -5114,7 +5114,7 @@ class CreateProtectConfigurationResult { protectConfigurationArn: json['ProtectConfigurationArn'] as String, protectConfigurationId: json['ProtectConfigurationId'] as String, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5265,7 +5265,7 @@ class CreateRegistrationAttachmentResult { registrationAttachmentArn: json['RegistrationAttachmentArn'] as String, registrationAttachmentId: json['RegistrationAttachmentId'] as String, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5374,7 +5374,7 @@ class CreateRegistrationResult { (json['AdditionalAttributes'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5542,7 +5542,7 @@ class CreateVerifiedDestinationNumberResult { verifiedDestinationNumberId: json['VerifiedDestinationNumberId'] as String, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5637,7 +5637,7 @@ class DeleteConfigurationSetResult { (json['DefaultMessageType'] as String?)?.let(MessageType.fromString), defaultSenderId: json['DefaultSenderId'] as String?, eventDestinations: (json['EventDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDestination.fromJson(e as Map)) .toList(), ); @@ -6234,7 +6234,7 @@ class DeleteRegistrationFieldValueResult { versionNumber: json['VersionNumber'] as int, registrationAttachmentId: json['RegistrationAttachmentId'] as String?, selectChoices: (json['SelectChoices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), textValue: json['TextValue'] as String?, @@ -6493,7 +6493,7 @@ class DescribeAccountAttributesResult { factory DescribeAccountAttributesResult.fromJson(Map json) { return DescribeAccountAttributesResult( accountAttributes: (json['AccountAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAttribute.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6526,7 +6526,7 @@ class DescribeAccountLimitsResult { factory DescribeAccountLimitsResult.fromJson(Map json) { return DescribeAccountLimitsResult( accountLimits: (json['AccountLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountLimit.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6559,7 +6559,7 @@ class DescribeConfigurationSetsResult { factory DescribeConfigurationSetsResult.fromJson(Map json) { return DescribeConfigurationSetsResult( configurationSets: (json['ConfigurationSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationSetInformation.fromJson(e as Map)) .toList(), @@ -6602,7 +6602,7 @@ class DescribeKeywordsResult { factory DescribeKeywordsResult.fromJson(Map json) { return DescribeKeywordsResult( keywords: (json['Keywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeywordInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6645,7 +6645,7 @@ class DescribeOptOutListsResult { return DescribeOptOutListsResult( nextToken: json['NextToken'] as String?, optOutLists: (json['OptOutLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OptOutListInformation.fromJson(e as Map)) .toList(), ); @@ -6689,7 +6689,7 @@ class DescribeOptedOutNumbersResult { optOutListArn: json['OptOutListArn'] as String?, optOutListName: json['OptOutListName'] as String?, optedOutNumbers: (json['OptedOutNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OptedOutNumberInformation.fromJson(e as Map)) .toList(), @@ -6728,7 +6728,7 @@ class DescribePhoneNumbersResult { return DescribePhoneNumbersResult( nextToken: json['NextToken'] as String?, phoneNumbers: (json['PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => PhoneNumberInformation.fromJson(e as Map)) .toList(), @@ -6763,7 +6763,7 @@ class DescribePoolsResult { return DescribePoolsResult( nextToken: json['NextToken'] as String?, pools: (json['Pools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PoolInformation.fromJson(e as Map)) .toList(), ); @@ -6798,7 +6798,7 @@ class DescribeProtectConfigurationsResult { return DescribeProtectConfigurationsResult( nextToken: json['NextToken'] as String?, protectConfigurations: (json['ProtectConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectConfigurationInformation.fromJson( e as Map)) .toList(), @@ -6834,7 +6834,7 @@ class DescribeRegistrationAttachmentsResult { Map json) { return DescribeRegistrationAttachmentsResult( registrationAttachments: (json['RegistrationAttachments'] as List) - .whereNotNull() + .nonNulls .map((e) => RegistrationAttachmentsInformation.fromJson( e as Map)) .toList(), @@ -6876,7 +6876,7 @@ class DescribeRegistrationFieldDefinitionsResult { return DescribeRegistrationFieldDefinitionsResult( registrationFieldDefinitions: (json['RegistrationFieldDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => RegistrationFieldDefinition.fromJson(e as Map)) .toList(), @@ -6928,7 +6928,7 @@ class DescribeRegistrationFieldValuesResult { return DescribeRegistrationFieldValuesResult( registrationArn: json['RegistrationArn'] as String, registrationFieldValues: (json['RegistrationFieldValues'] as List) - .whereNotNull() + .nonNulls .map((e) => RegistrationFieldValueInformation.fromJson( e as Map)) .toList(), @@ -6977,7 +6977,7 @@ class DescribeRegistrationSectionDefinitionsResult { return DescribeRegistrationSectionDefinitionsResult( registrationSectionDefinitions: (json['RegistrationSectionDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => RegistrationSectionDefinition.fromJson(e as Map)) .toList(), @@ -7016,7 +7016,7 @@ class DescribeRegistrationTypeDefinitionsResult { Map json) { return DescribeRegistrationTypeDefinitionsResult( registrationTypeDefinitions: (json['RegistrationTypeDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => RegistrationTypeDefinition.fromJson(e as Map)) .toList(), @@ -7061,7 +7061,7 @@ class DescribeRegistrationVersionsResult { registrationArn: json['RegistrationArn'] as String, registrationId: json['RegistrationId'] as String, registrationVersions: (json['RegistrationVersions'] as List) - .whereNotNull() + .nonNulls .map((e) => RegistrationVersionInformation.fromJson( e as Map)) .toList(), @@ -7099,7 +7099,7 @@ class DescribeRegistrationsResult { factory DescribeRegistrationsResult.fromJson(Map json) { return DescribeRegistrationsResult( registrations: (json['Registrations'] as List) - .whereNotNull() + .nonNulls .map((e) => RegistrationInformation.fromJson(e as Map)) .toList(), @@ -7135,7 +7135,7 @@ class DescribeSenderIdsResult { return DescribeSenderIdsResult( nextToken: json['NextToken'] as String?, senderIds: (json['SenderIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SenderIdInformation.fromJson(e as Map)) .toList(), ); @@ -7169,7 +7169,7 @@ class DescribeSpendLimitsResult { return DescribeSpendLimitsResult( nextToken: json['NextToken'] as String?, spendLimits: (json['SpendLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SpendLimit.fromJson(e as Map)) .toList(), ); @@ -7202,7 +7202,7 @@ class DescribeVerifiedDestinationNumbersResult { Map json) { return DescribeVerifiedDestinationNumbersResult( verifiedDestinationNumbers: (json['VerifiedDestinationNumbers'] as List) - .whereNotNull() + .nonNulls .map((e) => VerifiedDestinationNumberInformation.fromJson( e as Map)) .toList(), @@ -7464,7 +7464,7 @@ class EventDestination { enabled: json['Enabled'] as bool, eventDestinationName: json['EventDestinationName'] as String, matchingEventTypes: (json['MatchingEventTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => EventType.fromString((e as String))) .toList(), cloudWatchLogsDestination: json['CloudWatchLogsDestination'] != null @@ -7822,7 +7822,7 @@ class ListPoolOriginationIdentitiesResult { return ListPoolOriginationIdentitiesResult( nextToken: json['NextToken'] as String?, originationIdentities: (json['OriginationIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OriginationIdentityMetadata.fromJson(e as Map)) .toList(), @@ -7877,7 +7877,7 @@ class ListRegistrationAssociationsResult { return ListRegistrationAssociationsResult( registrationArn: json['RegistrationArn'] as String, registrationAssociations: (json['RegistrationAssociations'] as List) - .whereNotNull() + .nonNulls .map((e) => RegistrationAssociationMetadata.fromJson( e as Map)) .toList(), @@ -7919,7 +7919,7 @@ class ListTagsForResourceResult { return ListTagsForResourceResult( resourceArn: json['ResourceArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8146,7 +8146,7 @@ class OriginationIdentityMetadata { return OriginationIdentityMetadata( isoCountryCode: json['IsoCountryCode'] as String, numberCapabilities: (json['NumberCapabilities'] as List) - .whereNotNull() + .nonNulls .map((e) => NumberCapability.fromString((e as String))) .toList(), originationIdentity: json['OriginationIdentity'] as String, @@ -8318,7 +8318,7 @@ class PhoneNumberInformation { messageType: MessageType.fromString((json['MessageType'] as String)), monthlyLeasingPrice: json['MonthlyLeasingPrice'] as String, numberCapabilities: (json['NumberCapabilities'] as List) - .whereNotNull() + .nonNulls .map((e) => NumberCapability.fromString((e as String))) .toList(), numberType: NumberType.fromString((json['NumberType'] as String)), @@ -8876,7 +8876,7 @@ class PutRegistrationFieldValueResult { versionNumber: json['VersionNumber'] as int, registrationAttachmentId: json['RegistrationAttachmentId'] as String?, selectChoices: (json['SelectChoices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), textValue: json['TextValue'] as String?, @@ -9315,7 +9315,7 @@ class RegistrationFieldDisplayHints { exampleTextValue: json['ExampleTextValue'] as String?, longDescription: json['LongDescription'] as String?, selectOptionDescriptions: (json['SelectOptionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SelectOptionDescription.fromJson(e as Map)) .toList(), @@ -9380,7 +9380,7 @@ class RegistrationFieldValueInformation { deniedReason: json['DeniedReason'] as String?, registrationAttachmentId: json['RegistrationAttachmentId'] as String?, selectChoices: (json['SelectChoices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), textValue: json['TextValue'] as String?, @@ -9692,7 +9692,7 @@ class RegistrationTypeDefinition { json['DisplayHints'] as Map), registrationType: json['RegistrationType'] as String, supportedAssociations: (json['SupportedAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedAssociation.fromJson(e as Map)) .toList(), ); @@ -9902,7 +9902,7 @@ class RegistrationVersionInformation { json['RegistrationVersionStatusHistory'] as Map), versionNumber: json['VersionNumber'] as int, deniedReasons: (json['DeniedReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegistrationDeniedReasonInformation.fromJson( e as Map)) .toList(), @@ -10119,7 +10119,7 @@ class ReleasePhoneNumberResult { (json['MessageType'] as String?)?.let(MessageType.fromString), monthlyLeasingPrice: json['MonthlyLeasingPrice'] as String?, numberCapabilities: (json['NumberCapabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberCapability.fromString((e as String))) .toList(), numberType: (json['NumberType'] as String?)?.let(NumberType.fromString), @@ -10217,7 +10217,7 @@ class ReleaseSenderIdResult { return ReleaseSenderIdResult( isoCountryCode: json['IsoCountryCode'] as String, messageTypes: (json['MessageTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => MessageType.fromString((e as String))) .toList(), monthlyLeasingPrice: json['MonthlyLeasingPrice'] as String, @@ -10352,7 +10352,7 @@ class RequestPhoneNumberResult { (json['MessageType'] as String?)?.let(MessageType.fromString), monthlyLeasingPrice: json['MonthlyLeasingPrice'] as String?, numberCapabilities: (json['NumberCapabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberCapability.fromString((e as String))) .toList(), numberType: (json['NumberType'] as String?) @@ -10366,7 +10366,7 @@ class RequestPhoneNumberResult { selfManagedOptOutsEnabled: json['SelfManagedOptOutsEnabled'] as bool?, status: (json['Status'] as String?)?.let(NumberStatus.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), twoWayChannelArn: json['TwoWayChannelArn'] as String?, @@ -10469,7 +10469,7 @@ class RequestSenderIdResult { deletionProtectionEnabled: json['DeletionProtectionEnabled'] as bool, isoCountryCode: json['IsoCountryCode'] as String, messageTypes: (json['MessageTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => MessageType.fromString((e as String))) .toList(), monthlyLeasingPrice: json['MonthlyLeasingPrice'] as String, @@ -10477,7 +10477,7 @@ class RequestSenderIdResult { senderId: json['SenderId'] as String, senderIdArn: json['SenderIdArn'] as String, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -10580,10 +10580,8 @@ class SelectValidation { return SelectValidation( maxChoices: json['MaxChoices'] as int, minChoices: json['MinChoices'] as int, - options: (json['Options'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + options: + (json['Options'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -10804,7 +10802,7 @@ class SenderIdInformation { deletionProtectionEnabled: json['DeletionProtectionEnabled'] as bool, isoCountryCode: json['IsoCountryCode'] as String, messageTypes: (json['MessageTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => MessageType.fromString((e as String))) .toList(), monthlyLeasingPrice: json['MonthlyLeasingPrice'] as String, @@ -11501,7 +11499,7 @@ class UpdatePhoneNumberResult { (json['MessageType'] as String?)?.let(MessageType.fromString), monthlyLeasingPrice: json['MonthlyLeasingPrice'] as String?, numberCapabilities: (json['NumberCapabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberCapability.fromString((e as String))) .toList(), numberType: (json['NumberType'] as String?)?.let(NumberType.fromString), @@ -11824,7 +11822,7 @@ class UpdateSenderIdResult { deletionProtectionEnabled: json['DeletionProtectionEnabled'] as bool, isoCountryCode: json['IsoCountryCode'] as String, messageTypes: (json['MessageTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => MessageType.fromString((e as String))) .toList(), monthlyLeasingPrice: json['MonthlyLeasingPrice'] as String, diff --git a/aws_client/lib/src/generated/pipes/v2015_10_07.dart b/aws_client/lib/src/generated/pipes/v2015_10_07.dart index 73afe2a43..894225bd1 100644 --- a/aws_client/lib/src/generated/pipes/v2015_10_07.dart +++ b/aws_client/lib/src/generated/pipes/v2015_10_07.dart @@ -524,14 +524,12 @@ class AwsVpcConfiguration { factory AwsVpcConfiguration.fromJson(Map json) { return AwsVpcConfiguration( - subnets: (json['Subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), assignPublicIp: (json['AssignPublicIp'] as String?)?.let(AssignPublicIp.fromString), securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -612,18 +610,16 @@ class BatchContainerOverrides { factory BatchContainerOverrides.fromJson(Map json) { return BatchContainerOverrides( - command: (json['Command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['Command'] as List?)?.nonNulls.map((e) => e as String).toList(), environment: (json['Environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchEnvironmentVariable.fromJson(e as Map)) .toList(), instanceType: json['InstanceType'] as String?, resourceRequirements: (json['ResourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchResourceRequirement.fromJson(e as Map)) .toList(), @@ -1446,25 +1442,23 @@ class EcsContainerOverride { factory EcsContainerOverride.fromJson(Map json) { return EcsContainerOverride( - command: (json['Command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['Command'] as List?)?.nonNulls.map((e) => e as String).toList(), cpu: json['Cpu'] as int?, environment: (json['Environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => EcsEnvironmentVariable.fromJson(e as Map)) .toList(), environmentFiles: (json['EnvironmentFiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EcsEnvironmentFile.fromJson(e as Map)) .toList(), memory: json['Memory'] as int?, memoryReservation: json['MemoryReservation'] as int?, name: json['Name'] as String?, resourceRequirements: (json['ResourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => EcsResourceRequirement.fromJson(e as Map)) .toList(), @@ -1794,7 +1788,7 @@ class EcsTaskOverride { factory EcsTaskOverride.fromJson(Map json) { return EcsTaskOverride( containerOverrides: (json['ContainerOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EcsContainerOverride.fromJson(e as Map)) .toList(), cpu: json['Cpu'] as String?, @@ -1805,7 +1799,7 @@ class EcsTaskOverride { executionRoleArn: json['ExecutionRoleArn'] as String?, inferenceAcceleratorOverrides: (json['InferenceAcceleratorOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EcsInferenceAcceleratorOverride.fromJson( e as Map)) .toList(), @@ -1896,7 +1890,7 @@ class FilterCriteria { factory FilterCriteria.fromJson(Map json) { return FilterCriteria( filters: (json['Filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Filter.fromJson(e as Map)) .toList(), ); @@ -2018,7 +2012,7 @@ class ListPipesResponse { return ListPipesResponse( nextToken: json['NextToken'] as String?, pipes: (json['Pipes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Pipe.fromJson(e as Map)) .toList(), ); @@ -2222,7 +2216,7 @@ class MultiMeasureMapping { return MultiMeasureMapping( multiMeasureAttributeMappings: (json['MultiMeasureAttributeMappings'] as List) - .whereNotNull() + .nonNulls .map((e) => MultiMeasureAttributeMapping.fromJson(e as Map)) .toList(), @@ -2405,7 +2399,7 @@ class PipeEnrichmentHttpParameters { headerParameters: (json['HeaderParameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), pathParameterValues: (json['PathParameterValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), queryStringParameters: @@ -2519,7 +2513,7 @@ class PipeLogConfiguration { json['FirehoseLogDestination'] as Map) : null, includeExecutionData: (json['IncludeExecutionData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IncludeExecutionDataOption.fromString((e as String))) .toList(), level: (json['Level'] as String?)?.let(LogLevel.fromString), @@ -3174,7 +3168,7 @@ class PipeSourceSelfManagedKafkaParameters { return PipeSourceSelfManagedKafkaParameters( topicName: json['TopicName'] as String, additionalBootstrapServers: (json['AdditionalBootstrapServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), batchSize: json['BatchSize'] as int?, @@ -3346,7 +3340,7 @@ class PipeTargetBatchJobParameters { json['ContainerOverrides'] as Map) : null, dependsOn: (json['DependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchJobDependency.fromJson(e as Map)) .toList(), parameters: (json['Parameters'] as Map?) @@ -3526,7 +3520,7 @@ class PipeTargetEcsTaskParameters { return PipeTargetEcsTaskParameters( taskDefinitionArn: json['TaskDefinitionArn'] as String, capacityProviderStrategy: (json['CapacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -3542,11 +3536,11 @@ class PipeTargetEcsTaskParameters { ? EcsTaskOverride.fromJson(json['Overrides'] as Map) : null, placementConstraints: (json['PlacementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementConstraint.fromJson(e as Map)) .toList(), placementStrategy: (json['PlacementStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementStrategy.fromJson(e as Map)) .toList(), platformVersion: json['PlatformVersion'] as String?, @@ -3554,7 +3548,7 @@ class PipeTargetEcsTaskParameters { (json['PropagateTags'] as String?)?.let(PropagateTags.fromString), referenceId: json['ReferenceId'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskCount: json['TaskCount'] as int?, @@ -3642,7 +3636,7 @@ class PipeTargetEventBridgeEventBusParameters { detailType: json['DetailType'] as String?, endpointId: json['EndpointId'] as String?, resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), source: json['Source'] as String?, @@ -3692,7 +3686,7 @@ class PipeTargetHttpParameters { headerParameters: (json['HeaderParameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), pathParameterValues: (json['PathParameterValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), queryStringParameters: @@ -4012,10 +4006,7 @@ class PipeTargetRedshiftDataParameters { factory PipeTargetRedshiftDataParameters.fromJson(Map json) { return PipeTargetRedshiftDataParameters( database: json['Database'] as String, - sqls: (json['Sqls'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + sqls: (json['Sqls'] as List).nonNulls.map((e) => e as String).toList(), dbUser: json['DbUser'] as String?, secretManagerArn: json['SecretManagerArn'] as String?, statementName: json['StatementName'] as String?, @@ -4055,7 +4046,7 @@ class PipeTargetSageMakerPipelineParameters { Map json) { return PipeTargetSageMakerPipelineParameters( pipelineParameterList: (json['PipelineParameterList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SageMakerPipelineParameter.fromJson(e as Map)) .toList(), @@ -4226,7 +4217,7 @@ class PipeTargetTimestreamParameters { factory PipeTargetTimestreamParameters.fromJson(Map json) { return PipeTargetTimestreamParameters( dimensionMappings: (json['DimensionMappings'] as List) - .whereNotNull() + .nonNulls .map((e) => DimensionMapping.fromJson(e as Map)) .toList(), timeValue: json['TimeValue'] as String, @@ -4234,11 +4225,11 @@ class PipeTargetTimestreamParameters { epochTimeUnit: (json['EpochTimeUnit'] as String?)?.let(EpochTimeUnit.fromString), multiMeasureMappings: (json['MultiMeasureMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiMeasureMapping.fromJson(e as Map)) .toList(), singleMeasureMappings: (json['SingleMeasureMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SingleMeasureMapping.fromJson(e as Map)) .toList(), timeFieldType: @@ -4670,13 +4661,11 @@ class SelfManagedKafkaAccessConfigurationVpc { Map json) { return SelfManagedKafkaAccessConfigurationVpc( securityGroup: (json['SecurityGroup'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/polly/v2016_06_10.dart b/aws_client/lib/src/generated/polly/v2016_06_10.dart index 20155786b..7b60a717f 100644 --- a/aws_client/lib/src/generated/polly/v2016_06_10.dart +++ b/aws_client/lib/src/generated/polly/v2016_06_10.dart @@ -590,7 +590,7 @@ class DescribeVoicesOutput { return DescribeVoicesOutput( nextToken: json['NextToken'] as String?, voices: (json['Voices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Voice.fromJson(e as Map)) .toList(), ); @@ -900,7 +900,7 @@ class ListLexiconsOutput { factory ListLexiconsOutput.fromJson(Map json) { return ListLexiconsOutput( lexicons: (json['Lexicons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LexiconDescription.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -936,7 +936,7 @@ class ListSpeechSynthesisTasksOutput { return ListSpeechSynthesisTasksOutput( nextToken: json['NextToken'] as String?, synthesisTasks: (json['SynthesisTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SynthesisTask.fromJson(e as Map)) .toList(), ); @@ -1122,7 +1122,7 @@ class SynthesisTask { languageCode: (json['LanguageCode'] as String?)?.let(LanguageCode.fromString), lexiconNames: (json['LexiconNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), outputFormat: @@ -1132,7 +1132,7 @@ class SynthesisTask { sampleRate: json['SampleRate'] as String?, snsTopicArn: json['SnsTopicArn'] as String?, speechMarkTypes: (json['SpeechMarkTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SpeechMarkType.fromString((e as String))) .toList(), taskId: json['TaskId'] as String?, @@ -1305,7 +1305,7 @@ class Voice { factory Voice.fromJson(Map json) { return Voice( additionalLanguageCodes: (json['AdditionalLanguageCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LanguageCode.fromString((e as String))) .toList(), gender: (json['Gender'] as String?)?.let(Gender.fromString), @@ -1315,7 +1315,7 @@ class Voice { languageName: json['LanguageName'] as String?, name: json['Name'] as String?, supportedEngines: (json['SupportedEngines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Engine.fromString((e as String))) .toList(), ); diff --git a/aws_client/lib/src/generated/pricing/v2017_10_15.dart b/aws_client/lib/src/generated/pricing/v2017_10_15.dart index 004d898dd..b66f82bce 100644 --- a/aws_client/lib/src/generated/pricing/v2017_10_15.dart +++ b/aws_client/lib/src/generated/pricing/v2017_10_15.dart @@ -473,7 +473,7 @@ class DescribeServicesResponse { formatVersion: json['FormatVersion'] as String?, nextToken: json['NextToken'] as String?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Service.fromJson(e as Map)) .toList(), ); @@ -567,7 +567,7 @@ class GetAttributeValuesResponse { factory GetAttributeValuesResponse.fromJson(Map json) { return GetAttributeValuesResponse( attributeValues: (json['AttributeValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeValue.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -664,7 +664,7 @@ class ListPriceListsResponse { return ListPriceListsResponse( nextToken: json['NextToken'] as String?, priceLists: (json['PriceLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PriceList.fromJson(e as Map)) .toList(), ); @@ -724,7 +724,7 @@ class PriceList { return PriceList( currencyCode: json['CurrencyCode'] as String?, fileFormats: (json['FileFormats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), priceListArn: json['PriceListArn'] as String?, @@ -764,7 +764,7 @@ class Service { return Service( serviceCode: json['ServiceCode'] as String, attributeNames: (json['AttributeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/private_networks/v2021_12_03.dart b/aws_client/lib/src/generated/private_networks/v2021_12_03.dart index 6cfa1d9f7..bc2da6e25 100644 --- a/aws_client/lib/src/generated/private_networks/v2021_12_03.dart +++ b/aws_client/lib/src/generated/private_networks/v2021_12_03.dart @@ -1919,7 +1919,7 @@ class ListDeviceIdentifiersResponse { factory ListDeviceIdentifiersResponse.fromJson(Map json) { return ListDeviceIdentifiersResponse( deviceIdentifiers: (json['deviceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceIdentifier.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1951,7 +1951,7 @@ class ListNetworkResourcesResponse { factory ListNetworkResourcesResponse.fromJson(Map json) { return ListNetworkResourcesResponse( networkResources: (json['networkResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkResource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1983,7 +1983,7 @@ class ListNetworkSitesResponse { factory ListNetworkSitesResponse.fromJson(Map json) { return ListNetworkSitesResponse( networkSites: (json['networkSites'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkSite.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2015,7 +2015,7 @@ class ListNetworksResponse { factory ListNetworksResponse.fromJson(Map json) { return ListNetworksResponse( networks: (json['networks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Network.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2048,7 +2048,7 @@ class ListOrdersResponse { return ListOrdersResponse( nextToken: json['nextToken'] as String?, orders: (json['orders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Order.fromJson(e as Map)) .toList(), ); @@ -2270,7 +2270,7 @@ class NetworkResource { factory NetworkResource.fromJson(Map json) { return NetworkResource( attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NameValuePair.fromJson(e as Map)) .toList(), commitmentInformation: json['commitmentInformation'] != null @@ -2364,7 +2364,7 @@ class NetworkResourceDefinition { count: json['count'] as int, type: NetworkResourceDefinitionType.fromString((json['type'] as String)), options: (json['options'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NameValuePair.fromJson(e as Map)) .toList(), ); @@ -2643,7 +2643,7 @@ class Order { networkSiteArn: json['networkSiteArn'] as String?, orderArn: json['orderArn'] as String?, orderedResources: (json['orderedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrderedResourceDefinition.fromJson(e as Map)) .toList(), @@ -2651,7 +2651,7 @@ class Order { ? Address.fromJson(json['shippingAddress'] as Map) : null, trackingInformation: (json['trackingInformation'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrackingInformation.fromJson(e as Map)) .toList(), ); @@ -2883,11 +2883,11 @@ class SitePlan { factory SitePlan.fromJson(Map json) { return SitePlan( options: (json['options'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NameValuePair.fromJson(e as Map)) .toList(), resourceDefinitions: (json['resourceDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkResourceDefinition.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/proton/v2020_07_20.dart b/aws_client/lib/src/generated/proton/v2020_07_20.dart index 613b880c7..c51e60e36 100644 --- a/aws_client/lib/src/generated/proton/v2020_07_20.dart +++ b/aws_client/lib/src/generated/proton/v2020_07_20.dart @@ -8289,7 +8289,7 @@ class ListComponentOutputsOutput { factory ListComponentOutputsOutput.fromJson(Map json) { return ListComponentOutputsOutput( outputs: (json['outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8324,7 +8324,7 @@ class ListComponentProvisionedResourcesOutput { Map json) { return ListComponentProvisionedResourcesOutput( provisionedResources: (json['provisionedResources'] as List) - .whereNotNull() + .nonNulls .map((e) => ProvisionedResource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8357,7 +8357,7 @@ class ListComponentsOutput { factory ListComponentsOutput.fromJson(Map json) { return ListComponentsOutput( components: (json['components'] as List) - .whereNotNull() + .nonNulls .map((e) => ComponentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8390,7 +8390,7 @@ class ListDeploymentsOutput { factory ListDeploymentsOutput.fromJson(Map json) { return ListDeploymentsOutput( deployments: (json['deployments'] as List) - .whereNotNull() + .nonNulls .map((e) => DeploymentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8427,7 +8427,7 @@ class ListEnvironmentAccountConnectionsOutput { return ListEnvironmentAccountConnectionsOutput( environmentAccountConnections: (json['environmentAccountConnections'] as List) - .whereNotNull() + .nonNulls .map((e) => EnvironmentAccountConnectionSummary.fromJson( e as Map)) .toList(), @@ -8462,7 +8462,7 @@ class ListEnvironmentOutputsOutput { factory ListEnvironmentOutputsOutput.fromJson(Map json) { return ListEnvironmentOutputsOutput( outputs: (json['outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8497,7 +8497,7 @@ class ListEnvironmentProvisionedResourcesOutput { Map json) { return ListEnvironmentProvisionedResourcesOutput( provisionedResources: (json['provisionedResources'] as List) - .whereNotNull() + .nonNulls .map((e) => ProvisionedResource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8532,7 +8532,7 @@ class ListEnvironmentTemplateVersionsOutput { Map json) { return ListEnvironmentTemplateVersionsOutput( templateVersions: (json['templateVersions'] as List) - .whereNotNull() + .nonNulls .map((e) => EnvironmentTemplateVersionSummary.fromJson( e as Map)) .toList(), @@ -8567,7 +8567,7 @@ class ListEnvironmentTemplatesOutput { factory ListEnvironmentTemplatesOutput.fromJson(Map json) { return ListEnvironmentTemplatesOutput( templates: (json['templates'] as List) - .whereNotNull() + .nonNulls .map((e) => EnvironmentTemplateSummary.fromJson(e as Map)) .toList(), @@ -8601,7 +8601,7 @@ class ListEnvironmentsOutput { factory ListEnvironmentsOutput.fromJson(Map json) { return ListEnvironmentsOutput( environments: (json['environments'] as List) - .whereNotNull() + .nonNulls .map((e) => EnvironmentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8634,7 +8634,7 @@ class ListRepositoriesOutput { factory ListRepositoriesOutput.fromJson(Map json) { return ListRepositoriesOutput( repositories: (json['repositories'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositorySummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8669,7 +8669,7 @@ class ListRepositorySyncDefinitionsOutput { Map json) { return ListRepositorySyncDefinitionsOutput( syncDefinitions: (json['syncDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositorySyncDefinition.fromJson(e as Map)) .toList(), @@ -8703,7 +8703,7 @@ class ListServiceInstanceOutputsOutput { factory ListServiceInstanceOutputsOutput.fromJson(Map json) { return ListServiceInstanceOutputsOutput( outputs: (json['outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8738,7 +8738,7 @@ class ListServiceInstanceProvisionedResourcesOutput { Map json) { return ListServiceInstanceProvisionedResourcesOutput( provisionedResources: (json['provisionedResources'] as List) - .whereNotNull() + .nonNulls .map((e) => ProvisionedResource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8824,7 +8824,7 @@ class ListServiceInstancesOutput { factory ListServiceInstancesOutput.fromJson(Map json) { return ListServiceInstancesOutput( serviceInstances: (json['serviceInstances'] as List) - .whereNotNull() + .nonNulls .map( (e) => ServiceInstanceSummary.fromJson(e as Map)) .toList(), @@ -8878,7 +8878,7 @@ class ListServicePipelineOutputsOutput { factory ListServicePipelineOutputsOutput.fromJson(Map json) { return ListServicePipelineOutputsOutput( outputs: (json['outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8913,7 +8913,7 @@ class ListServicePipelineProvisionedResourcesOutput { Map json) { return ListServicePipelineProvisionedResourcesOutput( provisionedResources: (json['provisionedResources'] as List) - .whereNotNull() + .nonNulls .map((e) => ProvisionedResource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -8948,7 +8948,7 @@ class ListServiceTemplateVersionsOutput { Map json) { return ListServiceTemplateVersionsOutput( templateVersions: (json['templateVersions'] as List) - .whereNotNull() + .nonNulls .map((e) => ServiceTemplateVersionSummary.fromJson(e as Map)) .toList(), @@ -8983,7 +8983,7 @@ class ListServiceTemplatesOutput { factory ListServiceTemplatesOutput.fromJson(Map json) { return ListServiceTemplatesOutput( templates: (json['templates'] as List) - .whereNotNull() + .nonNulls .map( (e) => ServiceTemplateSummary.fromJson(e as Map)) .toList(), @@ -9017,7 +9017,7 @@ class ListServicesOutput { factory ListServicesOutput.fromJson(Map json) { return ListServicesOutput( services: (json['services'] as List) - .whereNotNull() + .nonNulls .map((e) => ServiceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9050,7 +9050,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9418,7 +9418,7 @@ class RepositorySyncAttempt { factory RepositorySyncAttempt.fromJson(Map json) { return RepositorySyncAttempt( events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositorySyncEvent.fromJson(e as Map)) .toList(), startedAt: nonNullableTimeStampFromJson(json['startedAt'] as Object), @@ -9649,7 +9649,7 @@ class ResourceSyncAttempt { factory ResourceSyncAttempt.fromJson(Map json) { return ResourceSyncAttempt( events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceSyncEvent.fromJson(e as Map)) .toList(), initialRevision: @@ -10119,7 +10119,7 @@ class ServiceInstanceState { templateName: json['templateName'] as String, lastSuccessfulComponentDeploymentIds: (json['lastSuccessfulComponentDeploymentIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastSuccessfulEnvironmentDeploymentId: @@ -10572,7 +10572,7 @@ class ServiceSyncBlockerSummary { return ServiceSyncBlockerSummary( serviceName: json['serviceName'] as String, latestBlockers: (json['latestBlockers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyncBlocker.fromJson(e as Map)) .toList(), serviceInstanceName: json['serviceInstanceName'] as String?, @@ -10893,7 +10893,7 @@ class ServiceTemplateVersion { arn: json['arn'] as String, compatibleEnvironmentTemplates: (json['compatibleEnvironmentTemplates'] as List) - .whereNotNull() + .nonNulls .map((e) => CompatibleEnvironmentTemplate.fromJson(e as Map)) .toList(), @@ -10909,7 +10909,7 @@ class ServiceTemplateVersion { schema: json['schema'] as String?, statusMessage: json['statusMessage'] as String?, supportedComponentSources: (json['supportedComponentSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceTemplateSupportedComponentSourceType.fromString( (e as String))) .toList(), @@ -11099,7 +11099,7 @@ class SyncBlocker { status: BlockerStatus.fromString((json['status'] as String)), type: BlockerType.fromString((json['type'] as String)), contexts: (json['contexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyncBlockerContext.fromJson(e as Map)) .toList(), resolvedAt: timeStampFromJson(json['resolvedAt']), diff --git a/aws_client/lib/src/generated/q_business/v2023_11_27.dart b/aws_client/lib/src/generated/q_business/v2023_11_27.dart index d51d80e77..fb3d750e1 100644 --- a/aws_client/lib/src/generated/q_business/v2023_11_27.dart +++ b/aws_client/lib/src/generated/q_business/v2023_11_27.dart @@ -3029,7 +3029,7 @@ class ActionReviewPayloadField { return ActionReviewPayloadField( allowedFormat: json['allowedFormat'] as String?, allowedValues: (json['allowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionReviewPayloadFieldAllowedValue.fromJson( e as Map)) .toList(), @@ -3565,7 +3565,7 @@ class BatchDeleteDocumentResponse { factory BatchDeleteDocumentResponse.fromJson(Map json) { return BatchDeleteDocumentResponse( failedDocuments: (json['failedDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedDocument.fromJson(e as Map)) .toList(), ); @@ -3593,7 +3593,7 @@ class BatchPutDocumentResponse { factory BatchPutDocumentResponse.fromJson(Map json) { return BatchPutDocumentResponse( failedDocuments: (json['failedDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedDocument.fromJson(e as Map)) .toList(), ); @@ -3625,7 +3625,7 @@ class BlockedPhrasesConfiguration { factory BlockedPhrasesConfiguration.fromJson(Map json) { return BlockedPhrasesConfiguration( blockedPhrases: (json['blockedPhrases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), systemMessageOverride: json['systemMessageOverride'] as String?, @@ -3770,11 +3770,11 @@ class ChatSyncOutput { : null, conversationId: json['conversationId'] as String?, failedAttachments: (json['failedAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachmentOutput.fromJson(e as Map)) .toList(), sourceAttributions: (json['sourceAttributions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceAttribution.fromJson(e as Map)) .toList(), systemMessage: json['systemMessage'] as String?, @@ -3848,7 +3848,7 @@ class ContentRetrievalRule { factory ContentRetrievalRule.fromJson(Map json) { return ContentRetrievalRule( eligibleDataSources: (json['eligibleDataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EligibleDataSource.fromJson(e as Map)) .toList(), ); @@ -4469,13 +4469,11 @@ class DataSourceVpcConfiguration { factory DataSourceVpcConfiguration.fromJson(Map json) { return DataSourceVpcConfiguration( securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -5056,7 +5054,7 @@ class DocumentAttributeValue { dateValue: timeStampFromJson(json['dateValue']), longValue: json['longValue'] as int?, stringListValue: (json['stringListValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stringValue: json['stringValue'] as String?, @@ -5217,7 +5215,7 @@ class DocumentEnrichmentConfiguration { factory DocumentEnrichmentConfiguration.fromJson(Map json) { return DocumentEnrichmentConfiguration( inlineConfigurations: (json['inlineConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InlineDocumentEnrichmentConfiguration.fromJson( e as Map)) .toList(), @@ -5579,7 +5577,7 @@ class GetChatControlsConfigurationResponse { responseScope: (json['responseScope'] as String?)?.let(ResponseScope.fromString), topicConfigurations: (json['topicConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicConfiguration.fromJson(e as Map)) .toList(), ); @@ -5768,7 +5766,7 @@ class GetGroupResponse { ? GroupStatusDetail.fromJson(json['status'] as Map) : null, statusHistory: (json['statusHistory'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupStatusDetail.fromJson(e as Map)) .toList(), ); @@ -5861,7 +5859,7 @@ class GetIndexResponse { displayName: json['displayName'] as String?, documentAttributeConfigurations: (json['documentAttributeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttributeConfiguration.fromJson( e as Map)) .toList(), @@ -6120,7 +6118,7 @@ class GetUserResponse { factory GetUserResponse.fromJson(Map json) { return GetUserResponse( userAliases: (json['userAliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserAlias.fromJson(e as Map)) .toList(), ); @@ -6682,7 +6680,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applications: (json['applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6716,7 +6714,7 @@ class ListConversationsResponse { factory ListConversationsResponse.fromJson(Map json) { return ListConversationsResponse( conversations: (json['conversations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Conversation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6749,7 +6747,7 @@ class ListDataSourceSyncJobsResponse { factory ListDataSourceSyncJobsResponse.fromJson(Map json) { return ListDataSourceSyncJobsResponse( history: (json['history'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceSyncJob.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6783,7 +6781,7 @@ class ListDataSourcesResponse { factory ListDataSourcesResponse.fromJson(Map json) { return ListDataSourcesResponse( dataSources: (json['dataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6818,7 +6816,7 @@ class ListDocumentsResponse { factory ListDocumentsResponse.fromJson(Map json) { return ListDocumentsResponse( documentDetailList: (json['documentDetailList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentDetails.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6852,7 +6850,7 @@ class ListGroupsResponse { factory ListGroupsResponse.fromJson(Map json) { return ListGroupsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6885,7 +6883,7 @@ class ListIndicesResponse { factory ListIndicesResponse.fromJson(Map json) { return ListIndicesResponse( indices: (json['indices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Index.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6918,7 +6916,7 @@ class ListMessagesResponse { factory ListMessagesResponse.fromJson(Map json) { return ListMessagesResponse( messages: (json['messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Message.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6954,7 +6952,7 @@ class ListPluginsResponse { return ListPluginsResponse( nextToken: json['nextToken'] as String?, plugins: (json['plugins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Plugin.fromJson(e as Map)) .toList(), ); @@ -6987,7 +6985,7 @@ class ListRetrieversResponse { return ListRetrieversResponse( nextToken: json['nextToken'] as String?, retrievers: (json['retrievers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Retriever.fromJson(e as Map)) .toList(), ); @@ -7015,7 +7013,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7047,7 +7045,7 @@ class ListWebExperiencesResponse { return ListWebExperiencesResponse( nextToken: json['nextToken'] as String?, webExperiences: (json['webExperiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WebExperience.fromJson(e as Map)) .toList(), ); @@ -7185,13 +7183,13 @@ class Message { ? ActionReview.fromJson(json['actionReview'] as Map) : null, attachments: (json['attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachmentOutput.fromJson(e as Map)) .toList(), body: json['body'] as String?, messageId: json['messageId'] as String?, sourceAttribution: (json['sourceAttribution'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceAttribution.fromJson(e as Map)) .toList(), time: timeStampFromJson(json['time']), @@ -8152,7 +8150,7 @@ class SourceAttribution { citationNumber: json['citationNumber'] as int?, snippet: json['snippet'] as String?, textMessageSegments: (json['textMessageSegments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TextSegment.fromJson(e as Map)) .toList(), title: json['title'] as String?, @@ -8486,12 +8484,12 @@ class TopicConfiguration { return TopicConfiguration( name: json['name'] as String, rules: (json['rules'] as List) - .whereNotNull() + .nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), description: json['description'] as String?, exampleChatMessages: (json['exampleChatMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8616,15 +8614,15 @@ class UpdateUserResponse { factory UpdateUserResponse.fromJson(Map json) { return UpdateUserResponse( userAliasesAdded: (json['userAliasesAdded'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserAlias.fromJson(e as Map)) .toList(), userAliasesDeleted: (json['userAliasesDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserAlias.fromJson(e as Map)) .toList(), userAliasesUpdated: (json['userAliasesUpdated'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserAlias.fromJson(e as Map)) .toList(), ); @@ -8708,13 +8706,11 @@ class UsersAndGroups { factory UsersAndGroups.fromJson(Map json) { return UsersAndGroups( userGroups: (json['userGroups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - userIds: (json['userIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + userIds: + (json['userIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/q_connect/v2020_10_19.dart b/aws_client/lib/src/generated/q_connect/v2020_10_19.dart index fda348244..98d98db15 100644 --- a/aws_client/lib/src/generated/q_connect/v2020_10_19.dart +++ b/aws_client/lib/src/generated/q_connect/v2020_10_19.dart @@ -2085,7 +2085,7 @@ class AppIntegrationsConfiguration { return AppIntegrationsConfiguration( appIntegrationArn: json['appIntegrationArn'] as String, objectFields: (json['objectFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3416,7 +3416,7 @@ class DocumentText { factory DocumentText.fromJson(Map json) { return DocumentText( highlights: (json['highlights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Highlight.fromJson(e as Map)) .toList(), text: json['text'] as String?, @@ -3580,7 +3580,7 @@ class GenerativeDataDetails { rankingData: RankingData.fromJson(json['rankingData'] as Map), references: (json['references'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSummary.fromJson(e as Map)) .toList(), ); @@ -3816,11 +3816,11 @@ class GetRecommendationsResponse { factory GetRecommendationsResponse.fromJson(Map json) { return GetRecommendationsResponse( recommendations: (json['recommendations'] as List) - .whereNotNull() + .nonNulls .map((e) => RecommendationData.fromJson(e as Map)) .toList(), triggers: (json['triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationTrigger.fromJson(e as Map)) .toList(), ); @@ -3900,10 +3900,8 @@ class GroupingConfiguration { factory GroupingConfiguration.fromJson(Map json) { return GroupingConfiguration( criteria: json['criteria'] as String?, - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4514,7 +4512,7 @@ class ListAssistantAssociationsResponse { return ListAssistantAssociationsResponse( assistantAssociationSummaries: (json['assistantAssociationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssistantAssociationSummary.fromJson(e as Map)) .toList(), @@ -4548,7 +4546,7 @@ class ListAssistantsResponse { factory ListAssistantsResponse.fromJson(Map json) { return ListAssistantsResponse( assistantSummaries: (json['assistantSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssistantSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4581,7 +4579,7 @@ class ListContentsResponse { factory ListContentsResponse.fromJson(Map json) { return ListContentsResponse( contentSummaries: (json['contentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ContentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4614,7 +4612,7 @@ class ListImportJobsResponse { factory ListImportJobsResponse.fromJson(Map json) { return ListImportJobsResponse( importJobSummaries: (json['importJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ImportJobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4647,7 +4645,7 @@ class ListKnowledgeBasesResponse { factory ListKnowledgeBasesResponse.fromJson(Map json) { return ListKnowledgeBasesResponse( knowledgeBaseSummaries: (json['knowledgeBaseSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => KnowledgeBaseSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4680,7 +4678,7 @@ class ListQuickResponsesResponse { factory ListQuickResponsesResponse.fromJson(Map json) { return ListQuickResponsesResponse( quickResponseSummaries: (json['quickResponseSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => QuickResponseSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4767,12 +4765,12 @@ class NotifyRecommendationsReceivedResponse { Map json) { return NotifyRecommendationsReceivedResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotifyRecommendationsReceivedError.fromJson( e as Map)) .toList(), recommendationIds: (json['recommendationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4806,7 +4804,7 @@ class OrCondition { factory OrCondition.fromJson(Map json) { return OrCondition( andConditions: (json['andConditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagCondition.fromJson(e as Map)) .toList(), tagCondition: json['tagCondition'] != null @@ -4921,7 +4919,7 @@ class QueryAssistantResponse { factory QueryAssistantResponse.fromJson(Map json) { return QueryAssistantResponse( results: (json['results'] as List) - .whereNotNull() + .nonNulls .map((e) => ResultData.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5213,7 +5211,7 @@ class QuickResponseData { quickResponseId: json['quickResponseId'] as String, status: QuickResponseStatus.fromString((json['status'] as String)), channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), contents: json['contents'] != null @@ -5676,15 +5674,15 @@ class QuickResponseSearchResultData { quickResponseId: json['quickResponseId'] as String, status: QuickResponseStatus.fromString((json['status'] as String)), attributesInterpolated: (json['attributesInterpolated'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), attributesNotInterpolated: (json['attributesNotInterpolated'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -5857,7 +5855,7 @@ class QuickResponseSummary { quickResponseId: json['quickResponseId'] as String, status: QuickResponseStatus.fromString((json['status'] as String)), channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -6056,7 +6054,7 @@ class RecommendationTrigger { json['data'] as Map), id: json['id'] as String, recommendationIds: (json['recommendationIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), source: RecommendationSourceType.fromString((json['source'] as String)), @@ -6297,7 +6295,7 @@ class SearchContentResponse { factory SearchContentResponse.fromJson(Map json) { return SearchContentResponse( contentSummaries: (json['contentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ContentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6347,7 +6345,7 @@ class SearchQuickResponsesResponse { factory SearchQuickResponsesResponse.fromJson(Map json) { return SearchQuickResponsesResponse( results: (json['results'] as List) - .whereNotNull() + .nonNulls .map((e) => QuickResponseSearchResultData.fromJson(e as Map)) .toList(), @@ -6381,7 +6379,7 @@ class SearchSessionsResponse { factory SearchSessionsResponse.fromJson(Map json) { return SearchSessionsResponse( sessionSummaries: (json['sessionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => SessionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6776,11 +6774,11 @@ class TagFilter { factory TagFilter.fromJson(Map json) { return TagFilter( andConditions: (json['andConditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagCondition.fromJson(e as Map)) .toList(), orConditions: (json['orConditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrCondition.fromJson(e as Map)) .toList(), tagCondition: json['tagCondition'] != null diff --git a/aws_client/lib/src/generated/qldb/v2019_01_02.dart b/aws_client/lib/src/generated/qldb/v2019_01_02.dart index 8cc50ec0d..b53b3b99b 100644 --- a/aws_client/lib/src/generated/qldb/v2019_01_02.dart +++ b/aws_client/lib/src/generated/qldb/v2019_01_02.dart @@ -1915,7 +1915,7 @@ class ListJournalKinesisStreamsForLedgerResponse { return ListJournalKinesisStreamsForLedgerResponse( nextToken: json['NextToken'] as String?, streams: (json['Streams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JournalKinesisStreamDescription.fromJson( e as Map)) .toList(), @@ -1960,7 +1960,7 @@ class ListJournalS3ExportsForLedgerResponse { Map json) { return ListJournalS3ExportsForLedgerResponse( journalS3Exports: (json['JournalS3Exports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JournalS3ExportDescription.fromJson(e as Map)) .toList(), @@ -2005,7 +2005,7 @@ class ListJournalS3ExportsResponse { factory ListJournalS3ExportsResponse.fromJson(Map json) { return ListJournalS3ExportsResponse( journalS3Exports: (json['JournalS3Exports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JournalS3ExportDescription.fromJson(e as Map)) .toList(), @@ -2051,7 +2051,7 @@ class ListLedgersResponse { factory ListLedgersResponse.fromJson(Map json) { return ListLedgersResponse( ledgers: (json['Ledgers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LedgerSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/qldb_session/v2019_07_11.dart b/aws_client/lib/src/generated/qldb_session/v2019_07_11.dart index a46410b3f..f2cc3ea7b 100644 --- a/aws_client/lib/src/generated/qldb_session/v2019_07_11.dart +++ b/aws_client/lib/src/generated/qldb_session/v2019_07_11.dart @@ -502,7 +502,7 @@ class Page { return Page( nextPageToken: json['NextPageToken'] as String?, values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValueHolder.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/quick_sight/v2018_04_01.dart b/aws_client/lib/src/generated/quick_sight/v2018_04_01.dart index 605cacae0..fc4acd7c2 100644 --- a/aws_client/lib/src/generated/quick_sight/v2018_04_01.dart +++ b/aws_client/lib/src/generated/quick_sight/v2018_04_01.dart @@ -9895,17 +9895,17 @@ class Analysis { arn: json['Arn'] as String?, createdTime: timeStampFromJson(json['CreatedTime']), dataSetArns: (json['DataSetArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisError.fromJson(e as Map)) .toList(), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), name: json['Name'] as String?, sheets: (json['Sheets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Sheet.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(ResourceStatus.fromString), @@ -10020,7 +10020,7 @@ class AnalysisDefinition { return AnalysisDefinition( dataSetIdentifierDeclarations: (json['DataSetIdentifierDeclarations'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSetIdentifierDeclaration.fromJson(e as Map)) .toList(), @@ -10029,26 +10029,26 @@ class AnalysisDefinition { json['AnalysisDefaults'] as Map) : null, calculatedFields: (json['CalculatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CalculatedField.fromJson(e as Map)) .toList(), columnConfigurations: (json['ColumnConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnConfiguration.fromJson(e as Map)) .toList(), filterGroups: (json['FilterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterGroup.fromJson(e as Map)) .toList(), options: json['Options'] != null ? AssetOptions.fromJson(json['Options'] as Map) : null, parameterDeclarations: (json['ParameterDeclarations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterDeclaration.fromJson(e as Map)) .toList(), sheets: (json['Sheets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetDefinition.fromJson(e as Map)) .toList(), ); @@ -10100,7 +10100,7 @@ class AnalysisError { message: json['Message'] as String?, type: (json['Type'] as String?)?.let(AnalysisErrorType.fromString), violatedEntities: (json['ViolatedEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), ); @@ -10549,7 +10549,7 @@ class AnonymousUserSnapshotJobResult { factory AnonymousUserSnapshotJobResult.fromJson(Map json) { return AnonymousUserSnapshotJobResult( fileGroups: (json['FileGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotJobResultFileGroup.fromJson(e as Map)) .toList(), @@ -10769,27 +10769,27 @@ class AssetBundleCloudFormationOverridePropertyConfiguration { Map json) { return AssetBundleCloudFormationOverridePropertyConfiguration( analyses: (json['Analyses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobAnalysisOverrideProperties.fromJson( e as Map)) .toList(), dashboards: (json['Dashboards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobDashboardOverrideProperties.fromJson( e as Map)) .toList(), dataSets: (json['DataSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobDataSetOverrideProperties.fromJson( e as Map)) .toList(), dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobDataSourceOverrideProperties.fromJson( e as Map)) .toList(), refreshSchedules: (json['RefreshSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobRefreshScheduleOverrideProperties.fromJson( e as Map)) @@ -10801,12 +10801,12 @@ class AssetBundleCloudFormationOverridePropertyConfiguration { as Map) : null, themes: (json['Themes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobThemeOverrideProperties.fromJson( e as Map)) .toList(), vPCConnections: (json['VPCConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobVPCConnectionOverrideProperties.fromJson( e as Map)) @@ -10874,7 +10874,7 @@ class AssetBundleExportJobAnalysisOverrideProperties { return AssetBundleExportJobAnalysisOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobAnalysisPropertyToOverride.fromString( (e as String))) .toList(), @@ -10927,7 +10927,7 @@ class AssetBundleExportJobDashboardOverrideProperties { return AssetBundleExportJobDashboardOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobDashboardPropertyToOverride.fromString( (e as String))) @@ -10981,7 +10981,7 @@ class AssetBundleExportJobDataSetOverrideProperties { return AssetBundleExportJobDataSetOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobDataSetPropertyToOverride.fromString( (e as String))) .toList(), @@ -11034,7 +11034,7 @@ class AssetBundleExportJobDataSourceOverrideProperties { return AssetBundleExportJobDataSourceOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobDataSourcePropertyToOverride.fromString( (e as String))) @@ -11142,7 +11142,7 @@ class AssetBundleExportJobRefreshScheduleOverrideProperties { return AssetBundleExportJobRefreshScheduleOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobRefreshSchedulePropertyToOverride.fromString( (e as String))) @@ -11321,7 +11321,7 @@ class AssetBundleExportJobThemeOverrideProperties { return AssetBundleExportJobThemeOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobThemePropertyToOverride.fromString( (e as String))) .toList(), @@ -11373,7 +11373,7 @@ class AssetBundleExportJobVPCConnectionOverrideProperties { return AssetBundleExportJobVPCConnectionOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobVPCConnectionPropertyToOverride.fromString( (e as String))) @@ -11531,7 +11531,7 @@ class AssetBundleImportJobAnalysisOverridePermissions { Map json) { return AssetBundleImportJobAnalysisOverridePermissions( analysisIds: (json['AnalysisIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), permissions: AssetBundleResourcePermissions.fromJson( @@ -11568,11 +11568,11 @@ class AssetBundleImportJobAnalysisOverrideTags { Map json) { return AssetBundleImportJobAnalysisOverrideTags( analysisIds: (json['AnalysisIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11644,7 +11644,7 @@ class AssetBundleImportJobDashboardOverridePermissions { Map json) { return AssetBundleImportJobDashboardOverridePermissions( dashboardIds: (json['DashboardIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), linkSharingConfiguration: json['LinkSharingConfiguration'] != null @@ -11690,11 +11690,11 @@ class AssetBundleImportJobDashboardOverrideTags { Map json) { return AssetBundleImportJobDashboardOverrideTags( dashboardIds: (json['DashboardIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11760,7 +11760,7 @@ class AssetBundleImportJobDataSetOverridePermissions { Map json) { return AssetBundleImportJobDataSetOverridePermissions( dataSetIds: (json['DataSetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), permissions: AssetBundleResourcePermissions.fromJson( @@ -11797,11 +11797,11 @@ class AssetBundleImportJobDataSetOverrideTags { Map json) { return AssetBundleImportJobDataSetOverrideTags( dataSetIds: (json['DataSetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11975,7 +11975,7 @@ class AssetBundleImportJobDataSourceOverridePermissions { Map json) { return AssetBundleImportJobDataSourceOverridePermissions( dataSourceIds: (json['DataSourceIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), permissions: AssetBundleResourcePermissions.fromJson( @@ -12012,11 +12012,11 @@ class AssetBundleImportJobDataSourceOverrideTags { Map json) { return AssetBundleImportJobDataSourceOverrideTags( dataSourceIds: (json['DataSourceIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -12122,27 +12122,27 @@ class AssetBundleImportJobOverrideParameters { Map json) { return AssetBundleImportJobOverrideParameters( analyses: (json['Analyses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobAnalysisOverrideParameters.fromJson( e as Map)) .toList(), dashboards: (json['Dashboards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDashboardOverrideParameters.fromJson( e as Map)) .toList(), dataSets: (json['DataSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDataSetOverrideParameters.fromJson( e as Map)) .toList(), dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDataSourceOverrideParameters.fromJson( e as Map)) .toList(), refreshSchedules: (json['RefreshSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobRefreshScheduleOverrideParameters.fromJson( e as Map)) @@ -12154,12 +12154,12 @@ class AssetBundleImportJobOverrideParameters { as Map) : null, themes: (json['Themes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobThemeOverrideParameters.fromJson( e as Map)) .toList(), vPCConnections: (json['VPCConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobVPCConnectionOverrideParameters.fromJson( e as Map)) @@ -12226,28 +12226,28 @@ class AssetBundleImportJobOverridePermissions { Map json) { return AssetBundleImportJobOverridePermissions( analyses: (json['Analyses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobAnalysisOverridePermissions.fromJson( e as Map)) .toList(), dashboards: (json['Dashboards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDashboardOverridePermissions.fromJson( e as Map)) .toList(), dataSets: (json['DataSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDataSetOverridePermissions.fromJson( e as Map)) .toList(), dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDataSourceOverridePermissions.fromJson( e as Map)) .toList(), themes: (json['Themes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobThemeOverridePermissions.fromJson( e as Map)) .toList(), @@ -12310,32 +12310,32 @@ class AssetBundleImportJobOverrideTags { factory AssetBundleImportJobOverrideTags.fromJson(Map json) { return AssetBundleImportJobOverrideTags( analyses: (json['Analyses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobAnalysisOverrideTags.fromJson( e as Map)) .toList(), dashboards: (json['Dashboards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDashboardOverrideTags.fromJson( e as Map)) .toList(), dataSets: (json['DataSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDataSetOverrideTags.fromJson( e as Map)) .toList(), dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDataSourceOverrideTags.fromJson( e as Map)) .toList(), themes: (json['Themes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobThemeOverrideTags.fromJson( e as Map)) .toList(), vPCConnections: (json['VPCConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobVPCConnectionOverrideTags.fromJson( e as Map)) .toList(), @@ -12589,10 +12589,8 @@ class AssetBundleImportJobThemeOverridePermissions { return AssetBundleImportJobThemeOverridePermissions( permissions: AssetBundleResourcePermissions.fromJson( json['Permissions'] as Map), - themeIds: (json['ThemeIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + themeIds: + (json['ThemeIds'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -12625,13 +12623,11 @@ class AssetBundleImportJobThemeOverrideTags { Map json) { return AssetBundleImportJobThemeOverrideTags( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), - themeIds: (json['ThemeIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + themeIds: + (json['ThemeIds'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -12683,17 +12679,17 @@ class AssetBundleImportJobVPCConnectionOverrideParameters { return AssetBundleImportJobVPCConnectionOverrideParameters( vPCConnectionId: json['VPCConnectionId'] as String, dnsResolvers: (json['DnsResolvers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, roleArn: json['RoleArn'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12736,11 +12732,11 @@ class AssetBundleImportJobVPCConnectionOverrideTags { Map json) { return AssetBundleImportJobVPCConnectionOverrideTags( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vPCConnectionIds: (json['VPCConnectionIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -12903,12 +12899,10 @@ class AssetBundleResourcePermissions { factory AssetBundleResourcePermissions.fromJson(Map json) { return AssetBundleResourcePermissions( - actions: (json['Actions'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List).nonNulls.map((e) => e as String).toList(), principals: (json['Principals'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -13182,7 +13176,7 @@ class AuthorizedTargetsByService { factory AuthorizedTargetsByService.fromJson(Map json) { return AuthorizedTargetsByService( authorizedTargets: (json['AuthorizedTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), service: (json['Service'] as String?)?.let(ServiceType.fromString), @@ -13653,19 +13647,19 @@ class BarChartAggregatedFieldWells { factory BarChartAggregatedFieldWells.fromJson(Map json) { return BarChartAggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), colors: (json['Colors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), smallMultiples: (json['SmallMultiples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -13796,7 +13790,7 @@ class BarChartConfiguration { : null, contributionAnalysisDefaults: (json['ContributionAnalysisDefaults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContributionAnalysisDefault.fromJson(e as Map)) .toList(), @@ -13818,7 +13812,7 @@ class BarChartConfiguration { orientation: (json['Orientation'] as String?)?.let(BarChartOrientation.fromString), referenceLines: (json['ReferenceLines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceLine.fromJson(e as Map)) .toList(), smallMultiplesOptions: json['SmallMultiplesOptions'] != null @@ -13971,7 +13965,7 @@ class BarChartSortConfiguration { json['CategoryItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), colorItemsLimit: json['ColorItemsLimit'] != null @@ -13979,7 +13973,7 @@ class BarChartSortConfiguration { json['ColorItemsLimit'] as Map) : null, colorSort: (json['ColorSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), smallMultiplesLimitConfiguration: @@ -13989,7 +13983,7 @@ class BarChartSortConfiguration { as Map) : null, smallMultiplesSort: (json['SmallMultiplesSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -14078,7 +14072,7 @@ class BarChartVisual { return BarChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -14086,7 +14080,7 @@ class BarChartVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -14371,11 +14365,11 @@ class BoxPlotAggregatedFieldWells { factory BoxPlotAggregatedFieldWells.fromJson(Map json) { return BoxPlotAggregatedFieldWells( groupBy: (json['GroupBy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -14480,7 +14474,7 @@ class BoxPlotChartConfiguration { json['PrimaryYAxisLabelOptions'] as Map) : null, referenceLines: (json['ReferenceLines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceLine.fromJson(e as Map)) .toList(), sortConfiguration: json['SortConfiguration'] != null @@ -14635,7 +14629,7 @@ class BoxPlotSortConfiguration { factory BoxPlotSortConfiguration.fromJson(Map json) { return BoxPlotSortConfiguration( categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), paginationConfiguration: json['PaginationConfiguration'] != null @@ -14719,7 +14713,7 @@ class BoxPlotVisual { return BoxPlotVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -14727,7 +14721,7 @@ class BoxPlotVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -14921,7 +14915,7 @@ class CascadingControlConfiguration { factory CascadingControlConfiguration.fromJson(Map json) { return CascadingControlConfiguration( sourceControls: (json['SourceControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CascadingControlSource.fromJson(e as Map)) .toList(), @@ -15149,7 +15143,7 @@ class CategoryDrillDownFilter { factory CategoryDrillDownFilter.fromJson(Map json) { return CategoryDrillDownFilter( categoryValues: (json['CategoryValues'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), column: ColumnIdentifier.fromJson(json['Column'] as Map), @@ -15361,7 +15355,7 @@ class CellValueSynonym { return CellValueSynonym( cellValue: json['CellValue'] as String?, synonyms: (json['Synonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15407,7 +15401,7 @@ class ChartAxisLabelOptions { factory ChartAxisLabelOptions.fromJson(Map json) { return ChartAxisLabelOptions( axisLabelOptions: (json['AxisLabelOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AxisLabelOptions.fromJson(e as Map)) .toList(), sortIconVisibility: @@ -15494,7 +15488,7 @@ class CollectiveConstant { factory CollectiveConstant.fromJson(Map json) { return CollectiveConstant( valueList: (json['ValueList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15545,7 +15539,7 @@ class ColorScale { colorFillType: ColorFillType.fromString((json['ColorFillType'] as String)), colors: (json['Colors'] as List) - .whereNotNull() + .nonNulls .map((e) => DataColor.fromJson(e as Map)) .toList(), nullValueColor: json['NullValueColor'] != null @@ -15578,7 +15572,7 @@ class ColorsConfiguration { factory ColorsConfiguration.fromJson(Map json) { return ColorsConfiguration( customColors: (json['CustomColors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomColor.fromJson(e as Map)) .toList(), ); @@ -15784,7 +15778,7 @@ class ColumnGroupSchema { return ColumnGroupSchema( columnGroupColumnSchemaList: (json['ColumnGroupColumnSchemaList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnGroupColumnSchema.fromJson(e as Map)) .toList(), @@ -15905,11 +15899,11 @@ class ColumnLevelPermissionRule { factory ColumnLevelPermissionRule.fromJson(Map json) { return ColumnLevelPermissionRule( columnNames: (json['ColumnNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), principals: (json['Principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -16163,19 +16157,19 @@ class ComboChartAggregatedFieldWells { factory ComboChartAggregatedFieldWells.fromJson(Map json) { return ComboChartAggregatedFieldWells( barValues: (json['BarValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), colors: (json['Colors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), lineValues: (json['LineValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -16338,7 +16332,7 @@ class ComboChartConfiguration { json['PrimaryYAxisLabelOptions'] as Map) : null, referenceLines: (json['ReferenceLines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceLine.fromJson(e as Map)) .toList(), secondaryYAxisDisplayOptions: json['SecondaryYAxisDisplayOptions'] != null @@ -16474,7 +16468,7 @@ class ComboChartSortConfiguration { json['CategoryItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), colorItemsLimit: json['ColorItemsLimit'] != null @@ -16482,7 +16476,7 @@ class ComboChartSortConfiguration { json['ColorItemsLimit'] as Map) : null, colorSort: (json['ColorSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -16544,7 +16538,7 @@ class ComboChartVisual { return ComboChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -16552,7 +16546,7 @@ class ComboChartVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -16607,7 +16601,7 @@ class ComparativeOrder { factory ComparativeOrder.fromJson(Map json) { return ComparativeOrder( specifedOrder: (json['SpecifedOrder'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), treatUndefinedSpecifiedValues: @@ -17232,7 +17226,7 @@ class ContributionAnalysisDefault { factory ContributionAnalysisDefault.fromJson(Map json) { return ContributionAnalysisDefault( contributorDimensions: (json['ContributorDimensions'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnIdentifier.fromJson(e as Map)) .toList(), measureFieldId: json['MeasureFieldId'] as String, @@ -17416,7 +17410,7 @@ class CreateColumnsOperation { factory CreateColumnsOperation.fromJson(Map json) { return CreateColumnsOperation( columns: (json['Columns'] as List) - .whereNotNull() + .nonNulls .map((e) => CalculatedColumn.fromJson(e as Map)) .toList(), ); @@ -17811,8 +17805,7 @@ class CreateIAMPolicyAssignmentResponse { assignmentStatus: (json['AssignmentStatus'] as String?) ?.let(AssignmentStatus.fromString), identities: (json['Identities'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), policyArn: json['PolicyArn'] as String?, requestId: json['RequestId'] as String?, status: json['Status'] as int?, @@ -18605,7 +18598,7 @@ class CustomActionSetParametersOperation { return CustomActionSetParametersOperation( parameterValueConfigurations: (json['ParameterValueConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => SetParameterValueConfiguration.fromJson( e as Map)) .toList(), @@ -18829,7 +18822,7 @@ class CustomContentVisual { dataSetIdentifier: json['DataSetIdentifier'] as String, visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -18988,7 +18981,7 @@ class CustomFilterListConfiguration { (json['MatchOperator'] as String)), nullOption: FilterNullOption.fromString((json['NullOption'] as String)), categoryValues: (json['CategoryValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), selectAllOptions: (json['SelectAllOptions'] as String?) @@ -19060,19 +19053,19 @@ class CustomParameterValues { factory CustomParameterValues.fromJson(Map json) { return CustomParameterValues( dateTimeValues: (json['DateTimeValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), decimalValues: (json['DecimalValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), integerValues: (json['IntegerValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), stringValues: (json['StringValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -19120,7 +19113,7 @@ class CustomSql { name: json['Name'] as String, sqlQuery: json['SqlQuery'] as String, columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputColumn.fromJson(e as Map)) .toList(), ); @@ -19217,7 +19210,7 @@ class Dashboard { lastPublishedTime: timeStampFromJson(json['LastPublishedTime']), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), linkEntities: (json['LinkEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -19288,7 +19281,7 @@ class DashboardError { message: json['Message'] as String?, type: (json['Type'] as String?)?.let(DashboardErrorType.fromString), violatedEntities: (json['ViolatedEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), ); @@ -19749,16 +19742,16 @@ class DashboardVersion { arn: json['Arn'] as String?, createdTime: timeStampFromJson(json['CreatedTime']), dataSetArns: (json['DataSetArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['Description'] as String?, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashboardError.fromJson(e as Map)) .toList(), sheets: (json['Sheets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Sheet.fromJson(e as Map)) .toList(), sourceEntityArn: json['SourceEntityArn'] as String?, @@ -19846,7 +19839,7 @@ class DashboardVersionDefinition { return DashboardVersionDefinition( dataSetIdentifierDeclarations: (json['DataSetIdentifierDeclarations'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSetIdentifierDeclaration.fromJson(e as Map)) .toList(), @@ -19855,26 +19848,26 @@ class DashboardVersionDefinition { json['AnalysisDefaults'] as Map) : null, calculatedFields: (json['CalculatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CalculatedField.fromJson(e as Map)) .toList(), columnConfigurations: (json['ColumnConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnConfiguration.fromJson(e as Map)) .toList(), filterGroups: (json['FilterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterGroup.fromJson(e as Map)) .toList(), options: json['Options'] != null ? AssetOptions.fromJson(json['Options'] as Map) : null, parameterDeclarations: (json['ParameterDeclarations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterDeclaration.fromJson(e as Map)) .toList(), sheets: (json['Sheets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetDefinition.fromJson(e as Map)) .toList(), ); @@ -20170,13 +20163,11 @@ class DataColorPalette { factory DataColorPalette.fromJson(Map json) { return DataColorPalette( - colors: (json['Colors'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + colors: + (json['Colors'] as List?)?.nonNulls.map((e) => e as String).toList(), emptyFillColor: json['EmptyFillColor'] as String?, minMaxGradient: (json['MinMaxGradient'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -20308,7 +20299,7 @@ class DataLabelOptions { categoryLabelVisibility: (json['CategoryLabelVisibility'] as String?) ?.let(Visibility.fromString), dataLabelTypes: (json['DataLabelTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLabelType.fromJson(e as Map)) .toList(), labelColor: json['LabelColor'] as String?, @@ -20553,7 +20544,7 @@ class DataPathSort { return DataPathSort( direction: SortDirection.fromString((json['Direction'] as String)), sortPaths: (json['SortPaths'] as List) - .whereNotNull() + .nonNulls .map((e) => DataPathValue.fromJson(e as Map)) .toList(), ); @@ -20816,11 +20807,11 @@ class DataSet { return DataSet( arn: json['Arn'] as String?, columnGroups: (json['ColumnGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnGroup.fromJson(e as Map)) .toList(), columnLevelPermissionRules: (json['ColumnLevelPermissionRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnLevelPermissionRule.fromJson(e as Map)) .toList(), @@ -20833,7 +20824,7 @@ class DataSet { json['DataSetUsageConfiguration'] as Map) : null, datasetParameters: (json['DatasetParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetParameter.fromJson(e as Map)) .toList(), fieldFolders: (json['FieldFolders'] as Map?)?.map( @@ -20847,7 +20838,7 @@ class DataSet { MapEntry(k, LogicalTable.fromJson(e as Map))), name: json['Name'] as String?, outputColumns: (json['OutputColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputColumn.fromJson(e as Map)) .toList(), physicalTableMap: (json['PhysicalTableMap'] as Map?) @@ -20934,7 +20925,7 @@ class DataSetConfiguration { factory DataSetConfiguration.fromJson(Map json) { return DataSetConfiguration( columnGroupSchemaList: (json['ColumnGroupSchemaList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnGroupSchema.fromJson(e as Map)) .toList(), dataSetSchema: json['DataSetSchema'] != null @@ -21081,7 +21072,7 @@ class DataSetSchema { factory DataSetSchema.fromJson(Map json) { return DataSetSchema( columnSchemaList: (json['ColumnSchemaList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnSchema.fromJson(e as Map)) .toList(), ); @@ -21387,7 +21378,7 @@ class DataSource { return DataSource( alternateDataSourceParameters: (json['AlternateDataSourceParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceParameters.fromJson(e as Map)) .toList(), arn: json['Arn'] as String?, @@ -22103,11 +22094,11 @@ class DatasetMetadata { return DatasetMetadata( datasetArn: json['DatasetArn'] as String, calculatedFields: (json['CalculatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicCalculatedField.fromJson(e as Map)) .toList(), columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicColumn.fromJson(e as Map)) .toList(), dataAggregation: json['DataAggregation'] != null @@ -22117,11 +22108,11 @@ class DatasetMetadata { datasetDescription: json['DatasetDescription'] as String?, datasetName: json['DatasetName'] as String?, filters: (json['Filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicFilter.fromJson(e as Map)) .toList(), namedEntities: (json['NamedEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicNamedEntity.fromJson(e as Map)) .toList(), ); @@ -22477,7 +22468,7 @@ class DateTimeDatasetParameterDefaultValues { Map json) { return DateTimeDatasetParameterDefaultValues( staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), ); @@ -22522,7 +22513,7 @@ class DateTimeDefaultValues { json['RollingDate'] as Map) : null, staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), ); @@ -22605,7 +22596,7 @@ class DateTimeHierarchy { return DateTimeHierarchy( hierarchyId: json['HierarchyId'] as String, drillDownFilters: (json['DrillDownFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DrillDownFilter.fromJson(e as Map)) .toList(), ); @@ -22638,7 +22629,7 @@ class DateTimeParameter { return DateTimeParameter( name: json['Name'] as String, values: (json['Values'] as List) - .whereNotNull() + .nonNulls .map(nonNullableTimeStampFromJson) .toList(), ); @@ -22688,7 +22679,7 @@ class DateTimeParameterDeclaration { json['DefaultValues'] as Map) : null, mappedDataSetParameters: (json['MappedDataSetParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MappedDataSetParameter.fromJson(e as Map)) .toList(), @@ -22908,7 +22899,7 @@ class DecimalDatasetParameterDefaultValues { Map json) { return DecimalDatasetParameterDefaultValues( staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -22943,7 +22934,7 @@ class DecimalDefaultValues { json['DynamicValue'] as Map) : null, staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -22975,10 +22966,8 @@ class DecimalParameter { factory DecimalParameter.fromJson(Map json) { return DecimalParameter( name: json['Name'] as String, - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as double) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as double).toList(), ); } @@ -23028,7 +23017,7 @@ class DecimalParameterDeclaration { json['DefaultValues'] as Map) : null, mappedDataSetParameters: (json['MappedDataSetParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MappedDataSetParameter.fromJson(e as Map)) .toList(), @@ -25045,7 +25034,7 @@ class DescribeAnalysisDefinitionResponse { json['Definition'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisError.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -25110,7 +25099,7 @@ class DescribeAnalysisPermissionsResponse { analysisArn: json['AnalysisArn'] as String?, analysisId: json['AnalysisId'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -25288,7 +25277,7 @@ class DescribeAssetBundleExportJobResponse { createdTime: timeStampFromJson(json['CreatedTime']), downloadUrl: json['DownloadUrl'] as String?, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobError.fromJson(e as Map)) .toList(), @@ -25301,7 +25290,7 @@ class DescribeAssetBundleExportJobResponse { ?.let(AssetBundleExportJobStatus.fromString), requestId: json['RequestId'] as String?, resourceArns: (json['ResourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: json['Status'] as int?, @@ -25310,7 +25299,7 @@ class DescribeAssetBundleExportJobResponse { json['ValidationStrategy'] as Map) : null, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobWarning.fromJson(e as Map)) .toList(), @@ -25475,7 +25464,7 @@ class DescribeAssetBundleImportJobResponse { awsAccountId: json['AwsAccountId'] as String?, createdTime: timeStampFromJson(json['CreatedTime']), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobError.fromJson(e as Map)) .toList(), @@ -25501,13 +25490,13 @@ class DescribeAssetBundleImportJobResponse { : null, requestId: json['RequestId'] as String?, rollbackErrors: (json['RollbackErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobError.fromJson(e as Map)) .toList(), status: json['Status'] as int?, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobWarning.fromJson(e as Map)) .toList(), @@ -25656,7 +25645,7 @@ class DescribeDashboardDefinitionResponse { json['Definition'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashboardError.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -25735,7 +25724,7 @@ class DescribeDashboardPermissionsResponse { json['LinkSharingConfiguration'] as Map) : null, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -26037,7 +26026,7 @@ class DescribeDataSetPermissionsResponse { dataSetArn: json['DataSetArn'] as String?, dataSetId: json['DataSetId'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -26168,7 +26157,7 @@ class DescribeDataSourcePermissionsResponse { dataSourceArn: json['DataSourceArn'] as String?, dataSourceId: json['DataSourceId'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -26264,7 +26253,7 @@ class DescribeFolderPermissionsResponse { folderId: json['FolderId'] as String?, nextToken: json['NextToken'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -26325,7 +26314,7 @@ class DescribeFolderResolvedPermissionsResponse { folderId: json['FolderId'] as String?, nextToken: json['NextToken'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -26636,7 +26625,7 @@ class DescribeKeyRegistrationResponse { return DescribeKeyRegistrationResponse( awsAccountId: json['AwsAccountId'] as String?, keyRegistration: (json['KeyRegistration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegisteredCustomerManagedKey.fromJson(e as Map)) .toList(), @@ -26893,7 +26882,7 @@ class DescribeTemplateDefinitionResponse { json['Definition'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateError.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -26955,7 +26944,7 @@ class DescribeTemplatePermissionsResponse { Map json) { return DescribeTemplatePermissionsResponse( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -27081,7 +27070,7 @@ class DescribeThemePermissionsResponse { factory DescribeThemePermissionsResponse.fromJson(Map json) { return DescribeThemePermissionsResponse( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -27171,7 +27160,7 @@ class DescribeTopicPermissionsResponse { factory DescribeTopicPermissionsResponse.fromJson(Map json) { return DescribeTopicPermissionsResponse( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -27944,7 +27933,7 @@ class EmptyVisual { dataSetIdentifier: json['DataSetIdentifier'] as String, visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), ); @@ -28116,12 +28105,12 @@ class ExplicitHierarchy { factory ExplicitHierarchy.fromJson(Map json) { return ExplicitHierarchy( columns: (json['Columns'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnIdentifier.fromJson(e as Map)) .toList(), hierarchyId: json['HierarchyId'] as String, drillDownFilters: (json['DrillDownFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DrillDownFilter.fromJson(e as Map)) .toList(), ); @@ -28296,7 +28285,7 @@ class FieldBasedTooltip { aggregationVisibility: (json['AggregationVisibility'] as String?) ?.let(Visibility.fromString), tooltipFields: (json['TooltipFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TooltipItem.fromJson(e as Map)) .toList(), tooltipTitleType: (json['TooltipTitleType'] as String?) @@ -28333,10 +28322,8 @@ class FieldFolder { factory FieldFolder.fromJson(Map json) { return FieldFolder( - columns: (json['columns'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + columns: + (json['columns'] as List?)?.nonNulls.map((e) => e as String).toList(), description: json['description'] as String?, ); } @@ -28576,11 +28563,11 @@ class FilledMapAggregatedFieldWells { factory FilledMapAggregatedFieldWells.fromJson(Map json) { return FilledMapAggregatedFieldWells( geospatial: (json['Geospatial'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -28609,7 +28596,7 @@ class FilledMapConditionalFormatting { return FilledMapConditionalFormatting( conditionalFormattingOptions: (json['ConditionalFormattingOptions'] as List) - .whereNotNull() + .nonNulls .map((e) => FilledMapConditionalFormattingOption.fromJson( e as Map)) .toList(), @@ -28811,7 +28798,7 @@ class FilledMapSortConfiguration { factory FilledMapSortConfiguration.fromJson(Map json) { return FilledMapSortConfiguration( categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -28868,7 +28855,7 @@ class FilledMapVisual { return FilledMapVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -28876,7 +28863,7 @@ class FilledMapVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), conditionalFormatting: json['ConditionalFormatting'] != null @@ -29387,7 +29374,7 @@ class FilterGroup { CrossDatasetTypes.fromString((json['CrossDataset'] as String)), filterGroupId: json['FilterGroupId'] as String, filters: (json['Filters'] as List) - .whereNotNull() + .nonNulls .map((e) => Filter.fromJson(e as Map)) .toList(), scopeConfiguration: FilterScopeConfiguration.fromJson( @@ -29457,7 +29444,7 @@ class FilterListConfiguration { matchOperator: CategoryFilterMatchOperator.fromString( (json['MatchOperator'] as String)), categoryValues: (json['CategoryValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nullOption: @@ -29646,13 +29633,13 @@ class FilterOperationSelectedFieldsConfiguration { Map json) { return FilterOperationSelectedFieldsConfiguration( selectedColumns: (json['SelectedColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnIdentifier.fromJson(e as Map)) .toList(), selectedFieldOptions: (json['SelectedFieldOptions'] as String?) ?.let(SelectedFieldOptions.fromString), selectedFields: (json['SelectedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -29823,10 +29810,8 @@ class FilterSelectableValues { factory FilterSelectableValues.fromJson(Map json) { return FilterSelectableValues( - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -30083,7 +30068,7 @@ class Folder { createdTime: timeStampFromJson(json['CreatedTime']), folderId: json['FolderId'] as String?, folderPath: (json['FolderPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), folderType: (json['FolderType'] as String?)?.let(FolderType.fromString), @@ -30798,7 +30783,7 @@ class FreeFormLayoutConfiguration { factory FreeFormLayoutConfiguration.fromJson(Map json) { return FreeFormLayoutConfiguration( elements: (json['Elements'] as List) - .whereNotNull() + .nonNulls .map((e) => FreeFormLayoutElement.fromJson(e as Map)) .toList(), canvasSizeOptions: json['CanvasSizeOptions'] != null @@ -30895,7 +30880,7 @@ class FreeFormLayoutElement { json['LoadingAnimation'] as Map) : null, renderingRules: (json['RenderingRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetElementRenderingRule.fromJson(e as Map)) .toList(), @@ -31037,7 +31022,7 @@ class FreeFormSectionLayoutConfiguration { Map json) { return FreeFormSectionLayoutConfiguration( elements: (json['Elements'] as List) - .whereNotNull() + .nonNulls .map((e) => FreeFormLayoutElement.fromJson(e as Map)) .toList(), ); @@ -31069,11 +31054,11 @@ class FunnelChartAggregatedFieldWells { factory FunnelChartAggregatedFieldWells.fromJson(Map json) { return FunnelChartAggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -31338,7 +31323,7 @@ class FunnelChartSortConfiguration { json['CategoryItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -31393,7 +31378,7 @@ class FunnelChartVisual { return FunnelChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -31401,7 +31386,7 @@ class FunnelChartVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -31505,7 +31490,7 @@ class GaugeChartConditionalFormatting { return GaugeChartConditionalFormatting( conditionalFormattingOptions: (json['ConditionalFormattingOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GaugeChartConditionalFormattingOption.fromJson( e as Map)) .toList(), @@ -31663,11 +31648,11 @@ class GaugeChartFieldWells { factory GaugeChartFieldWells.fromJson(Map json) { return GaugeChartFieldWells( targetValues: (json['TargetValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -31827,7 +31812,7 @@ class GaugeChartVisual { return GaugeChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -31968,10 +31953,8 @@ class GeoSpatialColumnGroup { factory GeoSpatialColumnGroup.fromJson(Map json) { return GeoSpatialColumnGroup( - columns: (json['Columns'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + columns: + (json['Columns'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, countryCode: (json['CountryCode'] as String?) ?.let(GeoSpatialCountryCode.fromString), @@ -32081,7 +32064,7 @@ class GeospatialHeatmapColorScale { factory GeospatialHeatmapColorScale.fromJson(Map json) { return GeospatialHeatmapColorScale( colors: (json['Colors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GeospatialHeatmapDataColor.fromJson(e as Map)) .toList(), @@ -32168,15 +32151,15 @@ class GeospatialMapAggregatedFieldWells { Map json) { return GeospatialMapAggregatedFieldWells( colors: (json['Colors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), geospatial: (json['Geospatial'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -32382,7 +32365,7 @@ class GeospatialMapVisual { return GeospatialMapVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -32390,7 +32373,7 @@ class GeospatialMapVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -32645,7 +32628,7 @@ class GradientColor { factory GradientColor.fromJson(Map json) { return GradientColor( stops: (json['Stops'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GradientStop.fromJson(e as Map)) .toList(), ); @@ -32740,7 +32723,7 @@ class GridLayoutConfiguration { factory GridLayoutConfiguration.fromJson(Map json) { return GridLayoutConfiguration( elements: (json['Elements'] as List) - .whereNotNull() + .nonNulls .map((e) => GridLayoutElement.fromJson(e as Map)) .toList(), canvasSizeOptions: json['CanvasSizeOptions'] != null @@ -33142,15 +33125,15 @@ class HeatMapAggregatedFieldWells { factory HeatMapAggregatedFieldWells.fromJson(Map json) { return HeatMapAggregatedFieldWells( columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), rows: (json['Rows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -33332,7 +33315,7 @@ class HeatMapSortConfiguration { as Map) : null, heatMapColumnSort: (json['HeatMapColumnSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), heatMapRowItemsLimitConfiguration: @@ -33342,7 +33325,7 @@ class HeatMapSortConfiguration { as Map) : null, heatMapRowSort: (json['HeatMapRowSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -33406,7 +33389,7 @@ class HeatMapVisual { return HeatMapVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -33414,7 +33397,7 @@ class HeatMapVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -33459,7 +33442,7 @@ class HistogramAggregatedFieldWells { factory HistogramAggregatedFieldWells.fromJson(Map json) { return HistogramAggregatedFieldWells( values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -33707,7 +33690,7 @@ class HistogramVisual { return HistogramVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -33795,8 +33778,7 @@ class IAMPolicyAssignment { ?.let(AssignmentStatus.fromString), awsAccountId: json['AwsAccountId'] as String?, identities: (json['Identities'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), policyArn: json['PolicyArn'] as String?, ); } @@ -34273,7 +34255,7 @@ class InsightConfiguration { factory InsightConfiguration.fromJson(Map json) { return InsightConfiguration( computations: (json['Computations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Computation.fromJson(e as Map)) .toList(), customNarrative: json['CustomNarrative'] != null @@ -34339,7 +34321,7 @@ class InsightVisual { dataSetIdentifier: json['DataSetIdentifier'] as String, visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), insightConfiguration: json['InsightConfiguration'] != null @@ -34439,7 +34421,7 @@ class IntegerDatasetParameterDefaultValues { Map json) { return IntegerDatasetParameterDefaultValues( staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -34474,7 +34456,7 @@ class IntegerDefaultValues { json['DynamicValue'] as Map) : null, staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -34506,8 +34488,7 @@ class IntegerParameter { factory IntegerParameter.fromJson(Map json) { return IntegerParameter( name: json['Name'] as String, - values: - (json['Values'] as List).whereNotNull().map((e) => e as int).toList(), + values: (json['Values'] as List).nonNulls.map((e) => e as int).toList(), ); } @@ -34556,7 +34537,7 @@ class IntegerParameterDeclaration { json['DefaultValues'] as Map) : null, mappedDataSetParameters: (json['MappedDataSetParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MappedDataSetParameter.fromJson(e as Map)) .toList(), @@ -34889,7 +34870,7 @@ class KPIConditionalFormatting { return KPIConditionalFormatting( conditionalFormattingOptions: (json['ConditionalFormattingOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KPIConditionalFormattingOption.fromJson( e as Map)) .toList(), @@ -35035,15 +35016,15 @@ class KPIFieldWells { factory KPIFieldWells.fromJson(Map json) { return KPIFieldWells( targetValues: (json['TargetValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), trendGroups: (json['TrendGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -35252,7 +35233,7 @@ class KPISortConfiguration { factory KPISortConfiguration.fromJson(Map json) { return KPISortConfiguration( trendGroupSort: (json['TrendGroupSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -35371,7 +35352,7 @@ class KPIVisual { return KPIVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -35379,7 +35360,7 @@ class KPIVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), conditionalFormatting: json['ConditionalFormatting'] != null @@ -35740,19 +35721,19 @@ class LineChartAggregatedFieldWells { factory LineChartAggregatedFieldWells.fromJson(Map json) { return LineChartAggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), colors: (json['Colors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), smallMultiples: (json['SmallMultiples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -35864,7 +35845,7 @@ class LineChartConfiguration { return LineChartConfiguration( contributionAnalysisDefaults: (json['ContributionAnalysisDefaults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContributionAnalysisDefault.fromJson(e as Map)) .toList(), @@ -35881,7 +35862,7 @@ class LineChartConfiguration { json['FieldWells'] as Map) : null, forecastConfigurations: (json['ForecastConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ForecastConfiguration.fromJson(e as Map)) .toList(), interactions: json['Interactions'] != null @@ -35900,7 +35881,7 @@ class LineChartConfiguration { json['PrimaryYAxisLabelOptions'] as Map) : null, referenceLines: (json['ReferenceLines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceLine.fromJson(e as Map)) .toList(), secondaryYAxisDisplayOptions: json['SecondaryYAxisDisplayOptions'] != null @@ -35912,7 +35893,7 @@ class LineChartConfiguration { json['SecondaryYAxisLabelOptions'] as Map) : null, series: (json['Series'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SeriesItem.fromJson(e as Map)) .toList(), singleAxisOptions: json['SingleAxisOptions'] != null @@ -36320,7 +36301,7 @@ class LineChartSortConfiguration { as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), colorItemsLimitConfiguration: json['ColorItemsLimitConfiguration'] != null @@ -36334,7 +36315,7 @@ class LineChartSortConfiguration { as Map) : null, smallMultiplesSort: (json['SmallMultiplesSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -36416,7 +36397,7 @@ class LineChartVisual { return LineChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -36424,7 +36405,7 @@ class LineChartVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -36493,7 +36474,7 @@ class LineSeriesAxisDisplayOptions { json['AxisOptions'] as Map) : null, missingDataConfigurations: (json['MissingDataConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MissingDataConfiguration.fromJson(e as Map)) .toList(), @@ -36524,7 +36505,7 @@ class LinkSharingConfiguration { factory LinkSharingConfiguration.fromJson(Map json) { return LinkSharingConfiguration( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), ); @@ -36561,7 +36542,7 @@ class ListAnalysesResponse { factory ListAnalysesResponse.fromJson(Map json) { return ListAnalysesResponse( analysisSummaryList: (json['AnalysisSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -36609,7 +36590,7 @@ class ListAssetBundleExportJobsResponse { return ListAssetBundleExportJobsResponse( assetBundleExportJobSummaryList: (json['AssetBundleExportJobSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobSummary.fromJson(e as Map)) .toList(), @@ -36659,7 +36640,7 @@ class ListAssetBundleImportJobsResponse { return ListAssetBundleImportJobsResponse( assetBundleImportJobSummaryList: (json['AssetBundleImportJobSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobSummary.fromJson(e as Map)) .toList(), @@ -36811,7 +36792,7 @@ class ListDashboardVersionsResponse { return ListDashboardVersionsResponse( dashboardVersionSummaryList: (json['DashboardVersionSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashboardVersionSummary.fromJson(e as Map)) .toList(), @@ -36859,7 +36840,7 @@ class ListDashboardsResponse { factory ListDashboardsResponse.fromJson(Map json) { return ListDashboardsResponse( dashboardSummaryList: (json['DashboardSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashboardSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -36905,7 +36886,7 @@ class ListDataSetsResponse { factory ListDataSetsResponse.fromJson(Map json) { return ListDataSetsResponse( dataSetSummaries: (json['DataSetSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSetSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -36950,7 +36931,7 @@ class ListDataSourcesResponse { factory ListDataSourcesResponse.fromJson(Map json) { return ListDataSourcesResponse( dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -36996,7 +36977,7 @@ class ListFolderMembersResponse { factory ListFolderMembersResponse.fromJson(Map json) { return ListFolderMembersResponse( folderMemberList: (json['FolderMemberList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberIdArnPair.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -37042,7 +37023,7 @@ class ListFoldersResponse { factory ListFoldersResponse.fromJson(Map json) { return ListFoldersResponse( folderSummaryList: (json['FolderSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FolderSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -37087,7 +37068,7 @@ class ListGroupMembershipsResponse { factory ListGroupMembershipsResponse.fromJson(Map json) { return ListGroupMembershipsResponse( groupMemberList: (json['GroupMemberList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupMember.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -37132,7 +37113,7 @@ class ListGroupsResponse { factory ListGroupsResponse.fromJson(Map json) { return ListGroupsResponse( groupList: (json['GroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -37178,7 +37159,7 @@ class ListIAMPolicyAssignmentsForUserResponse { Map json) { return ListIAMPolicyAssignmentsForUserResponse( activeAssignments: (json['ActiveAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveIAMPolicyAssignment.fromJson(e as Map)) .toList(), @@ -37224,7 +37205,7 @@ class ListIAMPolicyAssignmentsResponse { factory ListIAMPolicyAssignmentsResponse.fromJson(Map json) { return ListIAMPolicyAssignmentsResponse( iAMPolicyAssignments: (json['IAMPolicyAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IAMPolicyAssignmentSummary.fromJson(e as Map)) .toList(), @@ -37275,7 +37256,7 @@ class ListIdentityPropagationConfigsResponse { nextToken: json['NextToken'] as String?, requestId: json['RequestId'] as String?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorizedTargetsByService.fromJson(e as Map)) .toList(), @@ -37319,7 +37300,7 @@ class ListIngestionsResponse { factory ListIngestionsResponse.fromJson(Map json) { return ListIngestionsResponse( ingestions: (json['Ingestions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ingestion.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -37372,7 +37353,7 @@ class ListNamespacesResponse { factory ListNamespacesResponse.fromJson(Map json) { return ListNamespacesResponse( namespaces: (json['Namespaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NamespaceInfoV2.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -37413,7 +37394,7 @@ class ListRefreshSchedulesResponse { factory ListRefreshSchedulesResponse.fromJson(Map json) { return ListRefreshSchedulesResponse( refreshSchedules: (json['RefreshSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RefreshSchedule.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -37455,7 +37436,7 @@ class ListRoleMembershipsResponse { factory ListRoleMembershipsResponse.fromJson(Map json) { return ListRoleMembershipsResponse( membersList: (json['MembersList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -37499,7 +37480,7 @@ class ListTagsForResourceResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -37542,7 +37523,7 @@ class ListTemplateAliasesResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, templateAliasList: (json['TemplateAliasList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateAlias.fromJson(e as Map)) .toList(), ); @@ -37587,7 +37568,7 @@ class ListTemplateVersionsResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, templateVersionSummaryList: (json['TemplateVersionSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TemplateVersionSummary.fromJson(e as Map)) .toList(), @@ -37634,7 +37615,7 @@ class ListTemplatesResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, templateSummaryList: (json['TemplateSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateSummary.fromJson(e as Map)) .toList(), ); @@ -37680,7 +37661,7 @@ class ListThemeAliasesResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, themeAliasList: (json['ThemeAliasList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThemeAlias.fromJson(e as Map)) .toList(), ); @@ -37725,7 +37706,7 @@ class ListThemeVersionsResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, themeVersionSummaryList: (json['ThemeVersionSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThemeVersionSummary.fromJson(e as Map)) .toList(), ); @@ -37771,7 +37752,7 @@ class ListThemesResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, themeSummaryList: (json['ThemeSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThemeSummary.fromJson(e as Map)) .toList(), ); @@ -37819,7 +37800,7 @@ class ListTopicRefreshSchedulesResponse { Map json) { return ListTopicRefreshSchedulesResponse( refreshSchedules: (json['RefreshSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicRefreshScheduleSummary.fromJson(e as Map)) .toList(), @@ -37871,7 +37852,7 @@ class ListTopicsResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, topicsSummaries: (json['TopicsSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicSummary.fromJson(e as Map)) .toList(), ); @@ -37913,7 +37894,7 @@ class ListUserGroupsResponse { factory ListUserGroupsResponse.fromJson(Map json) { return ListUserGroupsResponse( groupList: (json['GroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -37961,7 +37942,7 @@ class ListUsersResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, userList: (json['UserList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -38007,7 +37988,7 @@ class ListVPCConnectionsResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, vPCConnectionSummaries: (json['VPCConnectionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VPCConnectionSummary.fromJson(e as Map)) .toList(), ); @@ -38102,7 +38083,7 @@ class LogicalTable { source: LogicalTableSource.fromJson(json['Source'] as Map), dataTransforms: (json['DataTransforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransformOperation.fromJson(e as Map)) .toList(), ); @@ -39226,19 +39207,19 @@ class NewDefaultValues { factory NewDefaultValues.fromJson(Map json) { return NewDefaultValues( dateTimeStaticValues: (json['DateTimeStaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), decimalStaticValues: (json['DecimalStaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), integerStaticValues: (json['IntegerStaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), stringStaticValues: (json['StringStaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -40788,10 +40769,8 @@ class ParameterSelectableValues { ? ColumnIdentifier.fromJson( json['LinkToDataSetColumn'] as Map) : null, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -41015,19 +40994,19 @@ class Parameters { factory Parameters.fromJson(Map json) { return Parameters( dateTimeParameters: (json['DateTimeParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateTimeParameter.fromJson(e as Map)) .toList(), decimalParameters: (json['DecimalParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DecimalParameter.fromJson(e as Map)) .toList(), integerParameters: (json['IntegerParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegerParameter.fromJson(e as Map)) .toList(), stringParameters: (json['StringParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringParameter.fromJson(e as Map)) .toList(), ); @@ -41358,15 +41337,15 @@ class PieChartAggregatedFieldWells { factory PieChartAggregatedFieldWells.fromJson(Map json) { return PieChartAggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), smallMultiples: (json['SmallMultiples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -41446,7 +41425,7 @@ class PieChartConfiguration { : null, contributionAnalysisDefaults: (json['ContributionAnalysisDefaults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContributionAnalysisDefault.fromJson(e as Map)) .toList(), @@ -41581,7 +41560,7 @@ class PieChartSortConfiguration { json['CategoryItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), smallMultiplesLimitConfiguration: @@ -41591,7 +41570,7 @@ class PieChartSortConfiguration { as Map) : null, smallMultiplesSort: (json['SmallMultiplesSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -41669,7 +41648,7 @@ class PieChartVisual { return PieChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -41677,7 +41656,7 @@ class PieChartVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -41761,15 +41740,15 @@ class PivotTableAggregatedFieldWells { factory PivotTableAggregatedFieldWells.fromJson(Map json) { return PivotTableAggregatedFieldWells( columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), rows: (json['Rows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -41817,7 +41796,7 @@ class PivotTableCellConditionalFormatting { json['Scope'] as Map) : null, scopes: (json['Scopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotTableConditionalFormattingScope.fromJson( e as Map)) .toList(), @@ -41856,7 +41835,7 @@ class PivotTableConditionalFormatting { return PivotTableConditionalFormatting( conditionalFormattingOptions: (json['ConditionalFormattingOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotTableConditionalFormattingOption.fromJson( e as Map)) .toList(), @@ -42044,7 +42023,7 @@ class PivotTableDataPathOption { factory PivotTableDataPathOption.fromJson(Map json) { return PivotTableDataPathOption( dataPathList: (json['DataPathList'] as List) - .whereNotNull() + .nonNulls .map((e) => DataPathValue.fromJson(e as Map)) .toList(), width: json['Width'] as String?, @@ -42153,7 +42132,7 @@ class PivotTableFieldCollapseStateTarget { Map json) { return PivotTableFieldCollapseStateTarget( fieldDataPathValues: (json['FieldDataPathValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataPathValue.fromJson(e as Map)) .toList(), fieldId: json['FieldId'] as String?, @@ -42228,17 +42207,17 @@ class PivotTableFieldOptions { factory PivotTableFieldOptions.fromJson(Map json) { return PivotTableFieldOptions( collapseStateOptions: (json['CollapseStateOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotTableFieldCollapseStateOption.fromJson( e as Map)) .toList(), dataPathOptions: (json['DataPathOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotTableDataPathOption.fromJson(e as Map)) .toList(), selectedFieldOptions: (json['SelectedFieldOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotTableFieldOption.fromJson(e as Map)) .toList(), ); @@ -42621,7 +42600,7 @@ class PivotTableSortConfiguration { factory PivotTableSortConfiguration.fromJson(Map json) { return PivotTableSortConfiguration( fieldSortOptions: (json['FieldSortOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotFieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -42747,7 +42726,7 @@ class PivotTableVisual { return PivotTableVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -42838,7 +42817,7 @@ class PivotTotalOptions { scrollStatus: (json['ScrollStatus'] as String?) ?.let(TableTotalsScrollStatus.fromString), totalAggregationOptions: (json['TotalAggregationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TotalAggregationOption.fromJson(e as Map)) .toList(), @@ -42939,12 +42918,12 @@ class PredefinedHierarchy { factory PredefinedHierarchy.fromJson(Map json) { return PredefinedHierarchy( columns: (json['Columns'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnIdentifier.fromJson(e as Map)) .toList(), hierarchyId: json['HierarchyId'] as String, drillDownFilters: (json['DrillDownFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DrillDownFilter.fromJson(e as Map)) .toList(), ); @@ -43052,7 +43031,7 @@ class ProjectOperation { factory ProjectOperation.fromJson(Map json) { return ProjectOperation( projectedColumns: (json['ProjectedColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -43192,15 +43171,15 @@ class RadarChartAggregatedFieldWells { factory RadarChartAggregatedFieldWells.fromJson(Map json) { return RadarChartAggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), color: (json['Color'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -43519,7 +43498,7 @@ class RadarChartSortConfiguration { json['CategoryItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), colorItemsLimit: json['ColorItemsLimit'] != null @@ -43527,7 +43506,7 @@ class RadarChartSortConfiguration { json['ColorItemsLimit'] as Map) : null, colorSort: (json['ColorSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -43582,7 +43561,7 @@ class RadarChartVisual { return RadarChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -43590,7 +43569,7 @@ class RadarChartVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -43753,7 +43732,7 @@ class RedshiftIAMParameters { roleArn: json['RoleArn'] as String, autoCreateDatabaseUser: json['AutoCreateDatabaseUser'] as bool?, databaseGroups: (json['DatabaseGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), databaseUser: json['DatabaseUser'] as String?, @@ -44938,7 +44917,7 @@ class RelationalTable { return RelationalTable( dataSourceArn: json['DataSourceArn'] as String, inputColumns: (json['InputColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => InputColumn.fromJson(e as Map)) .toList(), name: json['Name'] as String, @@ -45263,10 +45242,8 @@ class ResourcePermission { factory ResourcePermission.fromJson(Map json) { return ResourcePermission( - actions: (json['Actions'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List).nonNulls.map((e) => e as String).toList(), principal: json['Principal'] as String, ); } @@ -45411,7 +45388,7 @@ class RowAlternateColorOptions { factory RowAlternateColorOptions.fromJson(Map json) { return RowAlternateColorOptions( rowAlternateColors: (json['RowAlternateColors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['Status'] as String?)?.let(WidgetStatus.fromString), @@ -45598,15 +45575,14 @@ class RowLevelPermissionTagConfiguration { Map json) { return RowLevelPermissionTagConfiguration( tagRules: (json['TagRules'] as List) - .whereNotNull() + .nonNulls .map((e) => RowLevelPermissionTagRule.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(Status.fromString), tagRuleConfigurations: (json['TagRuleConfigurations'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -45778,7 +45754,7 @@ class S3Source { return S3Source( dataSourceArn: json['DataSourceArn'] as String, inputColumns: (json['InputColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => InputColumn.fromJson(e as Map)) .toList(), uploadSettings: json['UploadSettings'] != null @@ -45833,7 +45809,7 @@ class SameSheetTargetVisualConfiguration { targetVisualOptions: (json['TargetVisualOptions'] as String?) ?.let(TargetVisualOptions.fromString), targetVisuals: (json['TargetVisuals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -45871,15 +45847,15 @@ class SankeyDiagramAggregatedFieldWells { Map json) { return SankeyDiagramAggregatedFieldWells( destination: (json['Destination'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), source: (json['Source'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), weight: (json['Weight'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -46013,7 +45989,7 @@ class SankeyDiagramSortConfiguration { json['SourceItemsLimit'] as Map) : null, weightSort: (json['WeightSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -46067,7 +46043,7 @@ class SankeyDiagramVisual { return SankeyDiagramVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -46134,23 +46110,23 @@ class ScatterPlotCategoricallyAggregatedFieldWells { Map json) { return ScatterPlotCategoricallyAggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), label: (json['Label'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), size: (json['Size'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), xAxis: (json['XAxis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), yAxis: (json['YAxis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -46414,23 +46390,23 @@ class ScatterPlotUnaggregatedFieldWells { Map json) { return ScatterPlotUnaggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), label: (json['Label'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), size: (json['Size'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), xAxis: (json['XAxis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), yAxis: (json['YAxis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), ); @@ -46491,7 +46467,7 @@ class ScatterPlotVisual { return ScatterPlotVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -46499,7 +46475,7 @@ class ScatterPlotVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -46617,7 +46593,7 @@ class SearchAnalysesResponse { factory SearchAnalysesResponse.fromJson(Map json) { return SearchAnalysesResponse( analysisSummaryList: (json['AnalysisSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46664,7 +46640,7 @@ class SearchDashboardsResponse { factory SearchDashboardsResponse.fromJson(Map json) { return SearchDashboardsResponse( dashboardSummaryList: (json['DashboardSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashboardSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46710,7 +46686,7 @@ class SearchDataSetsResponse { factory SearchDataSetsResponse.fromJson(Map json) { return SearchDataSetsResponse( dataSetSummaries: (json['DataSetSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSetSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46756,7 +46732,7 @@ class SearchDataSourcesResponse { factory SearchDataSourcesResponse.fromJson(Map json) { return SearchDataSourcesResponse( dataSourceSummaries: (json['DataSourceSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46803,7 +46779,7 @@ class SearchFoldersResponse { factory SearchFoldersResponse.fromJson(Map json) { return SearchFoldersResponse( folderSummaryList: (json['FolderSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FolderSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46849,7 +46825,7 @@ class SearchGroupsResponse { factory SearchGroupsResponse.fromJson(Map json) { return SearchGroupsResponse( groupList: (json['GroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46971,19 +46947,19 @@ class SectionBasedLayoutConfiguration { factory SectionBasedLayoutConfiguration.fromJson(Map json) { return SectionBasedLayoutConfiguration( bodySections: (json['BodySections'] as List) - .whereNotNull() + .nonNulls .map((e) => BodySectionConfiguration.fromJson(e as Map)) .toList(), canvasSizeOptions: SectionBasedLayoutCanvasSizeOptions.fromJson( json['CanvasSizeOptions'] as Map), footerSections: (json['FooterSections'] as List) - .whereNotNull() + .nonNulls .map((e) => HeaderFooterSectionConfiguration.fromJson( e as Map)) .toList(), headerSections: (json['HeaderSections'] as List) - .whereNotNull() + .nonNulls .map((e) => HeaderFooterSectionConfiguration.fromJson( e as Map)) .toList(), @@ -47207,7 +47183,7 @@ class SelectedSheetsFilterScopeConfiguration { return SelectedSheetsFilterScopeConfiguration( sheetVisualScopingConfigurations: (json['SheetVisualScopingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetVisualScopingConfiguration.fromJson( e as Map)) .toList(), @@ -47314,13 +47290,13 @@ class SemanticType { return SemanticType( falseyCellValue: json['FalseyCellValue'] as String?, falseyCellValueSynonyms: (json['FalseyCellValueSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subTypeName: json['SubTypeName'] as String?, truthyCellValue: json['TruthyCellValue'] as String?, truthyCellValueSynonyms: (json['TruthyCellValueSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), typeName: json['TypeName'] as String?, @@ -47806,29 +47782,29 @@ class SheetDefinition { (json['ContentType'] as String?)?.let(SheetContentType.fromString), description: json['Description'] as String?, filterControls: (json['FilterControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterControl.fromJson(e as Map)) .toList(), layouts: (json['Layouts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Layout.fromJson(e as Map)) .toList(), name: json['Name'] as String?, parameterControls: (json['ParameterControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterControl.fromJson(e as Map)) .toList(), sheetControlLayouts: (json['SheetControlLayouts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetControlLayout.fromJson(e as Map)) .toList(), textBoxes: (json['TextBoxes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetTextBox.fromJson(e as Map)) .toList(), title: json['Title'] as String?, visuals: (json['Visuals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Visual.fromJson(e as Map)) .toList(), ); @@ -48051,7 +48027,7 @@ class SheetVisualScopingConfiguration { scope: FilterVisualScope.fromString((json['Scope'] as String)), sheetId: json['SheetId'] as String, visualIds: (json['VisualIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -48481,7 +48457,7 @@ class SnapshotAnonymousUserRedacted { factory SnapshotAnonymousUserRedacted.fromJson(Map json) { return SnapshotAnonymousUserRedacted( rowLevelPermissionTagKeys: (json['RowLevelPermissionTagKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -48517,7 +48493,7 @@ class SnapshotConfiguration { factory SnapshotConfiguration.fromJson(Map json) { return SnapshotConfiguration( fileGroups: (json['FileGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => SnapshotFileGroup.fromJson(e as Map)) .toList(), destinationConfiguration: json['DestinationConfiguration'] != null @@ -48558,7 +48534,7 @@ class SnapshotDestinationConfiguration { factory SnapshotDestinationConfiguration.fromJson(Map json) { return SnapshotDestinationConfiguration( s3Destinations: (json['S3Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotS3DestinationConfiguration.fromJson( e as Map)) .toList(), @@ -48598,7 +48574,7 @@ class SnapshotFile { formatType: SnapshotFileFormatType.fromString((json['FormatType'] as String)), sheetSelections: (json['SheetSelections'] as List) - .whereNotNull() + .nonNulls .map((e) => SnapshotFileSheetSelection.fromJson(e as Map)) .toList(), @@ -48645,7 +48621,7 @@ class SnapshotFileGroup { factory SnapshotFileGroup.fromJson(Map json) { return SnapshotFileGroup( files: (json['Files'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotFile.fromJson(e as Map)) .toList(), ); @@ -48703,7 +48679,7 @@ class SnapshotFileSheetSelection { (json['SelectionScope'] as String)), sheetId: json['SheetId'] as String, visualIds: (json['VisualIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -48784,7 +48760,7 @@ class SnapshotJobResult { factory SnapshotJobResult.fromJson(Map json) { return SnapshotJobResult( anonymousUsers: (json['AnonymousUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnonymousUserSnapshotJobResult.fromJson( e as Map)) .toList(), @@ -48845,11 +48821,11 @@ class SnapshotJobResultFileGroup { factory SnapshotJobResultFileGroup.fromJson(Map json) { return SnapshotJobResultFileGroup( files: (json['Files'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotFile.fromJson(e as Map)) .toList(), s3Results: (json['S3Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotJobS3Result.fromJson(e as Map)) .toList(), ); @@ -48889,7 +48865,7 @@ class SnapshotJobS3Result { factory SnapshotJobS3Result.fromJson(Map json) { return SnapshotJobS3Result( errorInfo: (json['ErrorInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotJobResultErrorInfo.fromJson(e as Map)) .toList(), @@ -48992,7 +48968,7 @@ class SnapshotUserConfigurationRedacted { Map json) { return SnapshotUserConfigurationRedacted( anonymousUsers: (json['AnonymousUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotAnonymousUserRedacted.fromJson(e as Map)) .toList(), @@ -49499,7 +49475,7 @@ class StringDatasetParameterDefaultValues { Map json) { return StringDatasetParameterDefaultValues( staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -49534,7 +49510,7 @@ class StringDefaultValues { json['DynamicValue'] as Map) : null, staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -49604,10 +49580,8 @@ class StringParameter { factory StringParameter.fromJson(Map json) { return StringParameter( name: json['Name'] as String, - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -49657,7 +49631,7 @@ class StringParameterDeclaration { json['DefaultValues'] as Map) : null, mappedDataSetParameters: (json['MappedDataSetParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MappedDataSetParameter.fromJson(e as Map)) .toList(), @@ -49788,7 +49762,7 @@ class SubtotalOptions { fieldLevel: (json['FieldLevel'] as String?) ?.let(PivotTableSubtotalLevel.fromString), fieldLevelOptions: (json['FieldLevelOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotTableFieldSubtotalOptions.fromJson( e as Map)) .toList(), @@ -49797,7 +49771,7 @@ class SubtotalOptions { json['MetricHeaderCellStyle'] as Map) : null, styleTargets: (json['StyleTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableStyleTarget.fromJson(e as Map)) .toList(), totalCellStyle: json['TotalCellStyle'] != null @@ -49886,11 +49860,11 @@ class TableAggregatedFieldWells { factory TableAggregatedFieldWells.fromJson(Map json) { return TableAggregatedFieldWells( groupBy: (json['GroupBy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -50133,7 +50107,7 @@ class TableConditionalFormatting { return TableConditionalFormatting( conditionalFormattingOptions: (json['ConditionalFormattingOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableConditionalFormattingOption.fromJson( e as Map)) .toList(), @@ -50244,7 +50218,7 @@ class TableConfiguration { json['SortConfiguration'] as Map) : null, tableInlineVisualizations: (json['TableInlineVisualizations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableInlineVisualization.fromJson(e as Map)) .toList(), @@ -50522,16 +50496,14 @@ class TableFieldOptions { factory TableFieldOptions.fromJson(Map json) { return TableFieldOptions( - order: (json['Order'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + order: + (json['Order'] as List?)?.nonNulls.map((e) => e as String).toList(), pinnedFieldOptions: json['PinnedFieldOptions'] != null ? TablePinnedFieldOptions.fromJson( json['PinnedFieldOptions'] as Map) : null, selectedFieldOptions: (json['SelectedFieldOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableFieldOption.fromJson(e as Map)) .toList(), ); @@ -50770,7 +50742,7 @@ class TablePinnedFieldOptions { factory TablePinnedFieldOptions.fromJson(Map json) { return TablePinnedFieldOptions( pinnedLeftFields: (json['PinnedLeftFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -50914,7 +50886,7 @@ class TableSortConfiguration { json['PaginationConfiguration'] as Map) : null, rowSort: (json['RowSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -50998,7 +50970,7 @@ class TableUnaggregatedFieldWells { factory TableUnaggregatedFieldWells.fromJson(Map json) { return TableUnaggregatedFieldWells( values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnaggregatedField.fromJson(e as Map)) .toList(), ); @@ -51051,7 +51023,7 @@ class TableVisual { return TableVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -51143,7 +51115,7 @@ class TagColumnOperation { return TagColumnOperation( columnName: json['ColumnName'] as String, tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnTag.fromJson(e as Map)) .toList(), ); @@ -51333,7 +51305,7 @@ class TemplateError { message: json['Message'] as String?, type: (json['Type'] as String?)?.let(TemplateErrorType.fromString), violatedEntities: (json['ViolatedEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), ); @@ -51566,16 +51538,16 @@ class TemplateVersion { return TemplateVersion( createdTime: timeStampFromJson(json['CreatedTime']), dataSetConfigurations: (json['DataSetConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSetConfiguration.fromJson(e as Map)) .toList(), description: json['Description'] as String?, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateError.fromJson(e as Map)) .toList(), sheets: (json['Sheets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Sheet.fromJson(e as Map)) .toList(), sourceEntityArn: json['SourceEntityArn'] as String?, @@ -51662,7 +51634,7 @@ class TemplateVersionDefinition { factory TemplateVersionDefinition.fromJson(Map json) { return TemplateVersionDefinition( dataSetConfigurations: (json['DataSetConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSetConfiguration.fromJson(e as Map)) .toList(), analysisDefaults: json['AnalysisDefaults'] != null @@ -51670,26 +51642,26 @@ class TemplateVersionDefinition { json['AnalysisDefaults'] as Map) : null, calculatedFields: (json['CalculatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CalculatedField.fromJson(e as Map)) .toList(), columnConfigurations: (json['ColumnConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnConfiguration.fromJson(e as Map)) .toList(), filterGroups: (json['FilterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterGroup.fromJson(e as Map)) .toList(), options: json['Options'] != null ? AssetOptions.fromJson(json['Options'] as Map) : null, parameterDeclarations: (json['ParameterDeclarations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterDeclaration.fromJson(e as Map)) .toList(), sheets: (json['Sheets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetDefinition.fromJson(e as Map)) .toList(), ); @@ -52324,7 +52296,7 @@ class ThemeVersion { createdTime: timeStampFromJson(json['CreatedTime']), description: json['Description'] as String?, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThemeError.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(ResourceStatus.fromString), @@ -53068,7 +53040,7 @@ class TopBottomFilter { return TopBottomFilter( aggregationSortConfigurations: (json['AggregationSortConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => AggregationSortConfiguration.fromJson(e as Map)) .toList(), @@ -53381,16 +53353,16 @@ class TopicCalculatedField { aggregation: (json['Aggregation'] as String?)?.let(DefaultAggregation.fromString), allowedAggregations: (json['AllowedAggregations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorSpecifiedAggregation.fromString((e as String))) .toList(), calculatedFieldDescription: json['CalculatedFieldDescription'] as String?, calculatedFieldSynonyms: (json['CalculatedFieldSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cellValueSynonyms: (json['CellValueSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CellValueSynonym.fromJson(e as Map)) .toList(), columnDataRole: @@ -53408,7 +53380,7 @@ class TopicCalculatedField { neverAggregateInFilter: json['NeverAggregateInFilter'] as bool?, nonAdditive: json['NonAdditive'] as bool?, notAllowedAggregations: (json['NotAllowedAggregations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorSpecifiedAggregation.fromString((e as String))) .toList(), semanticType: json['SemanticType'] != null @@ -53658,11 +53630,11 @@ class TopicColumn { aggregation: (json['Aggregation'] as String?)?.let(DefaultAggregation.fromString), allowedAggregations: (json['AllowedAggregations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorSpecifiedAggregation.fromString((e as String))) .toList(), cellValueSynonyms: (json['CellValueSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CellValueSynonym.fromJson(e as Map)) .toList(), columnDataRole: @@ -53670,7 +53642,7 @@ class TopicColumn { columnDescription: json['ColumnDescription'] as String?, columnFriendlyName: json['ColumnFriendlyName'] as String?, columnSynonyms: (json['ColumnSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), comparativeOrder: json['ComparativeOrder'] != null @@ -53686,7 +53658,7 @@ class TopicColumn { neverAggregateInFilter: json['NeverAggregateInFilter'] as bool?, nonAdditive: json['NonAdditive'] as bool?, notAllowedAggregations: (json['NotAllowedAggregations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorSpecifiedAggregation.fromString((e as String))) .toList(), semanticType: json['SemanticType'] != null @@ -53801,7 +53773,7 @@ class TopicDetails { factory TopicDetails.fromJson(Map json) { return TopicDetails( dataSets: (json['DataSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetMetadata.fromJson(e as Map)) .toList(), description: json['Description'] as String?, @@ -53896,7 +53868,7 @@ class TopicFilter { (json['FilterClass'] as String?)?.let(FilterClass.fromString), filterDescription: json['FilterDescription'] as String?, filterSynonyms: (json['FilterSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), filterType: @@ -53974,12 +53946,12 @@ class TopicNamedEntity { return TopicNamedEntity( entityName: json['EntityName'] as String, definition: (json['Definition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NamedEntityDefinition.fromJson(e as Map)) .toList(), entityDescription: json['EntityDescription'] as String?, entitySynonyms: (json['EntitySynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), semanticEntityType: json['SemanticEntityType'] != null @@ -54650,7 +54622,7 @@ class TotalOptions { scrollStatus: (json['ScrollStatus'] as String?) ?.let(TableTotalsScrollStatus.fromString), totalAggregationOptions: (json['TotalAggregationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TotalAggregationOption.fromJson(e as Map)) .toList(), @@ -54808,15 +54780,15 @@ class TreeMapAggregatedFieldWells { factory TreeMapAggregatedFieldWells.fromJson(Map json) { return TreeMapAggregatedFieldWells( colors: (json['Colors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), sizes: (json['Sizes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -55002,7 +54974,7 @@ class TreeMapSortConfiguration { as Map) : null, treeMapSort: (json['TreeMapSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -55060,7 +55032,7 @@ class TreeMapVisual { return TreeMapVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -55068,7 +55040,7 @@ class TreeMapVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -55202,7 +55174,7 @@ class Typography { factory Typography.fromJson(Map json) { return Typography( fontFamilies: (json['FontFamilies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Font.fromJson(e as Map)) .toList(), ); @@ -55493,7 +55465,7 @@ class UntagColumnOperation { return UntagColumnOperation( columnName: json['ColumnName'] as String, tagNames: (json['TagNames'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnTagName.fromString((e as String))) .toList(), ); @@ -55660,7 +55632,7 @@ class UpdateAnalysisPermissionsResponse { analysisArn: json['AnalysisArn'] as String?, analysisId: json['AnalysisId'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -55758,7 +55730,7 @@ class UpdateDashboardLinksResponse { return UpdateDashboardLinksResponse( dashboardArn: json['DashboardArn'] as String?, linkEntities: (json['LinkEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), requestId: json['RequestId'] as String?, @@ -55817,7 +55789,7 @@ class UpdateDashboardPermissionsResponse { json['LinkSharingConfiguration'] as Map) : null, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -56170,7 +56142,7 @@ class UpdateFolderPermissionsResponse { arn: json['Arn'] as String?, folderId: json['FolderId'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -56330,8 +56302,7 @@ class UpdateIAMPolicyAssignmentResponse { assignmentStatus: (json['AssignmentStatus'] as String?) ?.let(AssignmentStatus.fromString), identities: (json['Identities'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), policyArn: json['PolicyArn'] as String?, requestId: json['RequestId'] as String?, status: json['Status'] as int?, @@ -56441,13 +56412,13 @@ class UpdateKeyRegistrationResponse { factory UpdateKeyRegistrationResponse.fromJson(Map json) { return UpdateKeyRegistrationResponse( failedKeyRegistration: (json['FailedKeyRegistration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedKeyRegistrationEntry.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, successfulKeyRegistration: (json['SuccessfulKeyRegistration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuccessfulKeyRegistrationEntry.fromJson( e as Map)) .toList(), @@ -56664,7 +56635,7 @@ class UpdateTemplatePermissionsResponse { Map json) { return UpdateTemplatePermissionsResponse( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -56811,7 +56782,7 @@ class UpdateThemePermissionsResponse { factory UpdateThemePermissionsResponse.fromJson(Map json) { return UpdateThemePermissionsResponse( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -56921,7 +56892,7 @@ class UpdateTopicPermissionsResponse { factory UpdateTopicPermissionsResponse.fromJson(Map json) { return UpdateTopicPermissionsResponse( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -57438,18 +57409,18 @@ class VPCConnection { ?.let(VPCConnectionAvailabilityStatus.fromString), createdTime: timeStampFromJson(json['CreatedTime']), dnsResolvers: (json['DnsResolvers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), name: json['Name'] as String?, networkInterfaces: (json['NetworkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), roleArn: json['RoleArn'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['Status'] as String?) @@ -57591,18 +57562,18 @@ class VPCConnectionSummary { ?.let(VPCConnectionAvailabilityStatus.fromString), createdTime: timeStampFromJson(json['CreatedTime']), dnsResolvers: (json['DnsResolvers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), name: json['Name'] as String?, networkInterfaces: (json['NetworkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), roleArn: json['RoleArn'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['Status'] as String?) @@ -58160,7 +58131,7 @@ class VisualCustomAction { factory VisualCustomAction.fromJson(Map json) { return VisualCustomAction( actionOperations: (json['ActionOperations'] as List) - .whereNotNull() + .nonNulls .map((e) => VisualCustomActionOperation.fromJson(e as Map)) .toList(), @@ -58344,7 +58315,7 @@ class VisualPalette { return VisualPalette( chartColor: json['ChartColor'] as String?, colorMap: (json['ColorMap'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataPathColor.fromJson(e as Map)) .toList(), ); @@ -58468,15 +58439,15 @@ class WaterfallChartAggregatedFieldWells { Map json) { return WaterfallChartAggregatedFieldWells( breakdowns: (json['Breakdowns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -58773,7 +58744,7 @@ class WaterfallChartSortConfiguration { json['BreakdownItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -58829,7 +58800,7 @@ class WaterfallVisual { return WaterfallVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -58837,7 +58808,7 @@ class WaterfallVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -58969,11 +58940,11 @@ class WordCloudAggregatedFieldWells { factory WordCloudAggregatedFieldWells.fromJson(Map json) { return WordCloudAggregatedFieldWells( groupBy: (json['GroupBy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), size: (json['Size'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -59190,7 +59161,7 @@ class WordCloudSortConfiguration { json['CategoryItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -59245,7 +59216,7 @@ class WordCloudVisual { return WordCloudVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -59253,7 +59224,7 @@ class WordCloudVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null diff --git a/aws_client/lib/src/generated/ram/v2018_01_04.dart b/aws_client/lib/src/generated/ram/v2018_01_04.dart index 49e3995ac..f3f557b43 100644 --- a/aws_client/lib/src/generated/ram/v2018_01_04.dart +++ b/aws_client/lib/src/generated/ram/v2018_01_04.dart @@ -2795,7 +2795,7 @@ class AssociateResourceShareResponse { return AssociateResourceShareResponse( clientToken: json['clientToken'] as String?, resourceShareAssociations: (json['resourceShareAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceShareAssociation.fromJson(e as Map)) .toList(), @@ -3221,7 +3221,7 @@ class DisassociateResourceShareResponse { return DisassociateResourceShareResponse( clientToken: json['clientToken'] as String?, resourceShareAssociations: (json['resourceShareAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceShareAssociation.fromJson(e as Map)) .toList(), @@ -3309,7 +3309,7 @@ class GetResourcePoliciesResponse { return GetResourcePoliciesResponse( nextToken: json['nextToken'] as String?, policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3347,7 +3347,7 @@ class GetResourceShareAssociationsResponse { return GetResourceShareAssociationsResponse( nextToken: json['nextToken'] as String?, resourceShareAssociations: (json['resourceShareAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceShareAssociation.fromJson(e as Map)) .toList(), @@ -3387,7 +3387,7 @@ class GetResourceShareInvitationsResponse { return GetResourceShareInvitationsResponse( nextToken: json['nextToken'] as String?, resourceShareInvitations: (json['resourceShareInvitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceShareInvitation.fromJson(e as Map)) .toList(), @@ -3426,7 +3426,7 @@ class GetResourceSharesResponse { return GetResourceSharesResponse( nextToken: json['nextToken'] as String?, resourceShares: (json['resourceShares'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceShare.fromJson(e as Map)) .toList(), ); @@ -3465,7 +3465,7 @@ class ListPendingInvitationResourcesResponse { return ListPendingInvitationResourcesResponse( nextToken: json['nextToken'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -3503,7 +3503,7 @@ class ListPermissionAssociationsResponse { return ListPermissionAssociationsResponse( nextToken: json['nextToken'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociatedPermission.fromJson(e as Map)) .toList(), ); @@ -3540,7 +3540,7 @@ class ListPermissionVersionsResponse { return ListPermissionVersionsResponse( nextToken: json['nextToken'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceSharePermissionSummary.fromJson( e as Map)) .toList(), @@ -3578,7 +3578,7 @@ class ListPermissionsResponse { return ListPermissionsResponse( nextToken: json['nextToken'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceSharePermissionSummary.fromJson( e as Map)) .toList(), @@ -3616,7 +3616,7 @@ class ListPrincipalsResponse { return ListPrincipalsResponse( nextToken: json['nextToken'] as String?, principals: (json['principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Principal.fromJson(e as Map)) .toList(), ); @@ -3656,7 +3656,7 @@ class ListReplacePermissionAssociationsWorkResponse { nextToken: json['nextToken'] as String?, replacePermissionAssociationsWorks: (json['replacePermissionAssociationsWorks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplacePermissionAssociationsWork.fromJson( e as Map)) .toList(), @@ -3699,7 +3699,7 @@ class ListResourceSharePermissionsResponse { return ListResourceSharePermissionsResponse( nextToken: json['nextToken'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceSharePermissionSummary.fromJson( e as Map)) .toList(), @@ -3738,7 +3738,7 @@ class ListResourceTypesResponse { return ListResourceTypesResponse( nextToken: json['nextToken'] as String?, resourceTypes: (json['resourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceNameAndResourceType.fromJson(e as Map)) .toList(), @@ -3776,7 +3776,7 @@ class ListResourcesResponse { return ListResourcesResponse( nextToken: json['nextToken'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -4442,7 +4442,7 @@ class ResourceShare { status: (json['status'] as String?)?.let(ResourceShareStatus.fromString), statusMessage: json['statusMessage'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4701,7 +4701,7 @@ class ResourceShareInvitation { receiverArn: json['receiverArn'] as String?, resourceShareArn: json['resourceShareArn'] as String?, resourceShareAssociations: (json['resourceShareAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceShareAssociation.fromJson(e as Map)) .toList(), @@ -4896,7 +4896,7 @@ class ResourceSharePermissionDetail { resourceType: json['resourceType'] as String?, status: (json['status'] as String?)?.let(PermissionStatus.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -5053,7 +5053,7 @@ class ResourceSharePermissionSummary { resourceType: json['resourceType'] as String?, status: json['status'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), version: json['version'] as String?, diff --git a/aws_client/lib/src/generated/rbin/v2021_06_15.dart b/aws_client/lib/src/generated/rbin/v2021_06_15.dart index 75461f3f6..1ed6d270b 100644 --- a/aws_client/lib/src/generated/rbin/v2021_06_15.dart +++ b/aws_client/lib/src/generated/rbin/v2021_06_15.dart @@ -506,7 +506,7 @@ class CreateRuleResponse { : null, lockState: (json['LockState'] as String?)?.let(LockState.fromString), resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), resourceType: @@ -518,7 +518,7 @@ class CreateRuleResponse { ruleArn: json['RuleArn'] as String?, status: (json['Status'] as String?)?.let(RuleStatus.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -644,7 +644,7 @@ class GetRuleResponse { lockEndTime: timeStampFromJson(json['LockEndTime']), lockState: (json['LockState'] as String?)?.let(LockState.fromString), resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), resourceType: @@ -701,7 +701,7 @@ class ListRulesResponse { return ListRulesResponse( nextToken: json['NextToken'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), ); @@ -728,7 +728,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -838,7 +838,7 @@ class LockRuleResponse { : null, lockState: (json['LockState'] as String?)?.let(LockState.fromString), resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), resourceType: @@ -1247,7 +1247,7 @@ class UnlockRuleResponse { lockEndTime: timeStampFromJson(json['LockEndTime']), lockState: (json['LockState'] as String?)?.let(LockState.fromString), resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), resourceType: @@ -1370,7 +1370,7 @@ class UpdateRuleResponse { lockEndTime: timeStampFromJson(json['LockEndTime']), lockState: (json['LockState'] as String?)?.let(LockState.fromString), resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), resourceType: diff --git a/aws_client/lib/src/generated/rds/v2013_01_10.dart b/aws_client/lib/src/generated/rds/v2013_01_10.dart index ab0e74c26..3a422dd44 100644 --- a/aws_client/lib/src/generated/rds/v2013_01_10.dart +++ b/aws_client/lib/src/generated/rds/v2013_01_10.dart @@ -2927,7 +2927,7 @@ class Event { sourceIdentifier: _s.extractXmlStringValue(elem, 'SourceIdentifier'), sourceType: _s .extractXmlStringValue(elem, 'SourceType') - ?.let(SourceType.fromString) /* Nullability(true, true) */, + ?.let(SourceType.fromString), ); } @@ -3664,7 +3664,7 @@ class Parameter { allowedValues: _s.extractXmlStringValue(elem, 'AllowedValues'), applyMethod: _s .extractXmlStringValue(elem, 'ApplyMethod') - ?.let(ApplyMethod.fromString) /* Nullability(true, true) */, + ?.let(ApplyMethod.fromString), applyType: _s.extractXmlStringValue(elem, 'ApplyType'), dataType: _s.extractXmlStringValue(elem, 'DataType'), description: _s.extractXmlStringValue(elem, 'Description'), diff --git a/aws_client/lib/src/generated/rds/v2013_02_12.dart b/aws_client/lib/src/generated/rds/v2013_02_12.dart index f060333c5..67b6bea5c 100644 --- a/aws_client/lib/src/generated/rds/v2013_02_12.dart +++ b/aws_client/lib/src/generated/rds/v2013_02_12.dart @@ -3084,7 +3084,7 @@ class Event { sourceIdentifier: _s.extractXmlStringValue(elem, 'SourceIdentifier'), sourceType: _s .extractXmlStringValue(elem, 'SourceType') - ?.let(SourceType.fromString) /* Nullability(true, true) */, + ?.let(SourceType.fromString), ); } @@ -3986,7 +3986,7 @@ class Parameter { allowedValues: _s.extractXmlStringValue(elem, 'AllowedValues'), applyMethod: _s .extractXmlStringValue(elem, 'ApplyMethod') - ?.let(ApplyMethod.fromString) /* Nullability(true, true) */, + ?.let(ApplyMethod.fromString), applyType: _s.extractXmlStringValue(elem, 'ApplyType'), dataType: _s.extractXmlStringValue(elem, 'DataType'), description: _s.extractXmlStringValue(elem, 'Description'), diff --git a/aws_client/lib/src/generated/rds/v2013_09_09.dart b/aws_client/lib/src/generated/rds/v2013_09_09.dart index f89c316c2..9d89b3a22 100644 --- a/aws_client/lib/src/generated/rds/v2013_09_09.dart +++ b/aws_client/lib/src/generated/rds/v2013_09_09.dart @@ -3381,7 +3381,7 @@ class Event { sourceIdentifier: _s.extractXmlStringValue(elem, 'SourceIdentifier'), sourceType: _s .extractXmlStringValue(elem, 'SourceType') - ?.let(SourceType.fromString) /* Nullability(true, true) */, + ?.let(SourceType.fromString), ); } @@ -4325,7 +4325,7 @@ class Parameter { allowedValues: _s.extractXmlStringValue(elem, 'AllowedValues'), applyMethod: _s .extractXmlStringValue(elem, 'ApplyMethod') - ?.let(ApplyMethod.fromString) /* Nullability(true, true) */, + ?.let(ApplyMethod.fromString), applyType: _s.extractXmlStringValue(elem, 'ApplyType'), dataType: _s.extractXmlStringValue(elem, 'DataType'), description: _s.extractXmlStringValue(elem, 'Description'), diff --git a/aws_client/lib/src/generated/rds/v2014_09_01.dart b/aws_client/lib/src/generated/rds/v2014_09_01.dart index 3c1c5db1a..fcb26fe43 100644 --- a/aws_client/lib/src/generated/rds/v2014_09_01.dart +++ b/aws_client/lib/src/generated/rds/v2014_09_01.dart @@ -3544,7 +3544,7 @@ class Event { sourceIdentifier: _s.extractXmlStringValue(elem, 'SourceIdentifier'), sourceType: _s .extractXmlStringValue(elem, 'SourceType') - ?.let(SourceType.fromString) /* Nullability(true, true) */, + ?.let(SourceType.fromString), ); } @@ -4498,7 +4498,7 @@ class Parameter { allowedValues: _s.extractXmlStringValue(elem, 'AllowedValues'), applyMethod: _s .extractXmlStringValue(elem, 'ApplyMethod') - ?.let(ApplyMethod.fromString) /* Nullability(true, true) */, + ?.let(ApplyMethod.fromString), applyType: _s.extractXmlStringValue(elem, 'ApplyType'), dataType: _s.extractXmlStringValue(elem, 'DataType'), description: _s.extractXmlStringValue(elem, 'Description'), diff --git a/aws_client/lib/src/generated/rds/v2014_10_31.dart b/aws_client/lib/src/generated/rds/v2014_10_31.dart index bc43860f0..12dbde583 100644 --- a/aws_client/lib/src/generated/rds/v2014_10_31.dart +++ b/aws_client/lib/src/generated/rds/v2014_10_31.dart @@ -24377,10 +24377,10 @@ class DBCluster { _s.extractXmlStringValue(elem, 'ActivityStreamKmsKeyId'), activityStreamMode: _s .extractXmlStringValue(elem, 'ActivityStreamMode') - ?.let(ActivityStreamMode.fromString) /* Nullability(true, true) */, + ?.let(ActivityStreamMode.fromString), activityStreamStatus: _s .extractXmlStringValue(elem, 'ActivityStreamStatus') - ?.let(ActivityStreamStatus.fromString) /* Nullability(true, true) */, + ?.let(ActivityStreamStatus.fromString), allocatedStorage: _s.extractXmlIntValue(elem, 'AllocatedStorage'), associatedRoles: _s.extractXmlChild(elem, 'AssociatedRoles')?.let( (elem) => elem @@ -24458,7 +24458,7 @@ class DBCluster { _s.extractXmlBoolValue(elem, 'GlobalWriteForwardingRequested'), globalWriteForwardingStatus: _s .extractXmlStringValue(elem, 'GlobalWriteForwardingStatus') - ?.let(WriteForwardingStatus.fromString) /* Nullability(true, true) */, + ?.let(WriteForwardingStatus.fromString), hostedZoneId: _s.extractXmlStringValue(elem, 'HostedZoneId'), httpEndpointEnabled: _s.extractXmlBoolValue(elem, 'HttpEndpointEnabled'), iAMDatabaseAuthenticationEnabled: @@ -24474,8 +24474,7 @@ class DBCluster { ?.let(LimitlessDatabase.fromXml), localWriteForwardingStatus: _s .extractXmlStringValue(elem, 'LocalWriteForwardingStatus') - ?.let(LocalWriteForwardingStatus - .fromString) /* Nullability(true, true) */, + ?.let(LocalWriteForwardingStatus.fromString), masterUserSecret: _s .extractXmlChild(elem, 'MasterUserSecret') ?.let(MasterUserSecret.fromXml), @@ -27116,14 +27115,13 @@ class DBInstance { _s.extractXmlStringValue(elem, 'ActivityStreamKmsKeyId'), activityStreamMode: _s .extractXmlStringValue(elem, 'ActivityStreamMode') - ?.let(ActivityStreamMode.fromString) /* Nullability(true, true) */, + ?.let(ActivityStreamMode.fromString), activityStreamPolicyStatus: _s .extractXmlStringValue(elem, 'ActivityStreamPolicyStatus') - ?.let(ActivityStreamPolicyStatus - .fromString) /* Nullability(true, true) */, + ?.let(ActivityStreamPolicyStatus.fromString), activityStreamStatus: _s .extractXmlStringValue(elem, 'ActivityStreamStatus') - ?.let(ActivityStreamStatus.fromString) /* Nullability(true, true) */, + ?.let(ActivityStreamStatus.fromString), allocatedStorage: _s.extractXmlIntValue(elem, 'AllocatedStorage'), associatedRoles: _s.extractXmlChild(elem, 'AssociatedRoles')?.let( (elem) => elem @@ -27136,7 +27134,7 @@ class DBInstance { _s.extractXmlDateTimeValue(elem, 'AutomaticRestartTime'), automationMode: _s .extractXmlStringValue(elem, 'AutomationMode') - ?.let(AutomationMode.fromString) /* Nullability(true, true) */, + ?.let(AutomationMode.fromString), availabilityZone: _s.extractXmlStringValue(elem, 'AvailabilityZone'), awsBackupRecoveryPointArn: _s.extractXmlStringValue(elem, 'AwsBackupRecoveryPointArn'), @@ -27266,7 +27264,7 @@ class DBInstance { elem, 'ReadReplicaSourceDBInstanceIdentifier'), replicaMode: _s .extractXmlStringValue(elem, 'ReplicaMode') - ?.let(ReplicaMode.fromString) /* Nullability(true, true) */, + ?.let(ReplicaMode.fromString), resumeFullAutomationModeTime: _s.extractXmlDateTimeValue(elem, 'ResumeFullAutomationModeTime'), secondaryAvailabilityZone: @@ -28329,7 +28327,7 @@ class DBProxy { roleArn: _s.extractXmlStringValue(elem, 'RoleArn'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(DBProxyStatus.fromString) /* Nullability(true, true) */, + ?.let(DBProxyStatus.fromString), updatedDate: _s.extractXmlDateTimeValue(elem, 'UpdatedDate'), vpcId: _s.extractXmlStringValue(elem, 'VpcId'), vpcSecurityGroupIds: _s @@ -28456,9 +28454,10 @@ class DBProxyEndpoint { isDefault: _s.extractXmlBoolValue(elem, 'IsDefault'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(DBProxyEndpointStatus.fromString) /* Nullability(true, true) */, - targetRole: _s.extractXmlStringValue(elem, 'TargetRole')?.let( - DBProxyEndpointTargetRole.fromString) /* Nullability(true, true) */, + ?.let(DBProxyEndpointStatus.fromString), + targetRole: _s + .extractXmlStringValue(elem, 'TargetRole') + ?.let(DBProxyEndpointTargetRole.fromString), vpcId: _s.extractXmlStringValue(elem, 'VpcId'), vpcSecurityGroupIds: _s .extractXmlChild(elem, 'VpcSecurityGroupIds') @@ -28606,16 +28605,12 @@ class DBProxyTarget { endpoint: _s.extractXmlStringValue(elem, 'Endpoint'), port: _s.extractXmlIntValue(elem, 'Port'), rdsResourceId: _s.extractXmlStringValue(elem, 'RdsResourceId'), - role: _s - .extractXmlStringValue(elem, 'Role') - ?.let(TargetRole.fromString) /* Nullability(true, true) */, + role: _s.extractXmlStringValue(elem, 'Role')?.let(TargetRole.fromString), targetArn: _s.extractXmlStringValue(elem, 'TargetArn'), targetHealth: _s.extractXmlChild(elem, 'TargetHealth')?.let(TargetHealth.fromXml), trackedClusterId: _s.extractXmlStringValue(elem, 'TrackedClusterId'), - type: _s - .extractXmlStringValue(elem, 'Type') - ?.let(TargetType.fromString) /* Nullability(true, true) */, + type: _s.extractXmlStringValue(elem, 'Type')?.let(TargetType.fromString), ); } @@ -31151,7 +31146,7 @@ class Event { sourceIdentifier: _s.extractXmlStringValue(elem, 'SourceIdentifier'), sourceType: _s .extractXmlStringValue(elem, 'SourceType') - ?.let(SourceType.fromString) /* Nullability(true, true) */, + ?.let(SourceType.fromString), ); } @@ -31566,7 +31561,7 @@ class ExportTask { sourceArn: _s.extractXmlStringValue(elem, 'SourceArn'), sourceType: _s .extractXmlStringValue(elem, 'SourceType') - ?.let(ExportSourceType.fromString) /* Nullability(true, true) */, + ?.let(ExportSourceType.fromString), status: _s.extractXmlStringValue(elem, 'Status'), taskEndTime: _s.extractXmlDateTimeValue(elem, 'TaskEndTime'), taskStartTime: _s.extractXmlDateTimeValue(elem, 'TaskStartTime'), @@ -31747,7 +31742,7 @@ class FailoverState { isDataLossAllowed: _s.extractXmlBoolValue(elem, 'IsDataLossAllowed'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(FailoverStatus.fromString) /* Nullability(true, true) */, + ?.let(FailoverStatus.fromString), toDbClusterArn: _s.extractXmlStringValue(elem, 'ToDbClusterArn'), ); } @@ -32007,15 +32002,14 @@ class GlobalClusterMember { dBClusterArn: _s.extractXmlStringValue(elem, 'DBClusterArn'), globalWriteForwardingStatus: _s .extractXmlStringValue(elem, 'GlobalWriteForwardingStatus') - ?.let(WriteForwardingStatus.fromString) /* Nullability(true, true) */, + ?.let(WriteForwardingStatus.fromString), isWriter: _s.extractXmlBoolValue(elem, 'IsWriter'), readers: _s .extractXmlChild(elem, 'Readers') ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), synchronizationStatus: _s .extractXmlStringValue(elem, 'SynchronizationStatus') - ?.let(GlobalClusterMemberSynchronizationStatus - .fromString) /* Nullability(true, true) */, + ?.let(GlobalClusterMemberSynchronizationStatus.fromString), ); } @@ -32217,7 +32211,7 @@ class Integration { sourceArn: _s.extractXmlStringValue(elem, 'SourceArn'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(IntegrationStatus.fromString) /* Nullability(true, true) */, + ?.let(IntegrationStatus.fromString), tags: _s .extractXmlChild(elem, 'Tags') ?.let((elem) => elem.findElements('Tag').map(Tag.fromXml).toList()), @@ -32348,8 +32342,9 @@ class LimitlessDatabase { factory LimitlessDatabase.fromXml(_s.XmlElement elem) { return LimitlessDatabase( minRequiredACU: _s.extractXmlDoubleValue(elem, 'MinRequiredACU'), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - LimitlessDatabaseStatus.fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(LimitlessDatabaseStatus.fromString), ); } @@ -32647,12 +32642,13 @@ class ModifyActivityStreamResponse { kmsKeyId: _s.extractXmlStringValue(elem, 'KmsKeyId'), mode: _s .extractXmlStringValue(elem, 'Mode') - ?.let(ActivityStreamMode.fromString) /* Nullability(true, true) */, - policyStatus: _s.extractXmlStringValue(elem, 'PolicyStatus')?.let( - ActivityStreamPolicyStatus.fromString) /* Nullability(true, true) */, + ?.let(ActivityStreamMode.fromString), + policyStatus: _s + .extractXmlStringValue(elem, 'PolicyStatus') + ?.let(ActivityStreamPolicyStatus.fromString), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(ActivityStreamStatus.fromString) /* Nullability(true, true) */, + ?.let(ActivityStreamStatus.fromString), ); } @@ -34235,7 +34231,7 @@ class Parameter { allowedValues: _s.extractXmlStringValue(elem, 'AllowedValues'), applyMethod: _s .extractXmlStringValue(elem, 'ApplyMethod') - ?.let(ApplyMethod.fromString) /* Nullability(true, true) */, + ?.let(ApplyMethod.fromString), applyType: _s.extractXmlStringValue(elem, 'ApplyType'), dataType: _s.extractXmlStringValue(elem, 'DataType'), description: _s.extractXmlStringValue(elem, 'Description'), @@ -34589,7 +34585,7 @@ class PendingModifiedValues { allocatedStorage: _s.extractXmlIntValue(elem, 'AllocatedStorage'), automationMode: _s .extractXmlStringValue(elem, 'AutomationMode') - ?.let(AutomationMode.fromString) /* Nullability(true, true) */, + ?.let(AutomationMode.fromString), backupRetentionPeriod: _s.extractXmlIntValue(elem, 'BackupRetentionPeriod'), cACertificateIdentifier: @@ -35095,7 +35091,7 @@ class RdsCustomClusterConfiguration { _s.extractXmlStringValue(elem, 'InterconnectSubnetId'), replicaMode: _s .extractXmlStringValue(elem, 'ReplicaMode') - ?.let(ReplicaMode.fromString) /* Nullability(true, true) */, + ?.let(ReplicaMode.fromString), transitGatewayMulticastDomainId: _s.extractXmlStringValue(elem, 'TransitGatewayMulticastDomainId'), ); @@ -36485,10 +36481,10 @@ class StartActivityStreamResponse { kmsKeyId: _s.extractXmlStringValue(elem, 'KmsKeyId'), mode: _s .extractXmlStringValue(elem, 'Mode') - ?.let(ActivityStreamMode.fromString) /* Nullability(true, true) */, + ?.let(ActivityStreamMode.fromString), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(ActivityStreamStatus.fromString) /* Nullability(true, true) */, + ?.let(ActivityStreamStatus.fromString), ); } @@ -36603,7 +36599,7 @@ class StopActivityStreamResponse { kmsKeyId: _s.extractXmlStringValue(elem, 'KmsKeyId'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(ActivityStreamStatus.fromString) /* Nullability(true, true) */, + ?.let(ActivityStreamStatus.fromString), ); } @@ -36978,10 +36974,9 @@ class TargetHealth { description: _s.extractXmlStringValue(elem, 'Description'), reason: _s .extractXmlStringValue(elem, 'Reason') - ?.let(TargetHealthReason.fromString) /* Nullability(true, true) */, - state: _s - .extractXmlStringValue(elem, 'State') - ?.let(TargetState.fromString) /* Nullability(true, true) */, + ?.let(TargetHealthReason.fromString), + state: + _s.extractXmlStringValue(elem, 'State')?.let(TargetState.fromString), ); } @@ -37512,15 +37507,14 @@ class UserAuthConfigInfo { return UserAuthConfigInfo( authScheme: _s .extractXmlStringValue(elem, 'AuthScheme') - ?.let(AuthScheme.fromString) /* Nullability(true, true) */, + ?.let(AuthScheme.fromString), clientPasswordAuthType: _s .extractXmlStringValue(elem, 'ClientPasswordAuthType') - ?.let( - ClientPasswordAuthType.fromString) /* Nullability(true, true) */, + ?.let(ClientPasswordAuthType.fromString), description: _s.extractXmlStringValue(elem, 'Description'), iAMAuth: _s .extractXmlStringValue(elem, 'IAMAuth') - ?.let(IAMAuthMode.fromString) /* Nullability(true, true) */, + ?.let(IAMAuthMode.fromString), secretArn: _s.extractXmlStringValue(elem, 'SecretArn'), userName: _s.extractXmlStringValue(elem, 'UserName'), ); diff --git a/aws_client/lib/src/generated/rds_data/v2018_08_01.dart b/aws_client/lib/src/generated/rds_data/v2018_08_01.dart index 833af262f..d8c992abd 100644 --- a/aws_client/lib/src/generated/rds_data/v2018_08_01.dart +++ b/aws_client/lib/src/generated/rds_data/v2018_08_01.dart @@ -534,23 +534,21 @@ class ArrayValue { factory ArrayValue.fromJson(Map json) { return ArrayValue( arrayValues: (json['arrayValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ArrayValue.fromJson(e as Map)) .toList(), booleanValues: (json['booleanValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as bool) .toList(), doubleValues: (json['doubleValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), - longValues: (json['longValues'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + longValues: + (json['longValues'] as List?)?.nonNulls.map((e) => e as int).toList(), stringValues: (json['stringValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -585,7 +583,7 @@ class BatchExecuteStatementResponse { factory BatchExecuteStatementResponse.fromJson(Map json) { return BatchExecuteStatementResponse( updateResults: (json['updateResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateResult.fromJson(e as Map)) .toList(), ); @@ -789,7 +787,7 @@ class ExecuteSqlResponse { factory ExecuteSqlResponse.fromJson(Map json) { return ExecuteSqlResponse( sqlStatementResults: (json['sqlStatementResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SqlStatementResult.fromJson(e as Map)) .toList(), ); @@ -848,19 +846,19 @@ class ExecuteStatementResponse { factory ExecuteStatementResponse.fromJson(Map json) { return ExecuteStatementResponse( columnMetadata: (json['columnMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnMetadata.fromJson(e as Map)) .toList(), formattedRecords: json['formattedRecords'] as String?, generatedFields: (json['generatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), numberOfRecordsUpdated: json['numberOfRecordsUpdated'] as int?, records: (json['records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => Field.fromJson(e as Map)) .toList()) .toList(), @@ -983,7 +981,7 @@ class Record { factory Record.fromJson(Map json) { return Record( values: (json['values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Value.fromJson(e as Map)) .toList(), ); @@ -1033,7 +1031,7 @@ class ResultFrame { factory ResultFrame.fromJson(Map json) { return ResultFrame( records: (json['records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), resultSetMetadata: json['resultSetMetadata'] != null @@ -1070,7 +1068,7 @@ class ResultSetMetadata { return ResultSetMetadata( columnCount: json['columnCount'] as int?, columnMetadata: (json['columnMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnMetadata.fromJson(e as Map)) .toList(), ); @@ -1261,7 +1259,7 @@ class StructValue { factory StructValue.fromJson(Map json) { return StructValue( attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Value.fromJson(e as Map)) .toList(), ); @@ -1305,7 +1303,7 @@ class UpdateResult { factory UpdateResult.fromJson(Map json) { return UpdateResult( generatedFields: (json['generatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), ); @@ -1372,7 +1370,7 @@ class Value { factory Value.fromJson(Map json) { return Value( arrayValues: (json['arrayValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Value.fromJson(e as Map)) .toList(), bigIntValue: json['bigIntValue'] as int?, diff --git a/aws_client/lib/src/generated/redshift/v2012_12_01.dart b/aws_client/lib/src/generated/redshift/v2012_12_01.dart index 8486a4ff5..e5be1004e 100644 --- a/aws_client/lib/src/generated/redshift/v2012_12_01.dart +++ b/aws_client/lib/src/generated/redshift/v2012_12_01.dart @@ -9248,11 +9248,10 @@ class AquaConfiguration { return AquaConfiguration( aquaConfigurationStatus: _s .extractXmlStringValue(elem, 'AquaConfigurationStatus') - ?.let( - AquaConfigurationStatus.fromString) /* Nullability(true, true) */, + ?.let(AquaConfigurationStatus.fromString), aquaStatus: _s .extractXmlStringValue(elem, 'AquaStatus') - ?.let(AquaStatus.fromString) /* Nullability(true, true) */, + ?.let(AquaStatus.fromString), ); } @@ -10161,7 +10160,7 @@ class Cluster { _s.extractXmlStringValue(elem, 'SnapshotScheduleIdentifier'), snapshotScheduleState: _s .extractXmlStringValue(elem, 'SnapshotScheduleState') - ?.let(ScheduleState.fromString) /* Nullability(true, true) */, + ?.let(ScheduleState.fromString), tags: _s .extractXmlChild(elem, 'Tags') ?.let((elem) => elem.findElements('Tag').map(Tag.fromXml).toList()), @@ -10359,7 +10358,7 @@ class ClusterAssociatedToSchedule { clusterIdentifier: _s.extractXmlStringValue(elem, 'ClusterIdentifier'), scheduleAssociationState: _s .extractXmlStringValue(elem, 'ScheduleAssociationState') - ?.let(ScheduleState.fromString) /* Nullability(true, true) */, + ?.let(ScheduleState.fromString), ); } @@ -11816,7 +11815,7 @@ class DataShareAssociation { _s.extractXmlBoolValue(elem, 'ProducerAllowedWrites'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(DataShareStatus.fromString) /* Nullability(true, true) */, + ?.let(DataShareStatus.fromString), statusChangeDate: _s.extractXmlDateTimeValue(elem, 'StatusChangeDate'), ); } @@ -12786,7 +12785,7 @@ class EndpointAuthorization { grantor: _s.extractXmlStringValue(elem, 'Grantor'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(AuthorizationStatus.fromString) /* Nullability(true, true) */, + ?.let(AuthorizationStatus.fromString), ); } @@ -12899,7 +12898,7 @@ class Event { sourceIdentifier: _s.extractXmlStringValue(elem, 'SourceIdentifier'), sourceType: _s .extractXmlStringValue(elem, 'SourceType') - ?.let(SourceType.fromString) /* Nullability(true, true) */, + ?.let(SourceType.fromString), ); } @@ -13676,8 +13675,9 @@ class InboundIntegration { .toList()), integrationArn: _s.extractXmlStringValue(elem, 'IntegrationArn'), sourceArn: _s.extractXmlStringValue(elem, 'SourceArn'), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - ZeroETLIntegrationStatus.fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(ZeroETLIntegrationStatus.fromString), targetArn: _s.extractXmlStringValue(elem, 'TargetArn'), ); } @@ -13779,7 +13779,7 @@ class LakeFormationQuery { return LakeFormationQuery( authorization: _s .extractXmlStringValue(elem, 'Authorization')! - .let(ServiceAuthorization.fromString) /* Nullability(true, false) */, + .let(ServiceAuthorization.fromString), ); } @@ -13930,7 +13930,7 @@ class LoggingStatus { _s.extractXmlDateTimeValue(elem, 'LastSuccessfulDeliveryTime'), logDestinationType: _s .extractXmlStringValue(elem, 'LogDestinationType') - ?.let(LogDestinationType.fromString) /* Nullability(true, true) */, + ?.let(LogDestinationType.fromString), logExports: _s .extractXmlChild(elem, 'LogExports') ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), @@ -14391,9 +14391,7 @@ class NodeConfigurationOption { return NodeConfigurationOption( estimatedDiskUtilizationPercent: _s.extractXmlDoubleValue(elem, 'EstimatedDiskUtilizationPercent'), - mode: _s - .extractXmlStringValue(elem, 'Mode') - ?.let(Mode.fromString) /* Nullability(true, true) */, + mode: _s.extractXmlStringValue(elem, 'Mode')?.let(Mode.fromString), nodeType: _s.extractXmlStringValue(elem, 'NodeType'), numberOfNodes: _s.extractXmlIntValue(elem, 'NumberOfNodes'), ); @@ -14684,7 +14682,7 @@ class Parameter { allowedValues: _s.extractXmlStringValue(elem, 'AllowedValues'), applyType: _s .extractXmlStringValue(elem, 'ApplyType') - ?.let(ParameterApplyType.fromString) /* Nullability(true, true) */, + ?.let(ParameterApplyType.fromString), dataType: _s.extractXmlStringValue(elem, 'DataType'), description: _s.extractXmlStringValue(elem, 'Description'), isModifiable: _s.extractXmlBoolValue(elem, 'IsModifiable'), @@ -14794,8 +14792,9 @@ class PartnerIntegrationInfo { createdAt: _s.extractXmlDateTimeValue(elem, 'CreatedAt'), databaseName: _s.extractXmlStringValue(elem, 'DatabaseName'), partnerName: _s.extractXmlStringValue(elem, 'PartnerName'), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - PartnerIntegrationStatus.fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(PartnerIntegrationStatus.fromString), statusMessage: _s.extractXmlStringValue(elem, 'StatusMessage'), updatedAt: _s.extractXmlDateTimeValue(elem, 'UpdatedAt'), ); @@ -15152,7 +15151,7 @@ class Recommendation { id: _s.extractXmlStringValue(elem, 'Id'), impactRanking: _s .extractXmlStringValue(elem, 'ImpactRanking') - ?.let(ImpactRankingType.fromString) /* Nullability(true, true) */, + ?.let(ImpactRankingType.fromString), namespaceArn: _s.extractXmlStringValue(elem, 'NamespaceArn'), observation: _s.extractXmlStringValue(elem, 'Observation'), recommendationText: _s.extractXmlStringValue(elem, 'RecommendationText'), @@ -15229,7 +15228,7 @@ class RecommendedAction { text: _s.extractXmlStringValue(elem, 'Text'), type: _s .extractXmlStringValue(elem, 'Type') - ?.let(RecommendedActionType.fromString) /* Nullability(true, true) */, + ?.let(RecommendedActionType.fromString), ); } @@ -15536,8 +15535,7 @@ class ReservedNode { _s.extractXmlStringValue(elem, 'ReservedNodeOfferingId'), reservedNodeOfferingType: _s .extractXmlStringValue(elem, 'ReservedNodeOfferingType') - ?.let(ReservedNodeOfferingType - .fromString) /* Nullability(true, true) */, + ?.let(ReservedNodeOfferingType.fromString), startTime: _s.extractXmlDateTimeValue(elem, 'StartTime'), state: _s.extractXmlStringValue(elem, 'State'), usagePrice: _s.extractXmlDoubleValue(elem, 'UsagePrice'), @@ -15688,9 +15686,9 @@ class ReservedNodeExchangeStatus { _s.extractXmlStringValue(elem, 'SourceReservedNodeId'), sourceReservedNodeType: _s.extractXmlStringValue(elem, 'SourceReservedNodeType'), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - ReservedNodeExchangeStatusType - .fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(ReservedNodeExchangeStatusType.fromString), targetReservedNodeCount: _s.extractXmlIntValue(elem, 'TargetReservedNodeCount'), targetReservedNodeOfferingId: @@ -15811,8 +15809,7 @@ class ReservedNodeOffering { _s.extractXmlStringValue(elem, 'ReservedNodeOfferingId'), reservedNodeOfferingType: _s .extractXmlStringValue(elem, 'ReservedNodeOfferingType') - ?.let(ReservedNodeOfferingType - .fromString) /* Nullability(true, true) */, + ?.let(ReservedNodeOfferingType.fromString), usagePrice: _s.extractXmlDoubleValue(elem, 'UsagePrice'), ); } @@ -16655,7 +16652,7 @@ class ScheduledAction { startTime: _s.extractXmlDateTimeValue(elem, 'StartTime'), state: _s .extractXmlStringValue(elem, 'State') - ?.let(ScheduledActionState.fromString) /* Nullability(true, true) */, + ?.let(ScheduledActionState.fromString), targetAction: _s .extractXmlChild(elem, 'TargetAction') ?.let(ScheduledActionType.fromXml), @@ -17803,8 +17800,9 @@ class TableRestoreStatus { sourceDatabaseName: _s.extractXmlStringValue(elem, 'SourceDatabaseName'), sourceSchemaName: _s.extractXmlStringValue(elem, 'SourceSchemaName'), sourceTableName: _s.extractXmlStringValue(elem, 'SourceTableName'), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - TableRestoreStatusType.fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(TableRestoreStatusType.fromString), tableRestoreRequestId: _s.extractXmlStringValue(elem, 'TableRestoreRequestId'), targetDatabaseName: _s.extractXmlStringValue(elem, 'TargetDatabaseName'), @@ -18186,18 +18184,19 @@ class UsageLimit { factory UsageLimit.fromXml(_s.XmlElement elem) { return UsageLimit( amount: _s.extractXmlIntValue(elem, 'Amount'), - breachAction: _s.extractXmlStringValue(elem, 'BreachAction')?.let( - UsageLimitBreachAction.fromString) /* Nullability(true, true) */, + breachAction: _s + .extractXmlStringValue(elem, 'BreachAction') + ?.let(UsageLimitBreachAction.fromString), clusterIdentifier: _s.extractXmlStringValue(elem, 'ClusterIdentifier'), featureType: _s .extractXmlStringValue(elem, 'FeatureType') - ?.let(UsageLimitFeatureType.fromString) /* Nullability(true, true) */, + ?.let(UsageLimitFeatureType.fromString), limitType: _s .extractXmlStringValue(elem, 'LimitType') - ?.let(UsageLimitLimitType.fromString) /* Nullability(true, true) */, + ?.let(UsageLimitLimitType.fromString), period: _s .extractXmlStringValue(elem, 'Period') - ?.let(UsageLimitPeriod.fromString) /* Nullability(true, true) */, + ?.let(UsageLimitPeriod.fromString), tags: _s .extractXmlChild(elem, 'Tags') ?.let((elem) => elem.findElements('Tag').map(Tag.fromXml).toList()), diff --git a/aws_client/lib/src/generated/redshift_data/v2019_12_20.dart b/aws_client/lib/src/generated/redshift_data/v2019_12_20.dart index f421cf7fd..a3f3cf9c2 100644 --- a/aws_client/lib/src/generated/redshift_data/v2019_12_20.dart +++ b/aws_client/lib/src/generated/redshift_data/v2019_12_20.dart @@ -1456,7 +1456,7 @@ class DescribeStatementResponse { error: json['Error'] as String?, hasResultSet: json['HasResultSet'] as bool?, queryParameters: (json['QueryParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SqlParameter.fromJson(e as Map)) .toList(), queryString: json['QueryString'] as String?, @@ -1467,7 +1467,7 @@ class DescribeStatementResponse { secretArn: json['SecretArn'] as String?, status: (json['Status'] as String?)?.let(StatusString.fromString), subStatements: (json['SubStatements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubStatementData.fromJson(e as Map)) .toList(), updatedAt: timeStampFromJson(json['UpdatedAt']), @@ -1543,7 +1543,7 @@ class DescribeTableResponse { factory DescribeTableResponse.fromJson(Map json) { return DescribeTableResponse( columnList: (json['ColumnList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnMetadata.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1720,14 +1720,14 @@ class GetStatementResultResponse { factory GetStatementResultResponse.fromJson(Map json) { return GetStatementResultResponse( records: (json['Records'] as List) - .whereNotNull() + .nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => Field.fromJson(e as Map)) .toList()) .toList(), columnMetadata: (json['ColumnMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnMetadata.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1769,7 +1769,7 @@ class ListDatabasesResponse { factory ListDatabasesResponse.fromJson(Map json) { return ListDatabasesResponse( databases: (json['Databases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -1806,10 +1806,8 @@ class ListSchemasResponse { factory ListSchemasResponse.fromJson(Map json) { return ListSchemasResponse( nextToken: json['NextToken'] as String?, - schemas: (json['Schemas'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + schemas: + (json['Schemas'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -1843,7 +1841,7 @@ class ListStatementsResponse { factory ListStatementsResponse.fromJson(Map json) { return ListStatementsResponse( statements: (json['Statements'] as List) - .whereNotNull() + .nonNulls .map((e) => StatementData.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1881,7 +1879,7 @@ class ListTablesResponse { return ListTablesResponse( nextToken: json['NextToken'] as String?, tables: (json['Tables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableMember.fromJson(e as Map)) .toList(), ); @@ -1985,12 +1983,12 @@ class StatementData { createdAt: timeStampFromJson(json['CreatedAt']), isBatchStatement: json['IsBatchStatement'] as bool?, queryParameters: (json['QueryParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SqlParameter.fromJson(e as Map)) .toList(), queryString: json['QueryString'] as String?, queryStrings: (json['QueryStrings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), secretArn: json['SecretArn'] as String?, diff --git a/aws_client/lib/src/generated/redshift_serverless/v2021_04_21.dart b/aws_client/lib/src/generated/redshift_serverless/v2021_04_21.dart index dd7b346ec..7bc069e1f 100644 --- a/aws_client/lib/src/generated/redshift_serverless/v2021_04_21.dart +++ b/aws_client/lib/src/generated/redshift_serverless/v2021_04_21.dart @@ -3154,7 +3154,7 @@ class CreateSnapshotScheduleActionParameters { snapshotNamePrefix: json['snapshotNamePrefix'] as String, retentionPeriod: json['retentionPeriod'] as int?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3434,7 +3434,7 @@ class Endpoint { address: json['address'] as String?, port: json['port'] as int?, vpcEndpoints: (json['vpcEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcEndpoint.fromJson(e as Map)) .toList(), ); @@ -3508,14 +3508,14 @@ class EndpointAccess { endpointStatus: json['endpointStatus'] as String?, port: json['port'] as int?, subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcEndpoint: json['vpcEndpoint'] != null ? VpcEndpoint.fromJson(json['vpcEndpoint'] as Map) : null, vpcSecurityGroups: (json['vpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcSecurityGroupMembership.fromJson(e as Map)) .toList(), @@ -3886,7 +3886,7 @@ class ListCustomDomainAssociationsResponse { Map json) { return ListCustomDomainAssociationsResponse( associations: (json['associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Association.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3921,7 +3921,7 @@ class ListEndpointAccessResponse { factory ListEndpointAccessResponse.fromJson(Map json) { return ListEndpointAccessResponse( endpoints: (json['endpoints'] as List) - .whereNotNull() + .nonNulls .map((e) => EndpointAccess.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3956,7 +3956,7 @@ class ListNamespacesResponse { factory ListNamespacesResponse.fromJson(Map json) { return ListNamespacesResponse( namespaces: (json['namespaces'] as List) - .whereNotNull() + .nonNulls .map((e) => Namespace.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3991,7 +3991,7 @@ class ListRecoveryPointsResponse { return ListRecoveryPointsResponse( nextToken: json['nextToken'] as String?, recoveryPoints: (json['recoveryPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryPoint.fromJson(e as Map)) .toList(), ); @@ -4025,7 +4025,7 @@ class ListScheduledActionsResponse { return ListScheduledActionsResponse( nextToken: json['nextToken'] as String?, scheduledActions: (json['scheduledActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduledActionAssociation.fromJson(e as Map)) .toList(), @@ -4060,7 +4060,7 @@ class ListSnapshotCopyConfigurationsResponse { Map json) { return ListSnapshotCopyConfigurationsResponse( snapshotCopyConfigurations: (json['snapshotCopyConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => SnapshotCopyConfiguration.fromJson(e as Map)) .toList(), @@ -4096,7 +4096,7 @@ class ListSnapshotsResponse { return ListSnapshotsResponse( nextToken: json['nextToken'] as String?, snapshots: (json['snapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Snapshot.fromJson(e as Map)) .toList(), ); @@ -4131,7 +4131,7 @@ class ListTableRestoreStatusResponse { return ListTableRestoreStatusResponse( nextToken: json['nextToken'] as String?, tableRestoreStatuses: (json['tableRestoreStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableRestoreStatus.fromJson(e as Map)) .toList(), ); @@ -4159,7 +4159,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4192,7 +4192,7 @@ class ListUsageLimitsResponse { return ListUsageLimitsResponse( nextToken: json['nextToken'] as String?, usageLimits: (json['usageLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageLimit.fromJson(e as Map)) .toList(), ); @@ -4225,7 +4225,7 @@ class ListWorkgroupsResponse { factory ListWorkgroupsResponse.fromJson(Map json) { return ListWorkgroupsResponse( workgroups: (json['workgroups'] as List) - .whereNotNull() + .nonNulls .map((e) => Workgroup.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4334,12 +4334,12 @@ class Namespace { dbName: json['dbName'] as String?, defaultIamRoleArn: json['defaultIamRoleArn'] as String?, iamRoles: (json['iamRoles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), kmsKeyId: json['kmsKeyId'] as String?, logExports: (json['logExports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogExport.fromString((e as String))) .toList(), namespaceArn: json['namespaceArn'] as String?, @@ -4834,7 +4834,7 @@ class ScheduledActionResponse { endTime: timeStampFromJson(json['endTime']), namespaceName: json['namespaceName'] as String?, nextInvocations: (json['nextInvocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), roleArn: json['roleArn'] as String?, @@ -4986,11 +4986,11 @@ class Snapshot { return Snapshot( accountsWithProvisionedRestoreAccess: (json['accountsWithProvisionedRestoreAccess'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), accountsWithRestoreAccess: (json['accountsWithRestoreAccess'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), actualIncrementalBackupSizeInMegaBytes: @@ -5767,7 +5767,7 @@ class VpcEndpoint { factory VpcEndpoint.fromJson(Map json) { return VpcEndpoint( networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), vpcEndpointId: json['vpcEndpointId'] as String?, @@ -5933,12 +5933,12 @@ class Workgroup { return Workgroup( baseCapacity: json['baseCapacity'] as int?, configParameters: (json['configParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigParameter.fromJson(e as Map)) .toList(), creationDate: timeStampFromJson(json['creationDate']), crossAccountVpcs: (json['crossAccountVpcs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), customDomainCertificateArn: json['customDomainCertificateArn'] as String?, @@ -5955,12 +5955,12 @@ class Workgroup { port: json['port'] as int?, publiclyAccessible: json['publiclyAccessible'] as bool?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(WorkgroupStatus.fromString), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), workgroupArn: json['workgroupArn'] as String?, diff --git a/aws_client/lib/src/generated/rekognition/v2016_06_27.dart b/aws_client/lib/src/generated/rekognition/v2016_06_27.dart index dc0ed8485..7148e7bf4 100644 --- a/aws_client/lib/src/generated/rekognition/v2016_06_27.dart +++ b/aws_client/lib/src/generated/rekognition/v2016_06_27.dart @@ -6369,12 +6369,12 @@ class AssociateFacesResponse { factory AssociateFacesResponse.fromJson(Map json) { return AssociateFacesResponse( associatedFaces: (json['AssociatedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociatedFace.fromJson(e as Map)) .toList(), unsuccessfulFaceAssociations: (json['UnsuccessfulFaceAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsuccessfulFaceAssociation.fromJson(e as Map)) .toList(), @@ -6732,10 +6732,7 @@ class Celebrity { : null, matchConfidence: json['MatchConfidence'] as double?, name: json['Name'] as String?, - urls: (json['Urls'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + urls: (json['Urls'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6805,10 +6802,7 @@ class CelebrityDetail { ? KnownGender.fromJson(json['KnownGender'] as Map) : null, name: json['Name'] as String?, - urls: (json['Urls'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + urls: (json['Urls'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6975,7 +6969,7 @@ class CompareFacesResponse { factory CompareFacesResponse.fromJson(Map json) { return CompareFacesResponse( faceMatches: (json['FaceMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CompareFacesMatch.fromJson(e as Map)) .toList(), sourceImageFace: json['SourceImageFace'] != null @@ -6989,7 +6983,7 @@ class CompareFacesResponse { (json['TargetImageOrientationCorrection'] as String?) ?.let(OrientationCorrection.fromString), unmatchedFaces: (json['UnmatchedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComparedFace.fromJson(e as Map)) .toList(), ); @@ -7061,11 +7055,11 @@ class ComparedFace { : null, confidence: json['Confidence'] as double?, emotions: (json['Emotions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Emotion.fromJson(e as Map)) .toList(), landmarks: (json['Landmarks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Landmark.fromJson(e as Map)) .toList(), pose: json['Pose'] != null @@ -7162,10 +7156,8 @@ class ConnectedHomeSettings { factory ConnectedHomeSettings.fromJson(Map json) { return ConnectedHomeSettings( - labels: (json['Labels'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['Labels'] as List).nonNulls.map((e) => e as String).toList(), minConfidence: json['MinConfidence'] as double?, ); } @@ -7278,7 +7270,7 @@ class ContentModerationDetection { factory ContentModerationDetection.fromJson(Map json) { return ContentModerationDetection( contentTypes: (json['ContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContentType.fromJson(e as Map)) .toList(), durationMillis: json['DurationMillis'] as int?, @@ -8134,11 +8126,11 @@ class DeleteFacesResponse { factory DeleteFacesResponse.fromJson(Map json) { return DeleteFacesResponse( deletedFaces: (json['DeletedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), unsuccessfulFaceDeletions: (json['UnsuccessfulFaceDeletions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsuccessfulFaceDeletion.fromJson(e as Map)) .toList(), @@ -8338,7 +8330,7 @@ class DescribeProjectVersionsResponse { return DescribeProjectVersionsResponse( nextToken: json['NextToken'] as String?, projectVersionDescriptions: (json['ProjectVersionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectVersionDescription.fromJson(e as Map)) .toList(), @@ -8375,7 +8367,7 @@ class DescribeProjectsResponse { return DescribeProjectsResponse( nextToken: json['NextToken'] as String?, projectDescriptions: (json['ProjectDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectDescription.fromJson(e as Map)) .toList(), ); @@ -8483,7 +8475,7 @@ class DescribeStreamProcessorResponse { json['Output'] as Map) : null, regionsOfInterest: (json['RegionsOfInterest'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegionOfInterest.fromJson(e as Map)) .toList(), roleArn: json['RoleArn'] as String?, @@ -8547,7 +8539,7 @@ class DetectCustomLabelsResponse { factory DetectCustomLabelsResponse.fromJson(Map json) { return DetectCustomLabelsResponse( customLabels: (json['CustomLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomLabel.fromJson(e as Map)) .toList(), ); @@ -8588,7 +8580,7 @@ class DetectFacesResponse { factory DetectFacesResponse.fromJson(Map json) { return DetectFacesResponse( faceDetails: (json['FaceDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaceDetail.fromJson(e as Map)) .toList(), orientationCorrection: (json['OrientationCorrection'] as String?) @@ -8641,7 +8633,7 @@ class DetectLabelsImageBackground { factory DetectLabelsImageBackground.fromJson(Map json) { return DetectLabelsImageBackground( dominantColors: (json['DominantColors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantColor.fromJson(e as Map)) .toList(), quality: json['Quality'] != null @@ -8680,7 +8672,7 @@ class DetectLabelsImageForeground { factory DetectLabelsImageForeground.fromJson(Map json) { return DetectLabelsImageForeground( dominantColors: (json['DominantColors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantColor.fromJson(e as Map)) .toList(), quality: json['Quality'] != null @@ -8738,7 +8730,7 @@ class DetectLabelsImageProperties { json['Background'] as Map) : null, dominantColors: (json['DominantColors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantColor.fromJson(e as Map)) .toList(), foreground: json['Foreground'] != null @@ -8863,7 +8855,7 @@ class DetectLabelsResponse { : null, labelModelVersion: json['LabelModelVersion'] as String?, labels: (json['Labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Label.fromJson(e as Map)) .toList(), orientationCorrection: (json['OrientationCorrection'] as String?) @@ -8945,7 +8937,7 @@ class DetectModerationLabelsResponse { factory DetectModerationLabelsResponse.fromJson(Map json) { return DetectModerationLabelsResponse( contentTypes: (json['ContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContentType.fromJson(e as Map)) .toList(), humanLoopActivationOutput: json['HumanLoopActivationOutput'] != null @@ -8953,7 +8945,7 @@ class DetectModerationLabelsResponse { json['HumanLoopActivationOutput'] as Map) : null, moderationLabels: (json['ModerationLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModerationLabel.fromJson(e as Map)) .toList(), moderationModelVersion: json['ModerationModelVersion'] as String?, @@ -9002,7 +8994,7 @@ class DetectProtectiveEquipmentResponse { Map json) { return DetectProtectiveEquipmentResponse( persons: (json['Persons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectiveEquipmentPerson.fromJson(e as Map)) .toList(), @@ -9070,7 +9062,7 @@ class DetectTextResponse { factory DetectTextResponse.fromJson(Map json) { return DetectTextResponse( textDetections: (json['TextDetections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TextDetection.fromJson(e as Map)) .toList(), textModelVersion: json['TextModelVersion'] as String?, @@ -9149,12 +9141,12 @@ class DisassociateFacesResponse { factory DisassociateFacesResponse.fromJson(Map json) { return DisassociateFacesResponse( disassociatedFaces: (json['DisassociatedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DisassociatedFace.fromJson(e as Map)) .toList(), unsuccessfulFaceDisassociations: (json['UnsuccessfulFaceDisassociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsuccessfulFaceDisassociation.fromJson( e as Map)) .toList(), @@ -9760,7 +9752,7 @@ class FaceDetail { : null, confidence: json['Confidence'] as double?, emotions: (json['Emotions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Emotion.fromJson(e as Map)) .toList(), eyeDirection: json['EyeDirection'] != null @@ -9779,7 +9771,7 @@ class FaceDetail { ? Gender.fromJson(json['Gender'] as Map) : null, landmarks: (json['Landmarks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Landmark.fromJson(e as Map)) .toList(), mouthOpen: json['MouthOpen'] != null @@ -10168,7 +10160,7 @@ class Geometry { ? BoundingBox.fromJson(json['BoundingBox'] as Map) : null, polygon: (json['Polygon'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Point.fromJson(e as Map)) .toList(), ); @@ -10206,10 +10198,7 @@ class GetCelebrityInfoResponse { ? KnownGender.fromJson(json['KnownGender'] as Map) : null, name: json['Name'] as String?, - urls: (json['Urls'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + urls: (json['Urls'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -10271,7 +10260,7 @@ class GetCelebrityRecognitionResponse { factory GetCelebrityRecognitionResponse.fromJson(Map json) { return GetCelebrityRecognitionResponse( celebrities: (json['Celebrities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CelebrityRecognition.fromJson(e as Map)) .toList(), jobId: json['JobId'] as String?, @@ -10409,7 +10398,7 @@ class GetContentModerationResponse { jobStatus: (json['JobStatus'] as String?)?.let(VideoJobStatus.fromString), jobTag: json['JobTag'] as String?, moderationLabels: (json['ModerationLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContentModerationDetection.fromJson(e as Map)) .toList(), @@ -10500,7 +10489,7 @@ class GetFaceDetectionResponse { factory GetFaceDetectionResponse.fromJson(Map json) { return GetFaceDetectionResponse( faces: (json['Faces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaceDetection.fromJson(e as Map)) .toList(), jobId: json['JobId'] as String?, @@ -10582,7 +10571,7 @@ class GetFaceLivenessSessionResultsResponse { sessionId: json['SessionId'] as String, status: LivenessSessionStatus.fromString((json['Status'] as String)), auditImages: (json['AuditImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuditImage.fromJson(e as Map)) .toList(), confidence: json['Confidence'] as double?, @@ -10665,7 +10654,7 @@ class GetFaceSearchResponse { jobTag: json['JobTag'] as String?, nextToken: json['NextToken'] as String?, persons: (json['Persons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PersonMatch.fromJson(e as Map)) .toList(), statusMessage: json['StatusMessage'] as String?, @@ -10798,7 +10787,7 @@ class GetLabelDetectionResponse { jobTag: json['JobTag'] as String?, labelModelVersion: json['LabelModelVersion'] as String?, labels: (json['Labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelDetection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11005,7 +10994,7 @@ class GetPersonTrackingResponse { jobTag: json['JobTag'] as String?, nextToken: json['NextToken'] as String?, persons: (json['Persons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PersonDetection.fromJson(e as Map)) .toList(), statusMessage: json['StatusMessage'] as String?, @@ -11108,7 +11097,7 @@ class GetSegmentDetectionResponse { factory GetSegmentDetectionResponse.fromJson(Map json) { return GetSegmentDetectionResponse( audioMetadata: (json['AudioMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudioMetadata.fromJson(e as Map)) .toList(), jobId: json['JobId'] as String?, @@ -11116,11 +11105,11 @@ class GetSegmentDetectionResponse { jobTag: json['JobTag'] as String?, nextToken: json['NextToken'] as String?, segments: (json['Segments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentDetection.fromJson(e as Map)) .toList(), selectedSegmentTypes: (json['SelectedSegmentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentTypeInfo.fromJson(e as Map)) .toList(), statusMessage: json['StatusMessage'] as String?, @@ -11128,7 +11117,7 @@ class GetSegmentDetectionResponse { ? Video.fromJson(json['Video'] as Map) : null, videoMetadata: (json['VideoMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VideoMetadata.fromJson(e as Map)) .toList(), ); @@ -11213,7 +11202,7 @@ class GetTextDetectionResponse { nextToken: json['NextToken'] as String?, statusMessage: json['StatusMessage'] as String?, textDetections: (json['TextDetections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TextDetectionResult.fromJson(e as Map)) .toList(), textModelVersion: json['TextModelVersion'] as String?, @@ -11304,7 +11293,7 @@ class HumanLoopActivationOutput { json['HumanLoopActivationConditionsEvaluationResults'] as String), humanLoopActivationReasons: (json['HumanLoopActivationReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), humanLoopArn: json['HumanLoopArn'] as String?, @@ -11523,13 +11512,13 @@ class IndexFacesResponse { return IndexFacesResponse( faceModelVersion: json['FaceModelVersion'] as String?, faceRecords: (json['FaceRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaceRecord.fromJson(e as Map)) .toList(), orientationCorrection: (json['OrientationCorrection'] as String?) ?.let(OrientationCorrection.fromString), unindexedFaces: (json['UnindexedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnindexedFace.fromJson(e as Map)) .toList(), ); @@ -11577,7 +11566,7 @@ class Instance { : null, confidence: json['Confidence'] as double?, dominantColors: (json['DominantColors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantColor.fromJson(e as Map)) .toList(), ); @@ -11755,21 +11744,21 @@ class Label { factory Label.fromJson(Map json) { return Label( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelAlias.fromJson(e as Map)) .toList(), categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelCategory.fromJson(e as Map)) .toList(), confidence: json['Confidence'] as double?, instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Instance.fromJson(e as Map)) .toList(), name: json['Name'] as String?, parents: (json['Parents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parent.fromJson(e as Map)) .toList(), ); @@ -12070,11 +12059,11 @@ class ListCollectionsResponse { factory ListCollectionsResponse.fromJson(Map json) { return ListCollectionsResponse( collectionIds: (json['CollectionIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), faceModelVersions: (json['FaceModelVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -12111,7 +12100,7 @@ class ListDatasetEntriesResponse { factory ListDatasetEntriesResponse.fromJson(Map json) { return ListDatasetEntriesResponse( datasetEntries: (json['DatasetEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -12146,7 +12135,7 @@ class ListDatasetLabelsResponse { factory ListDatasetLabelsResponse.fromJson(Map json) { return ListDatasetLabelsResponse( datasetLabelDescriptions: (json['DatasetLabelDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetLabelDescription.fromJson(e as Map)) .toList(), @@ -12187,7 +12176,7 @@ class ListFacesResponse { return ListFacesResponse( faceModelVersion: json['FaceModelVersion'] as String?, faces: (json['Faces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Face.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12221,7 +12210,7 @@ class ListMediaAnalysisJobsResponse { factory ListMediaAnalysisJobsResponse.fromJson(Map json) { return ListMediaAnalysisJobsResponse( mediaAnalysisJobs: (json['MediaAnalysisJobs'] as List) - .whereNotNull() + .nonNulls .map((e) => MediaAnalysisJobDescription.fromJson(e as Map)) .toList(), @@ -12257,7 +12246,7 @@ class ListProjectPoliciesResponse { return ListProjectPoliciesResponse( nextToken: json['NextToken'] as String?, projectPolicies: (json['ProjectPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectPolicy.fromJson(e as Map)) .toList(), ); @@ -12291,7 +12280,7 @@ class ListStreamProcessorsResponse { return ListStreamProcessorsResponse( nextToken: json['NextToken'] as String?, streamProcessors: (json['StreamProcessors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamProcessor.fromJson(e as Map)) .toList(), ); @@ -12347,7 +12336,7 @@ class ListUsersResponse { return ListUsersResponse( nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -13155,7 +13144,7 @@ class PersonMatch { factory PersonMatch.fromJson(Map json) { return PersonMatch( faceMatches: (json['FaceMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaceMatch.fromJson(e as Map)) .toList(), person: json['Person'] != null @@ -13320,7 +13309,7 @@ class ProjectDescription { (json['AutoUpdate'] as String?)?.let(ProjectAutoUpdate.fromString), creationTimestamp: timeStampFromJson(json['CreationTimestamp']), datasets: (json['Datasets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetMetadata.fromJson(e as Map)) .toList(), feature: @@ -13663,7 +13652,7 @@ class ProtectiveEquipmentBodyPart { return ProtectiveEquipmentBodyPart( confidence: json['Confidence'] as double?, equipmentDetections: (json['EquipmentDetections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EquipmentDetection.fromJson(e as Map)) .toList(), name: (json['Name'] as String?)?.let(BodyPart.fromString), @@ -13712,7 +13701,7 @@ class ProtectiveEquipmentPerson { factory ProtectiveEquipmentPerson.fromJson(Map json) { return ProtectiveEquipmentPerson( bodyParts: (json['BodyParts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectiveEquipmentBodyPart.fromJson(e as Map)) .toList(), @@ -13827,17 +13816,17 @@ class ProtectiveEquipmentSummary { factory ProtectiveEquipmentSummary.fromJson(Map json) { return ProtectiveEquipmentSummary( personsIndeterminate: (json['PersonsIndeterminate'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), personsWithRequiredEquipment: (json['PersonsWithRequiredEquipment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), personsWithoutRequiredEquipment: (json['PersonsWithoutRequiredEquipment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -13977,13 +13966,13 @@ class RecognizeCelebritiesResponse { factory RecognizeCelebritiesResponse.fromJson(Map json) { return RecognizeCelebritiesResponse( celebrityFaces: (json['CelebrityFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Celebrity.fromJson(e as Map)) .toList(), orientationCorrection: (json['OrientationCorrection'] as String?) ?.let(OrientationCorrection.fromString), unrecognizedFaces: (json['UnrecognizedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComparedFace.fromJson(e as Map)) .toList(), ); @@ -14029,7 +14018,7 @@ class RegionOfInterest { ? BoundingBox.fromJson(json['BoundingBox'] as Map) : null, polygon: (json['Polygon'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Point.fromJson(e as Map)) .toList(), ); @@ -14154,7 +14143,7 @@ class SearchFacesByImageResponse { factory SearchFacesByImageResponse.fromJson(Map json) { return SearchFacesByImageResponse( faceMatches: (json['FaceMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaceMatch.fromJson(e as Map)) .toList(), faceModelVersion: json['FaceModelVersion'] as String?, @@ -14203,7 +14192,7 @@ class SearchFacesResponse { factory SearchFacesResponse.fromJson(Map json) { return SearchFacesResponse( faceMatches: (json['FaceMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaceMatch.fromJson(e as Map)) .toList(), faceModelVersion: json['FaceModelVersion'] as String?, @@ -14259,11 +14248,11 @@ class SearchUsersByImageResponse { json['SearchedFace'] as Map) : null, unsearchedFaces: (json['UnsearchedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsearchedFace.fromJson(e as Map)) .toList(), userMatches: (json['UserMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserMatch.fromJson(e as Map)) .toList(), ); @@ -14317,7 +14306,7 @@ class SearchUsersResponse { ? SearchedUser.fromJson(json['SearchedUser'] as Map) : null, userMatches: (json['UserMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserMatch.fromJson(e as Map)) .toList(), ); @@ -15484,7 +15473,7 @@ class TestingData { factory TestingData.fromJson(Map json) { return TestingData( assets: (json['Assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Asset.fromJson(e as Map)) .toList(), autoCreate: json['AutoCreate'] as bool?, @@ -15688,7 +15677,7 @@ class TrainingData { factory TrainingData.fromJson(Map json) { return TrainingData( assets: (json['Assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Asset.fromJson(e as Map)) .toList(), ); @@ -15794,7 +15783,7 @@ class UnindexedFace { ? FaceDetail.fromJson(json['FaceDetail'] as Map) : null, reasons: (json['Reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Reason.fromString((e as String))) .toList(), ); @@ -15829,7 +15818,7 @@ class UnsearchedFace { ? FaceDetail.fromJson(json['FaceDetails'] as Map) : null, reasons: (json['Reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsearchedFaceReason.fromString((e as String))) .toList(), ); @@ -15894,7 +15883,7 @@ class UnsuccessfulFaceAssociation { confidence: json['Confidence'] as double?, faceId: json['FaceId'] as String?, reasons: (json['Reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsuccessfulFaceAssociationReason.fromString((e as String))) .toList(), @@ -15954,7 +15943,7 @@ class UnsuccessfulFaceDeletion { return UnsuccessfulFaceDeletion( faceId: json['FaceId'] as String?, reasons: (json['Reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsuccessfulFaceDeletionReason.fromString((e as String))) .toList(), userId: json['UserId'] as String?, @@ -16010,7 +15999,7 @@ class UnsuccessfulFaceDisassociation { return UnsuccessfulFaceDisassociation( faceId: json['FaceId'] as String?, reasons: (json['Reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsuccessfulFaceDisassociationReason.fromString((e as String))) .toList(), @@ -16186,7 +16175,7 @@ class ValidationData { factory ValidationData.fromJson(Map json) { return ValidationData( assets: (json['Assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Asset.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/repostspace/v2022_05_13.dart b/aws_client/lib/src/generated/repostspace/v2022_05_13.dart index 163a52ef1..50dbe8c9d 100644 --- a/aws_client/lib/src/generated/repostspace/v2022_05_13.dart +++ b/aws_client/lib/src/generated/repostspace/v2022_05_13.dart @@ -569,11 +569,11 @@ class GetSpaceOutput { deleteDateTime: timeStampFromJson(json['deleteDateTime']), description: json['description'] as String?, groupAdmins: (json['groupAdmins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userAdmins: (json['userAdmins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userCount: json['userCount'] as int?, @@ -644,7 +644,7 @@ class ListSpacesOutput { factory ListSpacesOutput.fromJson(Map json) { return ListSpacesOutput( spaces: (json['spaces'] as List) - .whereNotNull() + .nonNulls .map((e) => SpaceData.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/resiliencehub/v2020_04_30.dart b/aws_client/lib/src/generated/resiliencehub/v2020_04_30.dart index de7a8e719..1a315038c 100644 --- a/aws_client/lib/src/generated/resiliencehub/v2020_04_30.dart +++ b/aws_client/lib/src/generated/resiliencehub/v2020_04_30.dart @@ -3336,7 +3336,7 @@ class AddDraftAppVersionResourceMappingsResponse { appArn: json['appArn'] as String, appVersion: json['appVersion'] as String, resourceMappings: (json['resourceMappings'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceMapping.fromJson(e as Map)) .toList(), ); @@ -3408,12 +3408,12 @@ class AlarmRecommendation { type: AlarmType.fromString((json['type'] as String)), appComponentName: json['appComponentName'] as String?, appComponentNames: (json['appComponentNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationItem.fromJson(e as Map)) .toList(), prerequisite: json['prerequisite'] as String?, @@ -3575,7 +3575,7 @@ class App { driftStatus: (json['driftStatus'] as String?)?.let(AppDriftStatusType.fromString), eventSubscriptions: (json['eventSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSubscription.fromJson(e as Map)) .toList(), lastAppComplianceEvaluationTime: @@ -4023,9 +4023,9 @@ class AppComponent { return AppComponent( name: json['name'] as String, type: json['type'] as String, - additionalInfo: (json['additionalInfo'] as Map?)?.map( - (k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + additionalInfo: (json['additionalInfo'] as Map?)?.map((k, + e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), id: json['id'] as String?, ); } @@ -4470,12 +4470,12 @@ class BatchUpdateRecommendationStatusResponse { return BatchUpdateRecommendationStatusResponse( appArn: json['appArn'] as String, failedEntries: (json['failedEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchUpdateRecommendationStatusFailedEntry.fromJson( e as Map)) .toList(), successfulEntries: (json['successfulEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchUpdateRecommendationStatusSuccessfulEntry.fromJson( e as Map)) .toList(), @@ -4695,7 +4695,7 @@ class ComponentRecommendation { return ComponentRecommendation( appComponentName: json['appComponentName'] as String, configRecommendations: (json['configRecommendations'] as List) - .whereNotNull() + .nonNulls .map((e) => ConfigRecommendation.fromJson(e as Map)) .toList(), recommendationStatus: RecommendationComplianceStatus.fromString( @@ -4786,7 +4786,7 @@ class ConfigRecommendation { RecommendationDisruptionCompliance.fromJson( e as Map))), suggestedChanges: (json['suggestedChanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5562,9 +5562,9 @@ class DescribeAppVersionResponse { return DescribeAppVersionResponse( appArn: json['appArn'] as String, appVersion: json['appVersion'] as String, - additionalInfo: (json['additionalInfo'] as Map?)?.map( - (k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + additionalInfo: (json['additionalInfo'] as Map?)?.map((k, + e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -6140,7 +6140,7 @@ class EksSource { return EksSource( eksClusterArn: json['eksClusterArn'] as String, namespaces: (json['namespaces'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -6379,15 +6379,15 @@ class ImportResourcesToDraftAppVersionResponse { appVersion: json['appVersion'] as String, status: ResourceImportStatusType.fromString((json['status'] as String)), eksSources: (json['eksSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksSource.fromJson(e as Map)) .toList(), sourceArns: (json['sourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), terraformSources: (json['terraformSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TerraformSource.fromJson(e as Map)) .toList(), ); @@ -6429,7 +6429,7 @@ class ListAlarmRecommendationsResponse { factory ListAlarmRecommendationsResponse.fromJson(Map json) { return ListAlarmRecommendationsResponse( alarmRecommendations: (json['alarmRecommendations'] as List) - .whereNotNull() + .nonNulls .map((e) => AlarmRecommendation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6464,7 +6464,7 @@ class ListAppAssessmentComplianceDriftsResponse { Map json) { return ListAppAssessmentComplianceDriftsResponse( complianceDrifts: (json['complianceDrifts'] as List) - .whereNotNull() + .nonNulls .map((e) => ComplianceDrift.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6497,7 +6497,7 @@ class ListAppAssessmentResourceDriftsResponse { Map json) { return ListAppAssessmentResourceDriftsResponse( resourceDrifts: (json['resourceDrifts'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceDrift.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6531,7 +6531,7 @@ class ListAppAssessmentsResponse { factory ListAppAssessmentsResponse.fromJson(Map json) { return ListAppAssessmentsResponse( assessmentSummaries: (json['assessmentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AppAssessmentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6566,7 +6566,7 @@ class ListAppComponentCompliancesResponse { Map json) { return ListAppComponentCompliancesResponse( componentCompliances: (json['componentCompliances'] as List) - .whereNotNull() + .nonNulls .map( (e) => AppComponentCompliance.fromJson(e as Map)) .toList(), @@ -6602,7 +6602,7 @@ class ListAppComponentRecommendationsResponse { Map json) { return ListAppComponentRecommendationsResponse( componentRecommendations: (json['componentRecommendations'] as List) - .whereNotNull() + .nonNulls .map((e) => ComponentRecommendation.fromJson(e as Map)) .toList(), @@ -6635,7 +6635,7 @@ class ListAppInputSourcesResponse { factory ListAppInputSourcesResponse.fromJson(Map json) { return ListAppInputSourcesResponse( appInputSources: (json['appInputSources'] as List) - .whereNotNull() + .nonNulls .map((e) => AppInputSource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6684,7 +6684,7 @@ class ListAppVersionAppComponentsResponse { appArn: json['appArn'] as String, appVersion: json['appVersion'] as String, appComponents: (json['appComponents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppComponent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6726,7 +6726,7 @@ class ListAppVersionResourceMappingsResponse { Map json) { return ListAppVersionResourceMappingsResponse( resourceMappings: (json['resourceMappings'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceMapping.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6762,7 +6762,7 @@ class ListAppVersionResourcesResponse { factory ListAppVersionResourcesResponse.fromJson(Map json) { return ListAppVersionResourcesResponse( physicalResources: (json['physicalResources'] as List) - .whereNotNull() + .nonNulls .map((e) => PhysicalResource.fromJson(e as Map)) .toList(), resolutionId: json['resolutionId'] as String, @@ -6797,7 +6797,7 @@ class ListAppVersionsResponse { factory ListAppVersionsResponse.fromJson(Map json) { return ListAppVersionsResponse( appVersions: (json['appVersions'] as List) - .whereNotNull() + .nonNulls .map((e) => AppVersionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6829,7 +6829,7 @@ class ListAppsResponse { factory ListAppsResponse.fromJson(Map json) { return ListAppsResponse( appSummaries: (json['appSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AppSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6863,7 +6863,7 @@ class ListRecommendationTemplatesResponse { return ListRecommendationTemplatesResponse( nextToken: json['nextToken'] as String?, recommendationTemplates: (json['recommendationTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RecommendationTemplate.fromJson(e as Map)) .toList(), @@ -6896,7 +6896,7 @@ class ListResiliencyPoliciesResponse { factory ListResiliencyPoliciesResponse.fromJson(Map json) { return ListResiliencyPoliciesResponse( resiliencyPolicies: (json['resiliencyPolicies'] as List) - .whereNotNull() + .nonNulls .map((e) => ResiliencyPolicy.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6929,7 +6929,7 @@ class ListSopRecommendationsResponse { factory ListSopRecommendationsResponse.fromJson(Map json) { return ListSopRecommendationsResponse( sopRecommendations: (json['sopRecommendations'] as List) - .whereNotNull() + .nonNulls .map((e) => SopRecommendation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6962,7 +6962,7 @@ class ListSuggestedResiliencyPoliciesResponse { Map json) { return ListSuggestedResiliencyPoliciesResponse( resiliencyPolicies: (json['resiliencyPolicies'] as List) - .whereNotNull() + .nonNulls .map((e) => ResiliencyPolicy.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7018,7 +7018,7 @@ class ListTestRecommendationsResponse { factory ListTestRecommendationsResponse.fromJson(Map json) { return ListTestRecommendationsResponse( testRecommendations: (json['testRecommendations'] as List) - .whereNotNull() + .nonNulls .map((e) => TestRecommendation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7056,7 +7056,7 @@ class ListUnsupportedAppVersionResourcesResponse { return ListUnsupportedAppVersionResourcesResponse( resolutionId: json['resolutionId'] as String, unsupportedResources: (json['unsupportedResources'] as List) - .whereNotNull() + .nonNulls .map((e) => UnsupportedResource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7184,7 +7184,7 @@ class PermissionModel { return PermissionModel( type: PermissionModelType.fromString((json['type'] as String)), crossAccountRoleArns: (json['crossAccountRoleArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), invokerRoleName: json['invokerRoleName'] as String?, @@ -7297,11 +7297,11 @@ class PhysicalResource { physicalResourceId: PhysicalResourceId.fromJson( json['physicalResourceId'] as Map), resourceType: json['resourceType'] as String, - additionalInfo: (json['additionalInfo'] as Map?)?.map( - (k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + additionalInfo: (json['additionalInfo'] as Map?)?.map((k, + e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), appComponents: (json['appComponents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppComponent.fromJson(e as Map)) .toList(), excluded: json['excluded'] as bool?, @@ -7791,7 +7791,7 @@ class RecommendationTemplate { name: json['name'] as String, recommendationTemplateArn: json['recommendationTemplateArn'] as String, recommendationTypes: (json['recommendationTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => RenderRecommendationType.fromString((e as String))) .toList(), status: @@ -7801,7 +7801,7 @@ class RecommendationTemplate { message: json['message'] as String?, needsReplacements: json['needsReplacements'] as bool?, recommendationIds: (json['recommendationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), startTime: timeStampFromJson(json['startTime']), @@ -8275,7 +8275,7 @@ class ResourceErrorsDetails { return ResourceErrorsDetails( hasMoreErrors: json['hasMoreErrors'] as bool?, resourceErrors: (json['resourceErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceError.fromJson(e as Map)) .toList(), ); @@ -8636,7 +8636,7 @@ class SopRecommendation { appComponentName: json['appComponentName'] as String?, description: json['description'] as String?, items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationItem.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -8817,13 +8817,13 @@ class TestRecommendation { referenceId: json['referenceId'] as String, appComponentName: json['appComponentName'] as String?, dependsOnAlarms: (json['dependsOnAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, intent: json['intent'] as String?, items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationItem.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -9105,9 +9105,9 @@ class UpdateAppVersionResponse { return UpdateAppVersionResponse( appArn: json['appArn'] as String, appVersion: json['appVersion'] as String, - additionalInfo: (json['additionalInfo'] as Map?)?.map( - (k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + additionalInfo: (json['additionalInfo'] as Map?)?.map((k, + e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), ); } diff --git a/aws_client/lib/src/generated/resource_explorer_2/v2022_07_28.dart b/aws_client/lib/src/generated/resource_explorer_2/v2022_07_28.dart index a111dc1dc..4607dda2b 100644 --- a/aws_client/lib/src/generated/resource_explorer_2/v2022_07_28.dart +++ b/aws_client/lib/src/generated/resource_explorer_2/v2022_07_28.dart @@ -1209,11 +1209,11 @@ class BatchGetViewOutput { factory BatchGetViewOutput.fromJson(Map json) { return BatchGetViewOutput( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchGetViewError.fromJson(e as Map)) .toList(), views: (json['Views'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => View.fromJson(e as Map)) .toList(), ); @@ -1486,11 +1486,11 @@ class GetIndexOutput { createdAt: timeStampFromJson(json['CreatedAt']), lastUpdatedAt: timeStampFromJson(json['LastUpdatedAt']), replicatingFrom: (json['ReplicatingFrom'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), replicatingTo: (json['ReplicatingTo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), state: (json['State'] as String?)?.let(IndexState.fromString), @@ -1703,7 +1703,7 @@ class ListIndexesForMembersOutput { factory ListIndexesForMembersOutput.fromJson(Map json) { return ListIndexesForMembersOutput( indexes: (json['Indexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberIndex.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1740,7 +1740,7 @@ class ListIndexesOutput { factory ListIndexesOutput.fromJson(Map json) { return ListIndexesOutput( indexes: (json['Indexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Index.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1778,7 +1778,7 @@ class ListSupportedResourceTypesOutput { return ListSupportedResourceTypesOutput( nextToken: json['NextToken'] as String?, resourceTypes: (json['ResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedResourceType.fromJson(e as Map)) .toList(), ); @@ -1839,10 +1839,8 @@ class ListViewsOutput { factory ListViewsOutput.fromJson(Map json) { return ListViewsOutput( nextToken: json['NextToken'] as String?, - views: (json['Views'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + views: + (json['Views'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2000,7 +1998,7 @@ class Resource { lastReportedAt: timeStampFromJson(json['LastReportedAt']), owningAccountId: json['OwningAccountId'] as String?, properties: (json['Properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceProperty.fromJson(e as Map)) .toList(), region: json['Region'] as String?, @@ -2186,7 +2184,7 @@ class SearchOutput { : null, nextToken: json['NextToken'] as String?, resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), viewArn: json['ViewArn'] as String?, @@ -2386,7 +2384,7 @@ class View { ? SearchFilter.fromJson(json['Filters'] as Map) : null, includedProperties: (json['IncludedProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IncludedProperty.fromJson(e as Map)) .toList(), lastUpdatedAt: timeStampFromJson(json['LastUpdatedAt']), diff --git a/aws_client/lib/src/generated/resource_groups/v2017_11_27.dart b/aws_client/lib/src/generated/resource_groups/v2017_11_27.dart index 371d99194..4320a4777 100644 --- a/aws_client/lib/src/generated/resource_groups/v2017_11_27.dart +++ b/aws_client/lib/src/generated/resource_groups/v2017_11_27.dart @@ -1475,13 +1475,13 @@ class GroupConfiguration { factory GroupConfiguration.fromJson(Map json) { return GroupConfiguration( configuration: (json['Configuration'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GroupConfigurationItem.fromJson(e as Map)) .toList(), failureReason: json['FailureReason'] as String?, proposedConfiguration: (json['ProposedConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GroupConfigurationItem.fromJson(e as Map)) .toList(), @@ -1532,7 +1532,7 @@ class GroupConfigurationItem { return GroupConfigurationItem( type: json['Type'] as String, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupConfigurationParameter.fromJson(e as Map)) .toList(), @@ -1574,10 +1574,8 @@ class GroupConfigurationParameter { factory GroupConfigurationParameter.fromJson(Map json) { return GroupConfigurationParameter( name: json['Name'] as String, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -1769,15 +1767,15 @@ class GroupResourcesOutput { factory GroupResourcesOutput.fromJson(Map json) { return GroupResourcesOutput( failed: (json['Failed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedResource.fromJson(e as Map)) .toList(), pending: (json['Pending'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingResource.fromJson(e as Map)) .toList(), succeeded: (json['Succeeded'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1873,15 +1871,15 @@ class ListGroupResourcesOutput { return ListGroupResourcesOutput( nextToken: json['NextToken'] as String?, queryErrors: (json['QueryErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryError.fromJson(e as Map)) .toList(), resourceIdentifiers: (json['ResourceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceIdentifier.fromJson(e as Map)) .toList(), resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ListGroupResourcesItem.fromJson(e as Map)) .toList(), @@ -1930,11 +1928,11 @@ class ListGroupsOutput { factory ListGroupsOutput.fromJson(Map json) { return ListGroupsOutput( groupIdentifiers: (json['GroupIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupIdentifier.fromJson(e as Map)) .toList(), groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2364,11 +2362,11 @@ class SearchResourcesOutput { return SearchResourcesOutput( nextToken: json['NextToken'] as String?, queryErrors: (json['QueryErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryError.fromJson(e as Map)) .toList(), resourceIdentifiers: (json['ResourceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceIdentifier.fromJson(e as Map)) .toList(), ); @@ -2442,15 +2440,15 @@ class UngroupResourcesOutput { factory UngroupResourcesOutput.fromJson(Map json) { return UngroupResourcesOutput( failed: (json['Failed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedResource.fromJson(e as Map)) .toList(), pending: (json['Pending'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingResource.fromJson(e as Map)) .toList(), succeeded: (json['Succeeded'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2483,10 +2481,7 @@ class UntagOutput { factory UntagOutput.fromJson(Map json) { return UntagOutput( arn: json['Arn'] as String?, - keys: (json['Keys'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + keys: (json['Keys'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/resource_groups_tagging_api/v2017_01_26.dart b/aws_client/lib/src/generated/resource_groups_tagging_api/v2017_01_26.dart index 7baebbd4d..1de6bef73 100644 --- a/aws_client/lib/src/generated/resource_groups_tagging_api/v2017_01_26.dart +++ b/aws_client/lib/src/generated/resource_groups_tagging_api/v2017_01_26.dart @@ -734,11 +734,11 @@ class ComplianceDetails { return ComplianceDetails( complianceStatus: json['ComplianceStatus'] as bool?, keysWithNoncompliantValues: (json['KeysWithNoncompliantValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), noncompliantKeys: (json['NoncompliantKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -918,7 +918,7 @@ class GetComplianceSummaryOutput { return GetComplianceSummaryOutput( paginationToken: json['PaginationToken'] as String?, summaryList: (json['SummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Summary.fromJson(e as Map)) .toList(), ); @@ -953,7 +953,7 @@ class GetResourcesOutput { return GetResourcesOutput( paginationToken: json['PaginationToken'] as String?, resourceTagMappingList: (json['ResourceTagMappingList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTagMapping.fromJson(e as Map)) .toList(), ); @@ -988,10 +988,8 @@ class GetTagKeysOutput { factory GetTagKeysOutput.fromJson(Map json) { return GetTagKeysOutput( paginationToken: json['PaginationToken'] as String?, - tagKeys: (json['TagKeys'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tagKeys: + (json['TagKeys'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -1025,7 +1023,7 @@ class GetTagValuesOutput { return GetTagValuesOutput( paginationToken: json['PaginationToken'] as String?, tagValues: (json['TagValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1085,7 +1083,7 @@ class ResourceTagMapping { : null, resourceARN: json['ResourceARN'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/robo_maker/v2018_06_29.dart b/aws_client/lib/src/generated/robo_maker/v2018_06_29.dart index 89bb981fa..ff94aa637 100644 --- a/aws_client/lib/src/generated/robo_maker/v2018_06_29.dart +++ b/aws_client/lib/src/generated/robo_maker/v2018_06_29.dart @@ -2283,7 +2283,7 @@ class BatchDeleteWorldsResponse { factory BatchDeleteWorldsResponse.fromJson(Map json) { return BatchDeleteWorldsResponse( unprocessedWorlds: (json['unprocessedWorlds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2313,11 +2313,11 @@ class BatchDescribeSimulationJobResponse { Map json) { return BatchDescribeSimulationJobResponse( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationJob.fromJson(e as Map)) .toList(), unprocessedJobs: (json['unprocessedJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2620,7 +2620,7 @@ class CreateDeploymentJobResponse { createdAt: timeStampFromJson(json['createdAt']), deploymentApplicationConfigs: (json['deploymentApplicationConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentApplicationConfig.fromJson(e as Map)) .toList(), @@ -2765,7 +2765,7 @@ class CreateRobotApplicationResponse { json['robotSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -2852,7 +2852,7 @@ class CreateRobotApplicationVersionResponse { json['robotSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -3017,7 +3017,7 @@ class CreateSimulationApplicationResponse { json['simulationSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -3125,7 +3125,7 @@ class CreateSimulationApplicationVersionResponse { json['simulationSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -3279,7 +3279,7 @@ class CreateSimulationJobResponse { ? ComputeResponse.fromJson(json['compute'] as Map) : null, dataSources: (json['dataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), failureBehavior: @@ -3299,12 +3299,12 @@ class CreateSimulationJobResponse { json['outputLocation'] as Map) : null, robotApplications: (json['robotApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RobotApplicationConfig.fromJson(e as Map)) .toList(), simulationApplications: (json['simulationApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationApplicationConfig.fromJson(e as Map)) .toList(), @@ -3694,7 +3694,7 @@ class DataSource { name: json['name'] as String?, s3Bucket: json['s3Bucket'] as String?, s3Keys: (json['s3Keys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3KeyOutput.fromJson(e as Map)) .toList(), type: (json['type'] as String?)?.let(DataSourceType.fromString), @@ -3763,10 +3763,8 @@ class DataSourceConfig { return DataSourceConfig( name: json['name'] as String, s3Bucket: json['s3Bucket'] as String, - s3Keys: (json['s3Keys'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + s3Keys: + (json['s3Keys'] as List).nonNulls.map((e) => e as String).toList(), destination: json['destination'] as String?, type: (json['type'] as String?)?.let(DataSourceType.fromString), ); @@ -4005,7 +4003,7 @@ class DeploymentJob { createdAt: timeStampFromJson(json['createdAt']), deploymentApplicationConfigs: (json['deploymentApplicationConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentApplicationConfig.fromJson(e as Map)) .toList(), @@ -4241,7 +4239,7 @@ class DescribeDeploymentJobResponse { createdAt: timeStampFromJson(json['createdAt']), deploymentApplicationConfigs: (json['deploymentApplicationConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentApplicationConfig.fromJson(e as Map)) .toList(), @@ -4254,7 +4252,7 @@ class DescribeDeploymentJobResponse { failureReason: json['failureReason'] as String?, fleet: json['fleet'] as String?, robotDeploymentSummary: (json['robotDeploymentSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RobotDeployment.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(DeploymentStatus.fromString), @@ -4339,7 +4337,7 @@ class DescribeFleetResponse { lastDeploymentTime: timeStampFromJson(json['lastDeploymentTime']), name: json['name'] as String?, robots: (json['robots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Robot.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -4433,7 +4431,7 @@ class DescribeRobotApplicationResponse { json['robotSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -4638,7 +4636,7 @@ class DescribeSimulationApplicationResponse { json['simulationSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -4779,11 +4777,11 @@ class DescribeSimulationJobBatchResponse { clientRequestToken: json['clientRequestToken'] as String?, createdAt: timeStampFromJson(json['createdAt']), createdRequests: (json['createdRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationJobSummary.fromJson(e as Map)) .toList(), failedRequests: (json['failedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCreateSimulationJobRequest.fromJson( e as Map)) .toList(), @@ -4792,7 +4790,7 @@ class DescribeSimulationJobBatchResponse { failureReason: json['failureReason'] as String?, lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), pendingRequests: (json['pendingRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationJobRequest.fromJson(e as Map)) .toList(), status: @@ -4967,7 +4965,7 @@ class DescribeSimulationJobResponse { ? ComputeResponse.fromJson(json['compute'] as Map) : null, dataSources: (json['dataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), failureBehavior: @@ -4993,12 +4991,12 @@ class DescribeSimulationJobResponse { json['outputLocation'] as Map) : null, robotApplications: (json['robotApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RobotApplicationConfig.fromJson(e as Map)) .toList(), simulationApplications: (json['simulationApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationApplicationConfig.fromJson(e as Map)) .toList(), @@ -5155,10 +5153,8 @@ class DescribeWorldExportJobResponse { status: (json['status'] as String?)?.let(WorldExportJobStatus.fromString), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), - worlds: (json['worlds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + worlds: + (json['worlds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -5572,7 +5568,7 @@ class FailureSummary { factory FailureSummary.fromJson(Map json) { return FailureSummary( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorldFailure.fromJson(e as Map)) .toList(), totalFailureCount: json['totalFailureCount'] as int?, @@ -5637,7 +5633,7 @@ class FinishedWorldsSummary { : null, finishedCount: json['finishedCount'] as int?, succeededWorlds: (json['succeededWorlds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5779,10 +5775,8 @@ class LaunchConfig { factory LaunchConfig.fromJson(Map json) { return LaunchConfig( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), environmentVariables: (json['environmentVariables'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), @@ -5838,7 +5832,7 @@ class ListDeploymentJobsResponse { factory ListDeploymentJobsResponse.fromJson(Map json) { return ListDeploymentJobsResponse( deploymentJobs: (json['deploymentJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentJob.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5877,7 +5871,7 @@ class ListFleetsResponse { factory ListFleetsResponse.fromJson(Map json) { return ListFleetsResponse( fleetDetails: (json['fleetDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Fleet.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5915,7 +5909,7 @@ class ListRobotApplicationsResponse { return ListRobotApplicationsResponse( nextToken: json['nextToken'] as String?, robotApplicationSummaries: (json['robotApplicationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RobotApplicationSummary.fromJson(e as Map)) .toList(), @@ -5956,7 +5950,7 @@ class ListRobotsResponse { return ListRobotsResponse( nextToken: json['nextToken'] as String?, robots: (json['robots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Robot.fromJson(e as Map)) .toList(), ); @@ -5996,7 +5990,7 @@ class ListSimulationApplicationsResponse { nextToken: json['nextToken'] as String?, simulationApplicationSummaries: (json['simulationApplicationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationApplicationSummary.fromJson(e as Map)) .toList(), @@ -6036,7 +6030,7 @@ class ListSimulationJobBatchesResponse { nextToken: json['nextToken'] as String?, simulationJobBatchSummaries: (json['simulationJobBatchSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationJobBatchSummary.fromJson(e as Map)) .toList(), @@ -6074,7 +6068,7 @@ class ListSimulationJobsResponse { factory ListSimulationJobsResponse.fromJson(Map json) { return ListSimulationJobsResponse( simulationJobSummaries: (json['simulationJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => SimulationJobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6134,7 +6128,7 @@ class ListWorldExportJobsResponse { factory ListWorldExportJobsResponse.fromJson(Map json) { return ListWorldExportJobsResponse( worldExportJobSummaries: (json['worldExportJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => WorldExportJobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6172,7 +6166,7 @@ class ListWorldGenerationJobsResponse { factory ListWorldGenerationJobsResponse.fromJson(Map json) { return ListWorldGenerationJobsResponse( worldGenerationJobSummaries: (json['worldGenerationJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => WorldGenerationJobSummary.fromJson(e as Map)) .toList(), @@ -6211,7 +6205,7 @@ class ListWorldTemplatesResponse { return ListWorldTemplatesResponse( nextToken: json['nextToken'] as String?, templateSummaries: (json['templateSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateSummary.fromJson(e as Map)) .toList(), ); @@ -6248,7 +6242,7 @@ class ListWorldsResponse { return ListWorldsResponse( nextToken: json['nextToken'] as String?, worldSummaries: (json['worldSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorldSummary.fromJson(e as Map)) .toList(), ); @@ -6370,7 +6364,7 @@ class PortForwardingConfig { factory PortForwardingConfig.fromJson(Map json) { return PortForwardingConfig( portMappings: (json['portMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortMapping.fromJson(e as Map)) .toList(), ); @@ -6706,11 +6700,11 @@ class RobotApplicationConfig { LaunchConfig.fromJson(json['launchConfig'] as Map), applicationVersion: json['applicationVersion'] as String?, tools: (json['tools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tool.fromJson(e as Map)) .toList(), uploadConfigurations: (json['uploadConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UploadConfiguration.fromJson(e as Map)) .toList(), useDefaultTools: json['useDefaultTools'] as bool?, @@ -7094,18 +7088,18 @@ class SimulationApplicationConfig { LaunchConfig.fromJson(json['launchConfig'] as Map), applicationVersion: json['applicationVersion'] as String?, tools: (json['tools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tool.fromJson(e as Map)) .toList(), uploadConfigurations: (json['uploadConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UploadConfiguration.fromJson(e as Map)) .toList(), useDefaultTools: json['useDefaultTools'] as bool?, useDefaultUploadConfigurations: json['useDefaultUploadConfigurations'] as bool?, worldConfigs: (json['worldConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorldConfig.fromJson(e as Map)) .toList(), ); @@ -7311,7 +7305,7 @@ class SimulationJob { ? ComputeResponse.fromJson(json['compute'] as Map) : null, dataSources: (json['dataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), failureBehavior: @@ -7337,12 +7331,12 @@ class SimulationJob { json['outputLocation'] as Map) : null, robotApplications: (json['robotApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RobotApplicationConfig.fromJson(e as Map)) .toList(), simulationApplications: (json['simulationApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationApplicationConfig.fromJson(e as Map)) .toList(), @@ -7666,7 +7660,7 @@ class SimulationJobRequest { ? Compute.fromJson(json['compute'] as Map) : null, dataSources: (json['dataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceConfig.fromJson(e as Map)) .toList(), failureBehavior: @@ -7681,12 +7675,12 @@ class SimulationJobRequest { json['outputLocation'] as Map) : null, robotApplications: (json['robotApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RobotApplicationConfig.fromJson(e as Map)) .toList(), simulationApplications: (json['simulationApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationApplicationConfig.fromJson(e as Map)) .toList(), @@ -7798,17 +7792,17 @@ class SimulationJobSummary { computeType: (json['computeType'] as String?)?.let(ComputeType.fromString), dataSourceNames: (json['dataSourceNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), name: json['name'] as String?, robotApplicationNames: (json['robotApplicationNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), simulationApplicationNames: (json['simulationApplicationNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(SimulationJobStatus.fromString), @@ -8055,11 +8049,11 @@ class StartSimulationJobBatchResponse { clientRequestToken: json['clientRequestToken'] as String?, createdAt: timeStampFromJson(json['createdAt']), createdRequests: (json['createdRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationJobSummary.fromJson(e as Map)) .toList(), failedRequests: (json['failedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCreateSimulationJobRequest.fromJson( e as Map)) .toList(), @@ -8067,7 +8061,7 @@ class StartSimulationJobBatchResponse { ?.let(SimulationJobBatchErrorCode.fromString), failureReason: json['failureReason'] as String?, pendingRequests: (json['pendingRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationJobRequest.fromJson(e as Map)) .toList(), status: @@ -8180,7 +8174,7 @@ class SyncDeploymentJobResponse { createdAt: timeStampFromJson(json['createdAt']), deploymentApplicationConfigs: (json['deploymentApplicationConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentApplicationConfig.fromJson(e as Map)) .toList(), @@ -8430,7 +8424,7 @@ class UpdateRobotApplicationResponse { json['robotSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -8529,7 +8523,7 @@ class UpdateSimulationApplicationResponse { json['simulationSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -8709,13 +8703,11 @@ class VPCConfig { factory VPCConfig.fromJson(Map json) { return VPCConfig( - subnets: (json['subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['subnets'] as List).nonNulls.map((e) => e as String).toList(), assignPublicIp: json['assignPublicIp'] as bool?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8758,13 +8750,11 @@ class VPCConfigResponse { return VPCConfigResponse( assignPublicIp: json['assignPublicIp'] as bool?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + subnets: + (json['subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), vpcId: json['vpcId'] as String?, ); } @@ -8931,10 +8921,8 @@ class WorldExportJobSummary { json['outputLocation'] as Map) : null, status: (json['status'] as String?)?.let(WorldExportJobStatus.fromString), - worlds: (json['worlds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + worlds: + (json['worlds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/roles_anywhere/v2018_05_10.dart b/aws_client/lib/src/generated/roles_anywhere/v2018_05_10.dart index 0d8600dc3..f9bcbc0e2 100644 --- a/aws_client/lib/src/generated/roles_anywhere/v2018_05_10.dart +++ b/aws_client/lib/src/generated/roles_anywhere/v2018_05_10.dart @@ -1040,7 +1040,7 @@ class AttributeMapping { certificateField: (json['certificateField'] as String?) ?.let(CertificateField.fromString), mappingRules: (json['mappingRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MappingRule.fromJson(e as Map)) .toList(), ); @@ -1312,7 +1312,7 @@ class ListCrlsResponse { factory ListCrlsResponse.fromJson(Map json) { return ListCrlsResponse( crls: (json['crls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CrlDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1347,7 +1347,7 @@ class ListProfilesResponse { return ListProfilesResponse( nextToken: json['nextToken'] as String?, profiles: (json['profiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileDetail.fromJson(e as Map)) .toList(), ); @@ -1381,7 +1381,7 @@ class ListSubjectsResponse { return ListSubjectsResponse( nextToken: json['nextToken'] as String?, subjects: (json['subjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubjectSummary.fromJson(e as Map)) .toList(), ); @@ -1408,7 +1408,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1440,7 +1440,7 @@ class ListTrustAnchorsResponse { return ListTrustAnchorsResponse( nextToken: json['nextToken'] as String?, trustAnchors: (json['trustAnchors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrustAnchorDetail.fromJson(e as Map)) .toList(), ); @@ -1706,7 +1706,7 @@ class ProfileDetail { factory ProfileDetail.fromJson(Map json) { return ProfileDetail( attributeMappings: (json['attributeMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeMapping.fromJson(e as Map)) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -1714,7 +1714,7 @@ class ProfileDetail { durationSeconds: json['durationSeconds'] as int?, enabled: json['enabled'] as bool?, managedPolicyArns: (json['managedPolicyArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -1722,7 +1722,7 @@ class ProfileDetail { profileId: json['profileId'] as String?, requireInstanceProperties: json['requireInstanceProperties'] as bool?, roleArns: (json['roleArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sessionPolicy: json['sessionPolicy'] as String?, @@ -1968,12 +1968,12 @@ class SubjectDetail { return SubjectDetail( createdAt: timeStampFromJson(json['createdAt']), credentials: (json['credentials'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CredentialSummary.fromJson(e as Map)) .toList(), enabled: json['enabled'] as bool?, instanceProperties: (json['instanceProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceProperty.fromJson(e as Map)) .toList(), lastSeenAt: timeStampFromJson(json['lastSeenAt']), @@ -2184,7 +2184,7 @@ class TrustAnchorDetail { enabled: json['enabled'] as bool?, name: json['name'] as String?, notificationSettings: (json['notificationSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationSettingDetail.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/route_53/v2013_04_01.dart b/aws_client/lib/src/generated/route_53/v2013_04_01.dart index 63dd27e74..ae37db6df 100644 --- a/aws_client/lib/src/generated/route_53/v2013_04_01.dart +++ b/aws_client/lib/src/generated/route_53/v2013_04_01.dart @@ -4544,7 +4544,7 @@ class AccountLimit { return AccountLimit( type: _s .extractXmlStringValue(elem, 'Type')! - .let(AccountLimitType.fromString) /* Nullability(true, false) */, + .let(AccountLimitType.fromString), value: _s.extractXmlIntValue(elem, 'Value')!, ); } @@ -4639,7 +4639,7 @@ class AlarmIdentifier { name: _s.extractXmlStringValue(elem, 'Name')!, region: _s .extractXmlStringValue(elem, 'Region')! - .let(CloudWatchRegion.fromString) /* Nullability(true, false) */, + .let(CloudWatchRegion.fromString), ); } @@ -5399,7 +5399,7 @@ class ChangeInfo { id: _s.extractXmlStringValue(elem, 'Id')!, status: _s .extractXmlStringValue(elem, 'Status')! - .let(ChangeStatus.fromString) /* Nullability(true, false) */, + .let(ChangeStatus.fromString), submittedAt: _s.extractXmlDateTimeValue(elem, 'SubmittedAt')!, comment: _s.extractXmlStringValue(elem, 'Comment'), ); @@ -5831,14 +5831,14 @@ class CloudWatchAlarmConfiguration { return CloudWatchAlarmConfiguration( comparisonOperator: _s .extractXmlStringValue(elem, 'ComparisonOperator')! - .let(ComparisonOperator.fromString) /* Nullability(true, false) */, + .let(ComparisonOperator.fromString), evaluationPeriods: _s.extractXmlIntValue(elem, 'EvaluationPeriods')!, metricName: _s.extractXmlStringValue(elem, 'MetricName')!, namespace: _s.extractXmlStringValue(elem, 'Namespace')!, period: _s.extractXmlIntValue(elem, 'Period')!, statistic: _s .extractXmlStringValue(elem, 'Statistic')! - .let(Statistic.fromString) /* Nullability(true, false) */, + .let(Statistic.fromString), threshold: _s.extractXmlDoubleValue(elem, 'Threshold')!, dimensions: _s.extractXmlChild(elem, 'Dimensions')?.let((elem) => elem.findElements('Dimension').map(Dimension.fromXml).toList()), @@ -8617,7 +8617,7 @@ class HealthCheckConfig { return HealthCheckConfig( type: _s .extractXmlStringValue(elem, 'Type')! - .let(HealthCheckType.fromString) /* Nullability(true, false) */, + .let(HealthCheckType.fromString), alarmIdentifier: _s .extractXmlChild(elem, 'AlarmIdentifier') ?.let(AlarmIdentifier.fromXml), @@ -8632,8 +8632,7 @@ class HealthCheckConfig { iPAddress: _s.extractXmlStringValue(elem, 'IPAddress'), insufficientDataHealthStatus: _s .extractXmlStringValue(elem, 'InsufficientDataHealthStatus') - ?.let(InsufficientDataHealthStatus - .fromString) /* Nullability(true, true) */, + ?.let(InsufficientDataHealthStatus.fromString), inverted: _s.extractXmlBoolValue(elem, 'Inverted'), measureLatency: _s.extractXmlBoolValue(elem, 'MeasureLatency'), port: _s.extractXmlIntValue(elem, 'Port'), @@ -8784,7 +8783,7 @@ class HealthCheckObservation { iPAddress: _s.extractXmlStringValue(elem, 'IPAddress'), region: _s .extractXmlStringValue(elem, 'Region') - ?.let(HealthCheckRegion.fromString) /* Nullability(true, true) */, + ?.let(HealthCheckRegion.fromString), statusReport: _s.extractXmlChild(elem, 'StatusReport')?.let(StatusReport.fromXml), ); @@ -8994,7 +8993,7 @@ class HostedZoneLimit { return HostedZoneLimit( type: _s .extractXmlStringValue(elem, 'Type')! - .let(HostedZoneLimitType.fromString) /* Nullability(true, false) */, + .let(HostedZoneLimitType.fromString), value: _s.extractXmlIntValue(elem, 'Value')!, ); } @@ -9941,7 +9940,7 @@ class ListResourceRecordSetsResponse { nextRecordName: _s.extractXmlStringValue(elem, 'NextRecordName'), nextRecordType: _s .extractXmlStringValue(elem, 'NextRecordType') - ?.let(RRType.fromString) /* Nullability(true, true) */, + ?.let(RRType.fromString), ); } @@ -10242,7 +10241,7 @@ class ListTrafficPolicyInstancesByHostedZoneResponse { _s.extractXmlStringValue(elem, 'TrafficPolicyInstanceNameMarker'), trafficPolicyInstanceTypeMarker: _s .extractXmlStringValue(elem, 'TrafficPolicyInstanceTypeMarker') - ?.let(RRType.fromString) /* Nullability(true, true) */, + ?.let(RRType.fromString), ); } @@ -10327,7 +10326,7 @@ class ListTrafficPolicyInstancesByPolicyResponse { _s.extractXmlStringValue(elem, 'TrafficPolicyInstanceNameMarker'), trafficPolicyInstanceTypeMarker: _s .extractXmlStringValue(elem, 'TrafficPolicyInstanceTypeMarker') - ?.let(RRType.fromString) /* Nullability(true, true) */, + ?.let(RRType.fromString), ); } @@ -10415,7 +10414,7 @@ class ListTrafficPolicyInstancesResponse { _s.extractXmlStringValue(elem, 'TrafficPolicyInstanceNameMarker'), trafficPolicyInstanceTypeMarker: _s .extractXmlStringValue(elem, 'TrafficPolicyInstanceTypeMarker') - ?.let(RRType.fromString) /* Nullability(true, true) */, + ?.let(RRType.fromString), ); } @@ -11301,16 +11300,15 @@ class ResourceRecordSet { factory ResourceRecordSet.fromXml(_s.XmlElement elem) { return ResourceRecordSet( name: _s.extractXmlStringValue(elem, 'Name')!, - type: _s - .extractXmlStringValue(elem, 'Type')! - .let(RRType.fromString) /* Nullability(true, false) */, + type: _s.extractXmlStringValue(elem, 'Type')!.let(RRType.fromString), aliasTarget: _s.extractXmlChild(elem, 'AliasTarget')?.let(AliasTarget.fromXml), cidrRoutingConfig: _s .extractXmlChild(elem, 'CidrRoutingConfig') ?.let(CidrRoutingConfig.fromXml), - failover: _s.extractXmlStringValue(elem, 'Failover')?.let( - ResourceRecordSetFailover.fromString) /* Nullability(true, true) */, + failover: _s + .extractXmlStringValue(elem, 'Failover') + ?.let(ResourceRecordSetFailover.fromString), geoLocation: _s.extractXmlChild(elem, 'GeoLocation')?.let(GeoLocation.fromXml), geoProximityLocation: _s @@ -11318,8 +11316,9 @@ class ResourceRecordSet { ?.let(GeoProximityLocation.fromXml), healthCheckId: _s.extractXmlStringValue(elem, 'HealthCheckId'), multiValueAnswer: _s.extractXmlBoolValue(elem, 'MultiValueAnswer'), - region: _s.extractXmlStringValue(elem, 'Region')?.let( - ResourceRecordSetRegion.fromString) /* Nullability(true, true) */, + region: _s + .extractXmlStringValue(elem, 'Region') + ?.let(ResourceRecordSetRegion.fromString), resourceRecords: _s.extractXmlChild(elem, 'ResourceRecords')?.let( (elem) => elem .findElements('ResourceRecord') @@ -11512,7 +11511,7 @@ class ResourceTagSet { resourceId: _s.extractXmlStringValue(elem, 'ResourceId'), resourceType: _s .extractXmlStringValue(elem, 'ResourceType') - ?.let(TagResourceType.fromString) /* Nullability(true, true) */, + ?.let(TagResourceType.fromString), tags: _s .extractXmlChild(elem, 'Tags') ?.let((elem) => elem.findElements('Tag').map(Tag.fromXml).toList()), @@ -11550,9 +11549,9 @@ class ReusableDelegationSetLimit { }); factory ReusableDelegationSetLimit.fromXml(_s.XmlElement elem) { return ReusableDelegationSetLimit( - type: _s.extractXmlStringValue(elem, 'Type')!.let( - ReusableDelegationSetLimitType - .fromString) /* Nullability(true, false) */, + type: _s + .extractXmlStringValue(elem, 'Type')! + .let(ReusableDelegationSetLimitType.fromString), value: _s.extractXmlIntValue(elem, 'Value')!, ); } @@ -11772,9 +11771,8 @@ class TestDNSAnswerResponse { recordData: _s.extractXmlStringListValues( _s.extractXmlChild(elem, 'RecordData')!, 'RecordDataEntry'), recordName: _s.extractXmlStringValue(elem, 'RecordName')!, - recordType: _s - .extractXmlStringValue(elem, 'RecordType')! - .let(RRType.fromString) /* Nullability(true, false) */, + recordType: + _s.extractXmlStringValue(elem, 'RecordType')!.let(RRType.fromString), responseCode: _s.extractXmlStringValue(elem, 'ResponseCode')!, ); } @@ -11839,9 +11837,7 @@ class TrafficPolicy { document: _s.extractXmlStringValue(elem, 'Document')!, id: _s.extractXmlStringValue(elem, 'Id')!, name: _s.extractXmlStringValue(elem, 'Name')!, - type: _s - .extractXmlStringValue(elem, 'Type')! - .let(RRType.fromString) /* Nullability(true, false) */, + type: _s.extractXmlStringValue(elem, 'Type')!.let(RRType.fromString), version: _s.extractXmlIntValue(elem, 'Version')!, comment: _s.extractXmlStringValue(elem, 'Comment'), ); @@ -11937,7 +11933,7 @@ class TrafficPolicyInstance { trafficPolicyId: _s.extractXmlStringValue(elem, 'TrafficPolicyId')!, trafficPolicyType: _s .extractXmlStringValue(elem, 'TrafficPolicyType')! - .let(RRType.fromString) /* Nullability(true, false) */, + .let(RRType.fromString), trafficPolicyVersion: _s.extractXmlIntValue(elem, 'TrafficPolicyVersion')!, ); @@ -12002,9 +11998,7 @@ class TrafficPolicySummary { latestVersion: _s.extractXmlIntValue(elem, 'LatestVersion')!, name: _s.extractXmlStringValue(elem, 'Name')!, trafficPolicyCount: _s.extractXmlIntValue(elem, 'TrafficPolicyCount')!, - type: _s - .extractXmlStringValue(elem, 'Type')! - .let(RRType.fromString) /* Nullability(true, false) */, + type: _s.extractXmlStringValue(elem, 'Type')!.let(RRType.fromString), ); } @@ -12784,7 +12778,7 @@ class VPC { vPCId: _s.extractXmlStringValue(elem, 'VPCId'), vPCRegion: _s .extractXmlStringValue(elem, 'VPCRegion') - ?.let(VPCRegion.fromString) /* Nullability(true, true) */, + ?.let(VPCRegion.fromString), ); } diff --git a/aws_client/lib/src/generated/route_53_domains/v2014_05_15.dart b/aws_client/lib/src/generated/route_53_domains/v2014_05_15.dart index 8ebac72ac..1f3a13e95 100644 --- a/aws_client/lib/src/generated/route_53_domains/v2014_05_15.dart +++ b/aws_client/lib/src/generated/route_53_domains/v2014_05_15.dart @@ -2450,7 +2450,7 @@ class ContactDetail { (json['CountryCode'] as String?)?.let(CountryCode.fromString), email: json['Email'] as String?, extraParams: (json['ExtraParams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtraParam.fromJson(e as Map)) .toList(), fax: json['Fax'] as String?, @@ -4137,13 +4137,13 @@ class GetDomainDetailResponse { creationDate: timeStampFromJson(json['CreationDate']), dnsSec: json['DnsSec'] as String?, dnssecKeys: (json['DnssecKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DnssecKey.fromJson(e as Map)) .toList(), domainName: json['DomainName'] as String?, expirationDate: timeStampFromJson(json['ExpirationDate']), nameservers: (json['Nameservers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Nameserver.fromJson(e as Map)) .toList(), registrantContact: json['RegistrantContact'] != null @@ -4156,7 +4156,7 @@ class GetDomainDetailResponse { registryDomainId: json['RegistryDomainId'] as String?, reseller: json['Reseller'] as String?, statusList: (json['StatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), techContact: json['TechContact'] != null @@ -4237,7 +4237,7 @@ class GetDomainSuggestionsResponse { factory GetDomainSuggestionsResponse.fromJson(Map json) { return GetDomainSuggestionsResponse( suggestionsList: (json['SuggestionsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainSuggestion.fromJson(e as Map)) .toList(), ); @@ -4383,7 +4383,7 @@ class ListDomainsResponse { factory ListDomainsResponse.fromJson(Map json) { return ListDomainsResponse( domains: (json['Domains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainSummary.fromJson(e as Map)) .toList(), nextPageMarker: json['NextPageMarker'] as String?, @@ -4419,7 +4419,7 @@ class ListOperationsResponse { return ListOperationsResponse( nextPageMarker: json['NextPageMarker'] as String?, operations: (json['Operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OperationSummary.fromJson(e as Map)) .toList(), ); @@ -4471,7 +4471,7 @@ class ListPricesResponse { return ListPricesResponse( nextPageMarker: json['NextPageMarker'] as String?, prices: (json['Prices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainPrice.fromJson(e as Map)) .toList(), ); @@ -4499,7 +4499,7 @@ class ListTagsForDomainResponse { factory ListTagsForDomainResponse.fromJson(Map json) { return ListTagsForDomainResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4536,10 +4536,8 @@ class Nameserver { factory Nameserver.fromJson(Map json) { return Nameserver( name: json['Name'] as String, - glueIps: (json['GlueIps'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + glueIps: + (json['GlueIps'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -5212,7 +5210,7 @@ class ViewBillingResponse { factory ViewBillingResponse.fromJson(Map json) { return ViewBillingResponse( billingRecords: (json['BillingRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BillingRecord.fromJson(e as Map)) .toList(), nextPageMarker: json['NextPageMarker'] as String?, diff --git a/aws_client/lib/src/generated/route_53_profiles/v2018_05_10.dart b/aws_client/lib/src/generated/route_53_profiles/v2018_05_10.dart index b32d697e1..a65a117b7 100644 --- a/aws_client/lib/src/generated/route_53_profiles/v2018_05_10.dart +++ b/aws_client/lib/src/generated/route_53_profiles/v2018_05_10.dart @@ -891,7 +891,7 @@ class ListProfileAssociationsResponse { return ListProfileAssociationsResponse( nextToken: json['NextToken'] as String?, profileAssociations: (json['ProfileAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileAssociation.fromJson(e as Map)) .toList(), ); @@ -931,7 +931,7 @@ class ListProfileResourceAssociationsResponse { nextToken: json['NextToken'] as String?, profileResourceAssociations: (json['ProfileResourceAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileResourceAssociation.fromJson(e as Map)) .toList(), @@ -968,7 +968,7 @@ class ListProfilesResponse { return ListProfilesResponse( nextToken: json['NextToken'] as String?, profileSummaries: (json['ProfileSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileSummary.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/route_53_recovery_cluster/v2019_12_02.dart b/aws_client/lib/src/generated/route_53_recovery_cluster/v2019_12_02.dart index b9a600c04..d37c7517d 100644 --- a/aws_client/lib/src/generated/route_53_recovery_cluster/v2019_12_02.dart +++ b/aws_client/lib/src/generated/route_53_recovery_cluster/v2019_12_02.dart @@ -505,7 +505,7 @@ class ListRoutingControlsResponse { factory ListRoutingControlsResponse.fromJson(Map json) { return ListRoutingControlsResponse( routingControls: (json['RoutingControls'] as List) - .whereNotNull() + .nonNulls .map((e) => RoutingControl.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/route_53_recovery_control_config/v2020_11_02.dart b/aws_client/lib/src/generated/route_53_recovery_control_config/v2020_11_02.dart index 720209e2a..3b82e417b 100644 --- a/aws_client/lib/src/generated/route_53_recovery_control_config/v2020_11_02.dart +++ b/aws_client/lib/src/generated/route_53_recovery_control_config/v2020_11_02.dart @@ -894,7 +894,7 @@ class AssertionRule { factory AssertionRule.fromJson(Map json) { return AssertionRule( assertedControls: (json['AssertedControls'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), controlPanelArn: json['ControlPanelArn'] as String, @@ -1001,7 +1001,7 @@ class Cluster { return Cluster( clusterArn: json['ClusterArn'] as String?, clusterEndpoints: (json['ClusterEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterEndpoint.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -1467,7 +1467,7 @@ class GatingRule { return GatingRule( controlPanelArn: json['ControlPanelArn'] as String, gatingControls: (json['GatingControls'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String, @@ -1476,7 +1476,7 @@ class GatingRule { safetyRuleArn: json['SafetyRuleArn'] as String, status: Status.fromString((json['Status'] as String)), targetControls: (json['TargetControls'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), waitPeriodMs: json['WaitPeriodMs'] as int, @@ -1581,7 +1581,7 @@ class ListAssociatedRoute53HealthChecksResponse { Map json) { return ListAssociatedRoute53HealthChecksResponse( healthCheckIds: (json['HealthCheckIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -1613,7 +1613,7 @@ class ListClustersResponse { factory ListClustersResponse.fromJson(Map json) { return ListClustersResponse( clusters: (json['Clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cluster.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1645,7 +1645,7 @@ class ListControlPanelsResponse { factory ListControlPanelsResponse.fromJson(Map json) { return ListControlPanelsResponse( controlPanels: (json['ControlPanels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ControlPanel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1678,7 +1678,7 @@ class ListRoutingControlsResponse { return ListRoutingControlsResponse( nextToken: json['NextToken'] as String?, routingControls: (json['RoutingControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoutingControl.fromJson(e as Map)) .toList(), ); @@ -1710,7 +1710,7 @@ class ListSafetyRulesResponse { return ListSafetyRulesResponse( nextToken: json['NextToken'] as String?, safetyRules: (json['SafetyRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/route_53_recovery_readiness/v2019_12_02.dart b/aws_client/lib/src/generated/route_53_recovery_readiness/v2019_12_02.dart index f86f82b5c..3d6148f18 100644 --- a/aws_client/lib/src/generated/route_53_recovery_readiness/v2019_12_02.dart +++ b/aws_client/lib/src/generated/route_53_recovery_readiness/v2019_12_02.dart @@ -1123,12 +1123,9 @@ class CellOutput { return CellOutput( cellArn: json['cellArn'] as String, cellName: json['cellName'] as String, - cells: (json['cells'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + cells: (json['cells'] as List).nonNulls.map((e) => e as String).toList(), parentReadinessScopes: (json['parentReadinessScopes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -1182,12 +1179,10 @@ class CreateCellResponse { return CreateCellResponse( cellArn: json['cellArn'] as String?, cellName: json['cellName'] as String?, - cells: (json['cells'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + cells: + (json['cells'] as List?)?.nonNulls.map((e) => e as String).toList(), parentReadinessScopes: (json['parentReadinessScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -1300,10 +1295,8 @@ class CreateRecoveryGroupResponse { factory CreateRecoveryGroupResponse.fromJson(Map json) { return CreateRecoveryGroupResponse( - cells: (json['cells'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + cells: + (json['cells'] as List?)?.nonNulls.map((e) => e as String).toList(), recoveryGroupArn: json['recoveryGroupArn'] as String?, recoveryGroupName: json['recoveryGroupName'] as String?, tags: (json['tags'] as Map?) @@ -1364,7 +1357,7 @@ class CreateResourceSetResponse { resourceSetName: json['resourceSetName'] as String?, resourceSetType: json['resourceSetType'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -1482,7 +1475,7 @@ class GetArchitectureRecommendationsResponse { lastAuditTimestamp: timeStampFromJson(json['lastAuditTimestamp']), nextToken: json['nextToken'] as String?, recommendations: (json['recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), ); @@ -1522,7 +1515,7 @@ class GetCellReadinessSummaryResponse { nextToken: json['nextToken'] as String?, readiness: (json['readiness'] as String?)?.let(Readiness.fromString), readinessChecks: (json['readinessChecks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReadinessCheckSummary.fromJson(e as Map)) .toList(), ); @@ -1570,12 +1563,10 @@ class GetCellResponse { return GetCellResponse( cellArn: json['cellArn'] as String?, cellName: json['cellName'] as String?, - cells: (json['cells'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + cells: + (json['cells'] as List?)?.nonNulls.map((e) => e as String).toList(), parentReadinessScopes: (json['parentReadinessScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -1622,7 +1613,7 @@ class GetReadinessCheckResourceStatusResponse { nextToken: json['nextToken'] as String?, readiness: (json['readiness'] as String?)?.let(Readiness.fromString), rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleResult.fromJson(e as Map)) .toList(), ); @@ -1705,13 +1696,13 @@ class GetReadinessCheckStatusResponse { factory GetReadinessCheckStatusResponse.fromJson(Map json) { return GetReadinessCheckStatusResponse( messages: (json['messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Message.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, readiness: (json['readiness'] as String?)?.let(Readiness.fromString), resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceResult.fromJson(e as Map)) .toList(), ); @@ -1753,7 +1744,7 @@ class GetRecoveryGroupReadinessSummaryResponse { nextToken: json['nextToken'] as String?, readiness: (json['readiness'] as String?)?.let(Readiness.fromString), readinessChecks: (json['readinessChecks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReadinessCheckSummary.fromJson(e as Map)) .toList(), ); @@ -1793,10 +1784,8 @@ class GetRecoveryGroupResponse { factory GetRecoveryGroupResponse.fromJson(Map json) { return GetRecoveryGroupResponse( - cells: (json['cells'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + cells: + (json['cells'] as List?)?.nonNulls.map((e) => e as String).toList(), recoveryGroupArn: json['recoveryGroupArn'] as String?, recoveryGroupName: json['recoveryGroupName'] as String?, tags: (json['tags'] as Map?) @@ -1857,7 +1846,7 @@ class GetResourceSetResponse { resourceSetName: json['resourceSetName'] as String?, resourceSetType: json['resourceSetType'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -1896,7 +1885,7 @@ class ListCellsResponse { factory ListCellsResponse.fromJson(Map json) { return ListCellsResponse( cells: (json['cells'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CellOutput.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1929,7 +1918,7 @@ class ListCrossAccountAuthorizationsResponse { Map json) { return ListCrossAccountAuthorizationsResponse( crossAccountAuthorizations: (json['crossAccountAuthorizations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -1963,7 +1952,7 @@ class ListReadinessChecksResponse { return ListReadinessChecksResponse( nextToken: json['nextToken'] as String?, readinessChecks: (json['readinessChecks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReadinessCheckOutput.fromJson(e as Map)) .toList(), ); @@ -1995,7 +1984,7 @@ class ListRecoveryGroupsResponse { return ListRecoveryGroupsResponse( nextToken: json['nextToken'] as String?, recoveryGroups: (json['recoveryGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryGroupOutput.fromJson(e as Map)) .toList(), ); @@ -2027,7 +2016,7 @@ class ListResourceSetsResponse { return ListResourceSetsResponse( nextToken: json['nextToken'] as String?, resourceSets: (json['resourceSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceSetOutput.fromJson(e as Map)) .toList(), ); @@ -2097,7 +2086,7 @@ class ListRulesResponse { return ListRulesResponse( nextToken: json['nextToken'] as String?, rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListRulesOutput.fromJson(e as Map)) .toList(), ); @@ -2351,10 +2340,7 @@ class RecoveryGroupOutput { factory RecoveryGroupOutput.fromJson(Map json) { return RecoveryGroupOutput( - cells: (json['cells'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + cells: (json['cells'] as List).nonNulls.map((e) => e as String).toList(), recoveryGroupArn: json['recoveryGroupArn'] as String, recoveryGroupName: json['recoveryGroupName'] as String, tags: (json['tags'] as Map?) @@ -2407,7 +2393,7 @@ class Resource { json['dnsTargetResource'] as Map) : null, readinessScopes: (json['readinessScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resourceArn: json['resourceArn'] as String?, @@ -2515,7 +2501,7 @@ class ResourceSetOutput { resourceSetName: json['resourceSetName'] as String, resourceSetType: json['resourceSetType'] as String, resources: (json['resources'] as List) - .whereNotNull() + .nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -2566,7 +2552,7 @@ class RuleResult { lastCheckedTimestamp: nonNullableTimeStampFromJson(json['lastCheckedTimestamp'] as Object), messages: (json['messages'] as List) - .whereNotNull() + .nonNulls .map((e) => Message.fromJson(e as Map)) .toList(), readiness: Readiness.fromString((json['readiness'] as String)), @@ -2665,12 +2651,10 @@ class UpdateCellResponse { return UpdateCellResponse( cellArn: json['cellArn'] as String?, cellName: json['cellName'] as String?, - cells: (json['cells'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + cells: + (json['cells'] as List?)?.nonNulls.map((e) => e as String).toList(), parentReadinessScopes: (json['parentReadinessScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -2759,10 +2743,8 @@ class UpdateRecoveryGroupResponse { factory UpdateRecoveryGroupResponse.fromJson(Map json) { return UpdateRecoveryGroupResponse( - cells: (json['cells'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + cells: + (json['cells'] as List?)?.nonNulls.map((e) => e as String).toList(), recoveryGroupArn: json['recoveryGroupArn'] as String?, recoveryGroupName: json['recoveryGroupName'] as String?, tags: (json['tags'] as Map?) @@ -2823,7 +2805,7 @@ class UpdateResourceSetResponse { resourceSetName: json['resourceSetName'] as String?, resourceSetType: json['resourceSetType'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) diff --git a/aws_client/lib/src/generated/route_53_resolver/v2018_04_01.dart b/aws_client/lib/src/generated/route_53_resolver/v2018_04_01.dart index c5afaa678..a14c10469 100644 --- a/aws_client/lib/src/generated/route_53_resolver/v2018_04_01.dart +++ b/aws_client/lib/src/generated/route_53_resolver/v2018_04_01.dart @@ -6723,7 +6723,7 @@ class ListFirewallConfigsResponse { factory ListFirewallConfigsResponse.fromJson(Map json) { return ListFirewallConfigsResponse( firewallConfigs: (json['FirewallConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallConfig.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6760,7 +6760,7 @@ class ListFirewallDomainListsResponse { factory ListFirewallDomainListsResponse.fromJson(Map json) { return ListFirewallDomainListsResponse( firewallDomainLists: (json['FirewallDomainLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallDomainListMetadata.fromJson(e as Map)) .toList(), @@ -6798,10 +6798,8 @@ class ListFirewallDomainsResponse { factory ListFirewallDomainsResponse.fromJson(Map json) { return ListFirewallDomainsResponse( - domains: (json['Domains'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + domains: + (json['Domains'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -6838,7 +6836,7 @@ class ListFirewallRuleGroupAssociationsResponse { return ListFirewallRuleGroupAssociationsResponse( firewallRuleGroupAssociations: (json['FirewallRuleGroupAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallRuleGroupAssociation.fromJson(e as Map)) .toList(), @@ -6877,7 +6875,7 @@ class ListFirewallRuleGroupsResponse { factory ListFirewallRuleGroupsResponse.fromJson(Map json) { return ListFirewallRuleGroupsResponse( firewallRuleGroups: (json['FirewallRuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallRuleGroupMetadata.fromJson(e as Map)) .toList(), @@ -6915,7 +6913,7 @@ class ListFirewallRulesResponse { factory ListFirewallRulesResponse.fromJson(Map json) { return ListFirewallRulesResponse( firewallRules: (json['FirewallRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallRule.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6952,7 +6950,7 @@ class ListOutpostResolversResponse { return ListOutpostResolversResponse( nextToken: json['NextToken'] as String?, outpostResolvers: (json['OutpostResolvers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutpostResolver.fromJson(e as Map)) .toList(), ); @@ -6994,7 +6992,7 @@ class ListResolverConfigsResponse { return ListResolverConfigsResponse( nextToken: json['NextToken'] as String?, resolverConfigs: (json['ResolverConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolverConfig.fromJson(e as Map)) .toList(), ); @@ -7040,7 +7038,7 @@ class ListResolverDnssecConfigsResponse { return ListResolverDnssecConfigsResponse( nextToken: json['NextToken'] as String?, resolverDnssecConfigs: (json['ResolverDnssecConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolverDnssecConfig.fromJson(e as Map)) .toList(), ); @@ -7083,7 +7081,7 @@ class ListResolverEndpointIpAddressesResponse { Map json) { return ListResolverEndpointIpAddressesResponse( ipAddresses: (json['IpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpAddressResponse.fromJson(e as Map)) .toList(), maxResults: json['MaxResults'] as int?, @@ -7128,7 +7126,7 @@ class ListResolverEndpointsResponse { maxResults: json['MaxResults'] as int?, nextToken: json['NextToken'] as String?, resolverEndpoints: (json['ResolverEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolverEndpoint.fromJson(e as Map)) .toList(), ); @@ -7186,7 +7184,7 @@ class ListResolverQueryLogConfigAssociationsResponse { nextToken: json['NextToken'] as String?, resolverQueryLogConfigAssociations: (json['ResolverQueryLogConfigAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolverQueryLogConfigAssociation.fromJson( e as Map)) .toList(), @@ -7250,7 +7248,7 @@ class ListResolverQueryLogConfigsResponse { return ListResolverQueryLogConfigsResponse( nextToken: json['NextToken'] as String?, resolverQueryLogConfigs: (json['ResolverQueryLogConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ResolverQueryLogConfig.fromJson(e as Map)) .toList(), @@ -7301,7 +7299,7 @@ class ListResolverRuleAssociationsResponse { maxResults: json['MaxResults'] as int?, nextToken: json['NextToken'] as String?, resolverRuleAssociations: (json['ResolverRuleAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolverRuleAssociation.fromJson(e as Map)) .toList(), @@ -7346,7 +7344,7 @@ class ListResolverRulesResponse { maxResults: json['MaxResults'] as int?, nextToken: json['NextToken'] as String?, resolverRules: (json['ResolverRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolverRule.fromJson(e as Map)) .toList(), ); @@ -7384,7 +7382,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7994,13 +7992,13 @@ class ResolverEndpoint { outpostArn: json['OutpostArn'] as String?, preferredInstanceType: json['PreferredInstanceType'] as String?, protocols: (json['Protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Protocol.fromString((e as String))) .toList(), resolverEndpointType: (json['ResolverEndpointType'] as String?) ?.let(ResolverEndpointType.fromString), securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: @@ -8519,7 +8517,7 @@ class ResolverRule { status: (json['Status'] as String?)?.let(ResolverRuleStatus.fromString), statusMessage: json['StatusMessage'] as String?, targetIps: (json['TargetIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetAddress.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/rum/v2018_05_10.dart b/aws_client/lib/src/generated/rum/v2018_05_10.dart index e2be5ed8a..6e73bfdb8 100644 --- a/aws_client/lib/src/generated/rum/v2018_05_10.dart +++ b/aws_client/lib/src/generated/rum/v2018_05_10.dart @@ -1198,22 +1198,22 @@ class AppMonitorConfiguration { allowCookies: json['AllowCookies'] as bool?, enableXRay: json['EnableXRay'] as bool?, excludedPages: (json['ExcludedPages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), favoritePages: (json['FavoritePages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), guestRoleArn: json['GuestRoleArn'] as String?, identityPoolId: json['IdentityPoolId'] as String?, includedPages: (json['IncludedPages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sessionSampleRate: json['SessionSampleRate'] as double?, telemetries: (json['Telemetries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Telemetry.fromString((e as String))) .toList(), ); @@ -1382,12 +1382,12 @@ class BatchCreateRumMetricDefinitionsResponse { Map json) { return BatchCreateRumMetricDefinitionsResponse( errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchCreateRumMetricDefinitionsError.fromJson( e as Map)) .toList(), metricDefinitions: (json['MetricDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDefinition.fromJson(e as Map)) .toList(), ); @@ -1459,12 +1459,12 @@ class BatchDeleteRumMetricDefinitionsResponse { Map json) { return BatchDeleteRumMetricDefinitionsResponse( errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDeleteRumMetricDefinitionsError.fromJson( e as Map)) .toList(), metricDefinitionIds: (json['MetricDefinitionIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1499,7 +1499,7 @@ class BatchGetRumMetricDefinitionsResponse { Map json) { return BatchGetRumMetricDefinitionsResponse( metricDefinitions: (json['MetricDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDefinition.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1678,10 +1678,8 @@ class GetAppMonitorDataResponse { factory GetAppMonitorDataResponse.fromJson(Map json) { return GetAppMonitorDataResponse( - events: (json['Events'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + events: + (json['Events'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -1738,7 +1736,7 @@ class ListAppMonitorsResponse { factory ListAppMonitorsResponse.fromJson(Map json) { return ListAppMonitorsResponse( appMonitorSummaries: (json['AppMonitorSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppMonitorSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1774,7 +1772,7 @@ class ListRumMetricsDestinationsResponse { Map json) { return ListRumMetricsDestinationsResponse( destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDestinationSummary.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/s3/v2006_03_01.dart b/aws_client/lib/src/generated/s3/v2006_03_01.dart index 821bfc83f..a907acad0 100644 --- a/aws_client/lib/src/generated/s3/v2006_03_01.dart +++ b/aws_client/lib/src/generated/s3/v2006_03_01.dart @@ -4454,8 +4454,9 @@ class S3 { ); final $elem = await _s.xmlFromResponse($result); return GetBucketAccelerateConfigurationOutput( - status: _s.extractXmlStringValue($elem, 'Status')?.let( - BucketAccelerateStatus.fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue($elem, 'Status') + ?.let(BucketAccelerateStatus.fromString), requestCharged: _s .extractHeaderStringValue($result.headers, 'x-amz-request-charged') ?.let(RequestCharged.fromString), @@ -6934,7 +6935,7 @@ class S3 { objectSize: _s.extractXmlIntValue($elem, 'ObjectSize'), storageClass: _s .extractXmlStringValue($elem, 'StorageClass') - ?.let(StorageClass.fromString) /* Nullability(true, true) */, + ?.let(StorageClass.fromString), deleteMarker: _s.extractHeaderBoolValue($result.headers, 'x-amz-delete-marker'), lastModified: @@ -8684,7 +8685,7 @@ class S3 { delimiter: _s.extractXmlStringValue($elem, 'Delimiter'), encodingType: _s .extractXmlStringValue($elem, 'EncodingType') - ?.let(EncodingType.fromString) /* Nullability(true, true) */, + ?.let(EncodingType.fromString), isTruncated: _s.extractXmlBoolValue($elem, 'IsTruncated'), keyMarker: _s.extractXmlStringValue($elem, 'KeyMarker'), maxUploads: _s.extractXmlIntValue($elem, 'MaxUploads'), @@ -8828,7 +8829,7 @@ class S3 { delimiter: _s.extractXmlStringValue($elem, 'Delimiter'), encodingType: _s .extractXmlStringValue($elem, 'EncodingType') - ?.let(EncodingType.fromString) /* Nullability(true, true) */, + ?.let(EncodingType.fromString), isTruncated: _s.extractXmlBoolValue($elem, 'IsTruncated'), keyMarker: _s.extractXmlStringValue($elem, 'KeyMarker'), maxKeys: _s.extractXmlIntValue($elem, 'MaxKeys'), @@ -8997,7 +8998,7 @@ class S3 { delimiter: _s.extractXmlStringValue($elem, 'Delimiter'), encodingType: _s .extractXmlStringValue($elem, 'EncodingType') - ?.let(EncodingType.fromString) /* Nullability(true, true) */, + ?.let(EncodingType.fromString), isTruncated: _s.extractXmlBoolValue($elem, 'IsTruncated'), marker: _s.extractXmlStringValue($elem, 'Marker'), maxKeys: _s.extractXmlIntValue($elem, 'MaxKeys'), @@ -9266,7 +9267,7 @@ class S3 { delimiter: _s.extractXmlStringValue($elem, 'Delimiter'), encodingType: _s .extractXmlStringValue($elem, 'EncodingType') - ?.let(EncodingType.fromString) /* Nullability(true, true) */, + ?.let(EncodingType.fromString), isTruncated: _s.extractXmlBoolValue($elem, 'IsTruncated'), keyCount: _s.extractXmlIntValue($elem, 'KeyCount'), maxKeys: _s.extractXmlIntValue($elem, 'MaxKeys'), @@ -9507,7 +9508,7 @@ class S3 { bucket: _s.extractXmlStringValue($elem, 'Bucket'), checksumAlgorithm: _s .extractXmlStringValue($elem, 'ChecksumAlgorithm') - ?.let(ChecksumAlgorithm.fromString) /* Nullability(true, true) */, + ?.let(ChecksumAlgorithm.fromString), initiator: _s.extractXmlChild($elem, 'Initiator')?.let(Initiator.fromXml), isTruncated: _s.extractXmlBoolValue($elem, 'IsTruncated'), key: _s.extractXmlStringValue($elem, 'Key'), @@ -9519,7 +9520,7 @@ class S3 { parts: $elem.findElements('Part').map(Part.fromXml).toList(), storageClass: _s .extractXmlStringValue($elem, 'StorageClass') - ?.let(StorageClass.fromString) /* Nullability(true, true) */, + ?.let(StorageClass.fromString), uploadId: _s.extractXmlStringValue($elem, 'UploadId'), abortDate: _s.extractHeaderDateTimeValue($result.headers, 'x-amz-abort-date'), @@ -15719,7 +15720,7 @@ class AccessControlTranslation { return AccessControlTranslation( owner: _s .extractXmlStringValue(elem, 'Owner')! - .let(OwnerOverride.fromString) /* Nullability(true, false) */, + .let(OwnerOverride.fromString), ); } @@ -15981,9 +15982,9 @@ class AnalyticsS3BucketDestination { factory AnalyticsS3BucketDestination.fromXml(_s.XmlElement elem) { return AnalyticsS3BucketDestination( bucket: _s.extractXmlStringValue(elem, 'Bucket')!, - format: _s.extractXmlStringValue(elem, 'Format')!.let( - AnalyticsS3ExportFileFormat - .fromString) /* Nullability(true, false) */, + format: _s + .extractXmlStringValue(elem, 'Format')! + .let(AnalyticsS3ExportFileFormat.fromString), bucketAccountId: _s.extractXmlStringValue(elem, 'BucketAccountId'), prefix: _s.extractXmlStringValue(elem, 'Prefix'), ); @@ -16781,9 +16782,7 @@ class CloudFunctionConfiguration { factory CloudFunctionConfiguration.fromXml(_s.XmlElement elem) { return CloudFunctionConfiguration( cloudFunction: _s.extractXmlStringValue(elem, 'CloudFunction'), - event: _s - .extractXmlStringValue(elem, 'Event') - ?.let(Event.fromString) /* Nullability(true, true) */, + event: _s.extractXmlStringValue(elem, 'Event')?.let(Event.fromString), events: _s .extractXmlStringListValues(elem, 'Event') .map(Event.fromString) @@ -17808,8 +17807,9 @@ class DefaultRetention { factory DefaultRetention.fromXml(_s.XmlElement elem) { return DefaultRetention( days: _s.extractXmlIntValue(elem, 'Days'), - mode: _s.extractXmlStringValue(elem, 'Mode')?.let( - ObjectLockRetentionMode.fromString) /* Nullability(true, true) */, + mode: _s + .extractXmlStringValue(elem, 'Mode') + ?.let(ObjectLockRetentionMode.fromString), years: _s.extractXmlIntValue(elem, 'Years'), ); } @@ -17976,9 +17976,9 @@ class DeleteMarkerReplication { }); factory DeleteMarkerReplication.fromXml(_s.XmlElement elem) { return DeleteMarkerReplication( - status: _s.extractXmlStringValue(elem, 'Status')?.let( - DeleteMarkerReplicationStatus - .fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(DeleteMarkerReplicationStatus.fromString), ); } @@ -18225,7 +18225,7 @@ class Destination { ?.let(ReplicationTime.fromXml), storageClass: _s .extractXmlStringValue(elem, 'StorageClass') - ?.let(StorageClass.fromString) /* Nullability(true, true) */, + ?.let(StorageClass.fromString), ); } @@ -19996,9 +19996,9 @@ class ExistingObjectReplication { }); factory ExistingObjectReplication.fromXml(_s.XmlElement elem) { return ExistingObjectReplication( - status: _s.extractXmlStringValue(elem, 'Status')!.let( - ExistingObjectReplicationStatus - .fromString) /* Nullability(true, false) */, + status: _s + .extractXmlStringValue(elem, 'Status')! + .let(ExistingObjectReplicationStatus.fromString), ); } @@ -20115,7 +20115,7 @@ class FilterRule { return FilterRule( name: _s .extractXmlStringValue(elem, 'Name') - ?.let(FilterRuleName.fromString) /* Nullability(true, true) */, + ?.let(FilterRuleName.fromString), value: _s.extractXmlStringValue(elem, 'Value'), ); } @@ -20359,8 +20359,7 @@ class GetBucketLocationOutput { return GetBucketLocationOutput( locationConstraint: _s .extractXmlStringValue(elem, 'LocationConstraint') - ?.let(BucketLocationConstraint - .fromString) /* Nullability(true, true) */, + ?.let(BucketLocationConstraint.fromString), ); } @@ -20487,9 +20486,7 @@ class GetBucketRequestPaymentOutput { }); factory GetBucketRequestPaymentOutput.fromXml(_s.XmlElement elem) { return GetBucketRequestPaymentOutput( - payer: _s - .extractXmlStringValue(elem, 'Payer') - ?.let(Payer.fromString) /* Nullability(true, true) */, + payer: _s.extractXmlStringValue(elem, 'Payer')?.let(Payer.fromString), ); } @@ -20544,9 +20541,10 @@ class GetBucketVersioningOutput { return GetBucketVersioningOutput( mFADelete: _s .extractXmlStringValue(elem, 'MfaDelete') - ?.let(MFADeleteStatus.fromString) /* Nullability(true, true) */, - status: _s.extractXmlStringValue(elem, 'Status')?.let( - BucketVersioningStatus.fromString) /* Nullability(true, true) */, + ?.let(MFADeleteStatus.fromString), + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(BucketVersioningStatus.fromString), ); } @@ -21258,7 +21256,7 @@ class Grant { grantee: _s.extractXmlChild(elem, 'Grantee')?.let(Grantee.fromXml), permission: _s .extractXmlStringValue(elem, 'Permission') - ?.let(Permission.fromString) /* Nullability(true, true) */, + ?.let(Permission.fromString), ); } @@ -21350,9 +21348,8 @@ class Grantee { }); factory Grantee.fromXml(_s.XmlElement elem) { return Grantee( - type: _s - .extractXmlStringAttribute(elem, 'xsi:type')! - .let(Type.fromString) /* Nullability(true, false) */, + type: + _s.extractXmlStringAttribute(elem, 'xsi:type')!.let(Type.fromString), displayName: _s.extractXmlStringValue(elem, 'DisplayName'), emailAddress: _s.extractXmlStringValue(elem, 'EmailAddress'), id: _s.extractXmlStringValue(elem, 'ID'), @@ -22050,8 +22047,9 @@ class IntelligentTieringConfiguration { factory IntelligentTieringConfiguration.fromXml(_s.XmlElement elem) { return IntelligentTieringConfiguration( id: _s.extractXmlStringValue(elem, 'Id')!, - status: _s.extractXmlStringValue(elem, 'Status')!.let( - IntelligentTieringStatus.fromString) /* Nullability(true, false) */, + status: _s + .extractXmlStringValue(elem, 'Status')! + .let(IntelligentTieringStatus.fromString), tierings: elem.findElements('Tiering').map(Tiering.fromXml).toList(), filter: _s .extractXmlChild(elem, 'Filter') @@ -22223,8 +22221,7 @@ class InventoryConfiguration { id: _s.extractXmlStringValue(elem, 'Id')!, includedObjectVersions: _s .extractXmlStringValue(elem, 'IncludedObjectVersions')! - .let(InventoryIncludedObjectVersions - .fromString) /* Nullability(true, false) */, + .let(InventoryIncludedObjectVersions.fromString), isEnabled: _s.extractXmlBoolValue(elem, 'IsEnabled')!, schedule: InventorySchedule.fromXml(_s.extractXmlChild(elem, 'Schedule')!), @@ -22526,7 +22523,7 @@ class InventoryS3BucketDestination { bucket: _s.extractXmlStringValue(elem, 'Bucket')!, format: _s .extractXmlStringValue(elem, 'Format')! - .let(InventoryFormat.fromString) /* Nullability(true, false) */, + .let(InventoryFormat.fromString), accountId: _s.extractXmlStringValue(elem, 'AccountId'), encryption: _s .extractXmlChild(elem, 'Encryption') @@ -22586,7 +22583,7 @@ class InventorySchedule { return InventorySchedule( frequency: _s .extractXmlStringValue(elem, 'Frequency')! - .let(InventoryFrequency.fromString) /* Nullability(true, false) */, + .let(InventoryFrequency.fromString), ); } @@ -22930,7 +22927,7 @@ class LifecycleRule { return LifecycleRule( status: _s .extractXmlStringValue(elem, 'Status')! - .let(ExpirationStatus.fromString) /* Nullability(true, false) */, + .let(ExpirationStatus.fromString), abortIncompleteMultipartUpload: _s .extractXmlChild(elem, 'AbortIncompleteMultipartUpload') ?.let(AbortIncompleteMultipartUpload.fromXml), @@ -24355,7 +24352,7 @@ class Metrics { return Metrics( status: _s .extractXmlStringValue(elem, 'Status')! - .let(MetricsStatus.fromString) /* Nullability(true, false) */, + .let(MetricsStatus.fromString), eventThreshold: _s .extractXmlChild(elem, 'EventThreshold') ?.let(ReplicationTimeValue.fromXml), @@ -24633,14 +24630,14 @@ class MultipartUpload { return MultipartUpload( checksumAlgorithm: _s .extractXmlStringValue(elem, 'ChecksumAlgorithm') - ?.let(ChecksumAlgorithm.fromString) /* Nullability(true, true) */, + ?.let(ChecksumAlgorithm.fromString), initiated: _s.extractXmlDateTimeValue(elem, 'Initiated'), initiator: _s.extractXmlChild(elem, 'Initiator')?.let(Initiator.fromXml), key: _s.extractXmlStringValue(elem, 'Key'), owner: _s.extractXmlChild(elem, 'Owner')?.let(Owner.fromXml), storageClass: _s .extractXmlStringValue(elem, 'StorageClass') - ?.let(StorageClass.fromString) /* Nullability(true, true) */, + ?.let(StorageClass.fromString), uploadId: _s.extractXmlStringValue(elem, 'UploadId'), ); } @@ -24771,8 +24768,9 @@ class NoncurrentVersionTransition { newerNoncurrentVersions: _s.extractXmlIntValue(elem, 'NewerNoncurrentVersions'), noncurrentDays: _s.extractXmlIntValue(elem, 'NoncurrentDays'), - storageClass: _s.extractXmlStringValue(elem, 'StorageClass')?.let( - TransitionStorageClass.fromString) /* Nullability(true, true) */, + storageClass: _s + .extractXmlStringValue(elem, 'StorageClass') + ?.let(TransitionStorageClass.fromString), ); } @@ -25102,7 +25100,7 @@ class Object { size: _s.extractXmlIntValue(elem, 'Size'), storageClass: _s .extractXmlStringValue(elem, 'StorageClass') - ?.let(ObjectStorageClass.fromString) /* Nullability(true, true) */, + ?.let(ObjectStorageClass.fromString), ); } @@ -25238,7 +25236,7 @@ class ObjectLockConfiguration { return ObjectLockConfiguration( objectLockEnabled: _s .extractXmlStringValue(elem, 'ObjectLockEnabled') - ?.let(ObjectLockEnabled.fromString) /* Nullability(true, true) */, + ?.let(ObjectLockEnabled.fromString), rule: _s.extractXmlChild(elem, 'Rule')?.let(ObjectLockRule.fromXml), ); } @@ -25296,8 +25294,9 @@ class ObjectLockLegalHold { }); factory ObjectLockLegalHold.fromXml(_s.XmlElement elem) { return ObjectLockLegalHold( - status: _s.extractXmlStringValue(elem, 'Status')?.let( - ObjectLockLegalHoldStatus.fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(ObjectLockLegalHoldStatus.fromString), ); } @@ -25368,8 +25367,9 @@ class ObjectLockRetention { }); factory ObjectLockRetention.fromXml(_s.XmlElement elem) { return ObjectLockRetention( - mode: _s.extractXmlStringValue(elem, 'Mode')?.let( - ObjectLockRetentionMode.fromString) /* Nullability(true, true) */, + mode: _s + .extractXmlStringValue(elem, 'Mode') + ?.let(ObjectLockRetentionMode.fromString), retainUntilDate: _s.extractXmlDateTimeValue(elem, 'RetainUntilDate', parser: _s.timeStampFromJson), ); @@ -25680,8 +25680,9 @@ class ObjectVersion { restoreStatus: _s.extractXmlChild(elem, 'RestoreStatus')?.let(RestoreStatus.fromXml), size: _s.extractXmlIntValue(elem, 'Size'), - storageClass: _s.extractXmlStringValue(elem, 'StorageClass')?.let( - ObjectVersionStorageClass.fromString) /* Nullability(true, true) */, + storageClass: _s + .extractXmlStringValue(elem, 'StorageClass') + ?.let(ObjectVersionStorageClass.fromString), versionId: _s.extractXmlStringValue(elem, 'VersionId'), ); } @@ -25954,7 +25955,7 @@ class OwnershipControlsRule { return OwnershipControlsRule( objectOwnership: _s .extractXmlStringValue(elem, 'ObjectOwnership')! - .let(ObjectOwnership.fromString) /* Nullability(true, false) */, + .let(ObjectOwnership.fromString), ); } @@ -26131,7 +26132,7 @@ class PartitionedPrefix { return PartitionedPrefix( partitionDateSource: _s .extractXmlStringValue(elem, 'PartitionDateSource') - ?.let(PartitionDateSource.fromString) /* Nullability(true, true) */, + ?.let(PartitionDateSource.fromString), ); } @@ -26723,9 +26724,7 @@ class QueueConfigurationDeprecated { }); factory QueueConfigurationDeprecated.fromXml(_s.XmlElement elem) { return QueueConfigurationDeprecated( - event: _s - .extractXmlStringValue(elem, 'Event') - ?.let(Event.fromString) /* Nullability(true, true) */, + event: _s.extractXmlStringValue(elem, 'Event')?.let(Event.fromString), events: _s .extractXmlStringListValues(elem, 'Event') .map(Event.fromString) @@ -26859,9 +26858,8 @@ class Redirect { return Redirect( hostName: _s.extractXmlStringValue(elem, 'HostName'), httpRedirectCode: _s.extractXmlStringValue(elem, 'HttpRedirectCode'), - protocol: _s - .extractXmlStringValue(elem, 'Protocol') - ?.let(Protocol.fromString) /* Nullability(true, true) */, + protocol: + _s.extractXmlStringValue(elem, 'Protocol')?.let(Protocol.fromString), replaceKeyPrefixWith: _s.extractXmlStringValue(elem, 'ReplaceKeyPrefixWith'), replaceKeyWith: _s.extractXmlStringValue(elem, 'ReplaceKeyWith'), @@ -26928,9 +26926,8 @@ class RedirectAllRequestsTo { factory RedirectAllRequestsTo.fromXml(_s.XmlElement elem) { return RedirectAllRequestsTo( hostName: _s.extractXmlStringValue(elem, 'HostName')!, - protocol: _s - .extractXmlStringValue(elem, 'Protocol') - ?.let(Protocol.fromString) /* Nullability(true, true) */, + protocol: + _s.extractXmlStringValue(elem, 'Protocol')?.let(Protocol.fromString), ); } @@ -26980,8 +26977,9 @@ class ReplicaModifications { }); factory ReplicaModifications.fromXml(_s.XmlElement elem) { return ReplicaModifications( - status: _s.extractXmlStringValue(elem, 'Status')!.let( - ReplicaModificationsStatus.fromString) /* Nullability(true, false) */, + status: _s + .extractXmlStringValue(elem, 'Status')! + .let(ReplicaModificationsStatus.fromString), ); } @@ -27144,7 +27142,7 @@ class ReplicationRule { Destination.fromXml(_s.extractXmlChild(elem, 'Destination')!), status: _s .extractXmlStringValue(elem, 'Status')! - .let(ReplicationRuleStatus.fromString) /* Nullability(true, false) */, + .let(ReplicationRuleStatus.fromString), deleteMarkerReplication: _s .extractXmlChild(elem, 'DeleteMarkerReplication') ?.let(DeleteMarkerReplication.fromXml), @@ -27420,7 +27418,7 @@ class ReplicationTime { return ReplicationTime( status: _s .extractXmlStringValue(elem, 'Status')! - .let(ReplicationTimeStatus.fromString) /* Nullability(true, false) */, + .let(ReplicationTimeStatus.fromString), time: ReplicationTimeValue.fromXml(_s.extractXmlChild(elem, 'Time')!), ); } @@ -27901,7 +27899,7 @@ class Rule { prefix: _s.extractXmlStringValue(elem, 'Prefix')!, status: _s .extractXmlStringValue(elem, 'Status')! - .let(ExpirationStatus.fromString) /* Nullability(true, false) */, + .let(ExpirationStatus.fromString), abortIncompleteMultipartUpload: _s .extractXmlChild(elem, 'AbortIncompleteMultipartUpload') ?.let(AbortIncompleteMultipartUpload.fromXml), @@ -28573,7 +28571,7 @@ class ServerSideEncryptionByDefault { return ServerSideEncryptionByDefault( sSEAlgorithm: _s .extractXmlStringValue(elem, 'SSEAlgorithm')! - .let(ServerSideEncryption.fromString) /* Nullability(true, false) */, + .let(ServerSideEncryption.fromString), kMSMasterKeyID: _s.extractXmlStringValue(elem, 'KMSMasterKeyID'), ); } @@ -28896,9 +28894,9 @@ class SseKmsEncryptedObjects { }); factory SseKmsEncryptedObjects.fromXml(_s.XmlElement elem) { return SseKmsEncryptedObjects( - status: _s.extractXmlStringValue(elem, 'Status')!.let( - SseKmsEncryptedObjectsStatus - .fromString) /* Nullability(true, false) */, + status: _s + .extractXmlStringValue(elem, 'Status')! + .let(SseKmsEncryptedObjectsStatus.fromString), ); } @@ -29084,8 +29082,7 @@ class StorageClassAnalysisDataExport { _s.extractXmlChild(elem, 'Destination')!), outputSchemaVersion: _s .extractXmlStringValue(elem, 'OutputSchemaVersion')! - .let(StorageClassAnalysisSchemaVersion - .fromString) /* Nullability(true, false) */, + .let(StorageClassAnalysisSchemaVersion.fromString), ); } @@ -29246,7 +29243,7 @@ class TargetGrant { grantee: _s.extractXmlChild(elem, 'Grantee')?.let(Grantee.fromXml), permission: _s .extractXmlStringValue(elem, 'Permission') - ?.let(BucketLogsPermission.fromString) /* Nullability(true, true) */, + ?.let(BucketLogsPermission.fromString), ); } @@ -29369,9 +29366,9 @@ class Tiering { }); factory Tiering.fromXml(_s.XmlElement elem) { return Tiering( - accessTier: _s.extractXmlStringValue(elem, 'AccessTier')!.let( - IntelligentTieringAccessTier - .fromString) /* Nullability(true, false) */, + accessTier: _s + .extractXmlStringValue(elem, 'AccessTier')! + .let(IntelligentTieringAccessTier.fromString), days: _s.extractXmlIntValue(elem, 'Days')!, ); } @@ -29499,9 +29496,7 @@ class TopicConfigurationDeprecated { }); factory TopicConfigurationDeprecated.fromXml(_s.XmlElement elem) { return TopicConfigurationDeprecated( - event: _s - .extractXmlStringValue(elem, 'Event') - ?.let(Event.fromString) /* Nullability(true, true) */, + event: _s.extractXmlStringValue(elem, 'Event')?.let(Event.fromString), events: _s .extractXmlStringListValues(elem, 'Event') .map(Event.fromString) @@ -29573,8 +29568,9 @@ class Transition { date: _s.extractXmlDateTimeValue(elem, 'Date', parser: _s.timeStampFromJson), days: _s.extractXmlIntValue(elem, 'Days'), - storageClass: _s.extractXmlStringValue(elem, 'StorageClass')?.let( - TransitionStorageClass.fromString) /* Nullability(true, true) */, + storageClass: _s + .extractXmlStringValue(elem, 'StorageClass') + ?.let(TransitionStorageClass.fromString), ); } diff --git a/aws_client/lib/src/generated/s3_control/v2018_08_20.dart b/aws_client/lib/src/generated/s3_control/v2018_08_20.dart index b623eaea0..602ccb8d9 100644 --- a/aws_client/lib/src/generated/s3_control/v2018_08_20.dart +++ b/aws_client/lib/src/generated/s3_control/v2018_08_20.dart @@ -6044,7 +6044,7 @@ class AccessControlTranslation { return AccessControlTranslation( owner: _s .extractXmlStringValue(elem, 'Owner')! - .let(OwnerOverride.fromString) /* Nullability(true, false) */, + .let(OwnerOverride.fromString), ); } @@ -6176,7 +6176,7 @@ class AccessPoint { name: _s.extractXmlStringValue(elem, 'Name')!, networkOrigin: _s .extractXmlStringValue(elem, 'NetworkOrigin')! - .let(NetworkOrigin.fromString) /* Nullability(true, false) */, + .let(NetworkOrigin.fromString), accessPointArn: _s.extractXmlStringValue(elem, 'AccessPointArn'), alias: _s.extractXmlStringValue(elem, 'Alias'), bucketAccountId: _s.extractXmlStringValue(elem, 'BucketAccountId'), @@ -6580,7 +6580,7 @@ class AsyncOperation { creationTime: _s.extractXmlDateTimeValue(elem, 'CreationTime'), operation: _s .extractXmlStringValue(elem, 'Operation') - ?.let(AsyncOperationName.fromString) /* Nullability(true, true) */, + ?.let(AsyncOperationName.fromString), requestParameters: _s .extractXmlChild(elem, 'RequestParameters') ?.let(AsyncRequestParameters.fromXml), @@ -7180,7 +7180,7 @@ class CreateAccessGrantResult { grantee: _s.extractXmlChild(elem, 'Grantee')?.let(Grantee.fromXml), permission: _s .extractXmlStringValue(elem, 'Permission') - ?.let(Permission.fromString) /* Nullability(true, true) */, + ?.let(Permission.fromString), ); } @@ -8146,9 +8146,9 @@ class DeleteMarkerReplication { }); factory DeleteMarkerReplication.fromXml(_s.XmlElement elem) { return DeleteMarkerReplication( - status: _s.extractXmlStringValue(elem, 'Status')!.let( - DeleteMarkerReplicationStatus - .fromString) /* Nullability(true, false) */, + status: _s + .extractXmlStringValue(elem, 'Status')! + .let(DeleteMarkerReplicationStatus.fromString), ); } @@ -8434,8 +8434,9 @@ class Destination { replicationTime: _s .extractXmlChild(elem, 'ReplicationTime') ?.let(ReplicationTime.fromXml), - storageClass: _s.extractXmlStringValue(elem, 'StorageClass')?.let( - ReplicationStorageClass.fromString) /* Nullability(true, true) */, + storageClass: _s + .extractXmlStringValue(elem, 'StorageClass') + ?.let(ReplicationStorageClass.fromString), ); } @@ -8681,9 +8682,9 @@ class ExistingObjectReplication { }); factory ExistingObjectReplication.fromXml(_s.XmlElement elem) { return ExistingObjectReplication( - status: _s.extractXmlStringValue(elem, 'Status')!.let( - ExistingObjectReplicationStatus - .fromString) /* Nullability(true, false) */, + status: _s + .extractXmlStringValue(elem, 'Status')! + .let(ExistingObjectReplicationStatus.fromString), ); } @@ -8897,7 +8898,7 @@ class GetAccessGrantResult { grantee: _s.extractXmlChild(elem, 'Grantee')?.let(Grantee.fromXml), permission: _s .extractXmlStringValue(elem, 'Permission') - ?.let(Permission.fromString) /* Nullability(true, true) */, + ?.let(Permission.fromString), ); } @@ -9347,7 +9348,7 @@ class GetAccessPointResult { name: _s.extractXmlStringValue(elem, 'Name'), networkOrigin: _s .extractXmlStringValue(elem, 'NetworkOrigin') - ?.let(NetworkOrigin.fromString) /* Nullability(true, true) */, + ?.let(NetworkOrigin.fromString), publicAccessBlockConfiguration: _s .extractXmlChild(elem, 'PublicAccessBlockConfiguration') ?.let(PublicAccessBlockConfiguration.fromXml), @@ -9533,9 +9534,10 @@ class GetBucketVersioningResult { return GetBucketVersioningResult( mFADelete: _s .extractXmlStringValue(elem, 'MfaDelete') - ?.let(MFADeleteStatus.fromString) /* Nullability(true, true) */, - status: _s.extractXmlStringValue(elem, 'Status')?.let( - BucketVersioningStatus.fromString) /* Nullability(true, true) */, + ?.let(MFADeleteStatus.fromString), + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(BucketVersioningStatus.fromString), ); } @@ -9822,7 +9824,7 @@ class Grantee { granteeIdentifier: _s.extractXmlStringValue(elem, 'GranteeIdentifier'), granteeType: _s .extractXmlStringValue(elem, 'GranteeType') - ?.let(GranteeType.fromString) /* Nullability(true, true) */, + ?.let(GranteeType.fromString), ); } @@ -10045,9 +10047,8 @@ class JobDescriptor { ?.let(JobProgressSummary.fromXml), report: _s.extractXmlChild(elem, 'Report')?.let(JobReport.fromXml), roleArn: _s.extractXmlStringValue(elem, 'RoleArn'), - status: _s - .extractXmlStringValue(elem, 'Status') - ?.let(JobStatus.fromString) /* Nullability(true, true) */, + status: + _s.extractXmlStringValue(elem, 'Status')?.let(JobStatus.fromString), statusUpdateReason: _s.extractXmlStringValue(elem, 'StatusUpdateReason'), suspendedCause: _s.extractXmlStringValue(elem, 'SuspendedCause'), suspendedDate: _s.extractXmlDateTimeValue(elem, 'SuspendedDate'), @@ -10180,14 +10181,13 @@ class JobListDescriptor { jobId: _s.extractXmlStringValue(elem, 'JobId'), operation: _s .extractXmlStringValue(elem, 'Operation') - ?.let(OperationName.fromString) /* Nullability(true, true) */, + ?.let(OperationName.fromString), priority: _s.extractXmlIntValue(elem, 'Priority'), progressSummary: _s .extractXmlChild(elem, 'ProgressSummary') ?.let(JobProgressSummary.fromXml), - status: _s - .extractXmlStringValue(elem, 'Status') - ?.let(JobStatus.fromString) /* Nullability(true, true) */, + status: + _s.extractXmlStringValue(elem, 'Status')?.let(JobStatus.fromString), terminationDate: _s.extractXmlDateTimeValue(elem, 'TerminationDate'), ); } @@ -10576,7 +10576,7 @@ class JobManifestSpec { return JobManifestSpec( format: _s .extractXmlStringValue(elem, 'Format')! - .let(JobManifestFormat.fromString) /* Nullability(true, false) */, + .let(JobManifestFormat.fromString), fields: _s.extractXmlChild(elem, 'Fields')?.let((elem) => _s .extractXmlStringListValues(elem, 'member') .map(JobManifestFieldName.fromString) @@ -10856,11 +10856,11 @@ class JobReport { bucket: _s.extractXmlStringValue(elem, 'Bucket'), format: _s .extractXmlStringValue(elem, 'Format') - ?.let(JobReportFormat.fromString) /* Nullability(true, true) */, + ?.let(JobReportFormat.fromString), prefix: _s.extractXmlStringValue(elem, 'Prefix'), reportScope: _s .extractXmlStringValue(elem, 'ReportScope') - ?.let(JobReportScope.fromString) /* Nullability(true, true) */, + ?.let(JobReportScope.fromString), ); } @@ -11314,7 +11314,7 @@ class LifecycleRule { return LifecycleRule( status: _s .extractXmlStringValue(elem, 'Status')! - .let(ExpirationStatus.fromString) /* Nullability(true, false) */, + .let(ExpirationStatus.fromString), abortIncompleteMultipartUpload: _s .extractXmlChild(elem, 'AbortIncompleteMultipartUpload') ?.let(AbortIncompleteMultipartUpload.fromXml), @@ -11643,7 +11643,7 @@ class ListAccessGrantEntry { grantee: _s.extractXmlChild(elem, 'Grantee')?.let(Grantee.fromXml), permission: _s .extractXmlStringValue(elem, 'Permission') - ?.let(Permission.fromString) /* Nullability(true, true) */, + ?.let(Permission.fromString), ); } @@ -12404,7 +12404,7 @@ class Metrics { return Metrics( status: _s .extractXmlStringValue(elem, 'Status')! - .let(MetricsStatus.fromString) /* Nullability(true, false) */, + .let(MetricsStatus.fromString), eventThreshold: _s .extractXmlChild(elem, 'EventThreshold') ?.let(ReplicationTimeValue.fromXml), @@ -12570,9 +12570,9 @@ class MultiRegionAccessPointReport { ?.let(PublicAccessBlockConfiguration.fromXml), regions: _s.extractXmlChild(elem, 'Regions')?.let((elem) => elem.findElements('Region').map(RegionReport.fromXml).toList()), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - MultiRegionAccessPointStatus - .fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(MultiRegionAccessPointStatus.fromString), ); } @@ -12820,8 +12820,9 @@ class NoncurrentVersionTransition { factory NoncurrentVersionTransition.fromXml(_s.XmlElement elem) { return NoncurrentVersionTransition( noncurrentDays: _s.extractXmlIntValue(elem, 'NoncurrentDays'), - storageClass: _s.extractXmlStringValue(elem, 'StorageClass')?.let( - TransitionStorageClass.fromString) /* Nullability(true, true) */, + storageClass: _s + .extractXmlStringValue(elem, 'StorageClass') + ?.let(TransitionStorageClass.fromString), ); } @@ -12916,9 +12917,9 @@ class ObjectLambdaAccessPointAlias { }); factory ObjectLambdaAccessPointAlias.fromXml(_s.XmlElement elem) { return ObjectLambdaAccessPointAlias( - status: _s.extractXmlStringValue(elem, 'Status')?.let( - ObjectLambdaAccessPointAliasStatus - .fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(ObjectLambdaAccessPointAliasStatus.fromString), value: _s.extractXmlStringValue(elem, 'Value'), ); } @@ -14259,8 +14260,9 @@ class ReplicaModifications { }); factory ReplicaModifications.fromXml(_s.XmlElement elem) { return ReplicaModifications( - status: _s.extractXmlStringValue(elem, 'Status')!.let( - ReplicaModificationsStatus.fromString) /* Nullability(true, false) */, + status: _s + .extractXmlStringValue(elem, 'Status')! + .let(ReplicaModificationsStatus.fromString), ); } @@ -14449,7 +14451,7 @@ class ReplicationRule { Destination.fromXml(_s.extractXmlChild(elem, 'Destination')!), status: _s .extractXmlStringValue(elem, 'Status')! - .let(ReplicationRuleStatus.fromString) /* Nullability(true, false) */, + .let(ReplicationRuleStatus.fromString), deleteMarkerReplication: _s .extractXmlChild(elem, 'DeleteMarkerReplication') ?.let(DeleteMarkerReplication.fromXml), @@ -14752,7 +14754,7 @@ class ReplicationTime { return ReplicationTime( status: _s .extractXmlStringValue(elem, 'Status')! - .let(ReplicationTimeStatus.fromString) /* Nullability(true, false) */, + .let(ReplicationTimeStatus.fromString), time: ReplicationTimeValue.fromXml(_s.extractXmlChild(elem, 'Time')!), ); } @@ -14926,8 +14928,7 @@ class S3AccessControlPolicy { ?.let(S3AccessControlList.fromXml), cannedAccessControlList: _s .extractXmlStringValue(elem, 'CannedAccessControlList') - ?.let(S3CannedAccessControlList - .fromString) /* Nullability(true, true) */, + ?.let(S3CannedAccessControlList.fromString), ); } @@ -14999,12 +15000,10 @@ class S3BucketDestination { return S3BucketDestination( accountId: _s.extractXmlStringValue(elem, 'AccountId')!, arn: _s.extractXmlStringValue(elem, 'Arn')!, - format: _s - .extractXmlStringValue(elem, 'Format')! - .let(Format.fromString) /* Nullability(true, false) */, + format: _s.extractXmlStringValue(elem, 'Format')!.let(Format.fromString), outputSchemaVersion: _s .extractXmlStringValue(elem, 'OutputSchemaVersion')! - .let(OutputSchemaVersion.fromString) /* Nullability(true, false) */, + .let(OutputSchemaVersion.fromString), encryption: _s .extractXmlChild(elem, 'Encryption') ?.let(StorageLensDataExportEncryption.fromXml), @@ -15251,14 +15250,13 @@ class S3CopyObjectOperation { bucketKeyEnabled: _s.extractXmlBoolValue(elem, 'BucketKeyEnabled'), cannedAccessControlList: _s .extractXmlStringValue(elem, 'CannedAccessControlList') - ?.let(S3CannedAccessControlList - .fromString) /* Nullability(true, true) */, + ?.let(S3CannedAccessControlList.fromString), checksumAlgorithm: _s .extractXmlStringValue(elem, 'ChecksumAlgorithm') - ?.let(S3ChecksumAlgorithm.fromString) /* Nullability(true, true) */, + ?.let(S3ChecksumAlgorithm.fromString), metadataDirective: _s .extractXmlStringValue(elem, 'MetadataDirective') - ?.let(S3MetadataDirective.fromString) /* Nullability(true, true) */, + ?.let(S3MetadataDirective.fromString), modifiedSinceConstraint: _s.extractXmlDateTimeValue(elem, 'ModifiedSinceConstraint'), newObjectMetadata: _s @@ -15268,11 +15266,10 @@ class S3CopyObjectOperation { (elem) => elem.findElements('member').map(S3Tag.fromXml).toList()), objectLockLegalHoldStatus: _s .extractXmlStringValue(elem, 'ObjectLockLegalHoldStatus') - ?.let(S3ObjectLockLegalHoldStatus - .fromString) /* Nullability(true, true) */, + ?.let(S3ObjectLockLegalHoldStatus.fromString), objectLockMode: _s .extractXmlStringValue(elem, 'ObjectLockMode') - ?.let(S3ObjectLockMode.fromString) /* Nullability(true, true) */, + ?.let(S3ObjectLockMode.fromString), objectLockRetainUntilDate: _s.extractXmlDateTimeValue(elem, 'ObjectLockRetainUntilDate'), redirectLocation: _s.extractXmlStringValue(elem, 'RedirectLocation'), @@ -15280,7 +15277,7 @@ class S3CopyObjectOperation { sSEAwsKmsKeyId: _s.extractXmlStringValue(elem, 'SSEAwsKmsKeyId'), storageClass: _s .extractXmlStringValue(elem, 'StorageClass') - ?.let(S3StorageClass.fromString) /* Nullability(true, true) */, + ?.let(S3StorageClass.fromString), targetKeyPrefix: _s.extractXmlStringValue(elem, 'TargetKeyPrefix'), targetResource: _s.extractXmlStringValue(elem, 'TargetResource'), unModifiedSinceConstraint: @@ -15454,8 +15451,9 @@ class S3GeneratedManifestDescriptor { }); factory S3GeneratedManifestDescriptor.fromXml(_s.XmlElement elem) { return S3GeneratedManifestDescriptor( - format: _s.extractXmlStringValue(elem, 'Format')?.let( - GeneratedManifestFormat.fromString) /* Nullability(true, true) */, + format: _s + .extractXmlStringValue(elem, 'Format') + ?.let(GeneratedManifestFormat.fromString), location: _s .extractXmlChild(elem, 'Location') ?.let(JobManifestLocation.fromXml), @@ -15504,7 +15502,7 @@ class S3Grant { grantee: _s.extractXmlChild(elem, 'Grantee')?.let(S3Grantee.fromXml), permission: _s .extractXmlStringValue(elem, 'Permission') - ?.let(S3Permission.fromString) /* Nullability(true, true) */, + ?.let(S3Permission.fromString), ); } @@ -15556,8 +15554,9 @@ class S3Grantee { return S3Grantee( displayName: _s.extractXmlStringValue(elem, 'DisplayName'), identifier: _s.extractXmlStringValue(elem, 'Identifier'), - typeIdentifier: _s.extractXmlStringValue(elem, 'TypeIdentifier')?.let( - S3GranteeTypeIdentifier.fromString) /* Nullability(true, true) */, + typeIdentifier: _s + .extractXmlStringValue(elem, 'TypeIdentifier') + ?.let(S3GranteeTypeIdentifier.fromString), ); } @@ -15648,7 +15647,7 @@ class S3InitiateRestoreObjectOperation { expirationInDays: _s.extractXmlIntValue(elem, 'ExpirationInDays'), glacierJobTier: _s .extractXmlStringValue(elem, 'GlacierJobTier') - ?.let(S3GlacierJobTier.fromString) /* Nullability(true, true) */, + ?.let(S3GlacierJobTier.fromString), ); } @@ -15808,8 +15807,9 @@ class S3ManifestOutputLocation { factory S3ManifestOutputLocation.fromXml(_s.XmlElement elem) { return S3ManifestOutputLocation( bucket: _s.extractXmlStringValue(elem, 'Bucket')!, - manifestFormat: _s.extractXmlStringValue(elem, 'ManifestFormat')!.let( - GeneratedManifestFormat.fromString) /* Nullability(true, false) */, + manifestFormat: _s + .extractXmlStringValue(elem, 'ManifestFormat')! + .let(GeneratedManifestFormat.fromString), expectedManifestBucketOwner: _s.extractXmlStringValue(elem, 'ExpectedManifestBucketOwner'), manifestEncryption: _s @@ -15890,9 +15890,9 @@ class S3ObjectLockLegalHold { }); factory S3ObjectLockLegalHold.fromXml(_s.XmlElement elem) { return S3ObjectLockLegalHold( - status: _s.extractXmlStringValue(elem, 'Status')!.let( - S3ObjectLockLegalHoldStatus - .fromString) /* Nullability(true, false) */, + status: _s + .extractXmlStringValue(elem, 'Status')! + .let(S3ObjectLockLegalHoldStatus.fromString), ); } @@ -16031,7 +16031,7 @@ class S3ObjectMetadata { requesterCharged: _s.extractXmlBoolValue(elem, 'RequesterCharged'), sSEAlgorithm: _s .extractXmlStringValue(elem, 'SSEAlgorithm') - ?.let(S3SSEAlgorithm.fromString) /* Nullability(true, true) */, + ?.let(S3SSEAlgorithm.fromString), userMetadata: Map.fromEntries( elem.getElement('UserMetadata')?.findElements('entry').map( (c) => MapEntry( @@ -16253,8 +16253,9 @@ class S3Retention { }); factory S3Retention.fromXml(_s.XmlElement elem) { return S3Retention( - mode: _s.extractXmlStringValue(elem, 'Mode')?.let( - S3ObjectLockRetentionMode.fromString) /* Nullability(true, true) */, + mode: _s + .extractXmlStringValue(elem, 'Mode') + ?.let(S3ObjectLockRetentionMode.fromString), retainUntilDate: _s.extractXmlDateTimeValue(elem, 'RetainUntilDate'), ); } @@ -16855,9 +16856,9 @@ class SseKmsEncryptedObjects { }); factory SseKmsEncryptedObjects.fromXml(_s.XmlElement elem) { return SseKmsEncryptedObjects( - status: _s.extractXmlStringValue(elem, 'Status')!.let( - SseKmsEncryptedObjectsStatus - .fromString) /* Nullability(true, false) */, + status: _s + .extractXmlStringValue(elem, 'Status')! + .let(SseKmsEncryptedObjectsStatus.fromString), ); } @@ -17928,8 +17929,9 @@ class Transition { return Transition( date: _s.extractXmlDateTimeValue(elem, 'Date'), days: _s.extractXmlIntValue(elem, 'Days'), - storageClass: _s.extractXmlStringValue(elem, 'StorageClass')?.let( - TransitionStorageClass.fromString) /* Nullability(true, true) */, + storageClass: _s + .extractXmlStringValue(elem, 'StorageClass') + ?.let(TransitionStorageClass.fromString), ); } @@ -18164,9 +18166,8 @@ class UpdateJobStatusResult { factory UpdateJobStatusResult.fromXml(_s.XmlElement elem) { return UpdateJobStatusResult( jobId: _s.extractXmlStringValue(elem, 'JobId'), - status: _s - .extractXmlStringValue(elem, 'Status') - ?.let(JobStatus.fromString) /* Nullability(true, true) */, + status: + _s.extractXmlStringValue(elem, 'Status')?.let(JobStatus.fromString), statusUpdateReason: _s.extractXmlStringValue(elem, 'StatusUpdateReason'), ); } diff --git a/aws_client/lib/src/generated/s3_outposts/v2017_07_25.dart b/aws_client/lib/src/generated/s3_outposts/v2017_07_25.dart index c64811783..2ad32485b 100644 --- a/aws_client/lib/src/generated/s3_outposts/v2017_07_25.dart +++ b/aws_client/lib/src/generated/s3_outposts/v2017_07_25.dart @@ -414,7 +414,7 @@ class Endpoint { ? FailedReason.fromJson(json['FailedReason'] as Map) : null, networkInterfaces: (json['NetworkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), outpostsId: json['OutpostsId'] as String?, @@ -538,7 +538,7 @@ class ListEndpointsResult { factory ListEndpointsResult.fromJson(Map json) { return ListEndpointsResult( endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -585,7 +585,7 @@ class ListOutpostsWithS3Result { return ListOutpostsWithS3Result( nextToken: json['NextToken'] as String?, outposts: (json['Outposts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Outpost.fromJson(e as Map)) .toList(), ); @@ -619,7 +619,7 @@ class ListSharedEndpointsResult { factory ListSharedEndpointsResult.fromJson(Map json) { return ListSharedEndpointsResult( endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/sage_maker/v2017_07_24.dart b/aws_client/lib/src/generated/sage_maker/v2017_07_24.dart index 65ab0329b..a474ae47f 100644 --- a/aws_client/lib/src/generated/sage_maker/v2017_07_24.dart +++ b/aws_client/lib/src/generated/sage_maker/v2017_07_24.dart @@ -18904,7 +18904,7 @@ class AddTagsOutput { factory AddTagsOutput.fromJson(Map json) { return AddTagsOutput( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -18963,28 +18963,28 @@ class AdditionalInferenceSpecificationDefinition { Map json) { return AdditionalInferenceSpecificationDefinition( containers: (json['Containers'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelPackageContainerDefinition.fromJson( e as Map)) .toList(), name: json['Name'] as String, description: json['Description'] as String?, supportedContentTypes: (json['SupportedContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedRealtimeInferenceInstanceTypes: (json[ 'SupportedRealtimeInferenceInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantInstanceType.fromString((e as String))) .toList(), supportedResponseMIMETypes: (json['SupportedResponseMIMETypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedTransformInstanceTypes: (json['SupportedTransformInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransformInstanceType.fromString((e as String))) .toList(), ); @@ -19285,17 +19285,17 @@ class AlgorithmSpecification { TrainingInputMode.fromString((json['TrainingInputMode'] as String)), algorithmName: json['AlgorithmName'] as String?, containerArguments: (json['ContainerArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEntrypoint: (json['ContainerEntrypoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), enableSageMakerMetricsTimeSeries: json['EnableSageMakerMetricsTimeSeries'] as bool?, metricDefinitions: (json['MetricDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDefinition.fromJson(e as Map)) .toList(), trainingImage: json['TrainingImage'] as String?, @@ -19366,11 +19366,11 @@ class AlgorithmStatusDetails { factory AlgorithmStatusDetails.fromJson(Map json) { return AlgorithmStatusDetails( imageScanStatuses: (json['ImageScanStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlgorithmStatusItem.fromJson(e as Map)) .toList(), validationStatuses: (json['ValidationStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlgorithmStatusItem.fromJson(e as Map)) .toList(), ); @@ -19545,7 +19545,7 @@ class AlgorithmValidationSpecification { factory AlgorithmValidationSpecification.fromJson(Map json) { return AlgorithmValidationSpecification( validationProfiles: (json['ValidationProfiles'] as List) - .whereNotNull() + .nonNulls .map((e) => AlgorithmValidationProfile.fromJson(e as Map)) .toList(), @@ -20940,11 +20940,11 @@ class AppSpecification { return AppSpecification( imageUri: json['ImageUri'] as String, containerArguments: (json['ContainerArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEntrypoint: (json['ContainerEntrypoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -21018,7 +21018,7 @@ class ArtifactSource { return ArtifactSource( sourceUri: json['SourceUri'] as String, sourceTypes: (json['SourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ArtifactSourceType.fromJson(e as Map)) .toList(), ); @@ -21383,7 +21383,7 @@ class AsyncInferenceNotificationConfig { return AsyncInferenceNotificationConfig( errorTopic: json['ErrorTopic'] as String?, includeInferenceResponseIn: (json['IncludeInferenceResponseIn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AsyncNotificationTopicTypes.fromString((e as String))) .toList(), successTopic: json['SuccessTopic'] as String?, @@ -21714,7 +21714,7 @@ class AutoMLAlgorithmConfig { factory AutoMLAlgorithmConfig.fromJson(Map json) { return AutoMLAlgorithmConfig( autoMLAlgorithms: (json['AutoMLAlgorithms'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLAlgorithm.fromString((e as String))) .toList(), ); @@ -21791,7 +21791,7 @@ class AutoMLCandidate { candidateStatus: CandidateStatus.fromString((json['CandidateStatus'] as String)), candidateSteps: (json['CandidateSteps'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLCandidateStep.fromJson(e as Map)) .toList(), creationTime: @@ -21816,12 +21816,12 @@ class AutoMLCandidate { (k, e) => MapEntry( AutoMLProcessingUnit.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLContainerDefinition.fromJson( e as Map)) .toList())), inferenceContainers: (json['InferenceContainers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoMLContainerDefinition.fromJson(e as Map)) .toList(), @@ -21946,7 +21946,7 @@ class AutoMLCandidateGenerationConfig { factory AutoMLCandidateGenerationConfig.fromJson(Map json) { return AutoMLCandidateGenerationConfig( algorithmsConfig: (json['AlgorithmsConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoMLAlgorithmConfig.fromJson(e as Map)) .toList(), featureSpecificationS3Uri: json['FeatureSpecificationS3Uri'] as String?, @@ -22764,7 +22764,7 @@ class AutoMLJobSummary { endTime: timeStampFromJson(json['EndTime']), failureReason: json['FailureReason'] as String?, partialFailureReasons: (json['PartialFailureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoMLPartialFailureReason.fromJson(e as Map)) .toList(), @@ -23358,7 +23358,7 @@ class AutoRollbackConfig { factory AutoRollbackConfig.fromJson(Map json) { return AutoRollbackConfig( alarms: (json['Alarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alarm.fromJson(e as Map)) .toList(), ); @@ -24003,7 +24003,7 @@ class CallbackStepMetadata { return CallbackStepMetadata( callbackToken: json['CallbackToken'] as String?, outputParameters: (json['OutputParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputParameter.fromJson(e as Map)) .toList(), sqsQueueUrl: json['SqsQueueUrl'] as String?, @@ -24147,7 +24147,7 @@ class CandidateGenerationConfig { factory CandidateGenerationConfig.fromJson(Map json) { return CandidateGenerationConfig( algorithmsConfig: (json['AlgorithmsConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoMLAlgorithmConfig.fromJson(e as Map)) .toList(), ); @@ -24181,7 +24181,7 @@ class CandidateProperties { json['CandidateArtifactLocations'] as Map) : null, candidateMetrics: (json['CandidateMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatum.fromJson(e as Map)) .toList(), ); @@ -24293,7 +24293,7 @@ class CanvasAppSettings { : null, identityProviderOAuthSettings: (json['IdentityProviderOAuthSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityProviderOAuthSetting.fromJson(e as Map)) .toList(), @@ -24426,11 +24426,11 @@ class CaptureContentTypeHeader { factory CaptureContentTypeHeader.fromJson(Map json) { return CaptureContentTypeHeader( csvContentTypes: (json['CsvContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), jsonContentTypes: (json['JsonContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -24515,10 +24515,7 @@ class CategoricalParameter { factory CategoricalParameter.fromJson(Map json) { return CategoricalParameter( name: json['Name'] as String, - value: (json['Value'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + value: (json['Value'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -24548,10 +24545,8 @@ class CategoricalParameterRange { factory CategoricalParameterRange.fromJson(Map json) { return CategoricalParameterRange( name: json['Name'] as String, - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -24577,10 +24572,8 @@ class CategoricalParameterRangeSpecification { factory CategoricalParameterRangeSpecification.fromJson( Map json) { return CategoricalParameterRangeSpecification( - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -24743,17 +24736,17 @@ class ChannelSpecification { return ChannelSpecification( name: json['Name'] as String, supportedContentTypes: (json['SupportedContentTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), supportedInputModes: (json['SupportedInputModes'] as List) - .whereNotNull() + .nonNulls .map((e) => TrainingInputMode.fromString((e as String))) .toList(), description: json['Description'] as String?, isRequired: json['IsRequired'] as bool?, supportedCompressionTypes: (json['SupportedCompressionTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CompressionType.fromString((e as String))) .toList(), ); @@ -25089,17 +25082,17 @@ class ClarifyInferenceConfig { return ClarifyInferenceConfig( contentTemplate: json['ContentTemplate'] as String?, featureHeaders: (json['FeatureHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClarifyFeatureType.fromString((e as String))) .toList(), featuresAttribute: json['FeaturesAttribute'] as String?, labelAttribute: json['LabelAttribute'] as String?, labelHeaders: (json['LabelHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), labelIndex: json['LabelIndex'] as int?, @@ -26016,7 +26009,7 @@ class CodeEditorAppSettings { factory CodeEditorAppSettings.fromJson(Map json) { return CodeEditorAppSettings( customImages: (json['CustomImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomImage.fromJson(e as Map)) .toList(), defaultResourceSpec: json['DefaultResourceSpec'] != null @@ -26024,7 +26017,7 @@ class CodeEditorAppSettings { json['DefaultResourceSpec'] as Map) : null, lifecycleConfigArns: (json['LifecycleConfigArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -26541,11 +26534,11 @@ class ContainerConfig { factory ContainerConfig.fromJson(Map json) { return ContainerConfig( containerArguments: (json['ContainerArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEntrypoint: (json['ContainerEntrypoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEnvironmentVariables: @@ -28439,7 +28432,7 @@ class DataCaptureConfig { factory DataCaptureConfig.fromJson(Map json) { return DataCaptureConfig( captureOptions: (json['CaptureOptions'] as List) - .whereNotNull() + .nonNulls .map((e) => CaptureOption.fromJson(e as Map)) .toList(), destinationS3Uri: json['DestinationS3Uri'] as String, @@ -28701,11 +28694,11 @@ class DataQualityAppSpecification { return DataQualityAppSpecification( imageUri: json['ImageUri'] as String, containerArguments: (json['ContainerArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEntrypoint: (json['ContainerEntrypoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), environment: (json['Environment'] as Map?) @@ -28974,7 +28967,7 @@ class DebugHookConfig { return DebugHookConfig( s3OutputPath: json['S3OutputPath'] as String, collectionConfigurations: (json['CollectionConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CollectionConfiguration.fromJson(e as Map)) .toList(), @@ -29193,7 +29186,7 @@ class DefaultSpaceSettings { factory DefaultSpaceSettings.fromJson(Map json) { return DefaultSpaceSettings( customFileSystemConfigs: (json['CustomFileSystemConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CustomFileSystemConfig.fromJson(e as Map)) .toList(), @@ -29215,7 +29208,7 @@ class DefaultSpaceSettings { json['KernelGatewayAppSettings'] as Map) : null, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), spaceStorageSettings: json['SpaceStorageSettings'] != null @@ -29739,7 +29732,7 @@ class DeploymentRecommendation { (json['RecommendationStatus'] as String)), realTimeInferenceRecommendations: (json['RealTimeInferenceRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RealTimeInferenceRecommendation.fromJson( e as Map)) .toList(), @@ -30485,7 +30478,7 @@ class DescribeAutoMLJobResponse { creationTime: nonNullableTimeStampFromJson(json['CreationTime'] as Object), inputDataConfig: (json['InputDataConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLChannel.fromJson(e as Map)) .toList(), lastModifiedTime: @@ -30522,7 +30515,7 @@ class DescribeAutoMLJobResponse { json['ModelDeployResult'] as Map) : null, partialFailureReasons: (json['PartialFailureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoMLPartialFailureReason.fromJson(e as Map)) .toList(), @@ -30688,7 +30681,7 @@ class DescribeAutoMLJobV2Response { return DescribeAutoMLJobV2Response( autoMLJobArn: json['AutoMLJobArn'] as String, autoMLJobInputDataConfig: (json['AutoMLJobInputDataConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLJobChannel.fromJson(e as Map)) .toList(), autoMLJobName: json['AutoMLJobName'] as String, @@ -30737,7 +30730,7 @@ class DescribeAutoMLJobV2Response { json['ModelDeployResult'] as Map) : null, partialFailureReasons: (json['PartialFailureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoMLPartialFailureReason.fromJson(e as Map)) .toList(), @@ -30864,7 +30857,7 @@ class DescribeClusterResponse { clusterStatus: ClusterStatus.fromString((json['ClusterStatus'] as String)), instanceGroups: (json['InstanceGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => ClusterInstanceGroupDetails.fromJson(e as Map)) .toList(), @@ -31481,7 +31474,7 @@ class DescribeDeviceResponse { latestHeartbeat: timeStampFromJson(json['LatestHeartbeat']), maxModels: json['MaxModels'] as int?, models: (json['Models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EdgeModel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -31665,7 +31658,7 @@ class DescribeDomainResponse { json['SingleSignOnManagedApplicationInstanceId'] as String?, status: (json['Status'] as String?)?.let(DomainStatus.fromString), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), url: json['Url'] as String?, @@ -31793,12 +31786,12 @@ class DescribeEdgeDeploymentPlanResponse { edgeDeploymentPlanArn: json['EdgeDeploymentPlanArn'] as String, edgeDeploymentPlanName: json['EdgeDeploymentPlanName'] as String, modelConfigs: (json['ModelConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => EdgeDeploymentModelConfig.fromJson(e as Map)) .toList(), stages: (json['Stages'] as List) - .whereNotNull() + .nonNulls .map((e) => DeploymentStageStatusSummary.fromJson(e as Map)) .toList(), @@ -32043,7 +32036,7 @@ class DescribeEndpointConfigOutput { endpointConfigArn: json['EndpointConfigArn'] as String, endpointConfigName: json['EndpointConfigName'] as String, productionVariants: (json['ProductionVariants'] as List) - .whereNotNull() + .nonNulls .map((e) => ProductionVariant.fromJson(e as Map)) .toList(), asyncInferenceConfig: json['AsyncInferenceConfig'] != null @@ -32062,7 +32055,7 @@ class DescribeEndpointConfigOutput { : null, kmsKeyId: json['KmsKeyId'] as String?, shadowProductionVariants: (json['ShadowProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariant.fromJson(e as Map)) .toList(), vpcConfig: json['VpcConfig'] != null @@ -32267,12 +32260,12 @@ class DescribeEndpointOutput { json['PendingDeploymentSummary'] as Map) : null, productionVariants: (json['ProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantSummary.fromJson(e as Map)) .toList(), shadowProductionVariants: (json['ShadowProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantSummary.fromJson(e as Map)) .toList(), @@ -32530,7 +32523,7 @@ class DescribeFeatureGroupResponse { nonNullableTimeStampFromJson(json['CreationTime'] as Object), eventTimeFeatureName: json['EventTimeFeatureName'] as String, featureDefinitions: (json['FeatureDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => FeatureDefinition.fromJson(e as Map)) .toList(), featureGroupArn: json['FeatureGroupArn'] as String, @@ -32664,7 +32657,7 @@ class DescribeFeatureMetadataResponse { nonNullableTimeStampFromJson(json['LastModifiedTime'] as Object), description: json['Description'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureParameter.fromJson(e as Map)) .toList(), ); @@ -32883,14 +32876,14 @@ class DescribeHubContentResponse { hubName: json['HubName'] as String, failureReason: json['FailureReason'] as String?, hubContentDependencies: (json['HubContentDependencies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HubContentDependency.fromJson(e as Map)) .toList(), hubContentDescription: json['HubContentDescription'] as String?, hubContentDisplayName: json['HubContentDisplayName'] as String?, hubContentMarkdown: json['HubContentMarkdown'] as String?, hubContentSearchKeywords: (json['HubContentSearchKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -32995,7 +32988,7 @@ class DescribeHubResponse { hubDescription: json['HubDescription'] as String?, hubDisplayName: json['HubDisplayName'] as String?, hubSearchKeywords: (json['HubSearchKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), s3StorageConfig: json['S3StorageConfig'] != null @@ -33228,7 +33221,7 @@ class DescribeHyperParameterTuningJobResponse { json['TrainingJobDefinition'] as Map) : null, trainingJobDefinitions: (json['TrainingJobDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HyperParameterTrainingJobDefinition.fromJson( e as Map)) .toList(), @@ -33781,7 +33774,7 @@ class DescribeInferenceExperimentResponse { endpointMetadata: EndpointMetadata.fromJson( json['EndpointMetadata'] as Map), modelVariants: (json['ModelVariants'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelVariantConfigSummary.fromJson(e as Map)) .toList(), @@ -33932,12 +33925,12 @@ class DescribeInferenceRecommendationsJobResponse { status: RecommendationJobStatus.fromString((json['Status'] as String)), completionTime: timeStampFromJson(json['CompletionTime']), endpointPerformances: (json['EndpointPerformances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointPerformance.fromJson(e as Map)) .toList(), failureReason: json['FailureReason'] as String?, inferenceRecommendations: (json['InferenceRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceRecommendation.fromJson(e as Map)) .toList(), @@ -34152,7 +34145,7 @@ class DescribeLabelingJobResponse { json['StoppingConditions'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -34803,7 +34796,7 @@ class DescribeModelOutput { modelArn: json['ModelArn'] as String, modelName: json['ModelName'] as String, containers: (json['Containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerDefinition.fromJson(e as Map)) .toList(), deploymentRecommendation: json['DeploymentRecommendation'] != null @@ -35070,7 +35063,7 @@ class DescribeModelPackageOutput { json['ModelPackageStatusDetails'] as Map), additionalInferenceSpecifications: (json['AdditionalInferenceSpecifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalInferenceSpecificationDefinition.fromJson( e as Map)) .toList(), @@ -35470,12 +35463,12 @@ class DescribeNotebookInstanceLifecycleConfigOutput { notebookInstanceLifecycleConfigName: json['NotebookInstanceLifecycleConfigName'] as String?, onCreate: (json['OnCreate'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookInstanceLifecycleHook.fromJson(e as Map)) .toList(), onStart: (json['OnStart'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookInstanceLifecycleHook.fromJson(e as Map)) .toList(), @@ -35647,11 +35640,11 @@ class DescribeNotebookInstanceOutput { factory DescribeNotebookInstanceOutput.fromJson(Map json) { return DescribeNotebookInstanceOutput( acceleratorTypes: (json['AcceleratorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookInstanceAcceleratorType.fromString((e as String))) .toList(), additionalCodeRepositories: (json['AdditionalCodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -35680,7 +35673,7 @@ class DescribeNotebookInstanceOutput { roleArn: json['RoleArn'] as String?, rootAccess: (json['RootAccess'] as String?)?.let(RootAccess.fromString), securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetId: json['SubnetId'] as String?, @@ -36152,7 +36145,7 @@ class DescribeProcessingJobResponse { : null, processingEndTime: timeStampFromJson(json['ProcessingEndTime']), processingInputs: (json['ProcessingInputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProcessingInput.fromJson(e as Map)) .toList(), processingOutputConfig: json['ProcessingOutputConfig'] != null @@ -36919,13 +36912,13 @@ class DescribeTrainingJobResponse { json['DebugHookConfig'] as Map) : null, debugRuleConfigurations: (json['DebugRuleConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DebugRuleConfiguration.fromJson(e as Map)) .toList(), debugRuleEvaluationStatuses: (json['DebugRuleEvaluationStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DebugRuleEvaluationStatus.fromJson(e as Map)) .toList(), @@ -36941,7 +36934,7 @@ class DescribeTrainingJobResponse { : null, failureReason: json['FailureReason'] as String?, finalMetricDataList: (json['FinalMetricDataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricData.fromJson(e as Map)) .toList(), hyperParameters: (json['HyperParameters'] as Map?) @@ -36951,7 +36944,7 @@ class DescribeTrainingJobResponse { json['InfraCheckConfig'] as Map) : null, inputDataConfig: (json['InputDataConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), labelingJobArn: json['LabelingJobArn'] as String?, @@ -36965,13 +36958,13 @@ class DescribeTrainingJobResponse { json['ProfilerConfig'] as Map) : null, profilerRuleConfigurations: (json['ProfilerRuleConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfilerRuleConfiguration.fromJson(e as Map)) .toList(), profilerRuleEvaluationStatuses: (json['ProfilerRuleEvaluationStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfilerRuleEvaluationStatus.fromJson(e as Map)) .toList(), @@ -36987,7 +36980,7 @@ class DescribeTrainingJobResponse { : null, roleArn: json['RoleArn'] as String?, secondaryStatusTransitions: (json['SecondaryStatusTransitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecondaryStatusTransition.fromJson(e as Map)) .toList(), @@ -37431,7 +37424,7 @@ class DescribeTrialComponentResponse { json['MetadataProperties'] as Map) : null, metrics: (json['Metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrialComponentMetricSummary.fromJson(e as Map)) .toList(), @@ -37448,7 +37441,7 @@ class DescribeTrialComponentResponse { json['Source'] as Map) : null, sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrialComponentSource.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -38041,7 +38034,7 @@ class DeviceSelectionConfig { DeviceSubsetType.fromString((json['DeviceSubsetType'] as String)), deviceNameContains: json['DeviceNameContains'] as String?, deviceNames: (json['DeviceNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), percentage: json['Percentage'] as int?, @@ -38160,7 +38153,7 @@ class DeviceSummary { iotThingName: json['IotThingName'] as String?, latestHeartbeat: timeStampFromJson(json['LatestHeartbeat']), models: (json['Models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EdgeModelSummary.fromJson(e as Map)) .toList(), registrationTime: timeStampFromJson(json['RegistrationTime']), @@ -38316,7 +38309,7 @@ class DockerSettings { enableDockerAccess: (json['EnableDockerAccess'] as String?) ?.let(FeatureStatus.fromString), vpcOnlyTrustedAccounts: (json['VpcOnlyTrustedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -38444,7 +38437,7 @@ class DomainSettings { json['RStudioServerProDomainSettings'] as Map) : null, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -38780,7 +38773,7 @@ class DynamicScalingConfiguration { scaleInCooldown: json['ScaleInCooldown'] as int?, scaleOutCooldown: json['ScaleOutCooldown'] as int?, scalingPolicies: (json['ScalingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingPolicy.fromJson(e as Map)) .toList(), ); @@ -39662,21 +39655,21 @@ class Endpoint { : null, failureReason: json['FailureReason'] as String?, monitoringSchedules: (json['MonitoringSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MonitoringSchedule.fromJson(e as Map)) .toList(), productionVariants: (json['ProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantSummary.fromJson(e as Map)) .toList(), shadowProductionVariants: (json['ShadowProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantSummary.fromJson(e as Map)) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -40290,7 +40283,7 @@ class EnvironmentParameterRanges { factory EnvironmentParameterRanges.fromJson(Map json) { return EnvironmentParameterRanges( categoricalParameterRanges: (json['CategoricalParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CategoricalParameter.fromJson(e as Map)) .toList(), ); @@ -40404,7 +40397,7 @@ class Experiment { ? ExperimentSource.fromJson(json['Source'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -40866,7 +40859,7 @@ class FeatureGroup { eventTimeFeatureName: json['EventTimeFeatureName'] as String?, failureReason: json['FailureReason'] as String?, featureDefinitions: (json['FeatureDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureDefinition.fromJson(e as Map)) .toList(), featureGroupArn: json['FeatureGroupArn'] as String?, @@ -40894,7 +40887,7 @@ class FeatureGroup { json['RecordIdentifierFeatureName'] as String?, roleArn: json['RoleArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -41105,7 +41098,7 @@ class FeatureMetadata { (json['FeatureType'] as String?)?.let(FeatureType.fromString), lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureParameter.fromJson(e as Map)) .toList(), ); @@ -41842,7 +41835,7 @@ class GetDeviceFleetReportResponse { deviceFleetArn: json['DeviceFleetArn'] as String, deviceFleetName: json['DeviceFleetName'] as String, agentVersions: (json['AgentVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentVersion.fromJson(e as Map)) .toList(), description: json['Description'] as String?, @@ -41850,7 +41843,7 @@ class GetDeviceFleetReportResponse { ? DeviceStats.fromJson(json['DeviceStats'] as Map) : null, modelStats: (json['ModelStats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EdgeModelStat.fromJson(e as Map)) .toList(), outputConfig: json['OutputConfig'] != null @@ -42056,7 +42049,7 @@ class GetSearchSuggestionsResponse { factory GetSearchSuggestionsResponse.fromJson(Map json) { return GetSearchSuggestionsResponse( propertyNameSuggestions: (json['PropertyNameSuggestions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => PropertyNameSuggestion.fromJson(e as Map)) .toList(), @@ -42259,7 +42252,7 @@ class HubContentInfo { hubContentDescription: json['HubContentDescription'] as String?, hubContentDisplayName: json['HubContentDisplayName'] as String?, hubContentSearchKeywords: (json['HubContentSearchKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -42392,7 +42385,7 @@ class HubInfo { hubDescription: json['HubDescription'] as String?, hubDisplayName: json['HubDisplayName'] as String?, hubSearchKeywords: (json['HubSearchKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -42619,7 +42612,7 @@ class HumanLoopConfig { taskAvailabilityLifetimeInSeconds: json['TaskAvailabilityLifetimeInSeconds'] as int?, taskKeywords: (json['TaskKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), taskTimeLimitInSeconds: json['TaskTimeLimitInSeconds'] as int?, @@ -43756,7 +43749,7 @@ class HumanTaskConfig { taskAvailabilityLifetimeInSeconds: json['TaskAvailabilityLifetimeInSeconds'] as int?, taskKeywords: (json['TaskKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -43890,7 +43883,7 @@ class HyperParameterAlgorithmSpecification { TrainingInputMode.fromString((json['TrainingInputMode'] as String)), algorithmName: json['AlgorithmName'] as String?, metricDefinitions: (json['MetricDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDefinition.fromJson(e as Map)) .toList(), trainingImage: json['TrainingImage'] as String?, @@ -44163,7 +44156,7 @@ class HyperParameterTrainingJobDefinition { as Map) : null, inputDataConfig: (json['InputDataConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), resourceConfig: json['ResourceConfig'] != null @@ -44803,7 +44796,7 @@ class HyperParameterTuningJobSearchEntity { json['OverallBestTrainingJob'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trainingJobDefinition: json['TrainingJobDefinition'] != null @@ -44811,7 +44804,7 @@ class HyperParameterTuningJobSearchEntity { json['TrainingJobDefinition'] as Map) : null, trainingJobDefinitions: (json['TrainingJobDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HyperParameterTrainingJobDefinition.fromJson( e as Map)) .toList(), @@ -45150,7 +45143,7 @@ class HyperParameterTuningJobWarmStartConfig { return HyperParameterTuningJobWarmStartConfig( parentHyperParameterTuningJobs: (json['ParentHyperParameterTuningJobs'] as List) - .whereNotNull() + .nonNulls .map((e) => ParentHyperParameterTuningJob.fromJson(e as Map)) .toList(), @@ -45288,7 +45281,7 @@ class HyperParameterTuningResourceConfig { allocationStrategy: (json['AllocationStrategy'] as String?) ?.let(HyperParameterTuningAllocationStrategy.fromString), instanceConfigs: (json['InstanceConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HyperParameterTuningInstanceConfig.fromJson( e as Map)) .toList(), @@ -46880,26 +46873,26 @@ class InferenceSpecification { factory InferenceSpecification.fromJson(Map json) { return InferenceSpecification( containers: (json['Containers'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelPackageContainerDefinition.fromJson( e as Map)) .toList(), supportedContentTypes: (json['SupportedContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedRealtimeInferenceInstanceTypes: (json[ 'SupportedRealtimeInferenceInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantInstanceType.fromString((e as String))) .toList(), supportedResponseMIMETypes: (json['SupportedResponseMIMETypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedTransformInstanceTypes: (json['SupportedTransformInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransformInstanceType.fromString((e as String))) .toList(), ); @@ -47738,11 +47731,11 @@ class JupyterLabAppSettings { factory JupyterLabAppSettings.fromJson(Map json) { return JupyterLabAppSettings( codeRepositories: (json['CodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeRepository.fromJson(e as Map)) .toList(), customImages: (json['CustomImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomImage.fromJson(e as Map)) .toList(), defaultResourceSpec: json['DefaultResourceSpec'] != null @@ -47750,7 +47743,7 @@ class JupyterLabAppSettings { json['DefaultResourceSpec'] as Map) : null, lifecycleConfigArns: (json['LifecycleConfigArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -47802,7 +47795,7 @@ class JupyterServerAppSettings { factory JupyterServerAppSettings.fromJson(Map json) { return JupyterServerAppSettings( codeRepositories: (json['CodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeRepository.fromJson(e as Map)) .toList(), defaultResourceSpec: json['DefaultResourceSpec'] != null @@ -47810,7 +47803,7 @@ class JupyterServerAppSettings { json['DefaultResourceSpec'] as Map) : null, lifecycleConfigArns: (json['LifecycleConfigArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -47888,7 +47881,7 @@ class KernelGatewayAppSettings { factory KernelGatewayAppSettings.fromJson(Map json) { return KernelGatewayAppSettings( customImages: (json['CustomImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomImage.fromJson(e as Map)) .toList(), defaultResourceSpec: json['DefaultResourceSpec'] != null @@ -47896,7 +47889,7 @@ class KernelGatewayAppSettings { json['DefaultResourceSpec'] as Map) : null, lifecycleConfigArns: (json['LifecycleConfigArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -47933,7 +47926,7 @@ class KernelGatewayImageConfig { factory KernelGatewayImageConfig.fromJson(Map json) { return KernelGatewayImageConfig( kernelSpecs: (json['KernelSpecs'] as List) - .whereNotNull() + .nonNulls .map((e) => KernelSpec.fromJson(e as Map)) .toList(), fileSystemConfig: json['FileSystemConfig'] != null @@ -48162,7 +48155,7 @@ class LabelingJobDataAttributes { factory LabelingJobDataAttributes.fromJson(Map json) { return LabelingJobDataAttributes( contentClassifiers: (json['ContentClassifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContentClassifier.fromString((e as String))) .toList(), ); @@ -48752,7 +48745,7 @@ class LambdaStepMetadata { return LambdaStepMetadata( arn: json['Arn'] as String?, outputParameters: (json['OutputParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputParameter.fromJson(e as Map)) .toList(), ); @@ -48899,7 +48892,7 @@ class ListActionsResponse { factory ListActionsResponse.fromJson(Map json) { return ListActionsResponse( actionSummaries: (json['ActionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -48933,7 +48926,7 @@ class ListAlgorithmsOutput { factory ListAlgorithmsOutput.fromJson(Map json) { return ListAlgorithmsOutput( algorithmSummaryList: (json['AlgorithmSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => AlgorithmSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -48967,7 +48960,7 @@ class ListAliasesResponse { nextToken: json['NextToken'] as String?, sageMakerImageVersionAliases: (json['SageMakerImageVersionAliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -48999,7 +48992,7 @@ class ListAppImageConfigsResponse { factory ListAppImageConfigsResponse.fromJson(Map json) { return ListAppImageConfigsResponse( appImageConfigs: (json['AppImageConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppImageConfigDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49032,7 +49025,7 @@ class ListAppsResponse { factory ListAppsResponse.fromJson(Map json) { return ListAppsResponse( apps: (json['Apps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49064,7 +49057,7 @@ class ListArtifactsResponse { factory ListArtifactsResponse.fromJson(Map json) { return ListArtifactsResponse( artifactSummaries: (json['ArtifactSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ArtifactSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49096,7 +49089,7 @@ class ListAssociationsResponse { factory ListAssociationsResponse.fromJson(Map json) { return ListAssociationsResponse( associationSummaries: (json['AssociationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociationSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49130,7 +49123,7 @@ class ListAutoMLJobsResponse { factory ListAutoMLJobsResponse.fromJson(Map json) { return ListAutoMLJobsResponse( autoMLJobSummaries: (json['AutoMLJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49164,7 +49157,7 @@ class ListCandidatesForAutoMLJobResponse { Map json) { return ListCandidatesForAutoMLJobResponse( candidates: (json['Candidates'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLCandidate.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49197,7 +49190,7 @@ class ListClusterNodesResponse { factory ListClusterNodesResponse.fromJson(Map json) { return ListClusterNodesResponse( clusterNodeSummaries: (json['ClusterNodeSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ClusterNodeSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String, @@ -49231,7 +49224,7 @@ class ListClustersResponse { factory ListClustersResponse.fromJson(Map json) { return ListClustersResponse( clusterSummaries: (json['ClusterSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ClusterSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String, @@ -49286,7 +49279,7 @@ class ListCodeRepositoriesOutput { factory ListCodeRepositoriesOutput.fromJson(Map json) { return ListCodeRepositoriesOutput( codeRepositorySummaryList: (json['CodeRepositorySummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => CodeRepositorySummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49322,7 +49315,7 @@ class ListCompilationJobsResponse { factory ListCompilationJobsResponse.fromJson(Map json) { return ListCompilationJobsResponse( compilationJobSummaries: (json['CompilationJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => CompilationJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49370,7 +49363,7 @@ class ListContextsResponse { factory ListContextsResponse.fromJson(Map json) { return ListContextsResponse( contextSummaries: (json['ContextSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContextSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49406,7 +49399,7 @@ class ListDataQualityJobDefinitionsResponse { Map json) { return ListDataQualityJobDefinitionsResponse( jobDefinitionSummaries: (json['JobDefinitionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringJobDefinitionSummary.fromJson( e as Map)) .toList(), @@ -49440,7 +49433,7 @@ class ListDeviceFleetsResponse { factory ListDeviceFleetsResponse.fromJson(Map json) { return ListDeviceFleetsResponse( deviceFleetSummaries: (json['DeviceFleetSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => DeviceFleetSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49489,7 +49482,7 @@ class ListDevicesResponse { factory ListDevicesResponse.fromJson(Map json) { return ListDevicesResponse( deviceSummaries: (json['DeviceSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => DeviceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49522,7 +49515,7 @@ class ListDomainsResponse { factory ListDomainsResponse.fromJson(Map json) { return ListDomainsResponse( domains: (json['Domains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49554,7 +49547,7 @@ class ListEdgeDeploymentPlansResponse { factory ListEdgeDeploymentPlansResponse.fromJson(Map json) { return ListEdgeDeploymentPlansResponse( edgeDeploymentPlanSummaries: (json['EdgeDeploymentPlanSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => EdgeDeploymentPlanSummary.fromJson(e as Map)) .toList(), @@ -49604,7 +49597,7 @@ class ListEdgePackagingJobsResponse { factory ListEdgePackagingJobsResponse.fromJson(Map json) { return ListEdgePackagingJobsResponse( edgePackagingJobSummaries: (json['EdgePackagingJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => EdgePackagingJobSummary.fromJson(e as Map)) .toList(), @@ -49656,7 +49649,7 @@ class ListEndpointConfigsOutput { factory ListEndpointConfigsOutput.fromJson(Map json) { return ListEndpointConfigsOutput( endpointConfigs: (json['EndpointConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => EndpointConfigSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49689,7 +49682,7 @@ class ListEndpointsOutput { factory ListEndpointsOutput.fromJson(Map json) { return ListEndpointsOutput( endpoints: (json['Endpoints'] as List) - .whereNotNull() + .nonNulls .map((e) => EndpointSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49721,7 +49714,7 @@ class ListExperimentsResponse { factory ListExperimentsResponse.fromJson(Map json) { return ListExperimentsResponse( experimentSummaries: (json['ExperimentSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperimentSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49754,7 +49747,7 @@ class ListFeatureGroupsResponse { factory ListFeatureGroupsResponse.fromJson(Map json) { return ListFeatureGroupsResponse( featureGroupSummaries: (json['FeatureGroupSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => FeatureGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49786,7 +49779,7 @@ class ListFlowDefinitionsResponse { factory ListFlowDefinitionsResponse.fromJson(Map json) { return ListFlowDefinitionsResponse( flowDefinitionSummaries: (json['FlowDefinitionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => FlowDefinitionSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49819,7 +49812,7 @@ class ListHubContentVersionsResponse { factory ListHubContentVersionsResponse.fromJson(Map json) { return ListHubContentVersionsResponse( hubContentSummaries: (json['HubContentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HubContentInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49852,7 +49845,7 @@ class ListHubContentsResponse { factory ListHubContentsResponse.fromJson(Map json) { return ListHubContentsResponse( hubContentSummaries: (json['HubContentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HubContentInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49885,7 +49878,7 @@ class ListHubsResponse { factory ListHubsResponse.fromJson(Map json) { return ListHubsResponse( hubSummaries: (json['HubSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HubInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49917,7 +49910,7 @@ class ListHumanTaskUisResponse { factory ListHumanTaskUisResponse.fromJson(Map json) { return ListHumanTaskUisResponse( humanTaskUiSummaries: (json['HumanTaskUiSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HumanTaskUiSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -49956,7 +49949,7 @@ class ListHyperParameterTuningJobsResponse { return ListHyperParameterTuningJobsResponse( hyperParameterTuningJobSummaries: (json['HyperParameterTuningJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HyperParameterTuningJobSummary.fromJson( e as Map)) .toList(), @@ -49990,7 +49983,7 @@ class ListImageVersionsResponse { factory ListImageVersionsResponse.fromJson(Map json) { return ListImageVersionsResponse( imageVersions: (json['ImageVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageVersion.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -50022,7 +50015,7 @@ class ListImagesResponse { factory ListImagesResponse.fromJson(Map json) { return ListImagesResponse( images: (json['Images'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Image.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -50056,7 +50049,7 @@ class ListInferenceComponentsOutput { factory ListInferenceComponentsOutput.fromJson(Map json) { return ListInferenceComponentsOutput( inferenceComponents: (json['InferenceComponents'] as List) - .whereNotNull() + .nonNulls .map((e) => InferenceComponentSummary.fromJson(e as Map)) .toList(), @@ -50089,7 +50082,7 @@ class ListInferenceExperimentsResponse { factory ListInferenceExperimentsResponse.fromJson(Map json) { return ListInferenceExperimentsResponse( inferenceExperiments: (json['InferenceExperiments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceExperimentSummary.fromJson(e as Map)) .toList(), @@ -50126,7 +50119,7 @@ class ListInferenceRecommendationsJobStepsResponse { return ListInferenceRecommendationsJobStepsResponse( nextToken: json['NextToken'] as String?, steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceRecommendationsJobStep.fromJson( e as Map)) .toList(), @@ -50161,7 +50154,7 @@ class ListInferenceRecommendationsJobsResponse { return ListInferenceRecommendationsJobsResponse( inferenceRecommendationsJobs: (json['InferenceRecommendationsJobs'] as List) - .whereNotNull() + .nonNulls .map((e) => InferenceRecommendationsJob.fromJson(e as Map)) .toList(), @@ -50213,7 +50206,7 @@ class ListLabelingJobsForWorkteamResponse { Map json) { return ListLabelingJobsForWorkteamResponse( labelingJobSummaryList: (json['LabelingJobSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => LabelingJobForWorkteamSummary.fromJson(e as Map)) .toList(), @@ -50262,7 +50255,7 @@ class ListLabelingJobsResponse { factory ListLabelingJobsResponse.fromJson(Map json) { return ListLabelingJobsResponse( labelingJobSummaryList: (json['LabelingJobSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelingJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -50296,7 +50289,7 @@ class ListLineageGroupsResponse { factory ListLineageGroupsResponse.fromJson(Map json) { return ListLineageGroupsResponse( lineageGroupSummaries: (json['LineageGroupSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineageGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -50331,7 +50324,7 @@ class ListModelBiasJobDefinitionsResponse { Map json) { return ListModelBiasJobDefinitionsResponse( jobDefinitionSummaries: (json['JobDefinitionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringJobDefinitionSummary.fromJson( e as Map)) .toList(), @@ -50365,7 +50358,7 @@ class ListModelCardExportJobsResponse { factory ListModelCardExportJobsResponse.fromJson(Map json) { return ListModelCardExportJobsResponse( modelCardExportJobSummaries: (json['ModelCardExportJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelCardExportJobSummary.fromJson(e as Map)) .toList(), @@ -50399,7 +50392,7 @@ class ListModelCardVersionsResponse { factory ListModelCardVersionsResponse.fromJson(Map json) { return ListModelCardVersionsResponse( modelCardVersionSummaryList: (json['ModelCardVersionSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelCardVersionSummary.fromJson(e as Map)) .toList(), @@ -50433,7 +50426,7 @@ class ListModelCardsResponse { factory ListModelCardsResponse.fromJson(Map json) { return ListModelCardsResponse( modelCardSummaries: (json['ModelCardSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelCardSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -50468,7 +50461,7 @@ class ListModelExplainabilityJobDefinitionsResponse { Map json) { return ListModelExplainabilityJobDefinitionsResponse( jobDefinitionSummaries: (json['JobDefinitionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringJobDefinitionSummary.fromJson( e as Map)) .toList(), @@ -50501,7 +50494,7 @@ class ListModelMetadataResponse { factory ListModelMetadataResponse.fromJson(Map json) { return ListModelMetadataResponse( modelMetadataSummaries: (json['ModelMetadataSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelMetadataSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -50535,7 +50528,7 @@ class ListModelPackageGroupsOutput { return ListModelPackageGroupsOutput( modelPackageGroupSummaryList: (json['ModelPackageGroupSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelPackageGroupSummary.fromJson(e as Map)) .toList(), @@ -50570,7 +50563,7 @@ class ListModelPackagesOutput { factory ListModelPackagesOutput.fromJson(Map json) { return ListModelPackagesOutput( modelPackageSummaryList: (json['ModelPackageSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelPackageSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -50605,7 +50598,7 @@ class ListModelQualityJobDefinitionsResponse { Map json) { return ListModelQualityJobDefinitionsResponse( jobDefinitionSummaries: (json['JobDefinitionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringJobDefinitionSummary.fromJson( e as Map)) .toList(), @@ -50639,7 +50632,7 @@ class ListModelsOutput { factory ListModelsOutput.fromJson(Map json) { return ListModelsOutput( models: (json['Models'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -50673,7 +50666,7 @@ class ListMonitoringAlertHistoryResponse { Map json) { return ListMonitoringAlertHistoryResponse( monitoringAlertHistory: (json['MonitoringAlertHistory'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MonitoringAlertHistorySummary.fromJson(e as Map)) .toList(), @@ -50708,7 +50701,7 @@ class ListMonitoringAlertsResponse { factory ListMonitoringAlertsResponse.fromJson(Map json) { return ListMonitoringAlertsResponse( monitoringAlertSummaries: (json['MonitoringAlertSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MonitoringAlertSummary.fromJson(e as Map)) .toList(), @@ -50744,7 +50737,7 @@ class ListMonitoringExecutionsResponse { return ListMonitoringExecutionsResponse( monitoringExecutionSummaries: (json['MonitoringExecutionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringExecutionSummary.fromJson(e as Map)) .toList(), @@ -50778,7 +50771,7 @@ class ListMonitoringSchedulesResponse { factory ListMonitoringSchedulesResponse.fromJson(Map json) { return ListMonitoringSchedulesResponse( monitoringScheduleSummaries: (json['MonitoringScheduleSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringScheduleSummary.fromJson(e as Map)) .toList(), @@ -50817,7 +50810,7 @@ class ListNotebookInstanceLifecycleConfigsOutput { nextToken: json['NextToken'] as String?, notebookInstanceLifecycleConfigs: (json['NotebookInstanceLifecycleConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookInstanceLifecycleConfigSummary.fromJson( e as Map)) .toList(), @@ -50855,7 +50848,7 @@ class ListNotebookInstancesOutput { return ListNotebookInstancesOutput( nextToken: json['NextToken'] as String?, notebookInstances: (json['NotebookInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookInstanceSummary.fromJson(e as Map)) .toList(), @@ -50895,7 +50888,7 @@ class ListPipelineExecutionStepsResponse { return ListPipelineExecutionStepsResponse( nextToken: json['NextToken'] as String?, pipelineExecutionSteps: (json['PipelineExecutionSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineExecutionStep.fromJson(e as Map)) .toList(), ); @@ -50933,7 +50926,7 @@ class ListPipelineExecutionsResponse { return ListPipelineExecutionsResponse( nextToken: json['NextToken'] as String?, pipelineExecutionSummaries: (json['PipelineExecutionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineExecutionSummary.fromJson(e as Map)) .toList(), @@ -50971,7 +50964,7 @@ class ListPipelineParametersForExecutionResponse { return ListPipelineParametersForExecutionResponse( nextToken: json['NextToken'] as String?, pipelineParameters: (json['PipelineParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), ); @@ -51009,7 +51002,7 @@ class ListPipelinesResponse { return ListPipelinesResponse( nextToken: json['NextToken'] as String?, pipelineSummaries: (json['PipelineSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineSummary.fromJson(e as Map)) .toList(), ); @@ -51042,7 +51035,7 @@ class ListProcessingJobsResponse { factory ListProcessingJobsResponse.fromJson(Map json) { return ListProcessingJobsResponse( processingJobSummaries: (json['ProcessingJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ProcessingJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -51076,7 +51069,7 @@ class ListProjectsOutput { factory ListProjectsOutput.fromJson(Map json) { return ListProjectsOutput( projectSummaryList: (json['ProjectSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => ProjectSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -51109,7 +51102,7 @@ class ListResourceCatalogsResponse { return ListResourceCatalogsResponse( nextToken: json['NextToken'] as String?, resourceCatalogs: (json['ResourceCatalogs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceCatalog.fromJson(e as Map)) .toList(), ); @@ -51142,7 +51135,7 @@ class ListSpacesResponse { return ListSpacesResponse( nextToken: json['NextToken'] as String?, spaces: (json['Spaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SpaceDetails.fromJson(e as Map)) .toList(), ); @@ -51173,7 +51166,7 @@ class ListStageDevicesResponse { factory ListStageDevicesResponse.fromJson(Map json) { return ListStageDevicesResponse( deviceDeploymentSummaries: (json['DeviceDeploymentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => DeviceDeploymentSummary.fromJson(e as Map)) .toList(), @@ -51209,7 +51202,7 @@ class ListStudioLifecycleConfigsResponse { return ListStudioLifecycleConfigsResponse( nextToken: json['NextToken'] as String?, studioLifecycleConfigs: (json['StudioLifecycleConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StudioLifecycleConfigDetails.fromJson(e as Map)) .toList(), @@ -51243,7 +51236,7 @@ class ListSubscribedWorkteamsResponse { factory ListSubscribedWorkteamsResponse.fromJson(Map json) { return ListSubscribedWorkteamsResponse( subscribedWorkteams: (json['SubscribedWorkteams'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedWorkteam.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -51277,7 +51270,7 @@ class ListTagsOutput { return ListTagsOutput( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -51315,7 +51308,7 @@ class ListTrainingJobsForHyperParameterTuningJobResponse { Map json) { return ListTrainingJobsForHyperParameterTuningJobResponse( trainingJobSummaries: (json['TrainingJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HyperParameterTrainingJobSummary.fromJson( e as Map)) .toList(), @@ -51350,7 +51343,7 @@ class ListTrainingJobsResponse { factory ListTrainingJobsResponse.fromJson(Map json) { return ListTrainingJobsResponse( trainingJobSummaries: (json['TrainingJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => TrainingJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -51383,7 +51376,7 @@ class ListTransformJobsResponse { factory ListTransformJobsResponse.fromJson(Map json) { return ListTransformJobsResponse( transformJobSummaries: (json['TransformJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => TransformJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -51416,7 +51409,7 @@ class ListTrialComponentsResponse { return ListTrialComponentsResponse( nextToken: json['NextToken'] as String?, trialComponentSummaries: (json['TrialComponentSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrialComponentSummary.fromJson(e as Map)) .toList(), ); @@ -51449,7 +51442,7 @@ class ListTrialsResponse { return ListTrialsResponse( nextToken: json['NextToken'] as String?, trialSummaries: (json['TrialSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrialSummary.fromJson(e as Map)) .toList(), ); @@ -51482,7 +51475,7 @@ class ListUserProfilesResponse { return ListUserProfilesResponse( nextToken: json['NextToken'] as String?, userProfiles: (json['UserProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserProfileDetails.fromJson(e as Map)) .toList(), ); @@ -51513,7 +51506,7 @@ class ListWorkforcesResponse { factory ListWorkforcesResponse.fromJson(Map json) { return ListWorkforcesResponse( workforces: (json['Workforces'] as List) - .whereNotNull() + .nonNulls .map((e) => Workforce.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -51561,7 +51554,7 @@ class ListWorkteamsResponse { factory ListWorkteamsResponse.fromJson(Map json) { return ListWorkteamsResponse( workteams: (json['Workteams'] as List) - .whereNotNull() + .nonNulls .map((e) => Workteam.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -51969,7 +51962,7 @@ class Model { factory Model.fromJson(Map json) { return Model( containers: (json['Containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerDefinition.fromJson(e as Map)) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -51990,7 +51983,7 @@ class Model { json['PrimaryContainer'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcConfig: json['VpcConfig'] != null @@ -52362,7 +52355,7 @@ class ModelCard { json['SecurityConfig'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -52895,7 +52888,7 @@ class ModelConfiguration { return ModelConfiguration( compilationJobName: json['CompilationJobName'] as String?, environmentParameters: (json['EnvironmentParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentParameter.fromJson(e as Map)) .toList(), inferenceSpecificationName: json['InferenceSpecificationName'] as String?, @@ -53021,7 +53014,7 @@ class ModelDashboardModel { factory ModelDashboardModel.fromJson(Map json) { return ModelDashboardModel( endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ModelDashboardEndpoint.fromJson(e as Map)) .toList(), @@ -53037,7 +53030,7 @@ class ModelDashboardModel { json['ModelCard'] as Map) : null, monitoringSchedules: (json['MonitoringSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelDashboardMonitoringSchedule.fromJson( e as Map)) .toList(), @@ -53137,7 +53130,7 @@ class ModelDashboardModelCard { json['SecurityConfig'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -53240,7 +53233,7 @@ class ModelDashboardMonitoringSchedule { json['LastMonitoringExecutionSummary'] as Map) : null, monitoringAlertSummaries: (json['MonitoringAlertSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MonitoringAlertSummary.fromJson(e as Map)) .toList(), @@ -54012,7 +54005,7 @@ class ModelPackage { return ModelPackage( additionalInferenceSpecifications: (json['AdditionalInferenceSpecifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalInferenceSpecificationDefinition.fromJson( e as Map)) .toList(), @@ -54075,7 +54068,7 @@ class ModelPackage { : null, sourceUri: json['SourceUri'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), task: json['Task'] as String?, @@ -54372,7 +54365,7 @@ class ModelPackageGroup { modelPackageGroupStatus: (json['ModelPackageGroupStatus'] as String?) ?.let(ModelPackageGroupStatus.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -54626,12 +54619,12 @@ class ModelPackageStatusDetails { factory ModelPackageStatusDetails.fromJson(Map json) { return ModelPackageStatusDetails( validationStatuses: (json['ValidationStatuses'] as List) - .whereNotNull() + .nonNulls .map( (e) => ModelPackageStatusItem.fromJson(e as Map)) .toList(), imageScanStatuses: (json['ImageScanStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ModelPackageStatusItem.fromJson(e as Map)) .toList(), @@ -54851,7 +54844,7 @@ class ModelPackageValidationSpecification { Map json) { return ModelPackageValidationSpecification( validationProfiles: (json['ValidationProfiles'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelPackageValidationProfile.fromJson(e as Map)) .toList(), @@ -54946,11 +54939,11 @@ class ModelQualityAppSpecification { return ModelQualityAppSpecification( imageUri: json['ImageUri'] as String, containerArguments: (json['ContainerArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEntrypoint: (json['ContainerEntrypoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), environment: (json['Environment'] as Map?) @@ -55523,11 +55516,11 @@ class MonitoringAppSpecification { return MonitoringAppSpecification( imageUri: json['ImageUri'] as String, containerArguments: (json['ContainerArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEntrypoint: (json['ContainerEntrypoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), postAnalyticsProcessorSourceUri: @@ -55967,7 +55960,7 @@ class MonitoringJobDefinition { monitoringAppSpecification: MonitoringAppSpecification.fromJson( json['MonitoringAppSpecification'] as Map), monitoringInputs: (json['MonitoringInputs'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringInput.fromJson(e as Map)) .toList(), monitoringOutputConfig: MonitoringOutputConfig.fromJson( @@ -56189,7 +56182,7 @@ class MonitoringOutputConfig { factory MonitoringOutputConfig.fromJson(Map json) { return MonitoringOutputConfig( monitoringOutputs: (json['MonitoringOutputs'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringOutput.fromJson(e as Map)) .toList(), kmsKeyId: json['KmsKeyId'] as String?, @@ -56392,7 +56385,7 @@ class MonitoringSchedule { monitoringType: (json['MonitoringType'] as String?)?.let(MonitoringType.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -56708,13 +56701,11 @@ class NeoVpcConfig { factory NeoVpcConfig.fromJson(Map json) { return NeoVpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -57091,7 +57082,7 @@ class NotebookInstanceSummary { notebookInstanceArn: json['NotebookInstanceArn'] as String, notebookInstanceName: json['NotebookInstanceName'] as String, additionalCodeRepositories: (json['AdditionalCodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -57501,10 +57492,8 @@ class OidcMemberDefinition { factory OidcMemberDefinition.fromJson(Map json) { return OidcMemberDefinition( - groups: (json['Groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['Groups'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -58344,21 +58333,21 @@ class ParameterRanges { factory ParameterRanges.fromJson(Map json) { return ParameterRanges( autoParameters: (json['AutoParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoParameter.fromJson(e as Map)) .toList(), categoricalParameterRanges: (json['CategoricalParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CategoricalParameterRange.fromJson(e as Map)) .toList(), continuousParameterRanges: (json['ContinuousParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContinuousParameterRange.fromJson(e as Map)) .toList(), integerParameterRanges: (json['IntegerParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegerParameterRange.fromJson(e as Map)) .toList(), ); @@ -58490,12 +58479,12 @@ class PendingDeploymentSummary { return PendingDeploymentSummary( endpointConfigName: json['EndpointConfigName'] as String, productionVariants: (json['ProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingProductionVariantSummary.fromJson( e as Map)) .toList(), shadowProductionVariants: (json['ShadowProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingProductionVariantSummary.fromJson( e as Map)) .toList(), @@ -58611,7 +58600,7 @@ class PendingProductionVariantSummary { : null, currentWeight: json['CurrentWeight'] as double?, deployedImages: (json['DeployedImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeployedImage.fromJson(e as Map)) .toList(), desiredInstanceCount: json['DesiredInstanceCount'] as int?, @@ -58631,7 +58620,7 @@ class PendingProductionVariantSummary { json['RoutingConfig'] as Map) : null, variantStatus: (json['VariantStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantStatus.fromJson(e as Map)) .toList(), @@ -58793,7 +58782,7 @@ class Pipeline { (json['PipelineStatus'] as String?)?.let(PipelineStatus.fromString), roleArn: json['RoleArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -58950,7 +58939,7 @@ class PipelineExecution { json['PipelineExperimentConfig'] as Map) : null, pipelineParameters: (json['PipelineParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), selectiveExecutionConfig: json['SelectiveExecutionConfig'] != null @@ -59906,7 +59895,7 @@ class ProcessingJob { : null, processingEndTime: timeStampFromJson(json['ProcessingEndTime']), processingInputs: (json['ProcessingInputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProcessingInput.fromJson(e as Map)) .toList(), processingJobArn: json['ProcessingJobArn'] as String?, @@ -59928,7 +59917,7 @@ class ProcessingJob { json['StoppingCondition'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trainingJobArn: json['TrainingJobArn'] as String?, @@ -60189,7 +60178,7 @@ class ProcessingOutputConfig { factory ProcessingOutputConfig.fromJson(Map json) { return ProcessingOutputConfig( outputs: (json['Outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => ProcessingOutput.fromJson(e as Map)) .toList(), kmsKeyId: json['KmsKeyId'] as String?, @@ -61222,7 +61211,7 @@ class ProductionVariantSummary { : null, currentWeight: json['CurrentWeight'] as double?, deployedImages: (json['DeployedImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeployedImage.fromJson(e as Map)) .toList(), desiredInstanceCount: json['DesiredInstanceCount'] as int?, @@ -61240,7 +61229,7 @@ class ProductionVariantSummary { json['RoutingConfig'] as Map) : null, variantStatus: (json['VariantStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantStatus.fromJson(e as Map)) .toList(), @@ -61616,7 +61605,7 @@ class Project { as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -62407,12 +62396,12 @@ class QueryLineageResponse { factory QueryLineageResponse.fromJson(Map json) { return QueryLineageResponse( edges: (json['Edges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Edge.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, vertices: (json['Vertices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Vertex.fromJson(e as Map)) .toList(), ); @@ -62445,7 +62434,7 @@ class RSessionAppSettings { factory RSessionAppSettings.fromJson(Map json) { return RSessionAppSettings( customImages: (json['CustomImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomImage.fromJson(e as Map)) .toList(), defaultResourceSpec: json['DefaultResourceSpec'] != null @@ -62797,11 +62786,11 @@ class RecommendationJobContainerConfig { supportedEndpointType: (json['SupportedEndpointType'] as String?) ?.let(RecommendationJobSupportedEndpointType.fromString), supportedInstanceTypes: (json['SupportedInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedResponseMIMETypes: (json['SupportedResponseMIMETypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), task: json['Task'] as String?, @@ -63004,12 +62993,12 @@ class RecommendationJobInputConfig { json['ContainerConfig'] as Map) : null, endpointConfigurations: (json['EndpointConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointInputConfiguration.fromJson(e as Map)) .toList(), endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointInfo.fromJson(e as Map)) .toList(), jobDurationInSeconds: json['JobDurationInSeconds'] as int?, @@ -63135,7 +63124,7 @@ class RecommendationJobPayloadConfig { return RecommendationJobPayloadConfig( samplePayloadUrl: json['SamplePayloadUrl'] as String?, supportedContentTypes: (json['SupportedContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -63235,7 +63224,7 @@ class RecommendationJobStoppingConditions { (json['FlatInvocations'] as String?)?.let(FlatInvocations.fromString), maxInvocations: json['MaxInvocations'] as int?, modelLatencyThresholds: (json['ModelLatencyThresholds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelLatencyThreshold.fromJson(e as Map)) .toList(), ); @@ -63303,13 +63292,11 @@ class RecommendationJobVpcConfig { factory RecommendationJobVpcConfig.fromJson(Map json) { return RecommendationJobVpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -63645,7 +63632,7 @@ class RenderUiTemplateResponse { factory RenderUiTemplateResponse.fromJson(Map json) { return RenderUiTemplateResponse( errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => RenderingError.fromJson(e as Map)) .toList(), renderedContent: json['RenderedContent'] as String, @@ -64007,7 +63994,7 @@ class ResourceConfig { volumeSizeInGB: json['VolumeSizeInGB'] as int, instanceCount: json['InstanceCount'] as int?, instanceGroups: (json['InstanceGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceGroup.fromJson(e as Map)) .toList(), instanceType: (json['InstanceType'] as String?) @@ -64521,11 +64508,11 @@ class S3DataSource { s3DataType: S3DataType.fromString((json['S3DataType'] as String)), s3Uri: json['S3Uri'] as String, attributeNames: (json['AttributeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), instanceGroupNames: (json['InstanceGroupNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), s3DataDistributionType: (json['S3DataDistributionType'] as String?) @@ -65282,7 +65269,7 @@ class SearchResponse { return SearchResponse( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SearchRecord.fromJson(e as Map)) .toList(), ); @@ -65553,7 +65540,7 @@ class SelectiveExecutionConfig { factory SelectiveExecutionConfig.fromJson(Map json) { return SelectiveExecutionConfig( selectedSteps: (json['SelectedSteps'] as List) - .whereNotNull() + .nonNulls .map((e) => SelectedStep.fromJson(e as Map)) .toList(), sourcePipelineExecutionArn: json['SourcePipelineExecutionArn'] as String?, @@ -65742,7 +65729,7 @@ class ServiceCatalogProvisioningDetails { pathId: json['PathId'] as String?, provisioningArtifactId: json['ProvisioningArtifactId'] as String?, provisioningParameters: (json['ProvisioningParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningParameter.fromJson(e as Map)) .toList(), ); @@ -65837,7 +65824,7 @@ class ShadowModeConfig { factory ShadowModeConfig.fromJson(Map json) { return ShadowModeConfig( shadowModelVariants: (json['ShadowModelVariants'] as List) - .whereNotNull() + .nonNulls .map((e) => ShadowModelVariantConfig.fromJson(e as Map)) .toList(), @@ -66260,7 +66247,7 @@ class SourceAlgorithmSpecification { factory SourceAlgorithmSpecification.fromJson(Map json) { return SourceAlgorithmSpecification( sourceAlgorithms: (json['SourceAlgorithms'] as List) - .whereNotNull() + .nonNulls .map((e) => SourceAlgorithm.fromJson(e as Map)) .toList(), ); @@ -66298,10 +66285,7 @@ class SourceIpConfig { factory SourceIpConfig.fromJson(Map json) { return SourceIpConfig( - cidrs: (json['Cidrs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + cidrs: (json['Cidrs'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -66447,7 +66431,7 @@ class SpaceJupyterLabAppSettings { factory SpaceJupyterLabAppSettings.fromJson(Map json) { return SpaceJupyterLabAppSettings( codeRepositories: (json['CodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeRepository.fromJson(e as Map)) .toList(), defaultResourceSpec: json['DefaultResourceSpec'] != null @@ -66507,7 +66491,7 @@ class SpaceSettings { json['CodeEditorAppSettings'] as Map) : null, customFileSystems: (json['CustomFileSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomFileSystem.fromJson(e as Map)) .toList(), jupyterLabAppSettings: json['JupyterLabAppSettings'] != null @@ -68087,7 +68071,7 @@ class TimeSeriesConfig { targetAttributeName: json['TargetAttributeName'] as String, timestampAttributeName: json['TimestampAttributeName'] as String, groupingAttributeNames: (json['GroupingAttributeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -68223,11 +68207,11 @@ class TimeSeriesForecastingJobConfig { : null, featureSpecificationS3Uri: json['FeatureSpecificationS3Uri'] as String?, forecastQuantiles: (json['ForecastQuantiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), holidayConfig: (json['HolidayConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HolidayConfigAttributes.fromJson(e as Map)) .toList(), @@ -68405,7 +68389,7 @@ class TrafficPattern { factory TrafficPattern.fromJson(Map json) { return TrafficPattern( phases: (json['Phases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Phase.fromJson(e as Map)) .toList(), stairs: json['Stairs'] != null @@ -69003,13 +68987,13 @@ class TrainingJob { json['DebugHookConfig'] as Map) : null, debugRuleConfigurations: (json['DebugRuleConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DebugRuleConfiguration.fromJson(e as Map)) .toList(), debugRuleEvaluationStatuses: (json['DebugRuleEvaluationStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DebugRuleEvaluationStatus.fromJson(e as Map)) .toList(), @@ -69025,13 +69009,13 @@ class TrainingJob { : null, failureReason: json['FailureReason'] as String?, finalMetricDataList: (json['FinalMetricDataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricData.fromJson(e as Map)) .toList(), hyperParameters: (json['HyperParameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), inputDataConfig: (json['InputDataConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), labelingJobArn: json['LabelingJobArn'] as String?, @@ -69060,7 +69044,7 @@ class TrainingJob { secondaryStatus: (json['SecondaryStatus'] as String?)?.let(SecondaryStatus.fromString), secondaryStatusTransitions: (json['SecondaryStatusTransitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecondaryStatusTransition.fromJson(e as Map)) .toList(), @@ -69069,7 +69053,7 @@ class TrainingJob { json['StoppingCondition'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), tensorBoardOutputConfig: json['TensorBoardOutputConfig'] != null @@ -69230,7 +69214,7 @@ class TrainingJobDefinition { factory TrainingJobDefinition.fromJson(Map json) { return TrainingJobDefinition( inputDataConfig: (json['InputDataConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), outputDataConfig: OutputDataConfig.fromJson( @@ -69567,11 +69551,11 @@ class TrainingSpecification { return TrainingSpecification( supportedTrainingInstanceTypes: (json['SupportedTrainingInstanceTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => TrainingInstanceType.fromString((e as String))) .toList(), trainingChannels: (json['TrainingChannels'] as List) - .whereNotNull() + .nonNulls .map((e) => ChannelSpecification.fromJson(e as Map)) .toList(), trainingImage: json['TrainingImage'] as String, @@ -69580,17 +69564,17 @@ class TrainingSpecification { json['AdditionalS3DataSource'] as Map) : null, metricDefinitions: (json['MetricDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDefinition.fromJson(e as Map)) .toList(), supportedHyperParameters: (json['SupportedHyperParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HyperParameterSpecification.fromJson(e as Map)) .toList(), supportedTuningJobObjectiveMetrics: (json['SupportedTuningJobObjectiveMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HyperParameterTuningJobObjective.fromJson( e as Map)) .toList(), @@ -70010,7 +69994,7 @@ class TransformJob { : null, modelName: json['ModelName'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), transformEndTime: timeStampFromJson(json['TransformEndTime']), @@ -70619,12 +70603,12 @@ class Trial { ? TrialSource.fromJson(json['Source'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trialArn: json['TrialArn'] as String?, trialComponentSummaries: (json['TrialComponentSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrialComponentSimpleSummary.fromJson(e as Map)) .toList(), @@ -70776,7 +70760,7 @@ class TrialComponent { json['MetadataProperties'] as Map) : null, metrics: (json['Metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrialComponentMetricSummary.fromJson(e as Map)) .toList(), @@ -70789,7 +70773,7 @@ class TrialComponent { TrialComponentParameterValue.fromJson( e as Map))), parents: (json['Parents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parent.fromJson(e as Map)) .toList(), runName: json['RunName'] as String?, @@ -70807,7 +70791,7 @@ class TrialComponent { json['Status'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trialComponentArn: json['TrialComponentArn'] as String?, @@ -72741,7 +72725,7 @@ class UserSettings { json['CodeEditorAppSettings'] as Map) : null, customFileSystemConfigs: (json['CustomFileSystemConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CustomFileSystemConfig.fromJson(e as Map)) .toList(), @@ -72772,7 +72756,7 @@ class UserSettings { json['RStudioServerProAppSettings'] as Map) : null, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sharingSettings: json['SharingSettings'] != null @@ -73052,13 +73036,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -73382,13 +73364,11 @@ class WorkforceVpcConfigResponse { factory WorkforceVpcConfigResponse.fromJson(Map json) { return WorkforceVpcConfigResponse( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String, vpcEndpointId: json['VpcEndpointId'] as String?, ); @@ -73504,7 +73484,7 @@ class Workteam { return Workteam( description: json['Description'] as String, memberDefinitions: (json['MemberDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => MemberDefinition.fromJson(e as Map)) .toList(), workteamArn: json['WorkteamArn'] as String, @@ -73516,7 +73496,7 @@ class Workteam { json['NotificationConfiguration'] as Map) : null, productListingIds: (json['ProductListingIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subDomain: json['SubDomain'] as String?, diff --git a/aws_client/lib/src/generated/sage_maker_a2i_runtime/v2019_11_07.dart b/aws_client/lib/src/generated/sage_maker_a2i_runtime/v2019_11_07.dart index 48a48dc8e..d94672040 100644 --- a/aws_client/lib/src/generated/sage_maker_a2i_runtime/v2019_11_07.dart +++ b/aws_client/lib/src/generated/sage_maker_a2i_runtime/v2019_11_07.dart @@ -529,7 +529,7 @@ class ListHumanLoopsResponse { factory ListHumanLoopsResponse.fromJson(Map json) { return ListHumanLoopsResponse( humanLoopSummaries: (json['HumanLoopSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HumanLoopSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/aws_client/lib/src/generated/sage_maker_feature_store_runtime/v2020_07_01.dart b/aws_client/lib/src/generated/sage_maker_feature_store_runtime/v2020_07_01.dart index 9fef58b6b..48ddcb140 100644 --- a/aws_client/lib/src/generated/sage_maker_feature_store_runtime/v2020_07_01.dart +++ b/aws_client/lib/src/generated/sage_maker_feature_store_runtime/v2020_07_01.dart @@ -407,11 +407,11 @@ class BatchGetRecordIdentifier { featureGroupName: json['FeatureGroupName'] as String, recordIdentifiersValueAsString: (json['RecordIdentifiersValueAsString'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), featureNames: (json['FeatureNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -449,16 +449,16 @@ class BatchGetRecordResponse { factory BatchGetRecordResponse.fromJson(Map json) { return BatchGetRecordResponse( errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetRecordError.fromJson(e as Map)) .toList(), records: (json['Records'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetRecordResultDetail.fromJson(e as Map)) .toList(), unprocessedIdentifiers: (json['UnprocessedIdentifiers'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetRecordIdentifier.fromJson(e as Map)) .toList(), @@ -503,7 +503,7 @@ class BatchGetRecordResultDetail { return BatchGetRecordResultDetail( featureGroupName: json['FeatureGroupName'] as String, record: (json['Record'] as List) - .whereNotNull() + .nonNulls .map((e) => FeatureValue.fromJson(e as Map)) .toList(), recordIdentifierValueAsString: @@ -585,7 +585,7 @@ class FeatureValue { featureName: json['FeatureName'] as String, valueAsString: json['ValueAsString'] as String?, valueAsStringList: (json['ValueAsStringList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -619,7 +619,7 @@ class GetRecordResponse { return GetRecordResponse( expiresAt: json['ExpiresAt'] as String?, record: (json['Record'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureValue.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/sage_maker_geospatial/v2020_05_27.dart b/aws_client/lib/src/generated/sage_maker_geospatial/v2020_05_27.dart index 78fcc73aa..b0f84b63a 100644 --- a/aws_client/lib/src/generated/sage_maker_geospatial/v2020_05_27.dart +++ b/aws_client/lib/src/generated/sage_maker_geospatial/v2020_05_27.dart @@ -953,7 +953,7 @@ class BandMathConfigInput { json['CustomIndices'] as Map) : null, predefinedIndices: (json['PredefinedIndices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1005,7 +1005,7 @@ class CloudRemovalConfigInput { ?.let(AlgorithmNameCloudRemoval.fromString), interpolationValue: json['InterpolationValue'] as String?, targetBands: (json['TargetBands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1051,7 +1051,7 @@ class CustomIndicesInput { factory CustomIndicesInput.fromJson(Map json) { return CustomIndicesInput( operations: (json['Operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -1539,7 +1539,7 @@ class GeoMosaicConfigInput { algorithmName: (json['AlgorithmName'] as String?) ?.let(AlgorithmNameGeoMosaic.fromString), targetBands: (json['TargetBands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1572,11 +1572,10 @@ class Geometry { factory Geometry.fromJson(Map json) { return Geometry( coordinates: (json['Coordinates'] as List) - .whereNotNull() + .nonNulls .map((e) => (e as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as double).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as double).toList()) .toList()) .toList(), type: json['Type'] as String, @@ -1679,7 +1678,7 @@ class GetEarthObservationJobOutput { ?.let(EarthObservationJobExportStatus.fromString), kmsKeyId: json['KmsKeyId'] as String?, outputBands: (json['OutputBands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputBand.fromJson(e as Map)) .toList(), tags: (json['Tags'] as Map?) @@ -1763,12 +1762,12 @@ class GetRasterDataCollectionOutput { description: json['Description'] as String, descriptionPageUrl: json['DescriptionPageUrl'] as String, imageSourceBands: (json['ImageSourceBands'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String, supportedFilters: (json['SupportedFilters'] as List) - .whereNotNull() + .nonNulls .map((e) => Filter.fromJson(e as Map)) .toList(), type: DataCollectionType.fromString((json['Type'] as String)), @@ -2252,7 +2251,7 @@ class ListEarthObservationJobOutput { return ListEarthObservationJobOutput( earthObservationJobSummaries: (json['EarthObservationJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ListEarthObservationJobOutputConfig.fromJson( e as Map)) .toList(), @@ -2355,7 +2354,7 @@ class ListRasterDataCollectionsOutput { return ListRasterDataCollectionsOutput( rasterDataCollectionSummaries: (json['RasterDataCollectionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => RasterDataCollectionMetadata.fromJson(e as Map)) .toList(), @@ -2413,7 +2412,7 @@ class ListVectorEnrichmentJobOutput { return ListVectorEnrichmentJobOutput( vectorEnrichmentJobSummaries: (json['VectorEnrichmentJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ListVectorEnrichmentJobOutputConfig.fromJson( e as Map)) .toList(), @@ -2572,15 +2571,13 @@ class MultiPolygonGeometryInput { factory MultiPolygonGeometryInput.fromJson(Map json) { return MultiPolygonGeometryInput( coordinates: (json['Coordinates'] as List) - .whereNotNull() + .nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => (e as List) - .whereNotNull() - .map((e) => (e as List) - .whereNotNull() - .map((e) => e as double) - .toList()) + .nonNulls + .map((e) => + (e as List).nonNulls.map((e) => e as double).toList()) .toList()) .toList()) .toList(), @@ -2817,11 +2814,10 @@ class PolygonGeometryInput { factory PolygonGeometryInput.fromJson(Map json) { return PolygonGeometryInput( coordinates: (json['Coordinates'] as List) - .whereNotNull() + .nonNulls .map((e) => (e as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as double).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as double).toList()) .toList()) .toList(), ); @@ -3044,7 +3040,7 @@ class PropertyFilters { logicalOperator: (json['LogicalOperator'] as String?)?.let(LogicalOperator.fromString), properties: (json['Properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PropertyFilter.fromJson(e as Map)) .toList(), ); @@ -3099,7 +3095,7 @@ class RasterDataCollectionMetadata { description: json['Description'] as String, name: json['Name'] as String, supportedFilters: (json['SupportedFilters'] as List) - .whereNotNull() + .nonNulls .map((e) => Filter.fromJson(e as Map)) .toList(), type: DataCollectionType.fromString((json['Type'] as String)), @@ -3286,7 +3282,7 @@ class ResamplingConfigInput { algorithmName: (json['AlgorithmName'] as String?) ?.let(AlgorithmNameResampling.fromString), targetBands: (json['TargetBands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3357,7 +3353,7 @@ class SearchRasterDataCollectionOutput { return SearchRasterDataCollectionOutput( approximateResultCount: json['ApproximateResultCount'] as int, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ItemSource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3413,7 +3409,7 @@ class StackConfigInput { json['OutputResolution'] as Map) : null, targetBands: (json['TargetBands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3706,12 +3702,12 @@ class TemporalStatisticsConfigInput { factory TemporalStatisticsConfigInput.fromJson(Map json) { return TemporalStatisticsConfigInput( statistics: (json['Statistics'] as List) - .whereNotNull() + .nonNulls .map((e) => TemporalStatistics.fromString((e as String))) .toList(), groupBy: (json['GroupBy'] as String?)?.let(GroupBy.fromString), targetBands: (json['TargetBands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4295,12 +4291,12 @@ class ZonalStatisticsConfigInput { factory ZonalStatisticsConfigInput.fromJson(Map json) { return ZonalStatisticsConfigInput( statistics: (json['Statistics'] as List) - .whereNotNull() + .nonNulls .map((e) => ZonalStatistics.fromString((e as String))) .toList(), zoneS3Path: json['ZoneS3Path'] as String, targetBands: (json['TargetBands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), zoneS3PathKmsKeyId: json['ZoneS3PathKmsKeyId'] as String?, diff --git a/aws_client/lib/src/generated/sage_maker_metrics/v2022_09_30.dart b/aws_client/lib/src/generated/sage_maker_metrics/v2022_09_30.dart index e48114bc4..8c415952c 100644 --- a/aws_client/lib/src/generated/sage_maker_metrics/v2022_09_30.dart +++ b/aws_client/lib/src/generated/sage_maker_metrics/v2022_09_30.dart @@ -143,7 +143,7 @@ class BatchPutMetricsResponse { factory BatchPutMetricsResponse.fromJson(Map json) { return BatchPutMetricsResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPutMetricsError.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/sagemaker_edge/v2020_09_23.dart b/aws_client/lib/src/generated/sagemaker_edge/v2020_09_23.dart index 5b2f04596..1ff3febb3 100644 --- a/aws_client/lib/src/generated/sagemaker_edge/v2020_09_23.dart +++ b/aws_client/lib/src/generated/sagemaker_edge/v2020_09_23.dart @@ -409,7 +409,7 @@ class EdgeDeployment { factory EdgeDeployment.fromJson(Map json) { return EdgeDeployment( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Definition.fromJson(e as Map)) .toList(), deploymentName: json['DeploymentName'] as String?, @@ -496,7 +496,7 @@ class GetDeploymentsResult { factory GetDeploymentsResult.fromJson(Map json) { return GetDeploymentsResult( deployments: (json['Deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EdgeDeployment.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/savingsplans/v2019_06_28.dart b/aws_client/lib/src/generated/savingsplans/v2019_06_28.dart index 3fa9b1600..e1093d2fb 100644 --- a/aws_client/lib/src/generated/savingsplans/v2019_06_28.dart +++ b/aws_client/lib/src/generated/savingsplans/v2019_06_28.dart @@ -587,7 +587,7 @@ class DescribeSavingsPlanRatesResponse { nextToken: json['nextToken'] as String?, savingsPlanId: json['savingsPlanId'] as String?, searchResults: (json['searchResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanRate.fromJson(e as Map)) .toList(), ); @@ -623,7 +623,7 @@ class DescribeSavingsPlansOfferingRatesResponse { return DescribeSavingsPlansOfferingRatesResponse( nextToken: json['nextToken'] as String?, searchResults: (json['searchResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanOfferingRate.fromJson(e as Map)) .toList(), @@ -658,7 +658,7 @@ class DescribeSavingsPlansOfferingsResponse { return DescribeSavingsPlansOfferingsResponse( nextToken: json['nextToken'] as String?, searchResults: (json['searchResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanOffering.fromJson(e as Map)) .toList(), ); @@ -691,7 +691,7 @@ class DescribeSavingsPlansResponse { return DescribeSavingsPlansResponse( nextToken: json['nextToken'] as String?, savingsPlans: (json['savingsPlans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlan.fromJson(e as Map)) .toList(), ); @@ -905,7 +905,7 @@ class SavingsPlan { paymentOption: (json['paymentOption'] as String?) ?.let(SavingsPlanPaymentOption.fromString), productTypes: (json['productTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanProductType.fromString((e as String))) .toList(), recurringPaymentAmount: json['recurringPaymentAmount'] as String?, @@ -1056,11 +1056,11 @@ class SavingsPlanOffering { ?.let(SavingsPlanPaymentOption.fromString), planType: (json['planType'] as String?)?.let(SavingsPlanType.fromString), productTypes: (json['productTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanProductType.fromString((e as String))) .toList(), properties: (json['properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanOfferingProperty.fromJson(e as Map)) .toList(), @@ -1226,7 +1226,7 @@ class SavingsPlanOfferingRate { productType: (json['productType'] as String?) ?.let(SavingsPlanProductType.fromString), properties: (json['properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanOfferingRateProperty.fromJson( e as Map)) .toList(), @@ -1396,7 +1396,7 @@ class SavingsPlanRate { productType: (json['productType'] as String?) ?.let(SavingsPlanProductType.fromString), properties: (json['properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanRateProperty.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/scheduler/v2021_06_30.dart b/aws_client/lib/src/generated/scheduler/v2021_06_30.dart index e40c79ad0..557757eee 100644 --- a/aws_client/lib/src/generated/scheduler/v2021_06_30.dart +++ b/aws_client/lib/src/generated/scheduler/v2021_06_30.dart @@ -735,14 +735,12 @@ class AwsVpcConfiguration { factory AwsVpcConfiguration.fromJson(Map json) { return AwsVpcConfiguration( - subnets: (json['Subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), assignPublicIp: (json['AssignPublicIp'] as String?)?.let(AssignPublicIp.fromString), securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -991,7 +989,7 @@ class EcsParameters { return EcsParameters( taskDefinitionArn: json['TaskDefinitionArn'] as String, capacityProviderStrategy: (json['CapacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -1004,11 +1002,11 @@ class EcsParameters { json['NetworkConfiguration'] as Map) : null, placementConstraints: (json['PlacementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementConstraint.fromJson(e as Map)) .toList(), placementStrategy: (json['PlacementStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementStrategy.fromJson(e as Map)) .toList(), platformVersion: json['PlatformVersion'] as String?, @@ -1016,7 +1014,7 @@ class EcsParameters { (json['PropagateTags'] as String?)?.let(PropagateTags.fromString), referenceId: json['ReferenceId'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -1428,7 +1426,7 @@ class ListScheduleGroupsOutput { factory ListScheduleGroupsOutput.fromJson(Map json) { return ListScheduleGroupsOutput( scheduleGroups: (json['ScheduleGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => ScheduleGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1461,7 +1459,7 @@ class ListSchedulesOutput { factory ListSchedulesOutput.fromJson(Map json) { return ListSchedulesOutput( schedules: (json['Schedules'] as List) - .whereNotNull() + .nonNulls .map((e) => ScheduleSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1489,7 +1487,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1742,7 +1740,7 @@ class SageMakerPipelineParameters { factory SageMakerPipelineParameters.fromJson(Map json) { return SageMakerPipelineParameters( pipelineParameterList: (json['PipelineParameterList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SageMakerPipelineParameter.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/schemas/v2019_12_02.dart b/aws_client/lib/src/generated/schemas/v2019_12_02.dart index cbf97fd56..65d5bee39 100644 --- a/aws_client/lib/src/generated/schemas/v2019_12_02.dart +++ b/aws_client/lib/src/generated/schemas/v2019_12_02.dart @@ -1727,7 +1727,7 @@ class ListDiscoverersResponse { factory ListDiscoverersResponse.fromJson(Map json) { return ListDiscoverersResponse( discoverers: (json['Discoverers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DiscovererSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1762,7 +1762,7 @@ class ListRegistriesResponse { return ListRegistriesResponse( nextToken: json['NextToken'] as String?, registries: (json['Registries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegistrySummary.fromJson(e as Map)) .toList(), ); @@ -1796,7 +1796,7 @@ class ListSchemaVersionsResponse { return ListSchemaVersionsResponse( nextToken: json['NextToken'] as String?, schemaVersions: (json['SchemaVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaVersionSummary.fromJson(e as Map)) .toList(), ); @@ -1830,7 +1830,7 @@ class ListSchemasResponse { return ListSchemasResponse( nextToken: json['NextToken'] as String?, schemas: (json['Schemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaSummary.fromJson(e as Map)) .toList(), ); @@ -2099,7 +2099,7 @@ class SearchSchemaSummary { schemaArn: json['SchemaArn'] as String?, schemaName: json['SchemaName'] as String?, schemaVersions: (json['SchemaVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SearchSchemaVersionSummary.fromJson(e as Map)) .toList(), @@ -2174,7 +2174,7 @@ class SearchSchemasResponse { return SearchSchemasResponse( nextToken: json['NextToken'] as String?, schemas: (json['Schemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SearchSchemaSummary.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/secrets_manager/v2017_10_17.dart b/aws_client/lib/src/generated/secrets_manager/v2017_10_17.dart index 872f9db24..9b2e5c669 100644 --- a/aws_client/lib/src/generated/secrets_manager/v2017_10_17.dart +++ b/aws_client/lib/src/generated/secrets_manager/v2017_10_17.dart @@ -2253,12 +2253,12 @@ class BatchGetSecretValueResponse { factory BatchGetSecretValueResponse.fromJson(Map json) { return BatchGetSecretValueResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => APIErrorType.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, secretValues: (json['SecretValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecretValueEntry.fromJson(e as Map)) .toList(), ); @@ -2358,7 +2358,7 @@ class CreateSecretResponse { arn: json['ARN'] as String?, name: json['Name'] as String?, replicationStatus: (json['ReplicationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationStatusType.fromJson(e as Map)) .toList(), versionId: json['VersionId'] as String?, @@ -2613,7 +2613,7 @@ class DescribeSecretResponse { owningService: json['OwningService'] as String?, primaryRegion: json['PrimaryRegion'] as String?, replicationStatus: (json['ReplicationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationStatusType.fromJson(e as Map)) .toList(), rotationEnabled: json['RotationEnabled'] as bool?, @@ -2623,12 +2623,12 @@ class DescribeSecretResponse { json['RotationRules'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), versionIdsToStages: (json['VersionIdsToStages'] as Map?) ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -2869,7 +2869,7 @@ class GetSecretValueResponse { secretString: json['SecretString'] as String?, versionId: json['VersionId'] as String?, versionStages: (json['VersionStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2925,7 +2925,7 @@ class ListSecretVersionIdsResponse { name: json['Name'] as String?, nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecretVersionsListEntry.fromJson(e as Map)) .toList(), @@ -2966,7 +2966,7 @@ class ListSecretsResponse { return ListSecretsResponse( nextToken: json['NextToken'] as String?, secretList: (json['SecretList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecretListEntry.fromJson(e as Map)) .toList(), ); @@ -3039,7 +3039,7 @@ class PutSecretValueResponse { name: json['Name'] as String?, versionId: json['VersionId'] as String?, versionStages: (json['VersionStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3076,7 +3076,7 @@ class RemoveRegionsFromReplicationResponse { return RemoveRegionsFromReplicationResponse( arn: json['ARN'] as String?, replicationStatus: (json['ReplicationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationStatusType.fromJson(e as Map)) .toList(), ); @@ -3135,7 +3135,7 @@ class ReplicateSecretToRegionsResponse { return ReplicateSecretToRegionsResponse( arn: json['ARN'] as String?, replicationStatus: (json['ReplicationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationStatusType.fromJson(e as Map)) .toList(), ); @@ -3485,12 +3485,12 @@ class SecretListEntry { ? RotationRulesType.fromJson( json['RotationRules'] as Map) : null, - secretVersionsToStages: (json['SecretVersionsToStages'] - as Map?) - ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + secretVersionsToStages: + (json['SecretVersionsToStages'] as Map?)?.map( + (k, e) => MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3589,7 +3589,7 @@ class SecretValueEntry { secretString: json['SecretString'] as String?, versionId: json['VersionId'] as String?, versionStages: (json['VersionStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3646,13 +3646,13 @@ class SecretVersionsListEntry { return SecretVersionsListEntry( createdDate: timeStampFromJson(json['CreatedDate']), kmsKeyIds: (json['KmsKeyIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastAccessedDate: timeStampFromJson(json['LastAccessedDate']), versionId: json['VersionId'] as String?, versionStages: (json['VersionStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3841,7 +3841,7 @@ class ValidateResourcePolicyResponse { return ValidateResourcePolicyResponse( policyValidationPassed: json['PolicyValidationPassed'] as bool?, validationErrors: (json['ValidationErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationErrorsEntry.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/security_hub/v2018_10_26.dart b/aws_client/lib/src/generated/security_hub/v2018_10_26.dart index 8121a7382..b61543f21 100644 --- a/aws_client/lib/src/generated/security_hub/v2018_10_26.dart +++ b/aws_client/lib/src/generated/security_hub/v2018_10_26.dart @@ -4351,7 +4351,7 @@ class AutomationRulesConfig { factory AutomationRulesConfig.fromJson(Map json) { return AutomationRulesConfig( actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomationRulesAction.fromJson(e as Map)) .toList(), createdAt: timeStampFromJson(json['CreatedAt']), @@ -4445,16 +4445,14 @@ class AutomationRulesFindingFieldsUpdate { ? NoteUpdate.fromJson(json['Note'] as Map) : null, relatedFindings: (json['RelatedFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedFinding.fromJson(e as Map)) .toList(), severity: json['Severity'] != null ? SeverityUpdate.fromJson(json['Severity'] as Map) : null, - types: (json['Types'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + types: + (json['Types'] as List?)?.nonNulls.map((e) => e as String).toList(), userDefinedFields: (json['UserDefinedFields'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), verificationState: (json['VerificationState'] as String?) @@ -4904,157 +4902,157 @@ class AutomationRulesFindingFilters { factory AutomationRulesFindingFilters.fromJson(Map json) { return AutomationRulesFindingFilters( awsAccountId: (json['AwsAccountId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), awsAccountName: (json['AwsAccountName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), companyName: (json['CompanyName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceAssociatedStandardsId: (json['ComplianceAssociatedStandardsId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceSecurityControlId: (json['ComplianceSecurityControlId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceStatus: (json['ComplianceStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), confidence: (json['Confidence'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), createdAt: (json['CreatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), criticality: (json['Criticality'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), description: (json['Description'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), firstObservedAt: (json['FirstObservedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), generatorId: (json['GeneratorId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), id: (json['Id'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), lastObservedAt: (json['LastObservedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), noteText: (json['NoteText'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), noteUpdatedAt: (json['NoteUpdatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), noteUpdatedBy: (json['NoteUpdatedBy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), productArn: (json['ProductArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), productName: (json['ProductName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), recordState: (json['RecordState'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), relatedFindingsId: (json['RelatedFindingsId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), relatedFindingsProductArn: (json['RelatedFindingsProductArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceApplicationArn: (json['ResourceApplicationArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceApplicationName: (json['ResourceApplicationName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceDetailsOther: (json['ResourceDetailsOther'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), resourceId: (json['ResourceId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourcePartition: (json['ResourcePartition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceRegion: (json['ResourceRegion'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), resourceType: (json['ResourceType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), severityLabel: (json['SeverityLabel'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), sourceUrl: (json['SourceUrl'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), title: (json['Title'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), type: (json['Type'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), updatedAt: (json['UpdatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), userDefinedFields: (json['UserDefinedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), verificationState: (json['VerificationState'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), workflowStatus: (json['WorkflowStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), ); @@ -5448,16 +5446,16 @@ class AwsAmazonMqBrokerDetails { : null, publiclyAccessible: json['PubliclyAccessible'] as bool?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), storageType: json['StorageType'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsAmazonMqBrokerUsersDetails.fromJson(e as Map)) .toList(), @@ -5601,10 +5599,8 @@ class AwsAmazonMqBrokerLdapServerMetadataDetails { factory AwsAmazonMqBrokerLdapServerMetadataDetails.fromJson( Map json) { return AwsAmazonMqBrokerLdapServerMetadataDetails( - hosts: (json['Hosts'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + hosts: + (json['Hosts'] as List?)?.nonNulls.map((e) => e as String).toList(), roleBase: json['RoleBase'] as String?, roleName: json['RoleName'] as String?, roleSearchMatching: json['RoleSearchMatching'] as String?, @@ -6071,10 +6067,8 @@ class AwsApiGatewayEndpointConfiguration { factory AwsApiGatewayEndpointConfiguration.fromJson( Map json) { return AwsApiGatewayEndpointConfiguration( - types: (json['Types'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + types: + (json['Types'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6304,7 +6298,7 @@ class AwsApiGatewayRestApiDetails { return AwsApiGatewayRestApiDetails( apiKeySource: json['ApiKeySource'] as String?, binaryMediaTypes: (json['BinaryMediaTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdDate: json['CreatedDate'] as String?, @@ -6507,7 +6501,7 @@ class AwsApiGatewayStageDetails { documentationVersion: json['DocumentationVersion'] as String?, lastUpdatedDate: json['LastUpdatedDate'] as String?, methodSettings: (json['MethodSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsApiGatewayMethodSettings.fromJson(e as Map)) .toList(), @@ -7076,7 +7070,7 @@ class AwsAppSyncGraphQlApiDetails { return AwsAppSyncGraphQlApiDetails( additionalAuthenticationProviders: (json['AdditionalAuthenticationProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsAppSyncGraphQlApiAdditionalAuthenticationProvidersDetails .fromJson(e as Map)) @@ -7591,7 +7585,7 @@ class AwsAutoScalingAutoScalingGroupDetails { Map json) { return AwsAutoScalingAutoScalingGroupDetails( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails .fromJson(e as Map)) .toList(), @@ -7605,7 +7599,7 @@ class AwsAutoScalingAutoScalingGroupDetails { .fromJson(json['LaunchTemplate'] as Map) : null, loadBalancerNames: (json['LoadBalancerNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), mixedInstancesPolicy: json['MixedInstancesPolicy'] != null @@ -7836,7 +7830,7 @@ class AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateDetails { json['LaunchTemplateSpecification'] as Map) : null, overrides: (json['Overrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateOverridesListDetails .fromJson(e as Map)) @@ -8219,7 +8213,7 @@ class AwsAutoScalingLaunchConfigurationDetails { return AwsAutoScalingLaunchConfigurationDetails( associatePublicIpAddress: json['AssociatePublicIpAddress'] as bool?, blockDeviceMappings: (json['BlockDeviceMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails .fromJson(e as Map)) @@ -8227,7 +8221,7 @@ class AwsAutoScalingLaunchConfigurationDetails { classicLinkVpcId: json['ClassicLinkVpcId'] as String?, classicLinkVpcSecurityGroups: (json['ClassicLinkVpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdTime: json['CreatedTime'] as String?, @@ -8249,7 +8243,7 @@ class AwsAutoScalingLaunchConfigurationDetails { placementTenancy: json['PlacementTenancy'] as String?, ramdiskId: json['RamdiskId'] as String?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), spotPrice: json['SpotPrice'] as String?, @@ -8448,13 +8442,13 @@ class AwsBackupBackupPlanBackupPlanDetails { Map json) { return AwsBackupBackupPlanBackupPlanDetails( advancedBackupSettings: (json['AdvancedBackupSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsBackupBackupPlanAdvancedBackupSettingsDetails.fromJson( e as Map)) .toList(), backupPlanName: json['BackupPlanName'] as String?, backupPlanRule: (json['BackupPlanRule'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsBackupBackupPlanRuleDetails.fromJson( e as Map)) .toList(), @@ -8665,7 +8659,7 @@ class AwsBackupBackupPlanRuleDetails { return AwsBackupBackupPlanRuleDetails( completionWindowMinutes: json['CompletionWindowMinutes'] as int?, copyActions: (json['CopyActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsBackupBackupPlanRuleCopyActionsDetails.fromJson( e as Map)) .toList(), @@ -8806,7 +8800,7 @@ class AwsBackupBackupVaultNotificationsDetails { Map json) { return AwsBackupBackupVaultNotificationsDetails( backupVaultEvents: (json['BackupVaultEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), snsTopicArn: json['SnsTopicArn'] as String?, @@ -9454,27 +9448,25 @@ class AwsCertificateManagerCertificateDetails { createdAt: json['CreatedAt'] as String?, domainName: json['DomainName'] as String?, domainValidationOptions: (json['DomainValidationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCertificateManagerCertificateDomainValidationOption.fromJson( e as Map)) .toList(), extendedKeyUsages: (json['ExtendedKeyUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCertificateManagerCertificateExtendedKeyUsage.fromJson( e as Map)) .toList(), failureReason: json['FailureReason'] as String?, importedAt: json['ImportedAt'] as String?, - inUseBy: (json['InUseBy'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inUseBy: + (json['InUseBy'] as List?)?.nonNulls.map((e) => e as String).toList(), issuedAt: json['IssuedAt'] as String?, issuer: json['Issuer'] as String?, keyAlgorithm: json['KeyAlgorithm'] as String?, keyUsages: (json['KeyUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCertificateManagerCertificateKeyUsage.fromJson( e as Map)) .toList(), @@ -9494,7 +9486,7 @@ class AwsCertificateManagerCertificateDetails { status: json['Status'] as String?, subject: json['Subject'] as String?, subjectAlternativeNames: (json['SubjectAlternativeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: json['Type'] as String?, @@ -9608,7 +9600,7 @@ class AwsCertificateManagerCertificateDomainValidationOption { : null, validationDomain: json['ValidationDomain'] as String?, validationEmails: (json['ValidationEmails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), validationMethod: json['ValidationMethod'] as String?, @@ -9794,7 +9786,7 @@ class AwsCertificateManagerCertificateRenewalSummary { Map json) { return AwsCertificateManagerCertificateRenewalSummary( domainValidationOptions: (json['DomainValidationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCertificateManagerCertificateDomainValidationOption.fromJson( e as Map)) @@ -9934,7 +9926,7 @@ class AwsCloudFormationStackDetails { factory AwsCloudFormationStackDetails.fromJson(Map json) { return AwsCloudFormationStackDetails( capabilities: (json['Capabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: json['CreationTime'] as String?, @@ -9947,11 +9939,11 @@ class AwsCloudFormationStackDetails { enableTerminationProtection: json['EnableTerminationProtection'] as bool?, lastUpdatedTime: json['LastUpdatedTime'] as String?, notificationArns: (json['NotificationArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCloudFormationStackOutputsDetails.fromJson( e as Map)) .toList(), @@ -10119,7 +10111,7 @@ class AwsCloudFrontDistributionCacheBehaviors { Map json) { return AwsCloudFrontDistributionCacheBehaviors( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCloudFrontDistributionCacheBehavior.fromJson( e as Map)) .toList(), @@ -10517,10 +10509,7 @@ class AwsCloudFrontDistributionOriginGroupFailoverStatusCodes { factory AwsCloudFrontDistributionOriginGroupFailoverStatusCodes.fromJson( Map json) { return AwsCloudFrontDistributionOriginGroupFailoverStatusCodes( - items: (json['Items'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + items: (json['Items'] as List?)?.nonNulls.map((e) => e as int).toList(), quantity: json['Quantity'] as int?, ); } @@ -10549,7 +10538,7 @@ class AwsCloudFrontDistributionOriginGroups { Map json) { return AwsCloudFrontDistributionOriginGroups( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCloudFrontDistributionOriginGroup.fromJson( e as Map)) .toList(), @@ -10674,10 +10663,8 @@ class AwsCloudFrontDistributionOriginSslProtocols { factory AwsCloudFrontDistributionOriginSslProtocols.fromJson( Map json) { return AwsCloudFrontDistributionOriginSslProtocols( - items: (json['Items'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + items: + (json['Items'] as List?)?.nonNulls.map((e) => e as String).toList(), quantity: json['Quantity'] as int?, ); } @@ -10705,7 +10692,7 @@ class AwsCloudFrontDistributionOrigins { factory AwsCloudFrontDistributionOrigins.fromJson(Map json) { return AwsCloudFrontDistributionOrigins( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCloudFrontDistributionOriginItem.fromJson( e as Map)) .toList(), @@ -11061,7 +11048,7 @@ class AwsCloudWatchAlarmDetails { return AwsCloudWatchAlarmDetails( actionsEnabled: json['ActionsEnabled'] as bool?, alarmActions: (json['AlarmActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), alarmArn: json['AlarmArn'] as String?, @@ -11072,7 +11059,7 @@ class AwsCloudWatchAlarmDetails { comparisonOperator: json['ComparisonOperator'] as String?, datapointsToAlarm: json['DatapointsToAlarm'] as int?, dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCloudWatchAlarmDimensionsDetails.fromJson( e as Map)) .toList(), @@ -11081,13 +11068,13 @@ class AwsCloudWatchAlarmDetails { evaluationPeriods: json['EvaluationPeriods'] as int?, extendedStatistic: json['ExtendedStatistic'] as String?, insufficientDataActions: (json['InsufficientDataActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), metricName: json['MetricName'] as String?, namespace: json['Namespace'] as String?, okActions: (json['OkActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), period: json['Period'] as int?, @@ -11325,7 +11312,7 @@ class AwsCodeBuildProjectDetails { factory AwsCodeBuildProjectDetails.fromJson(Map json) { return AwsCodeBuildProjectDetails( artifacts: (json['Artifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCodeBuildProjectArtifactsDetails.fromJson( e as Map)) .toList(), @@ -11340,7 +11327,7 @@ class AwsCodeBuildProjectDetails { : null, name: json['Name'] as String?, secondaryArtifacts: (json['SecondaryArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCodeBuildProjectArtifactsDetails.fromJson( e as Map)) .toList(), @@ -11454,7 +11441,7 @@ class AwsCodeBuildProjectEnvironment { return AwsCodeBuildProjectEnvironment( certificate: json['Certificate'] as String?, environmentVariables: (json['EnvironmentVariables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails .fromJson(e as Map)) .toList(), @@ -11808,13 +11795,11 @@ class AwsCodeBuildProjectVpcConfig { factory AwsCodeBuildProjectVpcConfig.fromJson(Map json) { return AwsCodeBuildProjectVpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String?, ); } @@ -11866,19 +11851,19 @@ class AwsCorsConfiguration { return AwsCorsConfiguration( allowCredentials: json['AllowCredentials'] as bool?, allowHeaders: (json['AllowHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allowMethods: (json['AllowMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allowOrigins: (json['AllowOrigins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), exposeHeaders: (json['ExposeHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxAge: json['MaxAge'] as int?, @@ -12114,7 +12099,7 @@ class AwsDmsReplicationInstanceDetails { json['ReplicationSubnetGroup'] as Map) : null, vpcSecurityGroups: (json['VpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDmsReplicationInstanceVpcSecurityGroupsDetails.fromJson( e as Map)) @@ -12568,7 +12553,7 @@ class AwsDynamoDbTableDetails { factory AwsDynamoDbTableDetails.fromJson(Map json) { return AwsDynamoDbTableDetails( attributeDefinitions: (json['AttributeDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableAttributeDefinition.fromJson( e as Map)) .toList(), @@ -12579,21 +12564,21 @@ class AwsDynamoDbTableDetails { creationDateTime: json['CreationDateTime'] as String?, deletionProtectionEnabled: json['DeletionProtectionEnabled'] as bool?, globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableGlobalSecondaryIndex.fromJson( e as Map)) .toList(), globalTableVersion: json['GlobalTableVersion'] as String?, itemCount: json['ItemCount'] as int?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableKeySchema.fromJson(e as Map)) .toList(), latestStreamArn: json['LatestStreamArn'] as String?, latestStreamLabel: json['LatestStreamLabel'] as String?, localSecondaryIndexes: (json['LocalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableLocalSecondaryIndex.fromJson( e as Map)) .toList(), @@ -12602,7 +12587,7 @@ class AwsDynamoDbTableDetails { json['ProvisionedThroughput'] as Map) : null, replicas: (json['Replicas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableReplica.fromJson(e as Map)) .toList(), @@ -12743,7 +12728,7 @@ class AwsDynamoDbTableGlobalSecondaryIndex { indexStatus: json['IndexStatus'] as String?, itemCount: json['ItemCount'] as int?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableKeySchema.fromJson(e as Map)) .toList(), @@ -12844,7 +12829,7 @@ class AwsDynamoDbTableLocalSecondaryIndex { indexArn: json['IndexArn'] as String?, indexName: json['IndexName'] as String?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableKeySchema.fromJson(e as Map)) .toList(), @@ -12900,7 +12885,7 @@ class AwsDynamoDbTableProjection { factory AwsDynamoDbTableProjection.fromJson(Map json) { return AwsDynamoDbTableProjection( nonKeyAttributes: (json['NonKeyAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), projectionType: json['ProjectionType'] as String?, @@ -13109,7 +13094,7 @@ class AwsDynamoDbTableReplica { factory AwsDynamoDbTableReplica.fromJson(Map json) { return AwsDynamoDbTableReplica( globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableReplicaGlobalSecondaryIndex.fromJson( e as Map)) .toList(), @@ -13737,7 +13722,7 @@ class AwsEc2ClientVpnEndpointDetails { factory AwsEc2ClientVpnEndpointDetails.fromJson(Map json) { return AwsEc2ClientVpnEndpointDetails( authenticationOptions: (json['AuthenticationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2ClientVpnEndpointAuthenticationOptionsDetails.fromJson( e as Map)) @@ -13758,11 +13743,11 @@ class AwsEc2ClientVpnEndpointDetails { : null, description: json['Description'] as String?, dnsServer: (json['DnsServer'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIdSet: (json['SecurityGroupIdSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), selfServicePortalUrl: json['SelfServicePortalUrl'] as String?, @@ -14008,11 +13993,11 @@ class AwsEc2InstanceDetails { iamInstanceProfileArn: json['IamInstanceProfileArn'] as String?, imageId: json['ImageId'] as String?, ipV4Addresses: (json['IpV4Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ipV6Addresses: (json['IpV6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), keyName: json['KeyName'] as String?, @@ -14026,7 +14011,7 @@ class AwsEc2InstanceDetails { json['Monitoring'] as Map) : null, networkInterfaces: (json['NetworkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2InstanceNetworkInterfacesDetails.fromJson( e as Map)) .toList(), @@ -14612,7 +14597,7 @@ class AwsEc2LaunchTemplateDataDetails { factory AwsEc2LaunchTemplateDataDetails.fromJson(Map json) { return AwsEc2LaunchTemplateDataDetails( blockDeviceMappingSet: (json['BlockDeviceMappingSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.fromJson( e as Map)) @@ -14635,13 +14620,13 @@ class AwsEc2LaunchTemplateDataDetails { disableApiTermination: json['DisableApiTermination'] as bool?, ebsOptimized: json['EbsOptimized'] as bool?, elasticGpuSpecificationSet: (json['ElasticGpuSpecificationSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails .fromJson(e as Map)) .toList(), elasticInferenceAcceleratorSet: (json['ElasticInferenceAcceleratorSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails .fromJson(e as Map)) @@ -14673,7 +14658,7 @@ class AwsEc2LaunchTemplateDataDetails { kernelId: json['KernelId'] as String?, keyName: json['KeyName'] as String?, licenseSet: (json['LicenseSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataLicenseSetDetails.fromJson( e as Map)) .toList(), @@ -14690,7 +14675,7 @@ class AwsEc2LaunchTemplateDataDetails { json['Monitoring'] as Map) : null, networkInterfaceSet: (json['NetworkInterfaceSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.fromJson( e as Map)) @@ -14705,11 +14690,11 @@ class AwsEc2LaunchTemplateDataDetails { : null, ramDiskId: json['RamDiskId'] as String?, securityGroupIdSet: (json['SecurityGroupIdSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupSet: (json['SecurityGroupSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userData: json['UserData'] as String?, @@ -15266,11 +15251,11 @@ class AwsEc2LaunchTemplateDataInstanceRequirementsDetails { .fromJson(json['AcceleratorCount'] as Map) : null, acceleratorManufacturers: (json['AcceleratorManufacturers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), acceleratorNames: (json['AcceleratorNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), acceleratorTotalMemoryMiB: json['AcceleratorTotalMemoryMiB'] != null @@ -15279,7 +15264,7 @@ class AwsEc2LaunchTemplateDataInstanceRequirementsDetails { json['AcceleratorTotalMemoryMiB'] as Map) : null, acceleratorTypes: (json['AcceleratorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), bareMetal: json['BareMetal'] as String?, @@ -15290,20 +15275,20 @@ class AwsEc2LaunchTemplateDataInstanceRequirementsDetails { : null, burstablePerformance: json['BurstablePerformance'] as String?, cpuManufacturers: (json['CpuManufacturers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), excludedInstanceTypes: (json['ExcludedInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), instanceGenerations: (json['InstanceGenerations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), localStorage: json['LocalStorage'] as String?, localStorageTypes: (json['LocalStorageTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), memoryGiBPerVCpu: json['MemoryGiBPerVCpu'] != null @@ -15813,28 +15798,26 @@ class AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails { deleteOnTermination: json['DeleteOnTermination'] as bool?, description: json['Description'] as String?, deviceIndex: json['DeviceIndex'] as int?, - groups: (json['Groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['Groups'] as List?)?.nonNulls.map((e) => e as String).toList(), interfaceType: json['InterfaceType'] as String?, ipv4PrefixCount: json['Ipv4PrefixCount'] as int?, ipv4Prefixes: (json['Ipv4Prefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails .fromJson(e as Map)) .toList(), ipv6AddressCount: json['Ipv6AddressCount'] as int?, ipv6Addresses: (json['Ipv6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails .fromJson(e as Map)) .toList(), ipv6PrefixCount: json['Ipv6PrefixCount'] as int?, ipv6Prefixes: (json['Ipv6Prefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails .fromJson(e as Map)) @@ -15843,7 +15826,7 @@ class AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails { networkInterfaceId: json['NetworkInterfaceId'] as String?, privateIpAddress: json['PrivateIpAddress'] as String?, privateIpAddresses: (json['PrivateIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails .fromJson(e as Map)) @@ -16259,12 +16242,12 @@ class AwsEc2NetworkAclDetails { factory AwsEc2NetworkAclDetails.fromJson(Map json) { return AwsEc2NetworkAclDetails( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2NetworkAclAssociation.fromJson(e as Map)) .toList(), entries: (json['Entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2NetworkAclEntry.fromJson(e as Map)) .toList(), isDefault: json['IsDefault'] as bool?, @@ -16514,20 +16497,20 @@ class AwsEc2NetworkInterfaceDetails { json['Attachment'] as Map) : null, ipV6Addresses: (json['IpV6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2NetworkInterfaceIpV6AddressDetail.fromJson( e as Map)) .toList(), networkInterfaceId: json['NetworkInterfaceId'] as String?, privateIpAddresses: (json['PrivateIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2NetworkInterfacePrivateIpAddressDetail.fromJson( e as Map)) .toList(), publicDnsName: json['PublicDnsName'] as String?, publicIp: json['PublicIp'] as String?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2NetworkInterfaceSecurityGroup.fromJson( e as Map)) .toList(), @@ -16677,17 +16660,17 @@ class AwsEc2RouteTableDetails { factory AwsEc2RouteTableDetails.fromJson(Map json) { return AwsEc2RouteTableDetails( associationSet: (json['AssociationSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociationSetDetails.fromJson(e as Map)) .toList(), ownerId: json['OwnerId'] as String?, propagatingVgwSet: (json['PropagatingVgwSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PropagatingVgwSetDetails.fromJson(e as Map)) .toList(), routeSet: (json['RouteSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteSetDetails.fromJson(e as Map)) .toList(), routeTableId: json['RouteTableId'] as String?, @@ -16747,12 +16730,12 @@ class AwsEc2SecurityGroupDetails { groupId: json['GroupId'] as String?, groupName: json['GroupName'] as String?, ipPermissions: (json['IpPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2SecurityGroupIpPermission.fromJson( e as Map)) .toList(), ipPermissionsEgress: (json['IpPermissionsEgress'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2SecurityGroupIpPermission.fromJson( e as Map)) .toList(), @@ -16842,23 +16825,23 @@ class AwsEc2SecurityGroupIpPermission { fromPort: json['FromPort'] as int?, ipProtocol: json['IpProtocol'] as String?, ipRanges: (json['IpRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2SecurityGroupIpRange.fromJson(e as Map)) .toList(), ipv6Ranges: (json['Ipv6Ranges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2SecurityGroupIpv6Range.fromJson(e as Map)) .toList(), prefixListIds: (json['PrefixListIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2SecurityGroupPrefixListId.fromJson( e as Map)) .toList(), toPort: json['ToPort'] as int?, userIdGroupPairs: (json['UserIdGroupPairs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2SecurityGroupUserIdGroupPair.fromJson( e as Map)) .toList(), @@ -17095,7 +17078,7 @@ class AwsEc2SubnetDetails { defaultForAz: json['DefaultForAz'] as bool?, ipv6CidrBlockAssociationSet: (json['Ipv6CidrBlockAssociationSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ipv6CidrBlockAssociation.fromJson(e as Map)) .toList(), @@ -17219,7 +17202,7 @@ class AwsEc2TransitGatewayDetails { propagationDefaultRouteTableId: json['PropagationDefaultRouteTableId'] as String?, transitGatewayCidrBlocks: (json['TransitGatewayCidrBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpnEcmpSupport: json['VpnEcmpSupport'] as String?, @@ -17427,7 +17410,7 @@ class AwsEc2VolumeDetails { factory AwsEc2VolumeDetails.fromJson(Map json) { return AwsEc2VolumeDetails( attachments: (json['Attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AwsEc2VolumeAttachment.fromJson(e as Map)) .toList(), @@ -17499,13 +17482,13 @@ class AwsEc2VpcDetails { factory AwsEc2VpcDetails.fromJson(Map json) { return AwsEc2VpcDetails( cidrBlockAssociationSet: (json['CidrBlockAssociationSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CidrBlockAssociation.fromJson(e as Map)) .toList(), dhcpOptionsId: json['DhcpOptionsId'] as String?, ipv6CidrBlockAssociationSet: (json['Ipv6CidrBlockAssociationSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ipv6CidrBlockAssociation.fromJson(e as Map)) .toList(), @@ -17601,20 +17584,20 @@ class AwsEc2VpcEndpointServiceDetails { return AwsEc2VpcEndpointServiceDetails( acceptanceRequired: json['AcceptanceRequired'] as bool?, availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), baseEndpointDnsNames: (json['BaseEndpointDnsNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), gatewayLoadBalancerArns: (json['GatewayLoadBalancerArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), managesVpcEndpoints: json['ManagesVpcEndpoints'] as bool?, networkLoadBalancerArns: (json['NetworkLoadBalancerArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), privateDnsName: json['PrivateDnsName'] as String?, @@ -17622,7 +17605,7 @@ class AwsEc2VpcEndpointServiceDetails { serviceName: json['ServiceName'] as String?, serviceState: json['ServiceState'] as String?, serviceType: (json['ServiceType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2VpcEndpointServiceServiceTypeDetails.fromJson( e as Map)) .toList(), @@ -17819,12 +17802,12 @@ class AwsEc2VpcPeeringConnectionVpcInfoDetails { return AwsEc2VpcPeeringConnectionVpcInfoDetails( cidrBlock: json['CidrBlock'] as String?, cidrBlockSet: (json['CidrBlockSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcInfoCidrBlockSetDetails.fromJson(e as Map)) .toList(), ipv6CidrBlockSet: (json['Ipv6CidrBlockSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcInfoIpv6CidrBlockSetDetails.fromJson( e as Map)) .toList(), @@ -17939,7 +17922,7 @@ class AwsEc2VpnConnectionDetails { json['Options'] as Map) : null, routes: (json['Routes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2VpnConnectionRoutesDetails.fromJson( e as Map)) .toList(), @@ -17947,7 +17930,7 @@ class AwsEc2VpnConnectionDetails { transitGatewayId: json['TransitGatewayId'] as String?, type: json['Type'] as String?, vgwTelemetry: (json['VgwTelemetry'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2VpnConnectionVgwTelemetryDetails.fromJson( e as Map)) .toList(), @@ -18003,7 +17986,7 @@ class AwsEc2VpnConnectionOptionsDetails { return AwsEc2VpnConnectionOptionsDetails( staticRoutesOnly: json['StaticRoutesOnly'] as bool?, tunnelOptions: (json['TunnelOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2VpnConnectionOptionsTunnelOptionsDetails.fromJson( e as Map)) .toList(), @@ -18107,33 +18090,33 @@ class AwsEc2VpnConnectionOptionsTunnelOptionsDetails { return AwsEc2VpnConnectionOptionsTunnelOptionsDetails( dpdTimeoutSeconds: json['DpdTimeoutSeconds'] as int?, ikeVersions: (json['IkeVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), outsideIpAddress: json['OutsideIpAddress'] as String?, phase1DhGroupNumbers: (json['Phase1DhGroupNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), phase1EncryptionAlgorithms: (json['Phase1EncryptionAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), phase1IntegrityAlgorithms: (json['Phase1IntegrityAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), phase1LifetimeSeconds: json['Phase1LifetimeSeconds'] as int?, phase2DhGroupNumbers: (json['Phase2DhGroupNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), phase2EncryptionAlgorithms: (json['Phase2EncryptionAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), phase2IntegrityAlgorithms: (json['Phase2IntegrityAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), phase2LifetimeSeconds: json['Phase2LifetimeSeconds'] as int?, @@ -18389,7 +18372,7 @@ class AwsEcrContainerImageDetails { imageDigest: json['ImageDigest'] as String?, imagePublishedAt: json['ImagePublishedAt'] as String?, imageTags: (json['ImageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), registryId: json['RegistryId'] as String?, @@ -18804,13 +18787,13 @@ class AwsEcsClusterDetails { return AwsEcsClusterDetails( activeServicesCount: json['ActiveServicesCount'] as int?, capacityProviders: (json['CapacityProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clusterArn: json['ClusterArn'] as String?, clusterName: json['ClusterName'] as String?, clusterSettings: (json['ClusterSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsClusterClusterSettingsDetails.fromJson( e as Map)) .toList(), @@ -18820,7 +18803,7 @@ class AwsEcsClusterDetails { : null, defaultCapacityProviderStrategy: (json['DefaultCapacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsClusterDefaultCapacityProviderStrategyDetails.fromJson( e as Map)) @@ -18889,7 +18872,7 @@ class AwsEcsContainerDetails { return AwsEcsContainerDetails( image: json['Image'] as String?, mountPoints: (json['MountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsMountPoint.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -19229,7 +19212,7 @@ class AwsEcsServiceDetails { factory AwsEcsServiceDetails.fromJson(Map json) { return AwsEcsServiceDetails( capacityProviderStrategy: (json['CapacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsServiceCapacityProviderStrategyDetails.fromJson( e as Map)) .toList(), @@ -19249,7 +19232,7 @@ class AwsEcsServiceDetails { json['HealthCheckGracePeriodSeconds'] as int?, launchType: json['LaunchType'] as String?, loadBalancers: (json['LoadBalancers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsServiceLoadBalancersDetails.fromJson( e as Map)) .toList(), @@ -19259,12 +19242,12 @@ class AwsEcsServiceDetails { json['NetworkConfiguration'] as Map) : null, placementConstraints: (json['PlacementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsServicePlacementConstraintsDetails.fromJson( e as Map)) .toList(), placementStrategies: (json['PlacementStrategies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsServicePlacementStrategiesDetails.fromJson( e as Map)) .toList(), @@ -19275,7 +19258,7 @@ class AwsEcsServiceDetails { serviceArn: json['ServiceArn'] as String?, serviceName: json['ServiceName'] as String?, serviceRegistries: (json['ServiceRegistries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsServiceServiceRegistriesDetails.fromJson( e as Map)) .toList(), @@ -19429,13 +19412,11 @@ class AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails { return AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails( assignPublicIp: json['AssignPublicIp'] as String?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -19901,50 +19882,48 @@ class AwsEcsTaskDefinitionContainerDefinitionsDetails { factory AwsEcsTaskDefinitionContainerDefinitionsDetails.fromJson( Map json) { return AwsEcsTaskDefinitionContainerDefinitionsDetails( - command: (json['Command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['Command'] as List?)?.nonNulls.map((e) => e as String).toList(), cpu: json['Cpu'] as int?, dependsOn: (json['DependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails.fromJson( e as Map)) .toList(), disableNetworking: json['DisableNetworking'] as bool?, dnsSearchDomains: (json['DnsSearchDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dnsServers: (json['DnsServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dockerLabels: (json['DockerLabels'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), dockerSecurityOptions: (json['DockerSecurityOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), entryPoint: (json['EntryPoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), environment: (json['Environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails .fromJson(e as Map)) .toList(), environmentFiles: (json['EnvironmentFiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails .fromJson(e as Map)) .toList(), essential: json['Essential'] as bool?, extraHosts: (json['ExtraHosts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails .fromJson(e as Map)) .toList(), @@ -19959,10 +19938,8 @@ class AwsEcsTaskDefinitionContainerDefinitionsDetails { hostname: json['Hostname'] as String?, image: json['Image'] as String?, interactive: json['Interactive'] as bool?, - links: (json['Links'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + links: + (json['Links'] as List?)?.nonNulls.map((e) => e as String).toList(), linuxParameters: json['LinuxParameters'] != null ? AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails .fromJson(json['LinuxParameters'] as Map) @@ -19974,13 +19951,13 @@ class AwsEcsTaskDefinitionContainerDefinitionsDetails { memory: json['Memory'] as int?, memoryReservation: json['MemoryReservation'] as int?, mountPoints: (json['MountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails .fromJson(e as Map)) .toList(), name: json['Name'] as String?, portMappings: (json['PortMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails .fromJson(e as Map)) @@ -19993,13 +19970,13 @@ class AwsEcsTaskDefinitionContainerDefinitionsDetails { .fromJson(json['RepositoryCredentials'] as Map) : null, resourceRequirements: (json['ResourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails .fromJson(e as Map)) .toList(), secrets: (json['Secrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails.fromJson( e as Map)) @@ -20007,20 +19984,20 @@ class AwsEcsTaskDefinitionContainerDefinitionsDetails { startTimeout: json['StartTimeout'] as int?, stopTimeout: json['StopTimeout'] as int?, systemControls: (json['SystemControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails .fromJson(e as Map)) .toList(), ulimits: (json['Ulimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails.fromJson( e as Map)) .toList(), user: json['User'] as String?, volumesFrom: (json['VolumesFrom'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails .fromJson(e as Map)) .toList(), @@ -20296,10 +20273,8 @@ class AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails { factory AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.fromJson( Map json) { return AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails( - command: (json['Command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['Command'] as List?)?.nonNulls.map((e) => e as String).toList(), interval: json['Interval'] as int?, retries: json['Retries'] as int?, startPeriod: json['StartPeriod'] as int?, @@ -20376,14 +20351,8 @@ class AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails factory AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails.fromJson( Map json) { return AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails( - add: (json['Add'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - drop: (json['Drop'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + add: (json['Add'] as List?)?.nonNulls.map((e) => e as String).toList(), + drop: (json['Drop'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -20448,7 +20417,7 @@ class AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails { .fromJson(json['Capabilities'] as Map) : null, devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails .fromJson(e as Map)) @@ -20458,7 +20427,7 @@ class AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails { sharedMemorySize: json['SharedMemorySize'] as int?, swappiness: json['Swappiness'] as int?, tmpfs: (json['Tmpfs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails .fromJson(e as Map)) @@ -20511,7 +20480,7 @@ class AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails { containerPath: json['ContainerPath'] as String?, hostPath: json['HostPath'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -20567,7 +20536,7 @@ class AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails { return AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails( containerPath: json['ContainerPath'] as String?, mountOptions: (json['MountOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), size: json['Size'] as int?, @@ -20658,7 +20627,7 @@ class AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails { options: (json['Options'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), secretOptions: (json['SecretOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationSecretOptionsDetails .fromJson(e as Map)) @@ -21167,7 +21136,7 @@ class AwsEcsTaskDefinitionDetails { factory AwsEcsTaskDefinitionDetails.fromJson(Map json) { return AwsEcsTaskDefinitionDetails( containerDefinitions: (json['ContainerDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsDetails.fromJson( e as Map)) .toList(), @@ -21175,7 +21144,7 @@ class AwsEcsTaskDefinitionDetails { executionRoleArn: json['ExecutionRoleArn'] as String?, family: json['Family'] as String?, inferenceAccelerators: (json['InferenceAccelerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionInferenceAcceleratorsDetails.fromJson( e as Map)) .toList(), @@ -21184,7 +21153,7 @@ class AwsEcsTaskDefinitionDetails { networkMode: json['NetworkMode'] as String?, pidMode: json['PidMode'] as String?, placementConstraints: (json['PlacementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionPlacementConstraintsDetails.fromJson( e as Map)) .toList(), @@ -21193,13 +21162,13 @@ class AwsEcsTaskDefinitionDetails { json['ProxyConfiguration'] as Map) : null, requiresCompatibilities: (json['RequiresCompatibilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: json['Status'] as String?, taskRoleArn: json['TaskRoleArn'] as String?, volumes: (json['Volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionVolumesDetails.fromJson( e as Map)) .toList(), @@ -21334,7 +21303,7 @@ class AwsEcsTaskDefinitionProxyConfigurationDetails { containerName: json['ContainerName'] as String?, proxyConfigurationProperties: (json['ProxyConfigurationProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails .fromJson(e as Map)) @@ -21676,7 +21645,7 @@ class AwsEcsTaskDetails { return AwsEcsTaskDetails( clusterArn: json['ClusterArn'] as String?, containers: (json['Containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AwsEcsContainerDetails.fromJson(e as Map)) .toList(), @@ -21687,7 +21656,7 @@ class AwsEcsTaskDetails { taskDefinitionArn: json['TaskDefinitionArn'] as String?, version: json['Version'] as String?, volumes: (json['Volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskVolumeDetails.fromJson(e as Map)) .toList(), @@ -21875,7 +21844,7 @@ class AwsEfsAccessPointPosixUserDetails { return AwsEfsAccessPointPosixUserDetails( gid: json['Gid'] as String?, secondaryGids: (json['SecondaryGids'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), uid: json['Uid'] as String?, @@ -22117,10 +22086,8 @@ class AwsEksClusterLoggingClusterLoggingDetails { Map json) { return AwsEksClusterLoggingClusterLoggingDetails( enabled: json['Enabled'] as bool?, - types: (json['Types'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + types: + (json['Types'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -22146,7 +22113,7 @@ class AwsEksClusterLoggingDetails { factory AwsEksClusterLoggingDetails.fromJson(Map json) { return AwsEksClusterLoggingDetails( clusterLogging: (json['ClusterLogging'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEksClusterLoggingClusterLoggingDetails.fromJson( e as Map)) .toList(), @@ -22188,11 +22155,11 @@ class AwsEksClusterResourcesVpcConfigDetails { return AwsEksClusterResourcesVpcConfigDetails( endpointPublicAccess: json['EndpointPublicAccess'] as bool?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -22321,13 +22288,13 @@ class AwsElasticBeanstalkEnvironmentDetails { environmentArn: json['EnvironmentArn'] as String?, environmentId: json['EnvironmentId'] as String?, environmentLinks: (json['EnvironmentLinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElasticBeanstalkEnvironmentEnvironmentLink.fromJson( e as Map)) .toList(), environmentName: json['EnvironmentName'] as String?, optionSettings: (json['OptionSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElasticBeanstalkEnvironmentOptionSetting.fromJson( e as Map)) .toList(), @@ -23066,15 +23033,15 @@ class AwsElasticsearchDomainVPCOptions { factory AwsElasticsearchDomainVPCOptions.fromJson(Map json) { return AwsElasticsearchDomainVPCOptions( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vPCId: json['VPCId'] as String?, @@ -23292,7 +23259,7 @@ class AwsElbLoadBalancerAttributes { json['AccessLog'] as Map) : null, additionalAttributes: (json['AdditionalAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbLoadBalancerAdditionalAttribute.fromJson( e as Map)) .toList(), @@ -23348,7 +23315,7 @@ class AwsElbLoadBalancerBackendServerDescription { return AwsElbLoadBalancerBackendServerDescription( instancePort: json['InstancePort'] as int?, policyNames: (json['PolicyNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -23560,11 +23527,11 @@ class AwsElbLoadBalancerDetails { factory AwsElbLoadBalancerDetails.fromJson(Map json) { return AwsElbLoadBalancerDetails( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), backendServerDescriptions: (json['BackendServerDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbLoadBalancerBackendServerDescription.fromJson( e as Map)) .toList(), @@ -23577,12 +23544,12 @@ class AwsElbLoadBalancerDetails { json['HealthCheck'] as Map) : null, instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbLoadBalancerInstance.fromJson(e as Map)) .toList(), listenerDescriptions: (json['ListenerDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbLoadBalancerListenerDescription.fromJson( e as Map)) .toList(), @@ -23597,17 +23564,15 @@ class AwsElbLoadBalancerDetails { : null, scheme: json['Scheme'] as String?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceSecurityGroup: json['SourceSecurityGroup'] != null ? AwsElbLoadBalancerSourceSecurityGroup.fromJson( json['SourceSecurityGroup'] as Map) : null, - subnets: (json['Subnets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['Subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String?, ); } @@ -23834,7 +23799,7 @@ class AwsElbLoadBalancerListenerDescription { json['Listener'] as Map) : null, policyNames: (json['PolicyNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -23873,17 +23838,17 @@ class AwsElbLoadBalancerPolicies { return AwsElbLoadBalancerPolicies( appCookieStickinessPolicies: (json['AppCookieStickinessPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbAppCookieStickinessPolicy.fromJson( e as Map)) .toList(), lbCookieStickinessPolicies: (json['LbCookieStickinessPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbLbCookieStickinessPolicy.fromJson( e as Map)) .toList(), otherPolicies: (json['OtherPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -24046,7 +24011,7 @@ class AwsElbv2LoadBalancerDetails { factory AwsElbv2LoadBalancerDetails.fromJson(Map json) { return AwsElbv2LoadBalancerDetails( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailabilityZone.fromJson(e as Map)) .toList(), canonicalHostedZoneId: json['CanonicalHostedZoneId'] as String?, @@ -24054,13 +24019,13 @@ class AwsElbv2LoadBalancerDetails { dNSName: json['DNSName'] as String?, ipAddressType: json['IpAddressType'] as String?, loadBalancerAttributes: (json['LoadBalancerAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbv2LoadBalancerAttribute.fromJson(e as Map)) .toList(), scheme: json['Scheme'] as String?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), state: json['State'] != null @@ -24203,7 +24168,7 @@ class AwsEventsEndpointDetails { endpointId: json['EndpointId'] as String?, endpointUrl: json['EndpointUrl'] as String?, eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEventsEndpointEventBusesDetails.fromJson( e as Map)) .toList(), @@ -24840,7 +24805,7 @@ class AwsGuardDutyDetectorDetails { json['DataSources'] as Map) : null, features: (json['Features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsGuardDutyDetectorFeaturesDetails.fromJson( e as Map)) .toList(), @@ -25266,7 +25231,7 @@ class AwsIamGroupDetails { factory AwsIamGroupDetails.fromJson(Map json) { return AwsIamGroupDetails( attachedManagedPolicies: (json['AttachedManagedPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamAttachedManagedPolicy.fromJson(e as Map)) .toList(), @@ -25274,7 +25239,7 @@ class AwsIamGroupDetails { groupId: json['GroupId'] as String?, groupName: json['GroupName'] as String?, groupPolicyList: (json['GroupPolicyList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamGroupPolicy.fromJson(e as Map)) .toList(), path: json['Path'] as String?, @@ -25388,7 +25353,7 @@ class AwsIamInstanceProfile { instanceProfileName: json['InstanceProfileName'] as String?, path: json['Path'] as String?, roles: (json['Roles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamInstanceProfileRole.fromJson(e as Map)) .toList(), @@ -25653,7 +25618,7 @@ class AwsIamPolicyDetails { policyId: json['PolicyId'] as String?, policyName: json['PolicyName'] as String?, policyVersionList: (json['PolicyVersionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamPolicyVersion.fromJson(e as Map)) .toList(), updateDate: json['UpdateDate'] as String?, @@ -25831,13 +25796,13 @@ class AwsIamRoleDetails { return AwsIamRoleDetails( assumeRolePolicyDocument: json['AssumeRolePolicyDocument'] as String?, attachedManagedPolicies: (json['AttachedManagedPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamAttachedManagedPolicy.fromJson(e as Map)) .toList(), createDate: json['CreateDate'] as String?, instanceProfileList: (json['InstanceProfileList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamInstanceProfile.fromJson(e as Map)) .toList(), maxSessionDuration: json['MaxSessionDuration'] as int?, @@ -25849,7 +25814,7 @@ class AwsIamRoleDetails { roleId: json['RoleId'] as String?, roleName: json['RoleName'] as String?, rolePolicyList: (json['RolePolicyList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamRolePolicy.fromJson(e as Map)) .toList(), ); @@ -25976,13 +25941,13 @@ class AwsIamUserDetails { factory AwsIamUserDetails.fromJson(Map json) { return AwsIamUserDetails( attachedManagedPolicies: (json['AttachedManagedPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamAttachedManagedPolicy.fromJson(e as Map)) .toList(), createDate: json['CreateDate'] as String?, groupList: (json['GroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), path: json['Path'] as String?, @@ -25993,7 +25958,7 @@ class AwsIamUserDetails { userId: json['UserId'] as String?, userName: json['UserName'] as String?, userPolicyList: (json['UserPolicyList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamUserPolicy.fromJson(e as Map)) .toList(), ); @@ -26458,7 +26423,7 @@ class AwsLambdaFunctionDetails { factory AwsLambdaFunctionDetails.fromJson(Map json) { return AwsLambdaFunctionDetails( architectures: (json['Architectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), code: json['Code'] != null @@ -26478,7 +26443,7 @@ class AwsLambdaFunctionDetails { kmsKeyArn: json['KmsKeyArn'] as String?, lastModified: json['LastModified'] as String?, layers: (json['Layers'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AwsLambdaFunctionLayer.fromJson(e as Map)) .toList(), @@ -26685,11 +26650,11 @@ class AwsLambdaFunctionVpcConfig { factory AwsLambdaFunctionVpcConfig.fromJson(Map json) { return AwsLambdaFunctionVpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -26773,7 +26738,7 @@ class AwsLambdaLayerVersionDetails { factory AwsLambdaLayerVersionDetails.fromJson(Map json) { return AwsLambdaLayerVersionDetails( compatibleRuntimes: (json['CompatibleRuntimes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdDate: json['CreatedDate'] as String?, @@ -26978,7 +26943,7 @@ class AwsMskClusterClusterInfoClientAuthenticationTlsDetails { return AwsMskClusterClusterInfoClientAuthenticationTlsDetails( certificateAuthorityArnList: (json['CertificateAuthorityArnList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), enabled: json['Enabled'] as bool?, @@ -27285,7 +27250,7 @@ class AwsNetworkFirewallFirewallDetails { json['FirewallPolicyChangeProtection'] as bool?, subnetChangeProtection: json['SubnetChangeProtection'] as bool?, subnetMappings: (json['SubnetMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsNetworkFirewallFirewallSubnetMappingsDetails.fromJson( e as Map)) .toList(), @@ -28166,11 +28131,11 @@ class AwsOpenSearchServiceDomainVpcOptionsDetails { Map json) { return AwsOpenSearchServiceDomainVpcOptionsDetails( securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -28492,13 +28457,13 @@ class AwsRdsDbClusterDetails { activityStreamStatus: json['ActivityStreamStatus'] as String?, allocatedStorage: json['AllocatedStorage'] as int?, associatedRoles: (json['AssociatedRoles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbClusterAssociatedRole.fromJson(e as Map)) .toList(), autoMinorVersionUpgrade: json['AutoMinorVersionUpgrade'] as bool?, availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), backupRetentionPeriod: json['BackupRetentionPeriod'] as int?, @@ -28506,18 +28471,18 @@ class AwsRdsDbClusterDetails { copyTagsToSnapshot: json['CopyTagsToSnapshot'] as bool?, crossAccountClone: json['CrossAccountClone'] as bool?, customEndpoints: (json['CustomEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), databaseName: json['DatabaseName'] as String?, dbClusterIdentifier: json['DbClusterIdentifier'] as String?, dbClusterMembers: (json['DbClusterMembers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbClusterMember.fromJson(e as Map)) .toList(), dbClusterOptionGroupMemberships: (json['DbClusterOptionGroupMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbClusterOptionGroupMembership.fromJson( e as Map)) .toList(), @@ -28526,13 +28491,13 @@ class AwsRdsDbClusterDetails { dbSubnetGroup: json['DbSubnetGroup'] as String?, deletionProtection: json['DeletionProtection'] as bool?, domainMemberships: (json['DomainMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbDomainMembership.fromJson(e as Map)) .toList(), enabledCloudWatchLogsExports: (json['EnabledCloudWatchLogsExports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), endpoint: json['Endpoint'] as String?, @@ -28550,14 +28515,14 @@ class AwsRdsDbClusterDetails { preferredBackupWindow: json['PreferredBackupWindow'] as String?, preferredMaintenanceWindow: json['PreferredMaintenanceWindow'] as String?, readReplicaIdentifiers: (json['ReadReplicaIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), readerEndpoint: json['ReaderEndpoint'] as String?, status: json['Status'] as String?, storageEncrypted: json['StorageEncrypted'] as bool?, vpcSecurityGroups: (json['VpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbInstanceVpcSecurityGroup.fromJson( e as Map)) .toList(), @@ -28768,7 +28733,7 @@ class AwsRdsDbClusterSnapshotDbClusterSnapshotAttribute { return AwsRdsDbClusterSnapshotDbClusterSnapshotAttribute( attributeName: json['AttributeName'] as String?, attributeValues: (json['AttributeValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -28930,14 +28895,14 @@ class AwsRdsDbClusterSnapshotDetails { return AwsRdsDbClusterSnapshotDetails( allocatedStorage: json['AllocatedStorage'] as int?, availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clusterCreateTime: json['ClusterCreateTime'] as String?, dbClusterIdentifier: json['DbClusterIdentifier'] as String?, dbClusterSnapshotAttributes: (json['DbClusterSnapshotAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbClusterSnapshotDbClusterSnapshotAttribute.fromJson( e as Map)) @@ -29473,7 +29438,7 @@ class AwsRdsDbInstanceDetails { return AwsRdsDbInstanceDetails( allocatedStorage: json['AllocatedStorage'] as int?, associatedRoles: (json['AssociatedRoles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbInstanceAssociatedRole.fromJson( e as Map)) .toList(), @@ -29490,12 +29455,12 @@ class AwsRdsDbInstanceDetails { dbInstancePort: json['DbInstancePort'] as int?, dbInstanceStatus: json['DbInstanceStatus'] as String?, dbParameterGroups: (json['DbParameterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AwsRdsDbParameterGroup.fromJson(e as Map)) .toList(), dbSecurityGroups: (json['DbSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dbSubnetGroup: json['DbSubnetGroup'] != null @@ -29505,13 +29470,13 @@ class AwsRdsDbInstanceDetails { dbiResourceId: json['DbiResourceId'] as String?, deletionProtection: json['DeletionProtection'] as bool?, domainMemberships: (json['DomainMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbDomainMembership.fromJson(e as Map)) .toList(), enabledCloudWatchLogsExports: (json['EnabledCloudWatchLogsExports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), endpoint: json['Endpoint'] != null @@ -29539,7 +29504,7 @@ class AwsRdsDbInstanceDetails { monitoringRoleArn: json['MonitoringRoleArn'] as String?, multiAz: json['MultiAz'] as bool?, optionGroupMemberships: (json['OptionGroupMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbOptionGroupMembership.fromJson(e as Map)) .toList(), @@ -29555,7 +29520,7 @@ class AwsRdsDbInstanceDetails { preferredBackupWindow: json['PreferredBackupWindow'] as String?, preferredMaintenanceWindow: json['PreferredMaintenanceWindow'] as String?, processorFeatures: (json['ProcessorFeatures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbProcessorFeature.fromJson(e as Map)) .toList(), @@ -29563,19 +29528,19 @@ class AwsRdsDbInstanceDetails { publiclyAccessible: json['PubliclyAccessible'] as bool?, readReplicaDBClusterIdentifiers: (json['ReadReplicaDBClusterIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), readReplicaDBInstanceIdentifiers: (json['ReadReplicaDBInstanceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), readReplicaSourceDBInstanceIdentifier: json['ReadReplicaSourceDBInstanceIdentifier'] as String?, secondaryAvailabilityZone: json['SecondaryAvailabilityZone'] as String?, statusInfos: (json['StatusInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbStatusInfo.fromJson(e as Map)) .toList(), storageEncrypted: json['StorageEncrypted'] as bool?, @@ -29583,7 +29548,7 @@ class AwsRdsDbInstanceDetails { tdeCredentialArn: json['TdeCredentialArn'] as String?, timezone: json['Timezone'] as String?, vpcSecurityGroups: (json['VpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbInstanceVpcSecurityGroup.fromJson( e as Map)) .toList(), @@ -29952,7 +29917,7 @@ class AwsRdsDbPendingModifiedValues { : null, port: json['Port'] as int?, processorFeatures: (json['ProcessorFeatures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbProcessorFeature.fromJson(e as Map)) .toList(), @@ -30071,12 +30036,12 @@ class AwsRdsDbSecurityGroupDetails { dbSecurityGroupDescription: json['DbSecurityGroupDescription'] as String?, dbSecurityGroupName: json['DbSecurityGroupName'] as String?, ec2SecurityGroups: (json['Ec2SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbSecurityGroupEc2SecurityGroup.fromJson( e as Map)) .toList(), ipRanges: (json['IpRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbSecurityGroupIpRange.fromJson(e as Map)) .toList(), @@ -30386,7 +30351,7 @@ class AwsRdsDbSnapshotDetails { percentProgress: json['PercentProgress'] as int?, port: json['Port'] as int?, processorFeatures: (json['ProcessorFeatures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbProcessorFeature.fromJson(e as Map)) .toList(), @@ -30548,7 +30513,7 @@ class AwsRdsDbSubnetGroup { dbSubnetGroupName: json['DbSubnetGroupName'] as String?, subnetGroupStatus: json['SubnetGroupStatus'] as String?, subnets: (json['Subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbSubnetGroupSubnet.fromJson(e as Map)) .toList(), @@ -30725,13 +30690,13 @@ class AwsRdsEventSubscriptionDetails { customerAwsId: json['CustomerAwsId'] as String?, enabled: json['Enabled'] as bool?, eventCategoriesList: (json['EventCategoriesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), eventSubscriptionArn: json['EventSubscriptionArn'] as String?, snsTopicArn: json['SnsTopicArn'] as String?, sourceIdsList: (json['SourceIdsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceType: json['SourceType'] as String?, @@ -30786,11 +30751,11 @@ class AwsRdsPendingCloudWatchLogsExports { Map json) { return AwsRdsPendingCloudWatchLogsExports( logTypesToDisable: (json['LogTypesToDisable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), logTypesToEnable: (json['LogTypesToEnable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -30866,7 +30831,7 @@ class AwsRedshiftClusterClusterParameterGroup { Map json) { return AwsRedshiftClusterClusterParameterGroup( clusterParameterStatusList: (json['ClusterParameterStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterClusterParameterStatus.fromJson( e as Map)) .toList(), @@ -31472,19 +31437,19 @@ class AwsRedshiftClusterDetails { clusterCreateTime: json['ClusterCreateTime'] as String?, clusterIdentifier: json['ClusterIdentifier'] as String?, clusterNodes: (json['ClusterNodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterClusterNode.fromJson(e as Map)) .toList(), clusterParameterGroups: (json['ClusterParameterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterClusterParameterGroup.fromJson( e as Map)) .toList(), clusterPublicKey: json['ClusterPublicKey'] as String?, clusterRevisionNumber: json['ClusterRevisionNumber'] as String?, clusterSecurityGroups: (json['ClusterSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterClusterSecurityGroup.fromJson( e as Map)) .toList(), @@ -31497,7 +31462,7 @@ class AwsRedshiftClusterDetails { clusterVersion: json['ClusterVersion'] as String?, dBName: json['DBName'] as String?, deferredMaintenanceWindows: (json['DeferredMaintenanceWindows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterDeferredMaintenanceWindow.fromJson( e as Map)) .toList(), @@ -31522,7 +31487,7 @@ class AwsRedshiftClusterDetails { json['HsmStatus'] as Map) : null, iamRoles: (json['IamRoles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterIamRole.fromJson(e as Map)) .toList(), @@ -31540,7 +31505,7 @@ class AwsRedshiftClusterDetails { nodeType: json['NodeType'] as String?, numberOfNodes: json['NumberOfNodes'] as int?, pendingActions: (json['PendingActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), pendingModifiedValues: json['PendingModifiedValues'] != null @@ -31561,7 +31526,7 @@ class AwsRedshiftClusterDetails { snapshotScheduleState: json['SnapshotScheduleState'] as String?, vpcId: json['VpcId'] as String?, vpcSecurityGroups: (json['VpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterVpcSecurityGroup.fromJson( e as Map)) .toList(), @@ -32257,7 +32222,7 @@ class AwsRoute53HostedZoneDetails { json['HostedZone'] as Map) : null, nameServers: (json['NameServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), queryLoggingConfig: json['QueryLoggingConfig'] != null @@ -32265,7 +32230,7 @@ class AwsRoute53HostedZoneDetails { json['QueryLoggingConfig'] as Map) : null, vpcs: (json['Vpcs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRoute53HostedZoneVpcDetails.fromJson( e as Map)) .toList(), @@ -32561,7 +32526,7 @@ class AwsS3BucketBucketLifecycleConfigurationDetails { Map json) { return AwsS3BucketBucketLifecycleConfigurationDetails( rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketBucketLifecycleConfigurationRulesDetails.fromJson( e as Map)) @@ -32715,7 +32680,7 @@ class AwsS3BucketBucketLifecycleConfigurationRulesDetails { json['NoncurrentVersionExpirationInDays'] as int?, noncurrentVersionTransitions: (json['NoncurrentVersionTransitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails .fromJson(e as Map)) @@ -32723,7 +32688,7 @@ class AwsS3BucketBucketLifecycleConfigurationRulesDetails { prefix: json['Prefix'] as String?, status: json['Status'] as String?, transitions: (json['Transitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails .fromJson(e as Map)) @@ -32822,7 +32787,7 @@ class AwsS3BucketBucketLifecycleConfigurationRulesFilterPredicateDetails { Map json) { return AwsS3BucketBucketLifecycleConfigurationRulesFilterPredicateDetails( operands: (json['Operands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketBucketLifecycleConfigurationRulesFilterPredicateOperandsDetails .fromJson(e as Map)) @@ -33341,7 +33306,7 @@ class AwsS3BucketNotificationConfiguration { Map json) { return AwsS3BucketNotificationConfiguration( configurations: (json['Configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketNotificationConfigurationDetail.fromJson( e as Map)) .toList(), @@ -33396,10 +33361,8 @@ class AwsS3BucketNotificationConfigurationDetail { Map json) { return AwsS3BucketNotificationConfigurationDetail( destination: json['Destination'] as String?, - events: (json['Events'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + events: + (json['Events'] as List?)?.nonNulls.map((e) => e as String).toList(), filter: json['Filter'] != null ? AwsS3BucketNotificationConfigurationFilter.fromJson( json['Filter'] as Map) @@ -33463,7 +33426,7 @@ class AwsS3BucketNotificationConfigurationS3KeyFilter { Map json) { return AwsS3BucketNotificationConfigurationS3KeyFilter( filterRules: (json['FilterRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketNotificationConfigurationS3KeyFilterRule.fromJson( e as Map)) @@ -33683,7 +33646,7 @@ class AwsS3BucketServerSideEncryptionConfiguration { Map json) { return AwsS3BucketServerSideEncryptionConfiguration( rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketServerSideEncryptionRule.fromJson( e as Map)) .toList(), @@ -33763,7 +33726,7 @@ class AwsS3BucketWebsiteConfiguration { json['RedirectAllRequestsTo'] as Map) : null, routingRules: (json['RoutingRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketWebsiteConfigurationRoutingRule.fromJson( e as Map)) .toList(), @@ -34163,11 +34126,11 @@ class AwsSageMakerNotebookInstanceDetails { Map json) { return AwsSageMakerNotebookInstanceDetails( acceleratorTypes: (json['AcceleratorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), additionalCodeRepositories: (json['AdditionalCodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultCodeRepository: json['DefaultCodeRepository'] as String?, @@ -34191,7 +34154,7 @@ class AwsSageMakerNotebookInstanceDetails { roleArn: json['RoleArn'] as String?, rootAccess: json['RootAccess'] as String?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetId: json['SubnetId'] as String?, @@ -34833,7 +34796,7 @@ class AwsSecurityFinding { id: json['Id'] as String, productArn: json['ProductArn'] as String, resources: (json['Resources'] as List) - .whereNotNull() + .nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), schemaVersion: json['SchemaVersion'] as String, @@ -34860,14 +34823,14 @@ class AwsSecurityFinding { : null, lastObservedAt: json['LastObservedAt'] as String?, malware: (json['Malware'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Malware.fromJson(e as Map)) .toList(), network: json['Network'] != null ? Network.fromJson(json['Network'] as Map) : null, networkPath: (json['NetworkPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkPathComponent.fromJson(e as Map)) .toList(), note: json['Note'] != null @@ -34887,7 +34850,7 @@ class AwsSecurityFinding { (json['RecordState'] as String?)?.let(RecordState.fromString), region: json['Region'] as String?, relatedFindings: (json['RelatedFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedFinding.fromJson(e as Map)) .toList(), remediation: json['Remediation'] != null @@ -34899,23 +34862,21 @@ class AwsSecurityFinding { : null, sourceUrl: json['SourceUrl'] as String?, threatIntelIndicators: (json['ThreatIntelIndicators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThreatIntelIndicator.fromJson(e as Map)) .toList(), threats: (json['Threats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Threat.fromJson(e as Map)) .toList(), - types: (json['Types'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + types: + (json['Types'] as List?)?.nonNulls.map((e) => e as String).toList(), userDefinedFields: (json['UserDefinedFields'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), verificationState: (json['VerificationState'] as String?) ?.let(VerificationState.fromString), vulnerabilities: (json['Vulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Vulnerability.fromJson(e as Map)) .toList(), workflow: json['Workflow'] != null @@ -35780,448 +35741,448 @@ class AwsSecurityFindingFilters { factory AwsSecurityFindingFilters.fromJson(Map json) { return AwsSecurityFindingFilters( awsAccountId: (json['AwsAccountId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), awsAccountName: (json['AwsAccountName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), companyName: (json['CompanyName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceAssociatedStandardsId: (json['ComplianceAssociatedStandardsId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceSecurityControlId: (json['ComplianceSecurityControlId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceSecurityControlParametersName: (json['ComplianceSecurityControlParametersName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceSecurityControlParametersValue: (json['ComplianceSecurityControlParametersValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceStatus: (json['ComplianceStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), confidence: (json['Confidence'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), createdAt: (json['CreatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), criticality: (json['Criticality'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), description: (json['Description'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingProviderFieldsConfidence: (json['FindingProviderFieldsConfidence'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), findingProviderFieldsCriticality: (json['FindingProviderFieldsCriticality'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), findingProviderFieldsRelatedFindingsId: (json['FindingProviderFieldsRelatedFindingsId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingProviderFieldsRelatedFindingsProductArn: (json['FindingProviderFieldsRelatedFindingsProductArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingProviderFieldsSeverityLabel: (json['FindingProviderFieldsSeverityLabel'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingProviderFieldsSeverityOriginal: (json['FindingProviderFieldsSeverityOriginal'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingProviderFieldsTypes: (json['FindingProviderFieldsTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), firstObservedAt: (json['FirstObservedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), generatorId: (json['GeneratorId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), id: (json['Id'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), keyword: (json['Keyword'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeywordFilter.fromJson(e as Map)) .toList(), lastObservedAt: (json['LastObservedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), malwareName: (json['MalwareName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), malwarePath: (json['MalwarePath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), malwareState: (json['MalwareState'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), malwareType: (json['MalwareType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), networkDestinationDomain: (json['NetworkDestinationDomain'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), networkDestinationIpV4: (json['NetworkDestinationIpV4'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpFilter.fromJson(e as Map)) .toList(), networkDestinationIpV6: (json['NetworkDestinationIpV6'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpFilter.fromJson(e as Map)) .toList(), networkDestinationPort: (json['NetworkDestinationPort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), networkDirection: (json['NetworkDirection'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), networkProtocol: (json['NetworkProtocol'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), networkSourceDomain: (json['NetworkSourceDomain'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), networkSourceIpV4: (json['NetworkSourceIpV4'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpFilter.fromJson(e as Map)) .toList(), networkSourceIpV6: (json['NetworkSourceIpV6'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpFilter.fromJson(e as Map)) .toList(), networkSourceMac: (json['NetworkSourceMac'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), networkSourcePort: (json['NetworkSourcePort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), noteText: (json['NoteText'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), noteUpdatedAt: (json['NoteUpdatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), noteUpdatedBy: (json['NoteUpdatedBy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), processLaunchedAt: (json['ProcessLaunchedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), processName: (json['ProcessName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), processParentPid: (json['ProcessParentPid'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), processPath: (json['ProcessPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), processPid: (json['ProcessPid'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), processTerminatedAt: (json['ProcessTerminatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), productArn: (json['ProductArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), productFields: (json['ProductFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), productName: (json['ProductName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), recommendationText: (json['RecommendationText'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), recordState: (json['RecordState'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), region: (json['Region'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), relatedFindingsId: (json['RelatedFindingsId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), relatedFindingsProductArn: (json['RelatedFindingsProductArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceApplicationArn: (json['ResourceApplicationArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceApplicationName: (json['ResourceApplicationName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceIamInstanceProfileArn: (json['ResourceAwsEc2InstanceIamInstanceProfileArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceImageId: (json['ResourceAwsEc2InstanceImageId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceIpV4Addresses: (json['ResourceAwsEc2InstanceIpV4Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceIpV6Addresses: (json['ResourceAwsEc2InstanceIpV6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceKeyName: (json['ResourceAwsEc2InstanceKeyName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceLaunchedAt: (json['ResourceAwsEc2InstanceLaunchedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceSubnetId: (json['ResourceAwsEc2InstanceSubnetId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceType: (json['ResourceAwsEc2InstanceType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceVpcId: (json['ResourceAwsEc2InstanceVpcId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsIamAccessKeyCreatedAt: (json['ResourceAwsIamAccessKeyCreatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), resourceAwsIamAccessKeyPrincipalName: (json['ResourceAwsIamAccessKeyPrincipalName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsIamAccessKeyStatus: (json['ResourceAwsIamAccessKeyStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsIamAccessKeyUserName: (json['ResourceAwsIamAccessKeyUserName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsIamUserUserName: (json['ResourceAwsIamUserUserName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsS3BucketOwnerId: (json['ResourceAwsS3BucketOwnerId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsS3BucketOwnerName: (json['ResourceAwsS3BucketOwnerName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceContainerImageId: (json['ResourceContainerImageId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceContainerImageName: (json['ResourceContainerImageName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceContainerLaunchedAt: (json['ResourceContainerLaunchedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), resourceContainerName: (json['ResourceContainerName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceDetailsOther: (json['ResourceDetailsOther'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), resourceId: (json['ResourceId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourcePartition: (json['ResourcePartition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceRegion: (json['ResourceRegion'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), resourceType: (json['ResourceType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), sample: (json['Sample'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BooleanFilter.fromJson(e as Map)) .toList(), severityLabel: (json['SeverityLabel'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), severityNormalized: (json['SeverityNormalized'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), severityProduct: (json['SeverityProduct'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), sourceUrl: (json['SourceUrl'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), threatIntelIndicatorCategory: (json['ThreatIntelIndicatorCategory'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), threatIntelIndicatorLastObservedAt: (json['ThreatIntelIndicatorLastObservedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), threatIntelIndicatorSource: (json['ThreatIntelIndicatorSource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), threatIntelIndicatorSourceUrl: (json['ThreatIntelIndicatorSourceUrl'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), threatIntelIndicatorType: (json['ThreatIntelIndicatorType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), threatIntelIndicatorValue: (json['ThreatIntelIndicatorValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), title: (json['Title'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), type: (json['Type'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), updatedAt: (json['UpdatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), userDefinedFields: (json['UserDefinedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), verificationState: (json['VerificationState'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), vulnerabilitiesExploitAvailable: (json['VulnerabilitiesExploitAvailable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), vulnerabilitiesFixAvailable: (json['VulnerabilitiesFixAvailable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), workflowState: (json['WorkflowState'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), workflowStatus: (json['WorkflowStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), ); @@ -36625,7 +36586,7 @@ class AwsSnsTopicDetails { sqsFailureFeedbackRoleArn: json['SqsFailureFeedbackRoleArn'] as String?, sqsSuccessFeedbackRoleArn: json['SqsSuccessFeedbackRoleArn'] as String?, subscription: (json['Subscription'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsSnsTopicSubscription.fromJson(e as Map)) .toList(), @@ -37181,7 +37142,7 @@ class AwsStepFunctionStateMachineLoggingConfigurationDetails { Map json) { return AwsStepFunctionStateMachineLoggingConfigurationDetails( destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsStepFunctionStateMachineLoggingConfigurationDestinationsDetails .fromJson(e as Map)) @@ -37268,7 +37229,7 @@ class AwsWafRateBasedRuleDetails { factory AwsWafRateBasedRuleDetails.fromJson(Map json) { return AwsWafRateBasedRuleDetails( matchPredicates: (json['MatchPredicates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRateBasedRuleMatchPredicate.fromJson( e as Map)) .toList(), @@ -37406,7 +37367,7 @@ class AwsWafRegionalRateBasedRuleDetails { Map json) { return AwsWafRegionalRateBasedRuleDetails( matchPredicates: (json['MatchPredicates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRegionalRateBasedRuleMatchPredicate.fromJson( e as Map)) .toList(), @@ -37534,7 +37495,7 @@ class AwsWafRegionalRuleDetails { metricName: json['MetricName'] as String?, name: json['Name'] as String?, predicateList: (json['PredicateList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRegionalRulePredicateListDetails.fromJson( e as Map)) .toList(), @@ -37585,7 +37546,7 @@ class AwsWafRegionalRuleGroupDetails { name: json['Name'] as String?, ruleGroupId: json['RuleGroupId'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRegionalRuleGroupRulesDetails.fromJson( e as Map)) .toList(), @@ -37767,7 +37728,7 @@ class AwsWafRegionalWebAclDetails { metricName: json['MetricName'] as String?, name: json['Name'] as String?, rulesList: (json['RulesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRegionalWebAclRulesListDetails.fromJson( e as Map)) .toList(), @@ -37935,7 +37896,7 @@ class AwsWafRuleDetails { metricName: json['MetricName'] as String?, name: json['Name'] as String?, predicateList: (json['PredicateList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRulePredicateListDetails.fromJson( e as Map)) .toList(), @@ -37986,7 +37947,7 @@ class AwsWafRuleGroupDetails { name: json['Name'] as String?, ruleGroupId: json['RuleGroupId'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRuleGroupRulesDetails.fromJson(e as Map)) .toList(), @@ -38158,7 +38119,7 @@ class AwsWafWebAclDetails { defaultAction: json['DefaultAction'] as String?, name: json['Name'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafWebAclRule.fromJson(e as Map)) .toList(), webAclId: json['WebAclId'] as String?, @@ -38241,7 +38202,7 @@ class AwsWafWebAclRule { ? WafAction.fromJson(json['Action'] as Map) : null, excludedRules: (json['ExcludedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WafExcludedRule.fromJson(e as Map)) .toList(), overrideAction: json['OverrideAction'] != null @@ -38377,7 +38338,7 @@ class AwsWafv2CustomRequestHandlingDetails { Map json) { return AwsWafv2CustomRequestHandlingDetails( insertHeaders: (json['InsertHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafv2CustomHttpHeader.fromJson(e as Map)) .toList(), @@ -38420,7 +38381,7 @@ class AwsWafv2CustomResponseDetails { customResponseBodyKey: json['CustomResponseBodyKey'] as String?, responseCode: json['ResponseCode'] as int?, responseHeaders: (json['ResponseHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafv2CustomHttpHeader.fromJson(e as Map)) .toList(), @@ -38493,7 +38454,7 @@ class AwsWafv2RuleGroupDetails { id: json['Id'] as String?, name: json['Name'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafv2RulesDetails.fromJson(e as Map)) .toList(), scope: json['Scope'] as String?, @@ -38921,7 +38882,7 @@ class AwsWafv2WebAclDetails { managedbyFirewallManager: json['ManagedbyFirewallManager'] as bool?, name: json['Name'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafv2RulesDetails.fromJson(e as Map)) .toList(), visibilityConfig: json['VisibilityConfig'] != null @@ -39019,11 +38980,11 @@ class BatchDeleteAutomationRulesResponse { Map json) { return BatchDeleteAutomationRulesResponse( processedAutomationRules: (json['ProcessedAutomationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), unprocessedAutomationRules: (json['UnprocessedAutomationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAutomationRule.fromJson(e as Map)) .toList(), @@ -39053,7 +39014,7 @@ class BatchDisableStandardsResponse { factory BatchDisableStandardsResponse.fromJson(Map json) { return BatchDisableStandardsResponse( standardsSubscriptions: (json['StandardsSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StandardsSubscription.fromJson(e as Map)) .toList(), ); @@ -39079,7 +39040,7 @@ class BatchEnableStandardsResponse { factory BatchEnableStandardsResponse.fromJson(Map json) { return BatchEnableStandardsResponse( standardsSubscriptions: (json['StandardsSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StandardsSubscription.fromJson(e as Map)) .toList(), ); @@ -39111,11 +39072,11 @@ class BatchGetAutomationRulesResponse { factory BatchGetAutomationRulesResponse.fromJson(Map json) { return BatchGetAutomationRulesResponse( rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomationRulesConfig.fromJson(e as Map)) .toList(), unprocessedAutomationRules: (json['UnprocessedAutomationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAutomationRule.fromJson(e as Map)) .toList(), @@ -39154,13 +39115,13 @@ class BatchGetConfigurationPolicyAssociationsResponse { return BatchGetConfigurationPolicyAssociationsResponse( configurationPolicyAssociations: (json['ConfigurationPolicyAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationPolicyAssociationSummary.fromJson( e as Map)) .toList(), unprocessedConfigurationPolicyAssociations: (json['UnprocessedConfigurationPolicyAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedConfigurationPolicyAssociation.fromJson( e as Map)) .toList(), @@ -39202,11 +39163,11 @@ class BatchGetSecurityControlsResponse { factory BatchGetSecurityControlsResponse.fromJson(Map json) { return BatchGetSecurityControlsResponse( securityControls: (json['SecurityControls'] as List) - .whereNotNull() + .nonNulls .map((e) => SecurityControl.fromJson(e as Map)) .toList(), unprocessedIds: (json['UnprocessedIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedSecurityControl.fromJson(e as Map)) .toList(), @@ -39244,12 +39205,12 @@ class BatchGetStandardsControlAssociationsResponse { return BatchGetStandardsControlAssociationsResponse( standardsControlAssociationDetails: (json['StandardsControlAssociationDetails'] as List) - .whereNotNull() + .nonNulls .map((e) => StandardsControlAssociationDetail.fromJson( e as Map)) .toList(), unprocessedAssociations: (json['UnprocessedAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedStandardsControlAssociation.fromJson( e as Map)) .toList(), @@ -39289,7 +39250,7 @@ class BatchImportFindingsResponse { failedCount: json['FailedCount'] as int, successCount: json['SuccessCount'] as int, failedFindings: (json['FailedFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportFindingsError.fromJson(e as Map)) .toList(), ); @@ -39325,11 +39286,11 @@ class BatchUpdateAutomationRulesResponse { Map json) { return BatchUpdateAutomationRulesResponse( processedAutomationRules: (json['ProcessedAutomationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), unprocessedAutomationRules: (json['UnprocessedAutomationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAutomationRule.fromJson(e as Map)) .toList(), @@ -39363,12 +39324,12 @@ class BatchUpdateFindingsResponse { factory BatchUpdateFindingsResponse.fromJson(Map json) { return BatchUpdateFindingsResponse( processedFindings: (json['ProcessedFindings'] as List) - .whereNotNull() + .nonNulls .map((e) => AwsSecurityFindingIdentifier.fromJson(e as Map)) .toList(), unprocessedFindings: (json['UnprocessedFindings'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchUpdateFindingsUnprocessedFinding.fromJson( e as Map)) .toList(), @@ -39496,7 +39457,7 @@ class BatchUpdateStandardsControlAssociationsResponse { return BatchUpdateStandardsControlAssociationsResponse( unprocessedAssociationUpdates: (json['UnprocessedAssociationUpdates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedStandardsControlAssociationUpdate.fromJson( e as Map)) .toList(), @@ -39712,7 +39673,7 @@ class ClassificationResult { : null, mimeType: json['MimeType'] as String?, sensitiveData: (json['SensitiveData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SensitiveDataResult.fromJson(e as Map)) .toList(), sizeClassified: json['SizeClassified'] as int?, @@ -39931,22 +39892,22 @@ class Compliance { factory Compliance.fromJson(Map json) { return Compliance( associatedStandards: (json['AssociatedStandards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociatedStandard.fromJson(e as Map)) .toList(), relatedRequirements: (json['RelatedRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityControlId: json['SecurityControlId'] as String?, securityControlParameters: (json['SecurityControlParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityControlParameter.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(ComplianceStatus.fromString), statusReasons: (json['StatusReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StatusReason.fromJson(e as Map)) .toList(), ); @@ -40348,7 +40309,7 @@ class ContainerDetails { name: json['Name'] as String?, privileged: json['Privileged'] as bool?, volumeMounts: (json['VolumeMounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeMount.fromJson(e as Map)) .toList(), ); @@ -40583,10 +40544,8 @@ class CreateFindingAggregatorResponse { findingAggregationRegion: json['FindingAggregationRegion'] as String?, findingAggregatorArn: json['FindingAggregatorArn'] as String?, regionLinkingMode: json['RegionLinkingMode'] as String?, - regions: (json['Regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['Regions'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -40640,7 +40599,7 @@ class CreateMembersResponse { factory CreateMembersResponse.fromJson(Map json) { return CreateMembersResponse( unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), ); @@ -40718,7 +40677,7 @@ class CustomDataIdentifiersResult { factory CustomDataIdentifiersResult.fromJson(Map json) { return CustomDataIdentifiersResult( detections: (json['Detections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomDataIdentifiersDetections.fromJson( e as Map)) .toList(), @@ -40764,7 +40723,7 @@ class Cvss { factory Cvss.fromJson(Map json) { return Cvss( adjustments: (json['Adjustments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Adjustment.fromJson(e as Map)) .toList(), baseScore: json['BaseScore'] as double?, @@ -40975,7 +40934,7 @@ class DeclineInvitationsResponse { factory DeclineInvitationsResponse.fromJson(Map json) { return DeclineInvitationsResponse( unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), ); @@ -41071,7 +41030,7 @@ class DeleteInvitationsResponse { factory DeleteInvitationsResponse.fromJson(Map json) { return DeleteInvitationsResponse( unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), ); @@ -41098,7 +41057,7 @@ class DeleteMembersResponse { factory DeleteMembersResponse.fromJson(Map json) { return DeleteMembersResponse( unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), ); @@ -41130,7 +41089,7 @@ class DescribeActionTargetsResponse { factory DescribeActionTargetsResponse.fromJson(Map json) { return DescribeActionTargetsResponse( actionTargets: (json['ActionTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => ActionTarget.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -41300,7 +41259,7 @@ class DescribeProductsResponse { factory DescribeProductsResponse.fromJson(Map json) { return DescribeProductsResponse( products: (json['Products'] as List) - .whereNotNull() + .nonNulls .map((e) => Product.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -41333,7 +41292,7 @@ class DescribeStandardsControlsResponse { Map json) { return DescribeStandardsControlsResponse( controls: (json['Controls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StandardsControl.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -41366,7 +41325,7 @@ class DescribeStandardsResponse { return DescribeStandardsResponse( nextToken: json['NextToken'] as String?, standards: (json['Standards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Standard.fromJson(e as Map)) .toList(), ); @@ -41602,7 +41561,7 @@ class EnumConfigurationOptions { factory EnumConfigurationOptions.fromJson(Map json) { return EnumConfigurationOptions( allowedValues: (json['AllowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultValue: json['DefaultValue'] as String?, @@ -41642,11 +41601,11 @@ class EnumListConfigurationOptions { factory EnumListConfigurationOptions.fromJson(Map json) { return EnumListConfigurationOptions( allowedValues: (json['AllowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultValue: (json['DefaultValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxItems: json['MaxItems'] as int?, @@ -41830,7 +41789,7 @@ class FindingHistoryRecord { : null, updateTime: timeStampFromJson(json['UpdateTime']), updates: (json['Updates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingHistoryUpdate.fromJson(e as Map)) .toList(), ); @@ -41995,17 +41954,15 @@ class FindingProviderFields { confidence: json['Confidence'] as int?, criticality: json['Criticality'] as int?, relatedFindings: (json['RelatedFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedFinding.fromJson(e as Map)) .toList(), severity: json['Severity'] != null ? FindingProviderSeverity.fromJson( json['Severity'] as Map) : null, - types: (json['Types'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + types: + (json['Types'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -42100,27 +42057,27 @@ class FirewallPolicyDetails { return FirewallPolicyDetails( statefulRuleGroupReferences: (json['StatefulRuleGroupReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallPolicyStatefulRuleGroupReferencesDetails.fromJson( e as Map)) .toList(), statelessCustomActions: (json['StatelessCustomActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallPolicyStatelessCustomActionsDetails.fromJson( e as Map)) .toList(), statelessDefaultActions: (json['StatelessDefaultActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statelessFragmentDefaultActions: (json['StatelessFragmentDefaultActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statelessRuleGroupReferences: (json['StatelessRuleGroupReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallPolicyStatelessRuleGroupReferencesDetails.fromJson( e as Map)) @@ -42265,10 +42222,8 @@ class GeneratorDetails { factory GeneratorDetails.fromJson(Map json) { return GeneratorDetails( description: json['Description'] as String?, - labels: (json['Labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['Labels'] as List?)?.nonNulls.map((e) => e as String).toList(), name: json['Name'] as String?, ); } @@ -42509,7 +42464,7 @@ class GetEnabledStandardsResponse { return GetEnabledStandardsResponse( nextToken: json['NextToken'] as String?, standardsSubscriptions: (json['StandardsSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StandardsSubscription.fromJson(e as Map)) .toList(), ); @@ -42552,10 +42507,8 @@ class GetFindingAggregatorResponse { findingAggregationRegion: json['FindingAggregationRegion'] as String?, findingAggregatorArn: json['FindingAggregatorArn'] as String?, regionLinkingMode: json['RegionLinkingMode'] as String?, - regions: (json['Regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['Regions'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -42595,7 +42548,7 @@ class GetFindingHistoryResponse { return GetFindingHistoryResponse( nextToken: json['NextToken'] as String?, records: (json['Records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingHistoryRecord.fromJson(e as Map)) .toList(), ); @@ -42626,7 +42579,7 @@ class GetFindingsResponse { factory GetFindingsResponse.fromJson(Map json) { return GetFindingsResponse( findings: (json['Findings'] as List) - .whereNotNull() + .nonNulls .map((e) => AwsSecurityFinding.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -42681,7 +42634,7 @@ class GetInsightsResponse { factory GetInsightsResponse.fromJson(Map json) { return GetInsightsResponse( insights: (json['Insights'] as List) - .whereNotNull() + .nonNulls .map((e) => Insight.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -42762,11 +42715,11 @@ class GetMembersResponse { factory GetMembersResponse.fromJson(Map json) { return GetMembersResponse( members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Member.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), ); @@ -42987,7 +42940,7 @@ class InsightResults { groupByAttribute: json['GroupByAttribute'] as String, insightArn: json['InsightArn'] as String, resultValues: (json['ResultValues'] as List) - .whereNotNull() + .nonNulls .map((e) => InsightResultValue.fromJson(e as Map)) .toList(), ); @@ -43069,7 +43022,7 @@ class IntegerListConfigurationOptions { factory IntegerListConfigurationOptions.fromJson(Map json) { return IntegerListConfigurationOptions( defaultValue: (json['DefaultValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), max: json['Max'] as int?, @@ -43166,7 +43119,7 @@ class InviteMembersResponse { factory InviteMembersResponse.fromJson(Map json) { return InviteMembersResponse( unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), ); @@ -43345,7 +43298,7 @@ class ListAutomationRulesResponse { factory ListAutomationRulesResponse.fromJson(Map json) { return ListAutomationRulesResponse( automationRulesMetadata: (json['AutomationRulesMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomationRulesMetadata.fromJson(e as Map)) .toList(), @@ -43386,7 +43339,7 @@ class ListConfigurationPoliciesResponse { return ListConfigurationPoliciesResponse( configurationPolicySummaries: (json['ConfigurationPolicySummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationPolicySummary.fromJson(e as Map)) .toList(), @@ -43430,7 +43383,7 @@ class ListConfigurationPolicyAssociationsResponse { return ListConfigurationPolicyAssociationsResponse( configurationPolicyAssociationSummaries: (json['ConfigurationPolicyAssociationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationPolicyAssociationSummary.fromJson( e as Map)) .toList(), @@ -43469,7 +43422,7 @@ class ListEnabledProductsForImportResponse { return ListEnabledProductsForImportResponse( nextToken: json['NextToken'] as String?, productSubscriptions: (json['ProductSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -43505,7 +43458,7 @@ class ListFindingAggregatorsResponse { factory ListFindingAggregatorsResponse.fromJson(Map json) { return ListFindingAggregatorsResponse( findingAggregators: (json['FindingAggregators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingAggregator.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -43537,7 +43490,7 @@ class ListInvitationsResponse { factory ListInvitationsResponse.fromJson(Map json) { return ListInvitationsResponse( invitations: (json['Invitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Invitation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -43569,7 +43522,7 @@ class ListMembersResponse { factory ListMembersResponse.fromJson(Map json) { return ListMembersResponse( members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Member.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -43602,7 +43555,7 @@ class ListOrganizationAdminAccountsResponse { Map json) { return ListOrganizationAdminAccountsResponse( adminAccounts: (json['AdminAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdminAccount.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -43636,7 +43589,7 @@ class ListSecurityControlDefinitionsResponse { Map json) { return ListSecurityControlDefinitionsResponse( securityControlDefinitions: (json['SecurityControlDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => SecurityControlDefinition.fromJson(e as Map)) .toList(), @@ -43674,7 +43627,7 @@ class ListStandardsControlAssociationsResponse { return ListStandardsControlAssociationsResponse( standardsControlAssociationSummaries: (json['StandardsControlAssociationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => StandardsControlAssociationSummary.fromJson( e as Map)) .toList(), @@ -44388,12 +44341,10 @@ class NetworkPathComponentDetails { factory NetworkPathComponentDetails.fromJson(Map json) { return NetworkPathComponentDetails( - address: (json['Address'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + address: + (json['Address'] as List?)?.nonNulls.map((e) => e as String).toList(), portRanges: (json['PortRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRange.fromJson(e as Map)) .toList(), ); @@ -44595,23 +44546,23 @@ class Occurrences { factory Occurrences.fromJson(Map json) { return Occurrences( cells: (json['Cells'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cell.fromJson(e as Map)) .toList(), lineRanges: (json['LineRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Range.fromJson(e as Map)) .toList(), offsetRanges: (json['OffsetRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Range.fromJson(e as Map)) .toList(), pages: (json['Pages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Page.fromJson(e as Map)) .toList(), records: (json['Records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), ); @@ -44889,17 +44840,17 @@ class ParameterValue { doubleValue: json['Double'] as double?, enumValue: json['Enum'] as String?, enumList: (json['EnumList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), integer: json['Integer'] as int?, integerList: (json['IntegerList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), string: json['String'] as String?, stringList: (json['StringList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -45186,7 +45137,7 @@ class PortProbeAction { return PortProbeAction( blocked: json['Blocked'] as bool?, portProbeDetails: (json['PortProbeDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortProbeDetail.fromJson(e as Map)) .toList(), ); @@ -45497,13 +45448,13 @@ class Product { productArn: json['ProductArn'] as String, activationUrl: json['ActivationUrl'] as String?, categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), companyName: json['CompanyName'] as String?, description: json['Description'] as String?, integrationTypes: (json['IntegrationTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegrationType.fromString((e as String))) .toList(), marketplaceUrl: json['MarketplaceUrl'] as String?, @@ -47225,7 +47176,7 @@ class RuleGroupSource { : null, rulesString: json['RulesString'] as String?, statefulRules: (json['StatefulRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatefulRulesDetails.fromJson( e as Map)) .toList(), @@ -47314,13 +47265,11 @@ class RuleGroupSourceListDetails { return RuleGroupSourceListDetails( generatedRulesType: json['GeneratedRulesType'] as String?, targetTypes: (json['TargetTypes'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + targets: + (json['Targets'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -47363,7 +47312,7 @@ class RuleGroupSourceStatefulRulesDetails { json['Header'] as Map) : null, ruleOptions: (json['RuleOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatefulRulesOptionsDetails.fromJson( e as Map)) .toList(), @@ -47470,7 +47419,7 @@ class RuleGroupSourceStatefulRulesOptionsDetails { return RuleGroupSourceStatefulRulesOptionsDetails( keyword: json['Keyword'] as String?, settings: (json['Settings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -47506,10 +47455,8 @@ class RuleGroupSourceStatelessRuleDefinition { factory RuleGroupSourceStatelessRuleDefinition.fromJson( Map json) { return RuleGroupSourceStatelessRuleDefinition( - actions: (json['Actions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List?)?.nonNulls.map((e) => e as String).toList(), matchAttributes: json['MatchAttributes'] != null ? RuleGroupSourceStatelessRuleMatchAttributes.fromJson( json['MatchAttributes'] as Map) @@ -47564,35 +47511,33 @@ class RuleGroupSourceStatelessRuleMatchAttributes { Map json) { return RuleGroupSourceStatelessRuleMatchAttributes( destinationPorts: (json['DestinationPorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts .fromJson(e as Map)) .toList(), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatelessRuleMatchAttributesDestinations.fromJson( e as Map)) .toList(), - protocols: (json['Protocols'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + protocols: + (json['Protocols'] as List?)?.nonNulls.map((e) => e as int).toList(), sourcePorts: (json['SourcePorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatelessRuleMatchAttributesSourcePorts.fromJson( e as Map)) .toList(), sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatelessRuleMatchAttributesSources.fromJson( e as Map)) .toList(), tcpFlags: (json['TcpFlags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatelessRuleMatchAttributesTcpFlags.fromJson( e as Map)) @@ -47747,14 +47692,10 @@ class RuleGroupSourceStatelessRuleMatchAttributesTcpFlags { factory RuleGroupSourceStatelessRuleMatchAttributesTcpFlags.fromJson( Map json) { return RuleGroupSourceStatelessRuleMatchAttributesTcpFlags( - flags: (json['Flags'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - masks: (json['Masks'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + flags: + (json['Flags'] as List?)?.nonNulls.map((e) => e as String).toList(), + masks: + (json['Masks'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -47785,12 +47726,12 @@ class RuleGroupSourceStatelessRulesAndCustomActionsDetails { Map json) { return RuleGroupSourceStatelessRulesAndCustomActionsDetails( customActions: (json['CustomActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceCustomActionsDetails.fromJson( e as Map)) .toList(), statelessRules: (json['StatelessRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatelessRulesDetails.fromJson( e as Map)) .toList(), @@ -47890,7 +47831,7 @@ class RuleGroupVariablesIpSetsDetails { factory RuleGroupVariablesIpSetsDetails.fromJson(Map json) { return RuleGroupVariablesIpSetsDetails( definition: (json['Definition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -47917,7 +47858,7 @@ class RuleGroupVariablesPortSetsDetails { Map json) { return RuleGroupVariablesPortSetsDetails( definition: (json['Definition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -48163,7 +48104,7 @@ class SecurityControlDefinition { SeverityRating.fromString((json['SeverityRating'] as String)), title: json['Title'] as String, customizableProperties: (json['CustomizableProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityControlProperty.fromString((e as String))) .toList(), parameterDefinitions: @@ -48214,10 +48155,8 @@ class SecurityControlParameter { factory SecurityControlParameter.fromJson(Map json) { return SecurityControlParameter( name: json['Name'] as String?, - value: (json['Value'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + value: + (json['Value'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -48273,17 +48212,17 @@ class SecurityControlsConfiguration { return SecurityControlsConfiguration( disabledSecurityControlIdentifiers: (json['DisabledSecurityControlIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), enabledSecurityControlIdentifiers: (json['EnabledSecurityControlIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityControlCustomParameters: (json['SecurityControlCustomParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityControlCustomParameter.fromJson( e as Map)) .toList(), @@ -48340,7 +48279,7 @@ class SecurityHubPolicy { factory SecurityHubPolicy.fromJson(Map json) { return SecurityHubPolicy( enabledStandardIdentifiers: (json['EnabledStandardIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityControlsConfiguration: @@ -48430,7 +48369,7 @@ class SensitiveDataResult { return SensitiveDataResult( category: json['Category'] as String?, detections: (json['Detections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SensitiveDataDetections.fromJson(e as Map)) .toList(), @@ -48942,7 +48881,7 @@ class StandardsControl { description: json['Description'] as String?, disabledReason: json['DisabledReason'] as String?, relatedRequirements: (json['RelatedRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), remediationUrl: json['RemediationUrl'] as String?, @@ -49049,11 +48988,11 @@ class StandardsControlAssociationDetail { securityControlId: json['SecurityControlId'] as String, standardsArn: json['StandardsArn'] as String, relatedRequirements: (json['RelatedRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), standardsControlArns: (json['StandardsControlArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), standardsControlDescription: @@ -49190,7 +49129,7 @@ class StandardsControlAssociationSummary { securityControlId: json['SecurityControlId'] as String, standardsArn: json['StandardsArn'] as String, relatedRequirements: (json['RelatedRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), standardsControlDescription: @@ -49590,7 +49529,7 @@ class StatelessCustomPublishMetricAction { Map json) { return StatelessCustomPublishMetricAction( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StatelessCustomPublishMetricActionDimension.fromJson( e as Map)) .toList(), @@ -49898,7 +49837,7 @@ class StringListConfigurationOptions { factory StringListConfigurationOptions.fromJson(Map json) { return StringListConfigurationOptions( defaultValue: (json['DefaultValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), expressionDescription: json['ExpressionDescription'] as String?, @@ -50020,7 +49959,7 @@ class Threat { factory Threat.fromJson(Map json) { return Threat( filePaths: (json['FilePaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilePaths.fromJson(e as Map)) .toList(), itemCount: json['ItemCount'] as int?, @@ -50629,10 +50568,8 @@ class UpdateFindingAggregatorResponse { findingAggregationRegion: json['FindingAggregationRegion'] as String?, findingAggregatorArn: json['FindingAggregatorArn'] as String?, regionLinkingMode: json['RegionLinkingMode'] as String?, - regions: (json['Regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['Regions'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -50959,12 +50896,12 @@ class Vulnerability { return Vulnerability( id: json['Id'] as String, codeVulnerabilities: (json['CodeVulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VulnerabilityCodeVulnerabilities.fromJson( e as Map)) .toList(), cvss: (json['Cvss'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cvss.fromJson(e as Map)) .toList(), epssScore: json['EpssScore'] as double?, @@ -50974,18 +50911,18 @@ class Vulnerability { ?.let(VulnerabilityFixAvailable.fromString), lastKnownExploitAt: json['LastKnownExploitAt'] as String?, referenceUrls: (json['ReferenceUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), relatedVulnerabilities: (json['RelatedVulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vendor: json['Vendor'] != null ? VulnerabilityVendor.fromJson(json['Vendor'] as Map) : null, vulnerablePackages: (json['VulnerablePackages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SoftwarePackage.fromJson(e as Map)) .toList(), ); @@ -51045,10 +50982,7 @@ class VulnerabilityCodeVulnerabilities { factory VulnerabilityCodeVulnerabilities.fromJson(Map json) { return VulnerabilityCodeVulnerabilities( - cwes: (json['Cwes'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + cwes: (json['Cwes'] as List?)?.nonNulls.map((e) => e as String).toList(), filePath: json['FilePath'] != null ? CodeVulnerabilitiesFilePath.fromJson( json['FilePath'] as Map) diff --git a/aws_client/lib/src/generated/security_lake/v2018_05_10.dart b/aws_client/lib/src/generated/security_lake/v2018_05_10.dart index d875aadcc..16cf93d71 100644 --- a/aws_client/lib/src/generated/security_lake/v2018_05_10.dart +++ b/aws_client/lib/src/generated/security_lake/v2018_05_10.dart @@ -1460,10 +1460,8 @@ class CreateAwsLogSourceResponse { factory CreateAwsLogSourceResponse.fromJson(Map json) { return CreateAwsLogSourceResponse( - failed: (json['failed'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + failed: + (json['failed'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -1537,7 +1535,7 @@ class CreateDataLakeResponse { factory CreateDataLakeResponse.fromJson(Map json) { return CreateDataLakeResponse( dataLakes: (json['dataLakes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakeResource.fromJson(e as Map)) .toList(), ); @@ -1797,7 +1795,7 @@ class DataLakeAutoEnableNewAccountConfiguration { return DataLakeAutoEnableNewAccountConfiguration( region: json['region'] as String, sources: (json['sources'] as List) - .whereNotNull() + .nonNulls .map((e) => AwsLogSourceResource.fromJson(e as Map)) .toList(), ); @@ -1941,7 +1939,7 @@ class DataLakeLifecycleConfiguration { json['expiration'] as Map) : null, transitions: (json['transitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakeLifecycleTransition.fromJson(e as Map)) .toList(), @@ -2044,10 +2042,8 @@ class DataLakeReplicationConfiguration { factory DataLakeReplicationConfiguration.fromJson(Map json) { return DataLakeReplicationConfiguration( - regions: (json['regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['regions'] as List?)?.nonNulls.map((e) => e as String).toList(), roleArn: json['roleArn'] as String?, ); } @@ -2278,12 +2274,12 @@ class DataLakeSource { return DataLakeSource( account: json['account'] as String?, eventClasses: (json['eventClasses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceName: json['sourceName'] as String?, sourceStatuses: (json['sourceStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakeSourceStatus.fromJson(e as Map)) .toList(), ); @@ -2442,10 +2438,8 @@ class DeleteAwsLogSourceResponse { factory DeleteAwsLogSourceResponse.fromJson(Map json) { return DeleteAwsLogSourceResponse( - failed: (json['failed'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + failed: + (json['failed'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2597,7 +2591,7 @@ class GetDataLakeOrganizationConfigurationResponse { Map json) { return GetDataLakeOrganizationConfigurationResponse( autoEnableNewAccount: (json['autoEnableNewAccount'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakeAutoEnableNewAccountConfiguration.fromJson( e as Map)) .toList(), @@ -2641,7 +2635,7 @@ class GetDataLakeSourcesResponse { return GetDataLakeSourcesResponse( dataLakeArn: json['dataLakeArn'] as String?, dataLakeSources: (json['dataLakeSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakeSource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2770,7 +2764,7 @@ class ListDataLakeExceptionsResponse { factory ListDataLakeExceptionsResponse.fromJson(Map json) { return ListDataLakeExceptionsResponse( exceptions: (json['exceptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakeException.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2798,7 +2792,7 @@ class ListDataLakesResponse { factory ListDataLakesResponse.fromJson(Map json) { return ListDataLakesResponse( dataLakes: (json['dataLakes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakeResource.fromJson(e as Map)) .toList(), ); @@ -2830,7 +2824,7 @@ class ListLogSourcesResponse { return ListLogSourcesResponse( nextToken: json['nextToken'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogSource.fromJson(e as Map)) .toList(), ); @@ -2863,7 +2857,7 @@ class ListSubscribersResponse { return ListSubscribersResponse( nextToken: json['nextToken'] as String?, subscribers: (json['subscribers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubscriberResource.fromJson(e as Map)) .toList(), ); @@ -2891,7 +2885,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2928,7 +2922,7 @@ class LogSource { account: json['account'] as String?, region: json['region'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogSourceResource.fromJson(e as Map)) .toList(), ); @@ -3143,7 +3137,7 @@ class SubscriberResource { factory SubscriberResource.fromJson(Map json) { return SubscriberResource( sources: (json['sources'] as List) - .whereNotNull() + .nonNulls .map((e) => LogSourceResource.fromJson(e as Map)) .toList(), subscriberArn: json['subscriberArn'] as String, @@ -3152,7 +3146,7 @@ class SubscriberResource { json['subscriberIdentity'] as Map), subscriberName: json['subscriberName'] as String, accessTypes: (json['accessTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessType.fromString((e as String))) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -3323,7 +3317,7 @@ class UpdateDataLakeResponse { factory UpdateDataLakeResponse.fromJson(Map json) { return UpdateDataLakeResponse( dataLakes: (json['dataLakes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakeResource.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/serverless_application_repository/v2017_09_08.dart b/aws_client/lib/src/generated/serverless_application_repository/v2017_09_08.dart index 8bbc280d3..6f5612cff 100644 --- a/aws_client/lib/src/generated/serverless_application_repository/v2017_09_08.dart +++ b/aws_client/lib/src/generated/serverless_application_repository/v2017_09_08.dart @@ -932,16 +932,14 @@ class ApplicationPolicyStatement { factory ApplicationPolicyStatement.fromJson(Map json) { return ApplicationPolicyStatement( - actions: (json['actions'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['actions'] as List).nonNulls.map((e) => e as String).toList(), principals: (json['principals'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), principalOrgIDs: (json['principalOrgIDs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statementId: json['statementId'] as String?, @@ -1023,10 +1021,8 @@ class ApplicationSummary { name: json['name'] as String, creationTime: json['creationTime'] as String?, homePageUrl: json['homePageUrl'] as String?, - labels: (json['labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['labels'] as List?)?.nonNulls.map((e) => e as String).toList(), spdxLicenseId: json['spdxLicenseId'] as String?, ); } @@ -1159,10 +1155,8 @@ class CreateApplicationResponse { description: json['description'] as String?, homePageUrl: json['homePageUrl'] as String?, isVerifiedAuthor: json['isVerifiedAuthor'] as bool?, - labels: (json['labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['labels'] as List?)?.nonNulls.map((e) => e as String).toList(), licenseUrl: json['licenseUrl'] as String?, name: json['name'] as String?, readmeUrl: json['readmeUrl'] as String?, @@ -1314,11 +1308,11 @@ class CreateApplicationVersionResponse { applicationId: json['applicationId'] as String?, creationTime: json['creationTime'] as String?, parameterDefinitions: (json['parameterDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterDefinition.fromJson(e as Map)) .toList(), requiredCapabilities: (json['requiredCapabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Capability.fromString((e as String))) .toList(), resourcesSupported: json['resourcesSupported'] as bool?, @@ -1497,7 +1491,7 @@ class GetApplicationPolicyResponse { factory GetApplicationPolicyResponse.fromJson(Map json) { return GetApplicationPolicyResponse( statements: (json['statements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationPolicyStatement.fromJson(e as Map)) .toList(), @@ -1601,10 +1595,8 @@ class GetApplicationResponse { description: json['description'] as String?, homePageUrl: json['homePageUrl'] as String?, isVerifiedAuthor: json['isVerifiedAuthor'] as bool?, - labels: (json['labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['labels'] as List?)?.nonNulls.map((e) => e as String).toList(), licenseUrl: json['licenseUrl'] as String?, name: json['name'] as String?, readmeUrl: json['readmeUrl'] as String?, @@ -1741,7 +1733,7 @@ class ListApplicationDependenciesResponse { Map json) { return ListApplicationDependenciesResponse( dependencies: (json['dependencies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationDependencySummary.fromJson(e as Map)) .toList(), @@ -1775,7 +1767,7 @@ class ListApplicationVersionsResponse { return ListApplicationVersionsResponse( nextToken: json['nextToken'] as String?, versions: (json['versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionSummary.fromJson(e as Map)) .toList(), ); @@ -1806,7 +1798,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applications: (json['applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1945,12 +1937,12 @@ class ParameterDefinition { return ParameterDefinition( name: json['name'] as String, referencedByResources: (json['referencedByResources'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowedPattern: json['allowedPattern'] as String?, allowedValues: (json['allowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), constraintDescription: json['constraintDescription'] as String?, @@ -2034,7 +2026,7 @@ class PutApplicationPolicyResponse { factory PutApplicationPolicyResponse.fromJson(Map json) { return PutApplicationPolicyResponse( statements: (json['statements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationPolicyStatement.fromJson(e as Map)) .toList(), @@ -2249,10 +2241,8 @@ class UpdateApplicationResponse { description: json['description'] as String?, homePageUrl: json['homePageUrl'] as String?, isVerifiedAuthor: json['isVerifiedAuthor'] as bool?, - labels: (json['labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['labels'] as List?)?.nonNulls.map((e) => e as String).toList(), licenseUrl: json['licenseUrl'] as String?, name: json['name'] as String?, readmeUrl: json['readmeUrl'] as String?, @@ -2405,11 +2395,11 @@ class Version { applicationId: json['applicationId'] as String, creationTime: json['creationTime'] as String, parameterDefinitions: (json['parameterDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => ParameterDefinition.fromJson(e as Map)) .toList(), requiredCapabilities: (json['requiredCapabilities'] as List) - .whereNotNull() + .nonNulls .map((e) => Capability.fromString((e as String))) .toList(), resourcesSupported: json['resourcesSupported'] as bool, diff --git a/aws_client/lib/src/generated/service_catalog/v2015_12_10.dart b/aws_client/lib/src/generated/service_catalog/v2015_12_10.dart index 721bc9e5e..6d80907b2 100644 --- a/aws_client/lib/src/generated/service_catalog/v2015_12_10.dart +++ b/aws_client/lib/src/generated/service_catalog/v2015_12_10.dart @@ -6054,7 +6054,7 @@ class BatchAssociateServiceActionWithProvisioningArtifactOutput { return BatchAssociateServiceActionWithProvisioningArtifactOutput( failedServiceActionAssociations: (json['FailedServiceActionAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedServiceActionAssociation.fromJson( e as Map)) .toList(), @@ -6085,7 +6085,7 @@ class BatchDisassociateServiceActionFromProvisioningArtifactOutput { return BatchDisassociateServiceActionFromProvisioningArtifactOutput( failedServiceActionAssociations: (json['FailedServiceActionAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedServiceActionAssociation.fromJson( e as Map)) .toList(), @@ -6444,7 +6444,7 @@ class CreatePortfolioOutput { json['PortfolioDetail'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6511,7 +6511,7 @@ class CreateProductOutput { json['ProvisioningArtifactDetail'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6899,7 +6899,7 @@ class DescribePortfolioOutput { factory DescribePortfolioOutput.fromJson(Map json) { return DescribePortfolioOutput( budgets: (json['Budgets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BudgetDetail.fromJson(e as Map)) .toList(), portfolioDetail: json['PortfolioDetail'] != null @@ -6907,11 +6907,11 @@ class DescribePortfolioOutput { json['PortfolioDetail'] as Map) : null, tagOptions: (json['TagOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagOptionDetail.fromJson(e as Map)) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7022,7 +7022,7 @@ class DescribePortfolioSharesOutput { return DescribePortfolioSharesOutput( nextPageToken: json['NextPageToken'] as String?, portfolioShareDetails: (json['PortfolioShareDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortfolioShareDetail.fromJson(e as Map)) .toList(), ); @@ -7067,7 +7067,7 @@ class DescribeProductAsAdminOutput { factory DescribeProductAsAdminOutput.fromJson(Map json) { return DescribeProductAsAdminOutput( budgets: (json['Budgets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BudgetDetail.fromJson(e as Map)) .toList(), productViewDetail: json['ProductViewDetail'] != null @@ -7076,16 +7076,16 @@ class DescribeProductAsAdminOutput { : null, provisioningArtifactSummaries: (json['ProvisioningArtifactSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactSummary.fromJson(e as Map)) .toList(), tagOptions: (json['TagOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagOptionDetail.fromJson(e as Map)) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7131,11 +7131,11 @@ class DescribeProductOutput { factory DescribeProductOutput.fromJson(Map json) { return DescribeProductOutput( budgets: (json['Budgets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BudgetDetail.fromJson(e as Map)) .toList(), launchPaths: (json['LaunchPaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchPath.fromJson(e as Map)) .toList(), productViewSummary: json['ProductViewSummary'] != null @@ -7143,7 +7143,7 @@ class DescribeProductOutput { json['ProductViewSummary'] as Map) : null, provisioningArtifacts: (json['ProvisioningArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifact.fromJson(e as Map)) .toList(), ); @@ -7183,7 +7183,7 @@ class DescribeProductViewOutput { json['ProductViewSummary'] as Map) : null, provisioningArtifacts: (json['ProvisioningArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifact.fromJson(e as Map)) .toList(), ); @@ -7215,7 +7215,7 @@ class DescribeProvisionedProductOutput { factory DescribeProvisionedProductOutput.fromJson(Map json) { return DescribeProvisionedProductOutput( cloudWatchDashboards: (json['CloudWatchDashboards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchDashboard.fromJson(e as Map)) .toList(), provisionedProductDetail: json['ProvisionedProductDetail'] != null @@ -7265,7 +7265,7 @@ class DescribeProvisionedProductPlanOutput { json['ProvisionedProductPlanDetails'] as Map) : null, resourceChanges: (json['ResourceChanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceChange.fromJson(e as Map)) .toList(), ); @@ -7316,7 +7316,7 @@ class DescribeProvisioningArtifactOutput { : null, provisioningArtifactParameters: (json['ProvisioningArtifactParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactParameter.fromJson(e as Map)) .toList(), @@ -7381,24 +7381,24 @@ class DescribeProvisioningParametersOutput { Map json) { return DescribeProvisioningParametersOutput( constraintSummaries: (json['ConstraintSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConstraintSummary.fromJson(e as Map)) .toList(), provisioningArtifactOutputKeys: (json['ProvisioningArtifactOutputKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactOutput.fromJson(e as Map)) .toList(), provisioningArtifactOutputs: (json['ProvisioningArtifactOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactOutput.fromJson(e as Map)) .toList(), provisioningArtifactParameters: (json['ProvisioningArtifactParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactParameter.fromJson(e as Map)) .toList(), @@ -7409,11 +7409,11 @@ class DescribeProvisioningParametersOutput { as Map) : null, tagOptions: (json['TagOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagOptionSummary.fromJson(e as Map)) .toList(), usageInstructions: (json['UsageInstructions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageInstruction.fromJson(e as Map)) .toList(), ); @@ -7471,7 +7471,7 @@ class DescribeRecordOutput { ? RecordDetail.fromJson(json['RecordDetail'] as Map) : null, recordOutputs: (json['RecordOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecordOutput.fromJson(e as Map)) .toList(), ); @@ -7501,7 +7501,7 @@ class DescribeServiceActionExecutionParametersOutput { Map json) { return DescribeServiceActionExecutionParametersOutput( serviceActionParameters: (json['ServiceActionParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExecutionParameter.fromJson(e as Map)) .toList(), ); @@ -7777,7 +7777,7 @@ class ExecutionParameter { factory ExecutionParameter.fromJson(Map json) { return ExecutionParameter( defaultValues: (json['DefaultValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -7897,7 +7897,7 @@ class GetProvisionedProductOutputsOutput { return GetProvisionedProductOutputsOutput( nextPageToken: json['NextPageToken'] as String?, outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecordOutput.fromJson(e as Map)) .toList(), ); @@ -8087,13 +8087,13 @@ class LaunchPathSummary { factory LaunchPathSummary.fromJson(Map json) { return LaunchPathSummary( constraintSummaries: (json['ConstraintSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConstraintSummary.fromJson(e as Map)) .toList(), id: json['Id'] as String?, name: json['Name'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8132,7 +8132,7 @@ class ListAcceptedPortfolioSharesOutput { return ListAcceptedPortfolioSharesOutput( nextPageToken: json['NextPageToken'] as String?, portfolioDetails: (json['PortfolioDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortfolioDetail.fromJson(e as Map)) .toList(), ); @@ -8164,7 +8164,7 @@ class ListBudgetsForResourceOutput { factory ListBudgetsForResourceOutput.fromJson(Map json) { return ListBudgetsForResourceOutput( budgets: (json['Budgets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BudgetDetail.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -8198,7 +8198,7 @@ class ListConstraintsForPortfolioOutput { Map json) { return ListConstraintsForPortfolioOutput( constraintDetails: (json['ConstraintDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConstraintDetail.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -8231,7 +8231,7 @@ class ListLaunchPathsOutput { factory ListLaunchPathsOutput.fromJson(Map json) { return ListLaunchPathsOutput( launchPathSummaries: (json['LaunchPathSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchPathSummary.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -8267,7 +8267,7 @@ class ListOrganizationPortfolioAccessOutput { return ListOrganizationPortfolioAccessOutput( nextPageToken: json['NextPageToken'] as String?, organizationNodes: (json['OrganizationNodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationNode.fromJson(e as Map)) .toList(), ); @@ -8300,7 +8300,7 @@ class ListPortfolioAccessOutput { factory ListPortfolioAccessOutput.fromJson(Map json) { return ListPortfolioAccessOutput( accountIds: (json['AccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -8334,7 +8334,7 @@ class ListPortfoliosForProductOutput { return ListPortfoliosForProductOutput( nextPageToken: json['NextPageToken'] as String?, portfolioDetails: (json['PortfolioDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortfolioDetail.fromJson(e as Map)) .toList(), ); @@ -8367,7 +8367,7 @@ class ListPortfoliosOutput { return ListPortfoliosOutput( nextPageToken: json['NextPageToken'] as String?, portfolioDetails: (json['PortfolioDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortfolioDetail.fromJson(e as Map)) .toList(), ); @@ -8401,7 +8401,7 @@ class ListPrincipalsForPortfolioOutput { return ListPrincipalsForPortfolioOutput( nextPageToken: json['NextPageToken'] as String?, principals: (json['Principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Principal.fromJson(e as Map)) .toList(), ); @@ -8435,7 +8435,7 @@ class ListProvisionedProductPlansOutput { return ListProvisionedProductPlansOutput( nextPageToken: json['NextPageToken'] as String?, provisionedProductPlans: (json['ProvisionedProductPlans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisionedProductPlanSummary.fromJson(e as Map)) .toList(), @@ -8472,7 +8472,7 @@ class ListProvisioningArtifactsForServiceActionOutput { return ListProvisioningArtifactsForServiceActionOutput( nextPageToken: json['NextPageToken'] as String?, provisioningArtifactViews: (json['ProvisioningArtifactViews'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactView.fromJson(e as Map)) .toList(), @@ -8508,7 +8508,7 @@ class ListProvisioningArtifactsOutput { nextPageToken: json['NextPageToken'] as String?, provisioningArtifactDetails: (json['ProvisioningArtifactDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactDetail.fromJson(e as Map)) .toList(), @@ -8543,7 +8543,7 @@ class ListRecordHistoryOutput { return ListRecordHistoryOutput( nextPageToken: json['NextPageToken'] as String?, recordDetails: (json['RecordDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecordDetail.fromJson(e as Map)) .toList(), ); @@ -8610,7 +8610,7 @@ class ListResourcesForTagOptionOutput { return ListResourcesForTagOptionOutput( pageToken: json['PageToken'] as String?, resourceDetails: (json['ResourceDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceDetail.fromJson(e as Map)) .toList(), ); @@ -8645,7 +8645,7 @@ class ListServiceActionsForProvisioningArtifactOutput { return ListServiceActionsForProvisioningArtifactOutput( nextPageToken: json['NextPageToken'] as String?, serviceActionSummaries: (json['ServiceActionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceActionSummary.fromJson(e as Map)) .toList(), ); @@ -8680,7 +8680,7 @@ class ListServiceActionsOutput { return ListServiceActionsOutput( nextPageToken: json['NextPageToken'] as String?, serviceActionSummaries: (json['ServiceActionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceActionSummary.fromJson(e as Map)) .toList(), ); @@ -8715,7 +8715,7 @@ class ListStackInstancesForProvisionedProductOutput { return ListStackInstancesForProvisionedProductOutput( nextPageToken: json['NextPageToken'] as String?, stackInstances: (json['StackInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StackInstance.fromJson(e as Map)) .toList(), ); @@ -8777,7 +8777,7 @@ class ListTagOptionsOutput { return ListTagOptionsOutput( pageToken: json['PageToken'] as String?, tagOptionDetails: (json['TagOptionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagOptionDetail.fromJson(e as Map)) .toList(), ); @@ -8934,7 +8934,7 @@ class ParameterConstraints { return ParameterConstraints( allowedPattern: json['AllowedPattern'] as String?, allowedValues: (json['AllowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), constraintDescription: json['ConstraintDescription'] as String?, @@ -9640,7 +9640,7 @@ class ProvisionedProductAttribute { (json['Status'] as String?)?.let(ProvisionedProductStatus.fromString), statusMessage: json['StatusMessage'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: json['Type'] as String?, @@ -9962,7 +9962,7 @@ class ProvisionedProductPlanDetails { return ProvisionedProductPlanDetails( createdTime: timeStampFromJson(json['CreatedTime']), notificationArns: (json['NotificationArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), pathId: json['PathId'] as String?, @@ -9975,7 +9975,7 @@ class ProvisionedProductPlanDetails { provisionProductName: json['ProvisionProductName'] as String?, provisioningArtifactId: json['ProvisioningArtifactId'] as String?, provisioningParameters: (json['ProvisioningParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateProvisioningParameter.fromJson(e as Map)) .toList(), @@ -9983,7 +9983,7 @@ class ProvisionedProductPlanDetails { ?.let(ProvisionedProductPlanStatus.fromString), statusMessage: json['StatusMessage'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), updatedTime: timeStampFromJson(json['UpdatedTime']), @@ -10452,11 +10452,11 @@ class ProvisioningArtifactPreferences { factory ProvisioningArtifactPreferences.fromJson(Map json) { return ProvisioningArtifactPreferences( stackSetAccounts: (json['StackSetAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stackSetRegions: (json['StackSetRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -10953,12 +10953,12 @@ class RecordDetail { provisionedProductType: json['ProvisionedProductType'] as String?, provisioningArtifactId: json['ProvisioningArtifactId'] as String?, recordErrors: (json['RecordErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecordError.fromJson(e as Map)) .toList(), recordId: json['RecordId'] as String?, recordTags: (json['RecordTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecordTag.fromJson(e as Map)) .toList(), recordType: json['RecordType'] as String?, @@ -11222,7 +11222,7 @@ class ResourceChange { return ResourceChange( action: (json['Action'] as String?)?.let(ChangeAction.fromString), details: (json['Details'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceChangeDetail.fromJson(e as Map)) .toList(), logicalResourceId: json['LogicalResourceId'] as String?, @@ -11231,7 +11231,7 @@ class ResourceChange { (json['Replacement'] as String?)?.let(Replacement.fromString), resourceType: json['ResourceType'] as String?, scope: (json['Scope'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceAttribute.fromString((e as String))) .toList(), ); @@ -11410,7 +11410,7 @@ class ScanProvisionedProductsOutput { return ScanProvisionedProductsOutput( nextPageToken: json['NextPageToken'] as String?, provisionedProducts: (json['ProvisionedProducts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisionedProductDetail.fromJson(e as Map)) .toList(), @@ -11445,7 +11445,7 @@ class SearchProductsAsAdminOutput { return SearchProductsAsAdminOutput( nextPageToken: json['NextPageToken'] as String?, productViewDetails: (json['ProductViewDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductViewDetail.fromJson(e as Map)) .toList(), ); @@ -11486,12 +11486,12 @@ class SearchProductsOutput { (k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ProductViewAggregationValue.fromJson( e as Map)) .toList())), productViewSummaries: (json['ProductViewSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductViewSummary.fromJson(e as Map)) .toList(), ); @@ -11532,7 +11532,7 @@ class SearchProvisionedProductsOutput { return SearchProvisionedProductsOutput( nextPageToken: json['NextPageToken'] as String?, provisionedProducts: (json['ProvisionedProducts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisionedProductAttribute.fromJson(e as Map)) .toList(), @@ -11733,11 +11733,11 @@ class ShareDetails { factory ShareDetails.fromJson(Map json) { return ShareDetails( shareErrors: (json['ShareErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ShareError.fromJson(e as Map)) .toList(), successfulShares: (json['SuccessfulShares'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11773,7 +11773,7 @@ class ShareError { factory ShareError.fromJson(Map json) { return ShareError( accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), error: json['Error'] as String?, @@ -12170,10 +12170,8 @@ class TagOptionSummary { factory TagOptionSummary.fromJson(Map json) { return TagOptionSummary( key: json['Key'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -12295,7 +12293,7 @@ class UpdatePortfolioOutput { json['PortfolioDetail'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -12363,7 +12361,7 @@ class UpdateProductOutput { json['ProductViewDetail'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/service_catalog_app_registry/v2020_06_24.dart b/aws_client/lib/src/generated/service_catalog_app_registry/v2020_06_24.dart index eb9cb9cb5..3df165eaa 100644 --- a/aws_client/lib/src/generated/service_catalog_app_registry/v2020_06_24.dart +++ b/aws_client/lib/src/generated/service_catalog_app_registry/v2020_06_24.dart @@ -1145,7 +1145,7 @@ class ApplicationTagResult { errorMessage: json['errorMessage'] as String?, nextToken: json['nextToken'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcesListItem.fromJson(e as Map)) .toList(), ); @@ -1234,7 +1234,7 @@ class AssociateResourceResponse { return AssociateResourceResponse( applicationArn: json['applicationArn'] as String?, options: (json['options'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociationOption.fromString((e as String))) .toList(), resourceArn: json['resourceArn'] as String?, @@ -1737,7 +1737,7 @@ class GetAssociatedResourceResponse { json['applicationTagResult'] as Map) : null, options: (json['options'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociationOption.fromString((e as String))) .toList(), resource: json['resource'] != null @@ -1920,7 +1920,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applications: (json['applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1953,7 +1953,7 @@ class ListAssociatedAttributeGroupsResponse { Map json) { return ListAssociatedAttributeGroupsResponse( attributeGroups: (json['attributeGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -1986,7 +1986,7 @@ class ListAssociatedResourcesResponse { return ListAssociatedResourcesResponse( nextToken: json['nextToken'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceInfo.fromJson(e as Map)) .toList(), ); @@ -2018,7 +2018,7 @@ class ListAttributeGroupsForApplicationResponse { Map json) { return ListAttributeGroupsForApplicationResponse( attributeGroupsDetails: (json['attributeGroupsDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeGroupDetails.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2051,7 +2051,7 @@ class ListAttributeGroupsResponse { factory ListAttributeGroupsResponse.fromJson(Map json) { return ListAttributeGroupsResponse( attributeGroups: (json['attributeGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2265,7 +2265,7 @@ class ResourceInfo { arn: json['arn'] as String?, name: json['name'] as String?, options: (json['options'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociationOption.fromString((e as String))) .toList(), resourceDetails: json['resourceDetails'] != null diff --git a/aws_client/lib/src/generated/service_discovery/v2017_03_14.dart b/aws_client/lib/src/generated/service_discovery/v2017_03_14.dart index a04479e5b..ad9dfe97b 100644 --- a/aws_client/lib/src/generated/service_discovery/v2017_03_14.dart +++ b/aws_client/lib/src/generated/service_discovery/v2017_03_14.dart @@ -1868,7 +1868,7 @@ class DiscoverInstancesResponse { factory DiscoverInstancesResponse.fromJson(Map json) { return DiscoverInstancesResponse( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpInstanceSummary.fromJson(e as Map)) .toList(), instancesRevision: json['InstancesRevision'] as int?, @@ -1985,7 +1985,7 @@ class DnsConfig { factory DnsConfig.fromJson(Map json) { return DnsConfig( dnsRecords: (json['DnsRecords'] as List) - .whereNotNull() + .nonNulls .map((e) => DnsRecord.fromJson(e as Map)) .toList(), namespaceId: json['NamespaceId'] as String?, @@ -3007,7 +3007,7 @@ class ListInstancesResponse { factory ListInstancesResponse.fromJson(Map json) { return ListInstancesResponse( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3050,7 +3050,7 @@ class ListNamespacesResponse { factory ListNamespacesResponse.fromJson(Map json) { return ListNamespacesResponse( namespaces: (json['Namespaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NamespaceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3093,7 +3093,7 @@ class ListOperationsResponse { return ListOperationsResponse( nextToken: json['NextToken'] as String?, operations: (json['Operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OperationSummary.fromJson(e as Map)) .toList(), ); @@ -3136,7 +3136,7 @@ class ListServicesResponse { return ListServicesResponse( nextToken: json['NextToken'] as String?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceSummary.fromJson(e as Map)) .toList(), ); @@ -3163,7 +3163,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/service_quotas/v2019_06_24.dart b/aws_client/lib/src/generated/service_quotas/v2019_06_24.dart index 759e63ce2..2ffad9259 100644 --- a/aws_client/lib/src/generated/service_quotas/v2019_06_24.dart +++ b/aws_client/lib/src/generated/service_quotas/v2019_06_24.dart @@ -1335,7 +1335,7 @@ class ListAWSDefaultServiceQuotasResponse { return ListAWSDefaultServiceQuotasResponse( nextToken: json['NextToken'] as String?, quotas: (json['Quotas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceQuota.fromJson(e as Map)) .toList(), ); @@ -1372,7 +1372,7 @@ class ListRequestedServiceQuotaChangeHistoryByQuotaResponse { return ListRequestedServiceQuotaChangeHistoryByQuotaResponse( nextToken: json['NextToken'] as String?, requestedQuotas: (json['RequestedQuotas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RequestedServiceQuotaChange.fromJson(e as Map)) .toList(), @@ -1410,7 +1410,7 @@ class ListRequestedServiceQuotaChangeHistoryResponse { return ListRequestedServiceQuotaChangeHistoryResponse( nextToken: json['NextToken'] as String?, requestedQuotas: (json['RequestedQuotas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RequestedServiceQuotaChange.fromJson(e as Map)) .toList(), @@ -1450,7 +1450,7 @@ class ListServiceQuotaIncreaseRequestsInTemplateResponse { nextToken: json['NextToken'] as String?, serviceQuotaIncreaseRequestInTemplateList: (json['ServiceQuotaIncreaseRequestInTemplateList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceQuotaIncreaseRequestInTemplate.fromJson( e as Map)) .toList(), @@ -1490,7 +1490,7 @@ class ListServiceQuotasResponse { return ListServiceQuotasResponse( nextToken: json['NextToken'] as String?, quotas: (json['Quotas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceQuota.fromJson(e as Map)) .toList(), ); @@ -1526,7 +1526,7 @@ class ListServicesResponse { return ListServicesResponse( nextToken: json['NextToken'] as String?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceInfo.fromJson(e as Map)) .toList(), ); @@ -1553,7 +1553,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/ses/v2010_12_01.dart b/aws_client/lib/src/generated/ses/v2010_12_01.dart index 5f42b2e0c..26d1b2477 100644 --- a/aws_client/lib/src/generated/ses/v2010_12_01.dart +++ b/aws_client/lib/src/generated/ses/v2010_12_01.dart @@ -3953,7 +3953,7 @@ class BulkEmailDestinationStatus { messageId: _s.extractXmlStringValue(elem, 'MessageId'), status: _s .extractXmlStringValue(elem, 'Status') - ?.let(BulkEmailStatus.fromString) /* Nullability(true, true) */, + ?.let(BulkEmailStatus.fromString), ); } @@ -4114,7 +4114,7 @@ class CloudWatchDimensionConfiguration { dimensionName: _s.extractXmlStringValue(elem, 'DimensionName')!, dimensionValueSource: _s .extractXmlStringValue(elem, 'DimensionValueSource')! - .let(DimensionValueSource.fromString) /* Nullability(true, false) */, + .let(DimensionValueSource.fromString), ); } @@ -4554,7 +4554,7 @@ class DeliveryOptions { return DeliveryOptions( tlsPolicy: _s .extractXmlStringValue(elem, 'TlsPolicy') - ?.let(TlsPolicy.fromString) /* Nullability(true, true) */, + ?.let(TlsPolicy.fromString), ); } @@ -5422,7 +5422,7 @@ class IdentityDkimAttributes { dkimEnabled: _s.extractXmlBoolValue(elem, 'DkimEnabled')!, dkimVerificationStatus: _s .extractXmlStringValue(elem, 'DkimVerificationStatus')! - .let(VerificationStatus.fromString) /* Nullability(true, false) */, + .let(VerificationStatus.fromString), dkimTokens: _s .extractXmlChild(elem, 'DkimTokens') ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')), @@ -5476,11 +5476,11 @@ class IdentityMailFromDomainAttributes { return IdentityMailFromDomainAttributes( behaviorOnMXFailure: _s .extractXmlStringValue(elem, 'BehaviorOnMXFailure')! - .let(BehaviorOnMXFailure.fromString) /* Nullability(true, false) */, + .let(BehaviorOnMXFailure.fromString), mailFromDomain: _s.extractXmlStringValue(elem, 'MailFromDomain')!, mailFromDomainStatus: _s .extractXmlStringValue(elem, 'MailFromDomainStatus')! - .let(CustomMailFromStatus.fromString) /* Nullability(true, false) */, + .let(CustomMailFromStatus.fromString), ); } @@ -5627,7 +5627,7 @@ class IdentityVerificationAttributes { return IdentityVerificationAttributes( verificationStatus: _s .extractXmlStringValue(elem, 'VerificationStatus')! - .let(VerificationStatus.fromString) /* Nullability(true, false) */, + .let(VerificationStatus.fromString), verificationToken: _s.extractXmlStringValue(elem, 'VerificationToken'), ); } @@ -5764,7 +5764,7 @@ class LambdaAction { functionArn: _s.extractXmlStringValue(elem, 'FunctionArn')!, invocationType: _s .extractXmlStringValue(elem, 'InvocationType') - ?.let(InvocationType.fromString) /* Nullability(true, true) */, + ?.let(InvocationType.fromString), topicArn: _s.extractXmlStringValue(elem, 'TopicArn'), ); } @@ -6503,7 +6503,7 @@ class ReceiptIpFilter { cidr: _s.extractXmlStringValue(elem, 'Cidr')!, policy: _s .extractXmlStringValue(elem, 'Policy')! - .let(ReceiptFilterPolicy.fromString) /* Nullability(true, false) */, + .let(ReceiptFilterPolicy.fromString), ); } @@ -6598,7 +6598,7 @@ class ReceiptRule { scanEnabled: _s.extractXmlBoolValue(elem, 'ScanEnabled'), tlsPolicy: _s .extractXmlStringValue(elem, 'TlsPolicy') - ?.let(TlsPolicy.fromString) /* Nullability(true, true) */, + ?.let(TlsPolicy.fromString), ); } @@ -7049,7 +7049,7 @@ class SNSAction { topicArn: _s.extractXmlStringValue(elem, 'TopicArn')!, encoding: _s .extractXmlStringValue(elem, 'Encoding') - ?.let(SNSActionEncoding.fromString) /* Nullability(true, true) */, + ?.let(SNSActionEncoding.fromString), ); } @@ -7448,9 +7448,7 @@ class StopAction { }); factory StopAction.fromXml(_s.XmlElement elem) { return StopAction( - scope: _s - .extractXmlStringValue(elem, 'Scope')! - .let(StopScope.fromString) /* Nullability(true, false) */, + scope: _s.extractXmlStringValue(elem, 'Scope')!.let(StopScope.fromString), topicArn: _s.extractXmlStringValue(elem, 'TopicArn'), ); } diff --git a/aws_client/lib/src/generated/ses_v2/v2019_09_27.dart b/aws_client/lib/src/generated/ses_v2/v2019_09_27.dart index 96b0b045e..39f105575 100644 --- a/aws_client/lib/src/generated/ses_v2/v2019_09_27.dart +++ b/aws_client/lib/src/generated/ses_v2/v2019_09_27.dart @@ -3586,7 +3586,7 @@ class AccountDetails { return AccountDetails( additionalContactEmailAddresses: (json['AdditionalContactEmailAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), contactLanguage: @@ -3742,11 +3742,11 @@ class BatchGetMetricDataResponse { factory BatchGetMetricDataResponse.fromJson(Map json) { return BatchGetMetricDataResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDataError.fromJson(e as Map)) .toList(), results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDataResult.fromJson(e as Map)) .toList(), ); @@ -4165,7 +4165,7 @@ class CloudWatchDestination { factory CloudWatchDestination.fromJson(Map json) { return CloudWatchDestination( dimensionConfigurations: (json['DimensionConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => CloudWatchDimensionConfiguration.fromJson( e as Map)) .toList(), @@ -4313,11 +4313,11 @@ class Contact { emailAddress: json['EmailAddress'] as String?, lastUpdatedTimestamp: timeStampFromJson(json['LastUpdatedTimestamp']), topicDefaultPreferences: (json['TopicDefaultPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicPreference.fromJson(e as Map)) .toList(), topicPreferences: (json['TopicPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicPreference.fromJson(e as Map)) .toList(), unsubscribeAll: json['UnsubscribeAll'] as bool?, @@ -4799,7 +4799,7 @@ class DailyVolume { factory DailyVolume.fromJson(Map json) { return DailyVolume( domainIspPlacements: (json['DomainIspPlacements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainIspPlacement.fromJson(e as Map)) .toList(), startDate: timeStampFromJson(json['StartDate']), @@ -5543,10 +5543,8 @@ class DkimAttributes { ?.let(DkimSigningAttributesOrigin.fromString), signingEnabled: json['SigningEnabled'] as bool?, status: (json['Status'] as String?)?.let(DkimStatus.fromString), - tokens: (json['Tokens'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tokens: + (json['Tokens'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -5770,10 +5768,7 @@ class DomainDeliverabilityCampaign { return DomainDeliverabilityCampaign( campaignId: json['CampaignId'] as String?, deleteRate: json['DeleteRate'] as double?, - esps: (json['Esps'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + esps: (json['Esps'] as List?)?.nonNulls.map((e) => e as String).toList(), firstSeenDateTime: timeStampFromJson(json['FirstSeenDateTime']), fromAddress: json['FromAddress'] as String?, imageUrl: json['ImageUrl'] as String?, @@ -5783,7 +5778,7 @@ class DomainDeliverabilityCampaign { readDeleteRate: json['ReadDeleteRate'] as double?, readRate: json['ReadRate'] as double?, sendingIps: (json['SendingIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), spamCount: json['SpamCount'] as int?, @@ -6023,7 +6018,7 @@ class EmailInsights { return EmailInsights( destination: json['Destination'] as String?, events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightsEvent.fromJson(e as Map)) .toList(), isp: json['Isp'] as String?, @@ -6253,7 +6248,7 @@ class EventDestination { factory EventDestination.fromJson(Map json) { return EventDestination( matchingEventTypes: (json['MatchingEventTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => EventType.fromString((e as String))) .toList(), name: json['Name'] as String, @@ -6830,7 +6825,7 @@ class GetBlacklistReportsResponse { (k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map( (e) => BlacklistEntry.fromJson(e as Map)) .toList())), @@ -6859,7 +6854,7 @@ class GetConfigurationSetEventDestinationsResponse { Map json) { return GetConfigurationSetEventDestinationsResponse( eventDestinations: (json['EventDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDestination.fromJson(e as Map)) .toList(), ); @@ -6937,7 +6932,7 @@ class GetConfigurationSetResponse { json['SuppressionOptions'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trackingOptions: json['TrackingOptions'] != null @@ -7009,11 +7004,11 @@ class GetContactListResponse { description: json['Description'] as String?, lastUpdatedTimestamp: timeStampFromJson(json['LastUpdatedTimestamp']), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), topics: (json['Topics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Topic.fromJson(e as Map)) .toList(), ); @@ -7084,11 +7079,11 @@ class GetContactResponse { emailAddress: json['EmailAddress'] as String?, lastUpdatedTimestamp: timeStampFromJson(json['LastUpdatedTimestamp']), topicDefaultPreferences: (json['TopicDefaultPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicPreference.fromJson(e as Map)) .toList(), topicPreferences: (json['TopicPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicPreference.fromJson(e as Map)) .toList(), unsubscribeAll: json['UnsubscribeAll'] as bool?, @@ -7255,7 +7250,7 @@ class GetDedicatedIpsResponse { factory GetDedicatedIpsResponse.fromJson(Map json) { return GetDedicatedIpsResponse( dedicatedIps: (json['DedicatedIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DedicatedIp.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7315,13 +7310,13 @@ class GetDeliverabilityDashboardOptionsResponse { accountStatus: (json['AccountStatus'] as String?) ?.let(DeliverabilityDashboardAccountStatus.fromString), activeSubscribedDomains: (json['ActiveSubscribedDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainDeliverabilityTrackingOption.fromJson( e as Map)) .toList(), pendingExpirationSubscribedDomains: (json['PendingExpirationSubscribedDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainDeliverabilityTrackingOption.fromJson( e as Map)) .toList(), @@ -7386,14 +7381,14 @@ class GetDeliverabilityTestReportResponse { deliverabilityTestReport: DeliverabilityTestReport.fromJson( json['DeliverabilityTestReport'] as Map), ispPlacements: (json['IspPlacements'] as List) - .whereNotNull() + .nonNulls .map((e) => IspPlacement.fromJson(e as Map)) .toList(), overallPlacement: PlacementStatistics.fromJson( json['OverallPlacement'] as Map), message: json['Message'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7464,7 +7459,7 @@ class GetDomainStatisticsReportResponse { Map json) { return GetDomainStatisticsReportResponse( dailyVolumes: (json['DailyVolumes'] as List) - .whereNotNull() + .nonNulls .map((e) => DailyVolume.fromJson(e as Map)) .toList(), overallVolume: @@ -7610,7 +7605,7 @@ class GetEmailIdentityResponse { policies: (json['Policies'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), verificationInfo: json['VerificationInfo'] != null @@ -7901,12 +7896,12 @@ class GetMessageInsightsResponse { factory GetMessageInsightsResponse.fromJson(Map json) { return GetMessageInsightsResponse( emailTags: (json['EmailTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageTag.fromJson(e as Map)) .toList(), fromEmailAddress: json['FromEmailAddress'] as String?, insights: (json['Insights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EmailInsights.fromJson(e as Map)) .toList(), messageId: json['MessageId'] as String?, @@ -8288,7 +8283,7 @@ class InboxPlacementTrackingOption { return InboxPlacementTrackingOption( global: json['Global'] as bool?, trackedIsps: (json['TrackedIsps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8502,7 +8497,7 @@ class ListConfigurationSetsResponse { factory ListConfigurationSetsResponse.fromJson(Map json) { return ListConfigurationSetsResponse( configurationSets: (json['ConfigurationSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -8537,7 +8532,7 @@ class ListContactListsResponse { factory ListContactListsResponse.fromJson(Map json) { return ListContactListsResponse( contactLists: (json['ContactLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactList.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8596,7 +8591,7 @@ class ListContactsResponse { factory ListContactsResponse.fromJson(Map json) { return ListContactsResponse( contacts: (json['Contacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Contact.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8636,7 +8631,7 @@ class ListCustomVerificationEmailTemplatesResponse { return ListCustomVerificationEmailTemplatesResponse( customVerificationEmailTemplates: (json['CustomVerificationEmailTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomVerificationEmailTemplateMetadata.fromJson( e as Map)) .toList(), @@ -8676,7 +8671,7 @@ class ListDedicatedIpPoolsResponse { factory ListDedicatedIpPoolsResponse.fromJson(Map json) { return ListDedicatedIpPoolsResponse( dedicatedIpPools: (json['DedicatedIpPools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -8715,7 +8710,7 @@ class ListDeliverabilityTestReportsResponse { Map json) { return ListDeliverabilityTestReportsResponse( deliverabilityTestReports: (json['DeliverabilityTestReports'] as List) - .whereNotNull() + .nonNulls .map((e) => DeliverabilityTestReport.fromJson(e as Map)) .toList(), @@ -8757,7 +8752,7 @@ class ListDomainDeliverabilityCampaignsResponse { return ListDomainDeliverabilityCampaignsResponse( domainDeliverabilityCampaigns: (json['DomainDeliverabilityCampaigns'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainDeliverabilityCampaign.fromJson(e as Map)) .toList(), @@ -8796,7 +8791,7 @@ class ListEmailIdentitiesResponse { factory ListEmailIdentitiesResponse.fromJson(Map json) { return ListEmailIdentitiesResponse( emailIdentities: (json['EmailIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8833,7 +8828,7 @@ class ListEmailTemplatesResponse { return ListEmailTemplatesResponse( nextToken: json['NextToken'] as String?, templatesMetadata: (json['TemplatesMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EmailTemplateMetadata.fromJson(e as Map)) .toList(), ); @@ -8869,7 +8864,7 @@ class ListExportJobsResponse { factory ListExportJobsResponse.fromJson(Map json) { return ListExportJobsResponse( exportJobs: (json['ExportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8906,7 +8901,7 @@ class ListImportJobsResponse { factory ListImportJobsResponse.fromJson(Map json) { return ListImportJobsResponse( importJobs: (json['ImportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9009,7 +9004,7 @@ class ListRecommendationsResponse { return ListRecommendationsResponse( nextToken: json['NextToken'] as String?, recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), ); @@ -9048,7 +9043,7 @@ class ListSuppressedDestinationsResponse { nextToken: json['NextToken'] as String?, suppressedDestinationSummaries: (json['SuppressedDestinationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuppressedDestinationSummary.fromJson(e as Map)) .toList(), @@ -9079,7 +9074,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -9403,29 +9398,24 @@ class MessageInsightsFilters { factory MessageInsightsFilters.fromJson(Map json) { return MessageInsightsFilters( destination: (json['Destination'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fromEmailAddress: (json['FromEmailAddress'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - isp: (json['Isp'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + isp: (json['Isp'] as List?)?.nonNulls.map((e) => e as String).toList(), lastDeliveryEvent: (json['LastDeliveryEvent'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeliveryEventType.fromString((e as String))) .toList(), lastEngagementEvent: (json['LastEngagementEvent'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngagementEventType.fromString((e as String))) .toList(), - subject: (json['Subject'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + subject: + (json['Subject'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -9676,13 +9666,10 @@ class MetricDataResult { return MetricDataResult( id: json['Id'] as String?, timestamps: (json['Timestamps'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + values: (json['Values'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } @@ -9777,10 +9764,10 @@ class MetricsDataSource { return MetricsDataSource( dimensions: (json['Dimensions'] as Map).map((k, e) => MapEntry(MetricDimensionName.fromString(k), - (e as List).whereNotNull().map((e) => e as String).toList())), + (e as List).nonNulls.map((e) => e as String).toList())), endDate: nonNullableTimeStampFromJson(json['EndDate'] as Object), metrics: (json['Metrics'] as List) - .whereNotNull() + .nonNulls .map((e) => ExportMetric.fromJson(e as Map)) .toList(), namespace: MetricNamespace.fromString((json['Namespace'] as String)), @@ -9828,7 +9815,7 @@ class OverallVolume { factory OverallVolume.fromJson(Map json) { return OverallVolume( domainIspPlacements: (json['DomainIspPlacements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainIspPlacement.fromJson(e as Map)) .toList(), readRatePercent: json['ReadRatePercent'] as double?, @@ -10255,7 +10242,7 @@ class PutEmailIdentityDkimSigningAttributesResponse { return PutEmailIdentityDkimSigningAttributesResponse( dkimStatus: (json['DkimStatus'] as String?)?.let(DkimStatus.fromString), dkimTokens: (json['DkimTokens'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -10709,7 +10696,7 @@ class SendBulkEmailResponse { factory SendBulkEmailResponse.fromJson(Map json) { return SendBulkEmailResponse( bulkEmailEntryResults: (json['BulkEmailEntryResults'] as List) - .whereNotNull() + .nonNulls .map((e) => BulkEmailEntryResult.fromJson(e as Map)) .toList(), ); @@ -11042,7 +11029,7 @@ class SuppressionAttributes { factory SuppressionAttributes.fromJson(Map json) { return SuppressionAttributes( suppressedReasons: (json['SuppressedReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuppressionListReason.fromString((e as String))) .toList(), ); @@ -11176,7 +11163,7 @@ class SuppressionOptions { factory SuppressionOptions.fromJson(Map json) { return SuppressionOptions( suppressedReasons: (json['SuppressedReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuppressionListReason.fromString((e as String))) .toList(), ); diff --git a/aws_client/lib/src/generated/sfn/v2016_11_23.dart b/aws_client/lib/src/generated/sfn/v2016_11_23.dart index 56e182c65..fa58bd92f 100644 --- a/aws_client/lib/src/generated/sfn/v2016_11_23.dart +++ b/aws_client/lib/src/generated/sfn/v2016_11_23.dart @@ -3686,7 +3686,7 @@ class DescribeStateMachineAliasOutput { description: json['description'] as String?, name: json['name'] as String?, routingConfiguration: (json['routingConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoutingConfigurationListItem.fromJson(e as Map)) .toList(), @@ -4433,7 +4433,7 @@ class GetExecutionHistoryOutput { factory GetExecutionHistoryOutput.fromJson(Map json) { return GetExecutionHistoryOutput( events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => HistoryEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5459,7 +5459,7 @@ class ListActivitiesOutput { factory ListActivitiesOutput.fromJson(Map json) { return ListActivitiesOutput( activities: (json['activities'] as List) - .whereNotNull() + .nonNulls .map((e) => ActivityListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5496,7 +5496,7 @@ class ListExecutionsOutput { factory ListExecutionsOutput.fromJson(Map json) { return ListExecutionsOutput( executions: (json['executions'] as List) - .whereNotNull() + .nonNulls .map((e) => ExecutionListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5535,7 +5535,7 @@ class ListMapRunsOutput { factory ListMapRunsOutput.fromJson(Map json) { return ListMapRunsOutput( mapRuns: (json['mapRuns'] as List) - .whereNotNull() + .nonNulls .map((e) => MapRunListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5572,7 +5572,7 @@ class ListStateMachineAliasesOutput { factory ListStateMachineAliasesOutput.fromJson(Map json) { return ListStateMachineAliasesOutput( stateMachineAliases: (json['stateMachineAliases'] as List) - .whereNotNull() + .nonNulls .map((e) => StateMachineAliasListItem.fromJson(e as Map)) .toList(), @@ -5610,7 +5610,7 @@ class ListStateMachineVersionsOutput { factory ListStateMachineVersionsOutput.fromJson(Map json) { return ListStateMachineVersionsOutput( stateMachineVersions: (json['stateMachineVersions'] as List) - .whereNotNull() + .nonNulls .map((e) => StateMachineVersionListItem.fromJson(e as Map)) .toList(), @@ -5647,7 +5647,7 @@ class ListStateMachinesOutput { factory ListStateMachinesOutput.fromJson(Map json) { return ListStateMachinesOutput( stateMachines: (json['stateMachines'] as List) - .whereNotNull() + .nonNulls .map((e) => StateMachineListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5675,7 +5675,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5758,7 +5758,7 @@ class LoggingConfiguration { factory LoggingConfiguration.fromJson(Map json) { return LoggingConfiguration( destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogDestination.fromJson(e as Map)) .toList(), includeExecutionData: json['includeExecutionData'] as bool?, @@ -7503,7 +7503,7 @@ class ValidateStateMachineDefinitionOutput { Map json) { return ValidateStateMachineDefinitionOutput( diagnostics: (json['diagnostics'] as List) - .whereNotNull() + .nonNulls .map((e) => ValidateStateMachineDefinitionDiagnostic.fromJson( e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/shield/v2016_06_02.dart b/aws_client/lib/src/generated/shield/v2016_06_02.dart index 72c20fd22..75b65e43c 100644 --- a/aws_client/lib/src/generated/shield/v2016_06_02.dart +++ b/aws_client/lib/src/generated/shield/v2016_06_02.dart @@ -1777,23 +1777,23 @@ class AttackDetail { factory AttackDetail.fromJson(Map json) { return AttackDetail( attackCounters: (json['AttackCounters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SummarizedCounter.fromJson(e as Map)) .toList(), attackId: json['AttackId'] as String?, attackProperties: (json['AttackProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttackProperty.fromJson(e as Map)) .toList(), endTime: timeStampFromJson(json['EndTime']), mitigations: (json['Mitigations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Mitigation.fromJson(e as Map)) .toList(), resourceArn: json['ResourceArn'] as String?, startTime: timeStampFromJson(json['StartTime']), subResources: (json['SubResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubResourceSummary.fromJson(e as Map)) .toList(), ); @@ -1880,7 +1880,7 @@ class AttackProperty { attackPropertyIdentifier: (json['AttackPropertyIdentifier'] as String?) ?.let(AttackPropertyIdentifier.fromString), topContributors: (json['TopContributors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Contributor.fromJson(e as Map)) .toList(), total: json['Total'] as int?, @@ -1991,7 +1991,7 @@ class AttackSummary { return AttackSummary( attackId: json['AttackId'] as String?, attackVectors: (json['AttackVectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttackVectorDescription.fromJson(e as Map)) .toList(), @@ -2380,7 +2380,7 @@ class DescribeAttackStatisticsResponse { factory DescribeAttackStatisticsResponse.fromJson(Map json) { return DescribeAttackStatisticsResponse( dataItems: (json['DataItems'] as List) - .whereNotNull() + .nonNulls .map((e) => AttackStatisticsDataItem.fromJson(e as Map)) .toList(), @@ -2414,7 +2414,7 @@ class DescribeDRTAccessResponse { factory DescribeDRTAccessResponse.fromJson(Map json) { return DescribeDRTAccessResponse( logBucketList: (json['LogBucketList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), roleArn: json['RoleArn'] as String?, @@ -2445,7 +2445,7 @@ class DescribeEmergencyContactSettingsResponse { Map json) { return DescribeEmergencyContactSettingsResponse( emergencyContactList: (json['EmergencyContactList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EmergencyContact.fromJson(e as Map)) .toList(), ); @@ -2821,7 +2821,7 @@ class ListAttacksResponse { factory ListAttacksResponse.fromJson(Map json) { return ListAttacksResponse( attackSummaries: (json['AttackSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttackSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2865,7 +2865,7 @@ class ListProtectionGroupsResponse { factory ListProtectionGroupsResponse.fromJson(Map json) { return ListProtectionGroupsResponse( protectionGroups: (json['ProtectionGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => ProtectionGroup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2910,7 +2910,7 @@ class ListProtectionsResponse { return ListProtectionsResponse( nextToken: json['NextToken'] as String?, protections: (json['Protections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Protection.fromJson(e as Map)) .toList(), ); @@ -2955,7 +2955,7 @@ class ListResourcesInProtectionGroupResponse { Map json) { return ListResourcesInProtectionGroupResponse( resourceArns: (json['ResourceArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -2983,7 +2983,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3100,7 +3100,7 @@ class Protection { as Map) : null, healthCheckIds: (json['HealthCheckIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), id: json['Id'] as String?, @@ -3197,10 +3197,8 @@ class ProtectionGroup { return ProtectionGroup( aggregation: ProtectionGroupAggregation.fromString( (json['Aggregation'] as String)), - members: (json['Members'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + members: + (json['Members'] as List).nonNulls.map((e) => e as String).toList(), pattern: ProtectionGroupPattern.fromString((json['Pattern'] as String)), protectionGroupId: json['ProtectionGroupId'] as String, protectionGroupArn: json['ProtectionGroupArn'] as String?, @@ -3353,7 +3351,7 @@ class ProtectionLimits { factory ProtectionLimits.fromJson(Map json) { return ProtectionLimits( protectedResourceTypeLimits: (json['ProtectedResourceTypeLimits'] as List) - .whereNotNull() + .nonNulls .map((e) => Limit.fromJson(e as Map)) .toList(), ); @@ -3439,12 +3437,12 @@ class SubResourceSummary { factory SubResourceSummary.fromJson(Map json) { return SubResourceSummary( attackVectors: (json['AttackVectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SummarizedAttackVector.fromJson(e as Map)) .toList(), counters: (json['Counters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SummarizedCounter.fromJson(e as Map)) .toList(), id: json['Id'] as String?, @@ -3542,7 +3540,7 @@ class Subscription { autoRenew: (json['AutoRenew'] as String?)?.let(AutoRenew.fromString), endTime: timeStampFromJson(json['EndTime']), limits: (json['Limits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Limit.fromJson(e as Map)) .toList(), proactiveEngagementStatus: (json['ProactiveEngagementStatus'] as String?) @@ -3641,7 +3639,7 @@ class SummarizedAttackVector { return SummarizedAttackVector( vectorType: json['VectorType'] as String, vectorCounters: (json['VectorCounters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SummarizedCounter.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/signer/v2017_08_25.dart b/aws_client/lib/src/generated/signer/v2017_08_25.dart index f9d8dec53..a656b61e3 100644 --- a/aws_client/lib/src/generated/signer/v2017_08_25.dart +++ b/aws_client/lib/src/generated/signer/v2017_08_25.dart @@ -1217,7 +1217,7 @@ class EncryptionAlgorithmOptions { factory EncryptionAlgorithmOptions.fromJson(Map json) { return EncryptionAlgorithmOptions( allowedValues: (json['allowedValues'] as List) - .whereNotNull() + .nonNulls .map((e) => EncryptionAlgorithm.fromString((e as String))) .toList(), defaultValue: @@ -1247,7 +1247,7 @@ class GetRevocationStatusResponse { factory GetRevocationStatusResponse.fromJson(Map json) { return GetRevocationStatusResponse( revokedEntities: (json['revokedEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1509,7 +1509,7 @@ class HashAlgorithmOptions { factory HashAlgorithmOptions.fromJson(Map json) { return HashAlgorithmOptions( allowedValues: (json['allowedValues'] as List) - .whereNotNull() + .nonNulls .map((e) => HashAlgorithm.fromString((e as String))) .toList(), defaultValue: HashAlgorithm.fromString((json['defaultValue'] as String)), @@ -1565,7 +1565,7 @@ class ListProfilePermissionsResponse { return ListProfilePermissionsResponse( nextToken: json['nextToken'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromJson(e as Map)) .toList(), policySizeBytes: json['policySizeBytes'] as int?, @@ -1602,7 +1602,7 @@ class ListSigningJobsResponse { factory ListSigningJobsResponse.fromJson(Map json) { return ListSigningJobsResponse( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SigningJob.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1635,7 +1635,7 @@ class ListSigningPlatformsResponse { return ListSigningPlatformsResponse( nextToken: json['nextToken'] as String?, platforms: (json['platforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SigningPlatform.fromJson(e as Map)) .toList(), ); @@ -1669,7 +1669,7 @@ class ListSigningProfilesResponse { return ListSigningProfilesResponse( nextToken: json['nextToken'] as String?, profiles: (json['profiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SigningProfile.fromJson(e as Map)) .toList(), ); @@ -2087,7 +2087,7 @@ class SigningImageFormat { return SigningImageFormat( defaultFormat: ImageFormat.fromString((json['defaultFormat'] as String)), supportedFormats: (json['supportedFormats'] as List) - .whereNotNull() + .nonNulls .map((e) => ImageFormat.fromString((e as String))) .toList(), ); diff --git a/aws_client/lib/src/generated/sim_space_weaver/v2022_10_28.dart b/aws_client/lib/src/generated/sim_space_weaver/v2022_10_28.dart index 4fe0602f7..25e548cb8 100644 --- a/aws_client/lib/src/generated/sim_space_weaver/v2022_10_28.dart +++ b/aws_client/lib/src/generated/sim_space_weaver/v2022_10_28.dart @@ -1123,7 +1123,7 @@ class LaunchOverrides { factory LaunchOverrides.fromJson(Map json) { return LaunchOverrides( launchCommands: (json['LaunchCommands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1176,7 +1176,7 @@ class ListAppsOutput { factory ListAppsOutput.fromJson(Map json) { return ListAppsOutput( apps: (json['Apps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationAppMetadata.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1216,7 +1216,7 @@ class ListSimulationsOutput { return ListSimulationsOutput( nextToken: json['NextToken'] as String?, simulations: (json['Simulations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationMetadata.fromJson(e as Map)) .toList(), ); @@ -1278,11 +1278,11 @@ class LiveSimulationState { factory LiveSimulationState.fromJson(Map json) { return LiveSimulationState( clocks: (json['Clocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationClock.fromJson(e as Map)) .toList(), domains: (json['Domains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Domain.fromJson(e as Map)) .toList(), ); @@ -1341,7 +1341,7 @@ class LoggingConfiguration { factory LoggingConfiguration.fromJson(Map json) { return LoggingConfiguration( destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogDestination.fromJson(e as Map)) .toList(), ); @@ -1450,7 +1450,7 @@ class SimulationAppEndpointInfo { return SimulationAppEndpointInfo( address: json['Address'] as String?, ingressPortMappings: (json['IngressPortMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationAppPortMapping.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/sms/v2016_10_24.dart b/aws_client/lib/src/generated/sms/v2016_10_24.dart index 1cb8c1025..539a984f3 100644 --- a/aws_client/lib/src/generated/sms/v2016_10_24.dart +++ b/aws_client/lib/src/generated/sms/v2016_10_24.dart @@ -1890,7 +1890,7 @@ class Connector { return Connector( associatedOn: timeStampFromJson(json['associatedOn']), capabilityList: (json['capabilityList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectorCapability.fromString((e as String))) .toList(), connectorId: json['connectorId'] as String?, @@ -1988,11 +1988,11 @@ class CreateAppResponse { ? AppSummary.fromJson(json['appSummary'] as Map) : null, serverGroups: (json['serverGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerGroup.fromJson(e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2197,7 +2197,7 @@ class GetAppLaunchConfigurationResponse { roleName: json['roleName'] as String?, serverGroupLaunchConfigurations: (json['serverGroupLaunchConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerGroupLaunchConfiguration.fromJson( e as Map)) .toList(), @@ -2235,7 +2235,7 @@ class GetAppReplicationConfigurationResponse { return GetAppReplicationConfigurationResponse( serverGroupReplicationConfigurations: (json['serverGroupReplicationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerGroupReplicationConfiguration.fromJson( e as Map)) .toList(), @@ -2275,11 +2275,11 @@ class GetAppResponse { ? AppSummary.fromJson(json['appSummary'] as Map) : null, serverGroups: (json['serverGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerGroup.fromJson(e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2315,13 +2315,13 @@ class GetAppValidationConfigurationResponse { return GetAppValidationConfigurationResponse( appValidationConfigurations: (json['appValidationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppValidationConfiguration.fromJson(e as Map)) .toList(), serverGroupValidationConfigurations: (json['serverGroupValidationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerGroupValidationConfiguration.fromJson( e as Map)) .toList(), @@ -2353,7 +2353,7 @@ class GetAppValidationOutputResponse { factory GetAppValidationOutputResponse.fromJson(Map json) { return GetAppValidationOutputResponse( validationOutputList: (json['validationOutputList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationOutput.fromJson(e as Map)) .toList(), ); @@ -2384,7 +2384,7 @@ class GetConnectorsResponse { factory GetConnectorsResponse.fromJson(Map json) { return GetConnectorsResponse( connectorList: (json['connectorList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connector.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2418,7 +2418,7 @@ class GetReplicationJobsResponse { return GetReplicationJobsResponse( nextToken: json['nextToken'] as String?, replicationJobList: (json['replicationJobList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationJob.fromJson(e as Map)) .toList(), ); @@ -2459,7 +2459,7 @@ class GetReplicationRunsResponse { json['replicationJob'] as Map) : null, replicationRunList: (json['replicationRunList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationRun.fromJson(e as Map)) .toList(), ); @@ -2505,7 +2505,7 @@ class GetServersResponse { serverCatalogStatus: (json['serverCatalogStatus'] as String?) ?.let(ServerCatalogStatus.fromString), serverList: (json['serverList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Server.fromJson(e as Map)) .toList(), ); @@ -2631,7 +2631,7 @@ class ListAppsResponse { factory ListAppsResponse.fromJson(Map json) { return ListAppsResponse( apps: (json['apps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2854,7 +2854,7 @@ class ReplicationJob { numberOfRecentAmisToKeep: json['numberOfRecentAmisToKeep'] as int?, replicationJobId: json['replicationJobId'] as String?, replicationRunList: (json['replicationRunList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationRun.fromJson(e as Map)) .toList(), roleName: json['roleName'] as String?, @@ -3342,7 +3342,7 @@ class ServerGroup { name: json['name'] as String?, serverGroupId: json['serverGroupId'] as String?, serverList: (json['serverList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Server.fromJson(e as Map)) .toList(), ); @@ -3383,7 +3383,7 @@ class ServerGroupLaunchConfiguration { launchOrder: json['launchOrder'] as int?, serverGroupId: json['serverGroupId'] as String?, serverLaunchConfigurations: (json['serverLaunchConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerLaunchConfiguration.fromJson(e as Map)) .toList(), @@ -3423,7 +3423,7 @@ class ServerGroupReplicationConfiguration { serverGroupId: json['serverGroupId'] as String?, serverReplicationConfigurations: (json['serverReplicationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerReplicationConfiguration.fromJson( e as Map)) .toList(), @@ -3461,7 +3461,7 @@ class ServerGroupValidationConfiguration { serverGroupId: json['serverGroupId'] as String?, serverValidationConfigurations: (json['serverValidationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerValidationConfiguration.fromJson(e as Map)) .toList(), @@ -3967,11 +3967,11 @@ class UpdateAppResponse { ? AppSummary.fromJson(json['appSummary'] as Map) : null, serverGroups: (json['serverGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerGroup.fromJson(e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/snow_device_management/v2021_08_04.dart b/aws_client/lib/src/generated/snow_device_management/v2021_08_04.dart index e7bf1a506..51d27d04a 100644 --- a/aws_client/lib/src/generated/snow_device_management/v2021_08_04.dart +++ b/aws_client/lib/src/generated/snow_device_management/v2021_08_04.dart @@ -675,7 +675,7 @@ class DescribeDeviceEc2Output { factory DescribeDeviceEc2Output.fromJson(Map json) { return DescribeDeviceEc2Output( instances: (json['instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceSummary.fromJson(e as Map)) .toList(), ); @@ -745,7 +745,7 @@ class DescribeDeviceOutput { return DescribeDeviceOutput( associatedWithJob: json['associatedWithJob'] as String?, deviceCapacities: (json['deviceCapacities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Capacity.fromJson(e as Map)) .toList(), deviceState: @@ -756,7 +756,7 @@ class DescribeDeviceOutput { managedDeviceArn: json['managedDeviceArn'] as String?, managedDeviceId: json['managedDeviceId'] as String?, physicalNetworkInterfaces: (json['physicalNetworkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhysicalNetworkInterface.fromJson(e as Map)) .toList(), @@ -909,10 +909,8 @@ class DescribeTaskOutput { state: (json['state'] as String?)?.let(TaskState.fromString), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), - targets: (json['targets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['targets'] as List?)?.nonNulls.map((e) => e as String).toList(), taskArn: json['taskArn'] as String?, taskId: json['taskId'] as String?, ); @@ -1163,7 +1161,7 @@ class Instance { return Instance( amiLaunchIndex: json['amiLaunchIndex'] as int?, blockDeviceMappings: (json['blockDeviceMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceBlockDeviceMapping.fromJson(e as Map)) .toList(), @@ -1178,7 +1176,7 @@ class Instance { publicIpAddress: json['publicIpAddress'] as String?, rootDeviceName: json['rootDeviceName'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityGroupIdentifier.fromJson(e as Map)) .toList(), @@ -1402,7 +1400,7 @@ class ListDeviceResourcesOutput { return ListDeviceResourcesOutput( nextToken: json['nextToken'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceSummary.fromJson(e as Map)) .toList(), ); @@ -1433,7 +1431,7 @@ class ListDevicesOutput { factory ListDevicesOutput.fromJson(Map json) { return ListDevicesOutput( devices: (json['devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1466,7 +1464,7 @@ class ListExecutionsOutput { factory ListExecutionsOutput.fromJson(Map json) { return ListExecutionsOutput( executions: (json['executions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExecutionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1522,7 +1520,7 @@ class ListTasksOutput { return ListTasksOutput( nextToken: json['nextToken'] as String?, tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskSummary.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/snowball/v2016_06_30.dart b/aws_client/lib/src/generated/snowball/v2016_06_30.dart index f2bf5c566..e00ee87d1 100644 --- a/aws_client/lib/src/generated/snowball/v2016_06_30.dart +++ b/aws_client/lib/src/generated/snowball/v2016_06_30.dart @@ -2179,7 +2179,7 @@ class CreateClusterResult { return CreateClusterResult( clusterId: json['ClusterId'] as String?, jobListEntries: (json['JobListEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobListEntry.fromJson(e as Map)) .toList(), ); @@ -2391,7 +2391,7 @@ class DescribeAddressesResult { factory DescribeAddressesResult.fromJson(Map json) { return DescribeAddressesResult( addresses: (json['Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Address.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2454,7 +2454,7 @@ class DescribeJobResult { ? JobMetadata.fromJson(json['JobMetadata'] as Map) : null, subJobMetadata: (json['SubJobMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobMetadata.fromJson(e as Map)) .toList(), ); @@ -3200,15 +3200,15 @@ class JobResource { factory JobResource.fromJson(Map json) { return JobResource( ec2AmiResources: (json['Ec2AmiResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ec2AmiResource.fromJson(e as Map)) .toList(), lambdaResources: (json['LambdaResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LambdaResource.fromJson(e as Map)) .toList(), s3Resources: (json['S3Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Resource.fromJson(e as Map)) .toList(), ); @@ -3320,7 +3320,7 @@ class LambdaResource { factory LambdaResource.fromJson(Map json) { return LambdaResource( eventTriggers: (json['EventTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => EventTriggerDefinition.fromJson(e as Map)) .toList(), @@ -3357,7 +3357,7 @@ class ListClusterJobsResult { factory ListClusterJobsResult.fromJson(Map json) { return ListClusterJobsResult( jobListEntries: (json['JobListEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobListEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3393,7 +3393,7 @@ class ListClustersResult { factory ListClustersResult.fromJson(Map json) { return ListClustersResult( clusterListEntries: (json['ClusterListEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterListEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3427,7 +3427,7 @@ class ListCompatibleImagesResult { factory ListCompatibleImagesResult.fromJson(Map json) { return ListCompatibleImagesResult( compatibleImages: (json['CompatibleImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CompatibleImage.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3464,7 +3464,7 @@ class ListJobsResult { factory ListJobsResult.fromJson(Map json) { return ListJobsResult( jobListEntries: (json['JobListEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobListEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3498,7 +3498,7 @@ class ListLongTermPricingResult { factory ListLongTermPricingResult.fromJson(Map json) { return ListLongTermPricingResult( longTermPricingEntries: (json['LongTermPricingEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LongTermPricingListEntry.fromJson(e as Map)) .toList(), @@ -3535,7 +3535,7 @@ class ListPickupLocationsResult { factory ListPickupLocationsResult.fromJson(Map json) { return ListPickupLocationsResult( addresses: (json['Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Address.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3578,11 +3578,11 @@ class ListServiceVersionsResult { return ListServiceVersionsResult( serviceName: ServiceName.fromString((json['ServiceName'] as String)), serviceVersions: (json['ServiceVersions'] as List) - .whereNotNull() + .nonNulls .map((e) => ServiceVersion.fromJson(e as Map)) .toList(), dependentServices: (json['DependentServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DependentService.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3655,10 +3655,8 @@ class LongTermPricingListEntry { return LongTermPricingListEntry( currentActiveJob: json['CurrentActiveJob'] as String?, isLongTermPricingAutoRenew: json['IsLongTermPricingAutoRenew'] as bool?, - jobIds: (json['JobIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + jobIds: + (json['JobIds'] as List?)?.nonNulls.map((e) => e as String).toList(), longTermPricingEndDate: timeStampFromJson(json['LongTermPricingEndDate']), longTermPricingId: json['LongTermPricingId'] as String?, longTermPricingStartDate: @@ -3798,7 +3796,7 @@ class Notification { return Notification( devicePickupSnsTopicARN: json['DevicePickupSnsTopicARN'] as String?, jobStatesToNotify: (json['JobStatesToNotify'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobState.fromString((e as String))) .toList(), notifyAll: json['NotifyAll'] as bool?, @@ -4057,7 +4055,7 @@ class S3Resource { ? KeyRange.fromJson(json['KeyRange'] as Map) : null, targetOnDeviceServices: (json['TargetOnDeviceServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetOnDeviceService.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/sns/v2010_03_31.dart b/aws_client/lib/src/generated/sns/v2010_03_31.dart index 361b53ebe..a86eb06a8 100644 --- a/aws_client/lib/src/generated/sns/v2010_03_31.dart +++ b/aws_client/lib/src/generated/sns/v2010_03_31.dart @@ -3989,7 +3989,7 @@ class PhoneNumberInformation { phoneNumber: _s.extractXmlStringValue(elem, 'PhoneNumber'), routeType: _s .extractXmlStringValue(elem, 'RouteType') - ?.let(RouteType.fromString) /* Nullability(true, true) */, + ?.let(RouteType.fromString), status: _s.extractXmlStringValue(elem, 'Status'), ); } @@ -4393,9 +4393,9 @@ class SMSSandboxPhoneNumber { factory SMSSandboxPhoneNumber.fromXml(_s.XmlElement elem) { return SMSSandboxPhoneNumber( phoneNumber: _s.extractXmlStringValue(elem, 'PhoneNumber'), - status: _s.extractXmlStringValue(elem, 'Status')?.let( - SMSSandboxPhoneNumberVerificationStatus - .fromString) /* Nullability(true, true) */, + status: _s + .extractXmlStringValue(elem, 'Status') + ?.let(SMSSandboxPhoneNumberVerificationStatus.fromString), ); } diff --git a/aws_client/lib/src/generated/sqs/v2012_11_05.dart b/aws_client/lib/src/generated/sqs/v2012_11_05.dart index ebf8cb789..1d03c833b 100644 --- a/aws_client/lib/src/generated/sqs/v2012_11_05.dart +++ b/aws_client/lib/src/generated/sqs/v2012_11_05.dart @@ -2941,11 +2941,11 @@ class ChangeMessageVisibilityBatchResult { Map json) { return ChangeMessageVisibilityBatchResult( failed: (json['Failed'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchResultErrorEntry.fromJson(e as Map)) .toList(), successful: (json['Successful'] as List) - .whereNotNull() + .nonNulls .map((e) => ChangeMessageVisibilityBatchResultEntry.fromJson( e as Map)) .toList(), @@ -3059,11 +3059,11 @@ class DeleteMessageBatchResult { factory DeleteMessageBatchResult.fromJson(Map json) { return DeleteMessageBatchResult( failed: (json['Failed'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchResultErrorEntry.fromJson(e as Map)) .toList(), successful: (json['Successful'] as List) - .whereNotNull() + .nonNulls .map((e) => DeleteMessageBatchResultEntry.fromJson(e as Map)) .toList(), @@ -3172,10 +3172,8 @@ class ListDeadLetterSourceQueuesResult { factory ListDeadLetterSourceQueuesResult.fromJson(Map json) { return ListDeadLetterSourceQueuesResult( - queueUrls: (json['queueUrls'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + queueUrls: + (json['queueUrls'] as List).nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -3201,7 +3199,7 @@ class ListMessageMoveTasksResult { factory ListMessageMoveTasksResult.fromJson(Map json) { return ListMessageMoveTasksResult( results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListMessageMoveTasksResultEntry.fromJson( e as Map)) .toList(), @@ -3358,7 +3356,7 @@ class ListQueuesResult { return ListQueuesResult( nextToken: json['NextToken'] as String?, queueUrls: (json['QueueUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3530,12 +3528,12 @@ class MessageAttributeValue { return MessageAttributeValue( dataType: json['DataType'] as String, binaryListValues: (json['BinaryListValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => _s.decodeUint8List(e as String)) .toList(), binaryValue: _s.decodeNullableUint8List(json['BinaryValue'] as String?), stringListValues: (json['StringListValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stringValue: json['StringValue'] as String?, @@ -3702,7 +3700,7 @@ class ReceiveMessageResult { factory ReceiveMessageResult.fromJson(Map json) { return ReceiveMessageResult( messages: (json['Messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Message.fromJson(e as Map)) .toList(), ); @@ -3920,11 +3918,11 @@ class SendMessageBatchResult { factory SendMessageBatchResult.fromJson(Map json) { return SendMessageBatchResult( failed: (json['Failed'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchResultErrorEntry.fromJson(e as Map)) .toList(), successful: (json['Successful'] as List) - .whereNotNull() + .nonNulls .map((e) => SendMessageBatchResultEntry.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/ssm/v2014_11_06.dart b/aws_client/lib/src/generated/ssm/v2014_11_06.dart index 9e9cf6542..2e3184c6a 100644 --- a/aws_client/lib/src/generated/ssm/v2014_11_06.dart +++ b/aws_client/lib/src/generated/ssm/v2014_11_06.dart @@ -10459,7 +10459,7 @@ class Activation { registrationLimit: json['RegistrationLimit'] as int?, registrationsCount: json['RegistrationsCount'] as int?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -10549,7 +10549,7 @@ class AlarmConfiguration { factory AlarmConfiguration.fromJson(Map json) { return AlarmConfiguration( alarms: (json['Alarms'] as List) - .whereNotNull() + .nonNulls .map((e) => Alarm.fromJson(e as Map)) .toList(), ignorePollAlarmFailure: json['IgnorePollAlarmFailure'] as bool?, @@ -10714,12 +10714,12 @@ class Association { scheduleExpression: json['ScheduleExpression'] as String?, scheduleOffset: json['ScheduleOffset'] as int?, targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); @@ -10959,7 +10959,7 @@ class AssociationDescription { automationTargetParameterName: json['AutomationTargetParameterName'] as String?, calendarNames: (json['CalendarNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), complianceSeverity: (json['ComplianceSeverity'] as String?) @@ -10985,8 +10985,7 @@ class AssociationDescription { json['Overview'] as Map) : null, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), scheduleExpression: json['ScheduleExpression'] as String?, scheduleOffset: json['ScheduleOffset'] as int?, status: json['Status'] != null @@ -10995,20 +10994,20 @@ class AssociationDescription { syncCompliance: (json['SyncCompliance'] as String?) ?.let(AssociationSyncCompliance.fromString), targetLocations: (json['TargetLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetLocation.fromJson(e as Map)) .toList(), targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), ); @@ -11146,7 +11145,7 @@ class AssociationExecution { resourceCountByStatus: json['ResourceCountByStatus'] as String?, status: json['Status'] as String?, triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), ); @@ -11673,7 +11672,7 @@ class AssociationVersionInfo { associationName: json['AssociationName'] as String?, associationVersion: json['AssociationVersion'] as String?, calendarNames: (json['CalendarNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), complianceSeverity: (json['ComplianceSeverity'] as String?) @@ -11689,23 +11688,22 @@ class AssociationVersionInfo { json['OutputLocation'] as Map) : null, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), scheduleExpression: json['ScheduleExpression'] as String?, scheduleOffset: json['ScheduleOffset'] as int?, syncCompliance: (json['SyncCompliance'] as String?) ?.let(AssociationSyncCompliance.fromString), targetLocations: (json['TargetLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetLocation.fromJson(e as Map)) .toList(), targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); @@ -12115,11 +12113,9 @@ class AutomationExecution { mode: (json['Mode'] as String?)?.let(ExecutionMode.fromString), opsItemId: json['OpsItemId'] as String?, outputs: (json['Outputs'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), parentAutomationExecutionId: json['ParentAutomationExecutionId'] as String?, progressCounters: json['ProgressCounters'] != null @@ -12131,37 +12127,36 @@ class AutomationExecution { json['ResolvedTargets'] as Map) : null, runbooks: (json['Runbooks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Runbook.fromJson(e as Map)) .toList(), scheduledTime: timeStampFromJson(json['ScheduledTime']), stepExecutions: (json['StepExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StepExecution.fromJson(e as Map)) .toList(), stepExecutionsTruncated: json['StepExecutionsTruncated'] as bool?, target: json['Target'] as String?, targetLocations: (json['TargetLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetLocation.fromJson(e as Map)) .toList(), targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targetParameterName: json['TargetParameterName'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), variables: (json['Variables'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -12468,8 +12463,7 @@ class AutomationExecutionMetadata { mode: (json['Mode'] as String?)?.let(ExecutionMode.fromString), opsItemId: json['OpsItemId'] as String?, outputs: (json['Outputs'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), parentAutomationExecutionId: json['ParentAutomationExecutionId'] as String?, resolvedTargets: json['ResolvedTargets'] != null @@ -12477,23 +12471,23 @@ class AutomationExecutionMetadata { json['ResolvedTargets'] as Map) : null, runbooks: (json['Runbooks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Runbook.fromJson(e as Map)) .toList(), scheduledTime: timeStampFromJson(json['ScheduledTime']), target: json['Target'] as String?, targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targetParameterName: json['TargetParameterName'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), ); @@ -13022,7 +13016,7 @@ class Command { errorCount: json['ErrorCount'] as int?, expiresAfter: timeStampFromJson(json['ExpiresAfter']), instanceIds: (json['InstanceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxConcurrency: json['MaxConcurrency'] as String?, @@ -13035,20 +13029,19 @@ class Command { outputS3KeyPrefix: json['OutputS3KeyPrefix'] as String?, outputS3Region: json['OutputS3Region'] as String?, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), requestedDateTime: timeStampFromJson(json['RequestedDateTime']), serviceRole: json['ServiceRole'] as String?, status: (json['Status'] as String?)?.let(CommandStatus.fromString), statusDetails: json['StatusDetails'] as String?, targetCount: json['TargetCount'] as int?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), timeoutSeconds: json['TimeoutSeconds'] as int?, triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), ); @@ -13442,7 +13435,7 @@ class CommandInvocation { : null, commandId: json['CommandId'] as String?, commandPlugins: (json['CommandPlugins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CommandPlugin.fromJson(e as Map)) .toList(), comment: json['Comment'] as String?, @@ -14365,7 +14358,7 @@ class CreateAssociationBatchRequestEntry { automationTargetParameterName: json['AutomationTargetParameterName'] as String?, calendarNames: (json['CalendarNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), complianceSeverity: (json['ComplianceSeverity'] as String?) @@ -14380,23 +14373,22 @@ class CreateAssociationBatchRequestEntry { json['OutputLocation'] as Map) : null, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), scheduleExpression: json['ScheduleExpression'] as String?, scheduleOffset: json['ScheduleOffset'] as int?, syncCompliance: (json['SyncCompliance'] as String?) ?.let(AssociationSyncCompliance.fromString), targetLocations: (json['TargetLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetLocation.fromJson(e as Map)) .toList(), targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); @@ -14466,12 +14458,12 @@ class CreateAssociationBatchResult { factory CreateAssociationBatchResult.fromJson(Map json) { return CreateAssociationBatchResult( failed: (json['Failed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCreateAssociation.fromJson(e as Map)) .toList(), successful: (json['Successful'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AssociationDescription.fromJson(e as Map)) .toList(), @@ -14804,11 +14796,11 @@ class DeleteParametersResult { factory DeleteParametersResult.fromJson(Map json) { return DeleteParametersResult( deletedParameters: (json['DeletedParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), invalidParameters: (json['InvalidParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15027,7 +15019,7 @@ class DescribeActivationsResult { factory DescribeActivationsResult.fromJson(Map json) { return DescribeActivationsResult( activationList: (json['ActivationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Activation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15062,7 +15054,7 @@ class DescribeAssociationExecutionTargetsResult { return DescribeAssociationExecutionTargetsResult( associationExecutionTargets: (json['AssociationExecutionTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociationExecutionTarget.fromJson(e as Map)) .toList(), @@ -15098,7 +15090,7 @@ class DescribeAssociationExecutionsResult { Map json) { return DescribeAssociationExecutionsResult( associationExecutions: (json['AssociationExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociationExecution.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15161,7 +15153,7 @@ class DescribeAutomationExecutionsResult { return DescribeAutomationExecutionsResult( automationExecutionMetadataList: (json['AutomationExecutionMetadataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomationExecutionMetadata.fromJson(e as Map)) .toList(), @@ -15200,7 +15192,7 @@ class DescribeAutomationStepExecutionsResult { return DescribeAutomationStepExecutionsResult( nextToken: json['NextToken'] as String?, stepExecutions: (json['StepExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StepExecution.fromJson(e as Map)) .toList(), ); @@ -15233,7 +15225,7 @@ class DescribeAvailablePatchesResult { return DescribeAvailablePatchesResult( nextToken: json['NextToken'] as String?, patches: (json['Patches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Patch.fromJson(e as Map)) .toList(), ); @@ -15272,11 +15264,11 @@ class DescribeDocumentPermissionResponse { Map json) { return DescribeDocumentPermissionResponse( accountIds: (json['AccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), accountSharingInfoList: (json['AccountSharingInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountSharingInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15338,7 +15330,7 @@ class DescribeEffectiveInstanceAssociationsResult { Map json) { return DescribeEffectiveInstanceAssociationsResult( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceAssociation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15372,7 +15364,7 @@ class DescribeEffectivePatchesForPatchBaselineResult { Map json) { return DescribeEffectivePatchesForPatchBaselineResult( effectivePatches: (json['EffectivePatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectivePatch.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15407,7 +15399,7 @@ class DescribeInstanceAssociationsStatusResult { return DescribeInstanceAssociationsStatusResult( instanceAssociationStatusInfos: (json['InstanceAssociationStatusInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceAssociationStatusInfo.fromJson(e as Map)) .toList(), @@ -15443,7 +15435,7 @@ class DescribeInstanceInformationResult { Map json) { return DescribeInstanceInformationResult( instanceInformationList: (json['InstanceInformationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15478,7 +15470,7 @@ class DescribeInstancePatchStatesForPatchGroupResult { Map json) { return DescribeInstancePatchStatesForPatchGroupResult( instancePatchStates: (json['InstancePatchStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstancePatchState.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15513,7 +15505,7 @@ class DescribeInstancePatchStatesResult { Map json) { return DescribeInstancePatchStatesResult( instancePatchStates: (json['InstancePatchStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstancePatchState.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15572,7 +15564,7 @@ class DescribeInstancePatchesResult { return DescribeInstancePatchesResult( nextToken: json['NextToken'] as String?, patches: (json['Patches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PatchComplianceData.fromJson(e as Map)) .toList(), ); @@ -15604,7 +15596,7 @@ class DescribeInstancePropertiesResult { factory DescribeInstancePropertiesResult.fromJson(Map json) { return DescribeInstancePropertiesResult( instanceProperties: (json['InstanceProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceProperty.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15637,7 +15629,7 @@ class DescribeInventoryDeletionsResult { factory DescribeInventoryDeletionsResult.fromJson(Map json) { return DescribeInventoryDeletionsResult( inventoryDeletions: (json['InventoryDeletions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InventoryDeletionStatusItem.fromJson(e as Map)) .toList(), @@ -15675,7 +15667,7 @@ class DescribeMaintenanceWindowExecutionTaskInvocationsResult { nextToken: json['NextToken'] as String?, windowExecutionTaskInvocationIdentities: (json['WindowExecutionTaskInvocationIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowExecutionTaskInvocationIdentity.fromJson( e as Map)) @@ -15716,7 +15708,7 @@ class DescribeMaintenanceWindowExecutionTasksResult { nextToken: json['NextToken'] as String?, windowExecutionTaskIdentities: (json['WindowExecutionTaskIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowExecutionTaskIdentity.fromJson( e as Map)) .toList(), @@ -15752,7 +15744,7 @@ class DescribeMaintenanceWindowExecutionsResult { return DescribeMaintenanceWindowExecutionsResult( nextToken: json['NextToken'] as String?, windowExecutions: (json['WindowExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowExecution.fromJson(e as Map)) .toList(), @@ -15788,7 +15780,7 @@ class DescribeMaintenanceWindowScheduleResult { return DescribeMaintenanceWindowScheduleResult( nextToken: json['NextToken'] as String?, scheduledWindowExecutions: (json['ScheduledWindowExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduledWindowExecution.fromJson(e as Map)) .toList(), @@ -15824,7 +15816,7 @@ class DescribeMaintenanceWindowTargetsResult { return DescribeMaintenanceWindowTargetsResult( nextToken: json['NextToken'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowTarget.fromJson(e as Map)) .toList(), @@ -15859,7 +15851,7 @@ class DescribeMaintenanceWindowTasksResult { return DescribeMaintenanceWindowTasksResult( nextToken: json['NextToken'] as String?, tasks: (json['Tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowTask.fromJson(e as Map)) .toList(), ); @@ -15894,7 +15886,7 @@ class DescribeMaintenanceWindowsForTargetResult { return DescribeMaintenanceWindowsForTargetResult( nextToken: json['NextToken'] as String?, windowIdentities: (json['WindowIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowIdentityForTarget.fromJson( e as Map)) .toList(), @@ -15928,7 +15920,7 @@ class DescribeMaintenanceWindowsResult { return DescribeMaintenanceWindowsResult( nextToken: json['NextToken'] as String?, windowIdentities: (json['WindowIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowIdentity.fromJson(e as Map)) .toList(), @@ -15962,7 +15954,7 @@ class DescribeOpsItemsResponse { return DescribeOpsItemsResponse( nextToken: json['NextToken'] as String?, opsItemSummaries: (json['OpsItemSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpsItemSummary.fromJson(e as Map)) .toList(), ); @@ -15994,7 +15986,7 @@ class DescribeParametersResult { return DescribeParametersResult( nextToken: json['NextToken'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterMetadata.fromJson(e as Map)) .toList(), ); @@ -16026,7 +16018,7 @@ class DescribePatchBaselinesResult { factory DescribePatchBaselinesResult.fromJson(Map json) { return DescribePatchBaselinesResult( baselineIdentities: (json['BaselineIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PatchBaselineIdentity.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -16230,7 +16222,7 @@ class DescribePatchGroupsResult { factory DescribePatchGroupsResult.fromJson(Map json) { return DescribePatchGroupsResult( mappings: (json['Mappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PatchGroupPatchBaselineMapping.fromJson( e as Map)) .toList(), @@ -16265,7 +16257,7 @@ class DescribePatchPropertiesResult { return DescribePatchPropertiesResult( nextToken: json['NextToken'] as String?, properties: (json['Properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -16299,7 +16291,7 @@ class DescribeSessionsResponse { return DescribeSessionsResponse( nextToken: json['NextToken'] as String?, sessions: (json['Sessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Session.fromJson(e as Map)) .toList(), ); @@ -16517,16 +16509,16 @@ class DocumentDescription { return DocumentDescription( approvedVersion: json['ApprovedVersion'] as String?, attachmentsInformation: (json['AttachmentsInformation'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachmentInformation.fromJson(e as Map)) .toList(), author: json['Author'] as String?, category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), categoryEnum: (json['CategoryEnum'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdDate: timeStampFromJson(json['CreatedDate']), @@ -16544,20 +16536,20 @@ class DocumentDescription { name: json['Name'] as String?, owner: json['Owner'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentParameter.fromJson(e as Map)) .toList(), pendingReviewVersion: json['PendingReviewVersion'] as String?, platformTypes: (json['PlatformTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformType.fromString((e as String))) .toList(), requires: (json['Requires'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentRequires.fromJson(e as Map)) .toList(), reviewInformation: (json['ReviewInformation'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReviewInformation.fromJson(e as Map)) .toList(), reviewStatus: @@ -16567,7 +16559,7 @@ class DocumentDescription { status: (json['Status'] as String?)?.let(DocumentStatus.fromString), statusInformation: json['StatusInformation'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), targetType: json['TargetType'] as String?, @@ -16804,18 +16796,18 @@ class DocumentIdentifier { name: json['Name'] as String?, owner: json['Owner'] as String?, platformTypes: (json['PlatformTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformType.fromString((e as String))) .toList(), requires: (json['Requires'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentRequires.fromJson(e as Map)) .toList(), reviewStatus: (json['ReviewStatus'] as String?)?.let(ReviewStatus.fromString), schemaVersion: json['SchemaVersion'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), targetType: json['TargetType'] as String?, @@ -16999,7 +16991,7 @@ class DocumentMetadataResponseInfo { factory DocumentMetadataResponseInfo.fromJson(Map json) { return DocumentMetadataResponseInfo( reviewerResponse: (json['ReviewerResponse'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentReviewerResponseSource.fromJson( e as Map)) .toList(), @@ -17238,7 +17230,7 @@ class DocumentReviewerResponseSource { factory DocumentReviewerResponseSource.fromJson(Map json) { return DocumentReviewerResponseSource( comment: (json['Comment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentReviewCommentSource.fromJson(e as Map)) .toList(), @@ -17570,8 +17562,7 @@ class FailureDetails { factory FailureDetails.fromJson(Map json) { return FailureDetails( details: (json['Details'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), failureStage: json['FailureStage'] as String?, failureType: json['FailureType'] as String?, ); @@ -18097,7 +18088,7 @@ class GetDocumentResult { factory GetDocumentResult.fromJson(Map json) { return GetDocumentResult( attachmentsContent: (json['AttachmentsContent'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachmentContent.fromJson(e as Map)) .toList(), content: json['Content'] as String?, @@ -18110,7 +18101,7 @@ class GetDocumentResult { documentVersion: json['DocumentVersion'] as String?, name: json['Name'] as String?, requires: (json['Requires'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentRequires.fromJson(e as Map)) .toList(), reviewStatus: @@ -18170,7 +18161,7 @@ class GetInventoryResult { factory GetInventoryResult.fromJson(Map json) { return GetInventoryResult( entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InventoryResultEntity.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -18204,7 +18195,7 @@ class GetInventorySchemaResult { return GetInventorySchemaResult( nextToken: json['NextToken'] as String?, schemas: (json['Schemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InventoryItemSchema.fromJson(e as Map)) .toList(), ); @@ -18256,10 +18247,8 @@ class GetMaintenanceWindowExecutionResult { status: (json['Status'] as String?) ?.let(MaintenanceWindowExecutionStatus.fromString), statusDetails: json['StatusDetails'] as String?, - taskIds: (json['TaskIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + taskIds: + (json['TaskIds'] as List?)?.nonNulls.map((e) => e as String).toList(), windowExecutionId: json['WindowExecutionId'] as String?, ); } @@ -18492,14 +18481,14 @@ class GetMaintenanceWindowExecutionTaskResult { taskArn: json['TaskArn'] as String?, taskExecutionId: json['TaskExecutionId'] as String?, taskParameters: (json['TaskParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( k, MaintenanceWindowTaskParameterValueExpression.fromJson( e as Map)))) .toList(), triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), type: @@ -18810,7 +18799,7 @@ class GetMaintenanceWindowTaskResult { priority: json['Priority'] as int?, serviceRoleArn: json['ServiceRoleArn'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), taskArn: json['TaskArn'] as String?, @@ -18947,7 +18936,7 @@ class GetOpsSummaryResult { factory GetOpsSummaryResult.fromJson(Map json) { return GetOpsSummaryResult( entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpsEntity.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -18981,7 +18970,7 @@ class GetParameterHistoryResult { return GetParameterHistoryResult( nextToken: json['NextToken'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterHistory.fromJson(e as Map)) .toList(), ); @@ -19038,7 +19027,7 @@ class GetParametersByPathResult { return GetParametersByPathResult( nextToken: json['NextToken'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), ); @@ -19070,11 +19059,11 @@ class GetParametersResult { factory GetParametersResult.fromJson(Map json) { return GetParametersResult( invalidParameters: (json['InvalidParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), ); @@ -19208,7 +19197,7 @@ class GetPatchBaselineResult { json['ApprovalRules'] as Map) : null, approvedPatches: (json['ApprovedPatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), approvedPatchesComplianceLevel: @@ -19228,17 +19217,17 @@ class GetPatchBaselineResult { operatingSystem: (json['OperatingSystem'] as String?)?.let(OperatingSystem.fromString), patchGroups: (json['PatchGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rejectedPatches: (json['RejectedPatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rejectedPatchesAction: (json['RejectedPatchesAction'] as String?) ?.let(PatchAction.fromString), sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PatchSource.fromJson(e as Map)) .toList(), ); @@ -19302,7 +19291,7 @@ class GetResourcePoliciesResponse { return GetResourcePoliciesResponse( nextToken: json['NextToken'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GetResourcePoliciesResponseEntry.fromJson( e as Map)) .toList(), @@ -20771,7 +20760,7 @@ class InventoryDeletionSummary { return InventoryDeletionSummary( remainingCount: json['RemainingCount'] as int?, summaryItems: (json['SummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InventoryDeletionSummaryItem.fromJson(e as Map)) .toList(), @@ -21018,7 +21007,7 @@ class InventoryItemSchema { factory InventoryItemSchema.fromJson(Map json) { return InventoryItemSchema( attributes: (json['Attributes'] as List) - .whereNotNull() + .nonNulls .map( (e) => InventoryItemAttribute.fromJson(e as Map)) .toList(), @@ -21126,7 +21115,7 @@ class InventoryResultItem { factory InventoryResultItem.fromJson(Map json) { return InventoryResultItem( content: (json['Content'] as List) - .whereNotNull() + .nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -21187,7 +21176,7 @@ class LabelParameterVersionResult { factory LabelParameterVersionResult.fromJson(Map json) { return LabelParameterVersionResult( invalidLabels: (json['InvalidLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), parameterVersion: json['ParameterVersion'] as int?, @@ -21237,7 +21226,7 @@ class ListAssociationVersionsResult { factory ListAssociationVersionsResult.fromJson(Map json) { return ListAssociationVersionsResult( associationVersions: (json['AssociationVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AssociationVersionInfo.fromJson(e as Map)) .toList(), @@ -21272,7 +21261,7 @@ class ListAssociationsResult { factory ListAssociationsResult.fromJson(Map json) { return ListAssociationsResult( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Association.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21305,7 +21294,7 @@ class ListCommandInvocationsResult { factory ListCommandInvocationsResult.fromJson(Map json) { return ListCommandInvocationsResult( commandInvocations: (json['CommandInvocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CommandInvocation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21338,7 +21327,7 @@ class ListCommandsResult { factory ListCommandsResult.fromJson(Map json) { return ListCommandsResult( commands: (json['Commands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Command.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21371,7 +21360,7 @@ class ListComplianceItemsResult { factory ListComplianceItemsResult.fromJson(Map json) { return ListComplianceItemsResult( complianceItems: (json['ComplianceItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComplianceItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21407,7 +21396,7 @@ class ListComplianceSummariesResult { factory ListComplianceSummariesResult.fromJson(Map json) { return ListComplianceSummariesResult( complianceSummaryItems: (json['ComplianceSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComplianceSummaryItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21498,7 +21487,7 @@ class ListDocumentVersionsResult { factory ListDocumentVersionsResult.fromJson(Map json) { return ListDocumentVersionsResult( documentVersions: (json['DocumentVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentVersionInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21531,7 +21520,7 @@ class ListDocumentsResult { factory ListDocumentsResult.fromJson(Map json) { return ListDocumentsResult( documentIdentifiers: (json['DocumentIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentIdentifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21582,7 +21571,7 @@ class ListInventoryEntriesResult { return ListInventoryEntriesResult( captureTime: json['CaptureTime'] as String?, entries: (json['Entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -21628,7 +21617,7 @@ class ListOpsItemEventsResponse { return ListOpsItemEventsResponse( nextToken: json['NextToken'] as String?, summaries: (json['Summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpsItemEventSummary.fromJson(e as Map)) .toList(), ); @@ -21661,7 +21650,7 @@ class ListOpsItemRelatedItemsResponse { return ListOpsItemRelatedItemsResponse( nextToken: json['NextToken'] as String?, summaries: (json['Summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpsItemRelatedItemSummary.fromJson(e as Map)) .toList(), @@ -21695,7 +21684,7 @@ class ListOpsMetadataResult { return ListOpsMetadataResult( nextToken: json['NextToken'] as String?, opsMetadataList: (json['OpsMetadataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpsMetadata.fromJson(e as Map)) .toList(), ); @@ -21733,7 +21722,7 @@ class ListResourceComplianceSummariesResult { nextToken: json['NextToken'] as String?, resourceComplianceSummaryItems: (json['ResourceComplianceSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceComplianceSummaryItem.fromJson(e as Map)) .toList(), @@ -21768,7 +21757,7 @@ class ListResourceDataSyncResult { return ListResourceDataSyncResult( nextToken: json['NextToken'] as String?, resourceDataSyncItems: (json['ResourceDataSyncItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceDataSyncItem.fromJson(e as Map)) .toList(), ); @@ -21796,7 +21785,7 @@ class ListTagsForResourceResult { factory ListTagsForResourceResult.fromJson(Map json) { return ListTagsForResourceResult( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -21898,8 +21887,7 @@ class MaintenanceWindowAutomationParameters { return MaintenanceWindowAutomationParameters( documentVersion: json['DocumentVersion'] as String?, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -22058,7 +22046,7 @@ class MaintenanceWindowExecutionTaskIdentity { taskType: (json['TaskType'] as String?) ?.let(MaintenanceWindowTaskType.fromString), triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), windowExecutionId: json['WindowExecutionId'] as String?, @@ -22575,8 +22563,7 @@ class MaintenanceWindowRunCommandParameters { outputS3BucketName: json['OutputS3BucketName'] as String?, outputS3KeyPrefix: json['OutputS3KeyPrefix'] as String?, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), serviceRoleArn: json['ServiceRoleArn'] as String?, timeoutSeconds: json['TimeoutSeconds'] as int?, ); @@ -22716,7 +22703,7 @@ class MaintenanceWindowTarget { resourceType: (json['ResourceType'] as String?) ?.let(MaintenanceWindowResourceType.fromString), targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), windowId: json['WindowId'] as String?, @@ -22879,7 +22866,7 @@ class MaintenanceWindowTask { priority: json['Priority'] as int?, serviceRoleArn: json['ServiceRoleArn'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), taskArn: json['TaskArn'] as String?, @@ -23016,10 +23003,8 @@ class MaintenanceWindowTaskParameterValueExpression { factory MaintenanceWindowTaskParameterValueExpression.fromJson( Map json) { return MaintenanceWindowTaskParameterValueExpression( - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -23156,7 +23141,7 @@ class NotificationConfig { return NotificationConfig( notificationArn: json['NotificationArn'] as String?, notificationEvents: (json['NotificationEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationEvent.fromString((e as String))) .toList(), notificationType: (json['NotificationType'] as String?) @@ -23337,7 +23322,7 @@ class OpsEntityItem { return OpsEntityItem( captureTime: json['CaptureTime'] as String?, content: (json['Content'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -23591,7 +23576,7 @@ class OpsItem { lastModifiedBy: json['LastModifiedBy'] as String?, lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), notifications: (json['Notifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpsItemNotification.fromJson(e as Map)) .toList(), operationalData: (json['OperationalData'] as Map?)?.map( @@ -23604,7 +23589,7 @@ class OpsItem { plannedStartTime: timeStampFromJson(json['PlannedStartTime']), priority: json['Priority'] as int?, relatedOpsItems: (json['RelatedOpsItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedOpsItem.fromJson(e as Map)) .toList(), severity: json['Severity'] as String?, @@ -24627,15 +24612,13 @@ class ParameterHistory { dataType: json['DataType'] as String?, description: json['Description'] as String?, keyId: json['KeyId'] as String?, - labels: (json['Labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['Labels'] as List?)?.nonNulls.map((e) => e as String).toList(), lastModifiedDate: timeStampFromJson(json['LastModifiedDate']), lastModifiedUser: json['LastModifiedUser'] as String?, name: json['Name'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterInlinePolicy.fromJson(e as Map)) .toList(), tier: (json['Tier'] as String?)?.let(ParameterTier.fromString), @@ -24792,7 +24775,7 @@ class ParameterMetadata { lastModifiedUser: json['LastModifiedUser'] as String?, name: json['Name'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterInlinePolicy.fromJson(e as Map)) .toList(), tier: (json['Tier'] as String?)?.let(ParameterTier.fromString), @@ -25136,18 +25119,16 @@ class Patch { factory Patch.fromJson(Map json) { return Patch( advisoryIds: (json['AdvisoryIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), arch: json['Arch'] as String?, bugzillaIds: (json['BugzillaIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - cVEIds: (json['CVEIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + cVEIds: + (json['CVEIds'] as List?)?.nonNulls.map((e) => e as String).toList(), classification: json['Classification'] as String?, contentUrl: json['ContentUrl'] as String?, description: json['Description'] as String?, @@ -25468,10 +25449,8 @@ class PatchFilter { factory PatchFilter.fromJson(Map json) { return PatchFilter( key: PatchFilterKey.fromString((json['Key'] as String)), - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -25497,7 +25476,7 @@ class PatchFilterGroup { factory PatchFilterGroup.fromJson(Map json) { return PatchFilterGroup( patchFilters: (json['PatchFilters'] as List) - .whereNotNull() + .nonNulls .map((e) => PatchFilter.fromJson(e as Map)) .toList(), ); @@ -25727,7 +25706,7 @@ class PatchRuleGroup { factory PatchRuleGroup.fromJson(Map json) { return PatchRuleGroup( patchRules: (json['PatchRules'] as List) - .whereNotNull() + .nonNulls .map((e) => PatchRule.fromJson(e as Map)) .toList(), ); @@ -25793,10 +25772,8 @@ class PatchSource { return PatchSource( configuration: json['Configuration'] as String, name: json['Name'] as String, - products: (json['Products'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + products: + (json['Products'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -26262,7 +26239,7 @@ class ResolvedTargets { factory ResolvedTargets.fromJson(Map json) { return ResolvedTargets( parameterValues: (json['ParameterValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), truncated: json['Truncated'] as bool?, @@ -26388,7 +26365,7 @@ class ResourceDataSyncAwsOrganizationsSource { return ResourceDataSyncAwsOrganizationsSource( organizationSourceType: json['OrganizationSourceType'] as String, organizationalUnits: (json['OrganizationalUnits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceDataSyncOrganizationalUnit.fromJson( e as Map)) .toList(), @@ -26777,7 +26754,7 @@ class ResourceDataSyncSourceWithState { enableAllOpsDataSources: json['EnableAllOpsDataSources'] as bool?, includeFutureRegions: json['IncludeFutureRegions'] as bool?, sourceRegions: (json['SourceRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceType: json['SourceType'] as String?, @@ -27030,20 +27007,19 @@ class Runbook { maxConcurrency: json['MaxConcurrency'] as String?, maxErrors: json['MaxErrors'] as String?, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), targetLocations: (json['TargetLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetLocation.fromJson(e as Map)) .toList(), targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targetParameterName: json['TargetParameterName'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); @@ -27902,12 +27878,11 @@ class StepExecution { nextStep: json['NextStep'] as String?, onFailure: json['OnFailure'] as String?, outputs: (json['Outputs'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), - overriddenParameters: (json['OverriddenParameters'] - as Map?) - ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), + overriddenParameters: + (json['OverriddenParameters'] as Map?)?.map((k, e) => + MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), parentStepDetails: json['ParentStepDetails'] != null ? ParentStepDetails.fromJson( json['ParentStepDetails'] as Map) @@ -27923,16 +27898,16 @@ class StepExecution { json['TargetLocation'] as Map) : null, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), timeoutSeconds: json['TimeoutSeconds'] as int?, triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), validNextSteps: (json['ValidNextSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -28211,10 +28186,8 @@ class Target { factory Target.fromJson(Map json) { return Target( key: json['Key'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -28265,14 +28238,12 @@ class TargetLocation { factory TargetLocation.fromJson(Map json) { return TargetLocation( accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), executionRoleName: json['ExecutionRoleName'] as String?, - regions: (json['Regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['Regions'] as List?)?.nonNulls.map((e) => e as String).toList(), targetLocationAlarmConfiguration: json['TargetLocationAlarmConfiguration'] != null ? AlarmConfiguration.fromJson( @@ -28344,11 +28315,11 @@ class UnlabelParameterVersionResult { factory UnlabelParameterVersionResult.fromJson(Map json) { return UnlabelParameterVersionResult( invalidLabels: (json['InvalidLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), removedLabels: (json['RemovedLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -28628,7 +28599,7 @@ class UpdateMaintenanceWindowTargetResult { name: json['Name'] as String?, ownerInformation: json['OwnerInformation'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), windowId: json['WindowId'] as String?, @@ -28759,7 +28730,7 @@ class UpdateMaintenanceWindowTaskResult { priority: json['Priority'] as int?, serviceRoleArn: json['ServiceRoleArn'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), taskArn: json['TaskArn'] as String?, @@ -28935,7 +28906,7 @@ class UpdatePatchBaselineResult { json['ApprovalRules'] as Map) : null, approvedPatches: (json['ApprovedPatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), approvedPatchesComplianceLevel: @@ -28955,13 +28926,13 @@ class UpdatePatchBaselineResult { operatingSystem: (json['OperatingSystem'] as String?)?.let(OperatingSystem.fromString), rejectedPatches: (json['RejectedPatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rejectedPatchesAction: (json['RejectedPatchesAction'] as String?) ?.let(PatchAction.fromString), sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PatchSource.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/ssm_contacts/v2021_05_03.dart b/aws_client/lib/src/generated/ssm_contacts/v2021_05_03.dart index e0776dd0e..b10305eec 100644 --- a/aws_client/lib/src/generated/ssm_contacts/v2021_05_03.dart +++ b/aws_client/lib/src/generated/ssm_contacts/v2021_05_03.dart @@ -2834,7 +2834,7 @@ class GetRotationOverrideResult { createTime: timeStampFromJson(json['CreateTime']), endTime: timeStampFromJson(json['EndTime']), newContactIds: (json['NewContactIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rotationArn: json['RotationArn'] as String?, @@ -2895,7 +2895,7 @@ class GetRotationResult { factory GetRotationResult.fromJson(Map json) { return GetRotationResult( contactIds: (json['ContactIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String, @@ -2970,7 +2970,7 @@ class ListContactChannelsResult { factory ListContactChannelsResult.fromJson(Map json) { return ListContactChannelsResult( contactChannels: (json['ContactChannels'] as List) - .whereNotNull() + .nonNulls .map((e) => ContactChannel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3003,7 +3003,7 @@ class ListContactsResult { factory ListContactsResult.fromJson(Map json) { return ListContactsResult( contacts: (json['Contacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Contact.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3036,7 +3036,7 @@ class ListEngagementsResult { factory ListEngagementsResult.fromJson(Map json) { return ListEngagementsResult( engagements: (json['Engagements'] as List) - .whereNotNull() + .nonNulls .map((e) => Engagement.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3069,7 +3069,7 @@ class ListPageReceiptsResult { return ListPageReceiptsResult( nextToken: json['NextToken'] as String?, receipts: (json['Receipts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Receipt.fromJson(e as Map)) .toList(), ); @@ -3101,7 +3101,7 @@ class ListPageResolutionsResult { factory ListPageResolutionsResult.fromJson(Map json) { return ListPageResolutionsResult( pageResolutions: (json['PageResolutions'] as List) - .whereNotNull() + .nonNulls .map((e) => ResolutionContact.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3133,7 +3133,7 @@ class ListPagesByContactResult { factory ListPagesByContactResult.fromJson(Map json) { return ListPagesByContactResult( pages: (json['Pages'] as List) - .whereNotNull() + .nonNulls .map((e) => Page.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3165,7 +3165,7 @@ class ListPagesByEngagementResult { factory ListPagesByEngagementResult.fromJson(Map json) { return ListPagesByEngagementResult( pages: (json['Pages'] as List) - .whereNotNull() + .nonNulls .map((e) => Page.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3199,7 +3199,7 @@ class ListPreviewRotationShiftsResult { return ListPreviewRotationShiftsResult( nextToken: json['NextToken'] as String?, rotationShifts: (json['RotationShifts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RotationShift.fromJson(e as Map)) .toList(), ); @@ -3232,7 +3232,7 @@ class ListRotationOverridesResult { return ListRotationOverridesResult( nextToken: json['NextToken'] as String?, rotationOverrides: (json['RotationOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RotationOverride.fromJson(e as Map)) .toList(), ); @@ -3265,7 +3265,7 @@ class ListRotationShiftsResult { return ListRotationShiftsResult( nextToken: json['NextToken'] as String?, rotationShifts: (json['RotationShifts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RotationShift.fromJson(e as Map)) .toList(), ); @@ -3297,7 +3297,7 @@ class ListRotationsResult { factory ListRotationsResult.fromJson(Map json) { return ListRotationsResult( rotations: (json['Rotations'] as List) - .whereNotNull() + .nonNulls .map((e) => Rotation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3325,7 +3325,7 @@ class ListTagsForResourceResult { factory ListTagsForResourceResult.fromJson(Map json) { return ListTagsForResourceResult( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3462,11 +3462,11 @@ class Plan { factory Plan.fromJson(Map json) { return Plan( rotationIds: (json['RotationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stages: (json['Stages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Stage.fromJson(e as Map)) .toList(), ); @@ -3626,22 +3626,22 @@ class RecurrenceSettings { numberOfOnCalls: json['NumberOfOnCalls'] as int, recurrenceMultiplier: json['RecurrenceMultiplier'] as int, dailySettings: (json['DailySettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HandOffTime.fromJson(e as Map)) .toList(), monthlySettings: (json['MonthlySettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MonthlySetting.fromJson(e as Map)) .toList(), shiftCoverages: (json['ShiftCoverages'] as Map?)?.map( (k, e) => MapEntry( DayOfWeek.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => CoverageTime.fromJson(e as Map)) .toList())), weeklySettings: (json['WeeklySettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WeeklySetting.fromJson(e as Map)) .toList(), ); @@ -3748,7 +3748,7 @@ class Rotation { name: json['Name'] as String, rotationArn: json['RotationArn'] as String, contactIds: (json['ContactIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), recurrence: json['Recurrence'] != null @@ -3809,7 +3809,7 @@ class RotationOverride { createTime: nonNullableTimeStampFromJson(json['CreateTime'] as Object), endTime: nonNullableTimeStampFromJson(json['EndTime'] as Object), newContactIds: (json['NewContactIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), rotationOverrideId: json['RotationOverrideId'] as String, @@ -3864,7 +3864,7 @@ class RotationShift { endTime: nonNullableTimeStampFromJson(json['EndTime'] as Object), startTime: nonNullableTimeStampFromJson(json['StartTime'] as Object), contactIds: (json['ContactIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), shiftDetails: json['ShiftDetails'] != null @@ -3916,7 +3916,7 @@ class ShiftDetails { factory ShiftDetails.fromJson(Map json) { return ShiftDetails( overriddenContactIds: (json['OverriddenContactIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -3964,7 +3964,7 @@ class Stage { return Stage( durationInMinutes: json['DurationInMinutes'] as int, targets: (json['Targets'] as List) - .whereNotNull() + .nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/ssm_incidents/v2018_05_10.dart b/aws_client/lib/src/generated/ssm_incidents/v2018_05_10.dart index 01341968f..c3a9f661b 100644 --- a/aws_client/lib/src/generated/ssm_incidents/v2018_05_10.dart +++ b/aws_client/lib/src/generated/ssm_incidents/v2018_05_10.dart @@ -1655,12 +1655,12 @@ class BatchGetIncidentFindingsOutput { factory BatchGetIncidentFindingsOutput.fromJson(Map json) { return BatchGetIncidentFindingsOutput( errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchGetIncidentFindingsError.fromJson(e as Map)) .toList(), findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => Finding.fromJson(e as Map)) .toList(), ); @@ -1694,7 +1694,7 @@ class ChatChannel { factory ChatChannel.fromJson(Map json) { return ChatChannel( chatbotSns: (json['chatbotSns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), empty: json['empty'] != null @@ -2097,7 +2097,7 @@ class EventSummary { nonNullableTimeStampFromJson(json['eventUpdatedTime'] as Object), incidentRecordArn: json['incidentRecordArn'] as String, eventReferences: (json['eventReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventReference.fromJson(e as Map)) .toList(), ); @@ -2328,7 +2328,7 @@ class GetResourcePoliciesOutput { factory GetResourcePoliciesOutput.fromJson(Map json) { return GetResourcePoliciesOutput( resourcePolicies: (json['resourcePolicies'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourcePolicy.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2390,7 +2390,7 @@ class GetResponsePlanOutput { json['incidentTemplate'] as Map), name: json['name'] as String, actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), chatChannel: json['chatChannel'] != null @@ -2398,11 +2398,11 @@ class GetResponsePlanOutput { : null, displayName: json['displayName'] as String?, engagements: (json['engagements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), integrations: (json['integrations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Integration.fromJson(e as Map)) .toList(), ); @@ -2552,14 +2552,14 @@ class IncidentRecord { status: IncidentRecordStatus.fromString((json['status'] as String)), title: json['title'] as String, automationExecutions: (json['automationExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomationExecution.fromJson(e as Map)) .toList(), chatChannel: json['chatChannel'] != null ? ChatChannel.fromJson(json['chatChannel'] as Map) : null, notificationTargets: (json['notificationTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => NotificationTargetItem.fromJson(e as Map)) .toList(), @@ -2812,7 +2812,7 @@ class IncidentTemplate { incidentTags: (json['incidentTags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), notificationTargets: (json['notificationTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => NotificationTargetItem.fromJson(e as Map)) .toList(), @@ -2984,7 +2984,7 @@ class ListIncidentFindingsOutput { factory ListIncidentFindingsOutput.fromJson(Map json) { return ListIncidentFindingsOutput( findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => FindingSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3017,7 +3017,7 @@ class ListIncidentRecordsOutput { factory ListIncidentRecordsOutput.fromJson(Map json) { return ListIncidentRecordsOutput( incidentRecordSummaries: (json['incidentRecordSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => IncidentRecordSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3050,7 +3050,7 @@ class ListRelatedItemsOutput { factory ListRelatedItemsOutput.fromJson(Map json) { return ListRelatedItemsOutput( relatedItems: (json['relatedItems'] as List) - .whereNotNull() + .nonNulls .map((e) => RelatedItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3083,7 +3083,7 @@ class ListReplicationSetsOutput { factory ListReplicationSetsOutput.fromJson(Map json) { return ListReplicationSetsOutput( replicationSetArns: (json['replicationSetArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3116,7 +3116,7 @@ class ListResponsePlansOutput { factory ListResponsePlansOutput.fromJson(Map json) { return ListResponsePlansOutput( responsePlanSummaries: (json['responsePlanSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ResponsePlanSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3172,7 +3172,7 @@ class ListTimelineEventsOutput { factory ListTimelineEventsOutput.fromJson(Map json) { return ListTimelineEventsOutput( eventSummaries: (json['eventSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => EventSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3716,8 +3716,7 @@ class SsmAutomation { ?.map((k, e) => MapEntry( k, DynamicSsmParameterValue.fromJson(e as Map))), parameters: (json['parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), targetAccount: (json['targetAccount'] as String?)?.let(SsmTargetAccount.fromString), ); @@ -3835,7 +3834,7 @@ class TimelineEvent { nonNullableTimeStampFromJson(json['eventUpdatedTime'] as Object), incidentRecordArn: json['incidentRecordArn'] as String, eventReferences: (json['eventReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventReference.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/ssm_sap/v2018_05_10.dart b/aws_client/lib/src/generated/ssm_sap/v2018_05_10.dart index 00a86aa6b..af9fe8f20 100644 --- a/aws_client/lib/src/generated/ssm_sap/v2018_05_10.dart +++ b/aws_client/lib/src/generated/ssm_sap/v2018_05_10.dart @@ -882,7 +882,7 @@ class Application { appRegistryArn: json['AppRegistryArn'] as String?, arn: json['Arn'] as String?, components: (json['Components'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), discoveryStatus: (json['DiscoveryStatus'] as String?) @@ -1092,7 +1092,7 @@ class AssociatedHost { ec2InstanceId: json['Ec2InstanceId'] as String?, hostname: json['Hostname'] as String?, ipAddresses: (json['IpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpAddressMember.fromJson(e as Map)) .toList(), osVersion: json['OsVersion'] as String?, @@ -1294,7 +1294,7 @@ class Component { json['AssociatedHost'] as Map) : null, childComponents: (json['ChildComponents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), componentId: json['ComponentId'] as String?, @@ -1305,12 +1305,12 @@ class Component { json['DatabaseConnection'] as Map) : null, databases: (json['Databases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), hdbVersion: json['HdbVersion'] as String?, hosts: (json['Hosts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Host.fromJson(e as Map)) .toList(), lastUpdated: timeStampFromJson(json['LastUpdated']), @@ -1552,7 +1552,7 @@ class Database { arn: json['Arn'] as String?, componentId: json['ComponentId'] as String?, credentials: (json['Credentials'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationCredential.fromJson(e as Map)) .toList(), databaseId: json['DatabaseId'] as String?, @@ -2095,7 +2095,7 @@ class ListApplicationsOutput { factory ListApplicationsOutput.fromJson(Map json) { return ListApplicationsOutput( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2128,7 +2128,7 @@ class ListComponentsOutput { factory ListComponentsOutput.fromJson(Map json) { return ListComponentsOutput( components: (json['Components'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2161,7 +2161,7 @@ class ListDatabasesOutput { factory ListDatabasesOutput.fromJson(Map json) { return ListDatabasesOutput( databases: (json['Databases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatabaseSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2195,7 +2195,7 @@ class ListOperationEventsOutput { return ListOperationEventsOutput( nextToken: json['NextToken'] as String?, operationEvents: (json['OperationEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OperationEvent.fromJson(e as Map)) .toList(), ); @@ -2228,7 +2228,7 @@ class ListOperationsOutput { return ListOperationsOutput( nextToken: json['NextToken'] as String?, operations: (json['Operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -2775,7 +2775,7 @@ class UpdateApplicationSettingsOutput { return UpdateApplicationSettingsOutput( message: json['Message'] as String?, operationIds: (json['OperationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/sso/v2019_06_10.dart b/aws_client/lib/src/generated/sso/v2019_06_10.dart index 3990bc0a3..489527509 100644 --- a/aws_client/lib/src/generated/sso/v2019_06_10.dart +++ b/aws_client/lib/src/generated/sso/v2019_06_10.dart @@ -345,7 +345,7 @@ class ListAccountRolesResponse { return ListAccountRolesResponse( nextToken: json['nextToken'] as String?, roleList: (json['roleList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoleInfo.fromJson(e as Map)) .toList(), ); @@ -377,7 +377,7 @@ class ListAccountsResponse { factory ListAccountsResponse.fromJson(Map json) { return ListAccountsResponse( accountList: (json['accountList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/sso_admin/v2020_07_20.dart b/aws_client/lib/src/generated/sso_admin/v2020_07_20.dart index c4dccdea8..423f80312 100644 --- a/aws_client/lib/src/generated/sso_admin/v2020_07_20.dart +++ b/aws_client/lib/src/generated/sso_admin/v2020_07_20.dart @@ -3801,10 +3801,8 @@ class AccessControlAttributeValue { factory AccessControlAttributeValue.fromJson(Map json) { return AccessControlAttributeValue( - source: (json['Source'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + source: + (json['Source'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -4464,7 +4462,7 @@ class AuthorizationCodeGrant { factory AuthorizationCodeGrant.fromJson(Map json) { return AuthorizationCodeGrant( redirectUris: (json['RedirectUris'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4496,7 +4494,7 @@ class AuthorizedTokenIssuer { factory AuthorizedTokenIssuer.fromJson(Map json) { return AuthorizedTokenIssuer( authorizedAudiences: (json['AuthorizedAudiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), trustedTokenIssuerArn: json['TrustedTokenIssuerArn'] as String?, @@ -5394,7 +5392,7 @@ class GetApplicationAccessScopeResponse { return GetApplicationAccessScopeResponse( scope: json['Scope'] as String, authorizedTargets: (json['AuthorizedTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5686,7 +5684,7 @@ class InstanceAccessControlAttributeConfiguration { Map json) { return InstanceAccessControlAttributeConfiguration( accessControlAttributes: (json['AccessControlAttributes'] as List) - .whereNotNull() + .nonNulls .map( (e) => AccessControlAttribute.fromJson(e as Map)) .toList(), @@ -5826,7 +5824,7 @@ class JwtBearerGrant { factory JwtBearerGrant.fromJson(Map json) { return JwtBearerGrant( authorizedTokenIssuers: (json['AuthorizedTokenIssuers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorizedTokenIssuer.fromJson(e as Map)) .toList(), ); @@ -5860,7 +5858,7 @@ class ListAccountAssignmentCreationStatusResponse { return ListAccountAssignmentCreationStatusResponse( accountAssignmentsCreationStatus: (json['AccountAssignmentsCreationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAssignmentOperationStatusMetadata.fromJson( e as Map)) .toList(), @@ -5899,7 +5897,7 @@ class ListAccountAssignmentDeletionStatusResponse { return ListAccountAssignmentDeletionStatusResponse( accountAssignmentsDeletionStatus: (json['AccountAssignmentsDeletionStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAssignmentOperationStatusMetadata.fromJson( e as Map)) .toList(), @@ -5958,7 +5956,7 @@ class ListAccountAssignmentsForPrincipalResponse { Map json) { return ListAccountAssignmentsForPrincipalResponse( accountAssignments: (json['AccountAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAssignmentForPrincipal.fromJson(e as Map)) .toList(), @@ -5993,7 +5991,7 @@ class ListAccountAssignmentsResponse { factory ListAccountAssignmentsResponse.fromJson(Map json) { return ListAccountAssignmentsResponse( accountAssignments: (json['AccountAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAssignment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6027,7 +6025,7 @@ class ListAccountsForProvisionedPermissionSetResponse { Map json) { return ListAccountsForProvisionedPermissionSetResponse( accountIds: (json['AccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -6066,7 +6064,7 @@ class ListApplicationAccessScopesResponse { Map json) { return ListApplicationAccessScopesResponse( scopes: (json['Scopes'] as List) - .whereNotNull() + .nonNulls .map((e) => ScopeDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6121,7 +6119,7 @@ class ListApplicationAssignmentsForPrincipalResponse { Map json) { return ListApplicationAssignmentsForPrincipalResponse( applicationAssignments: (json['ApplicationAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationAssignmentForPrincipal.fromJson( e as Map)) .toList(), @@ -6161,7 +6159,7 @@ class ListApplicationAssignmentsResponse { Map json) { return ListApplicationAssignmentsResponse( applicationAssignments: (json['ApplicationAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationAssignment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6200,7 +6198,7 @@ class ListApplicationAuthenticationMethodsResponse { Map json) { return ListApplicationAuthenticationMethodsResponse( authenticationMethods: (json['AuthenticationMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthenticationMethodItem.fromJson(e as Map)) .toList(), @@ -6239,7 +6237,7 @@ class ListApplicationGrantsResponse { factory ListApplicationGrantsResponse.fromJson(Map json) { return ListApplicationGrantsResponse( grants: (json['Grants'] as List) - .whereNotNull() + .nonNulls .map((e) => GrantItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6276,7 +6274,7 @@ class ListApplicationProvidersResponse { factory ListApplicationProvidersResponse.fromJson(Map json) { return ListApplicationProvidersResponse( applicationProviders: (json['ApplicationProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationProvider.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6340,7 +6338,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6376,7 +6374,7 @@ class ListCustomerManagedPolicyReferencesInPermissionSetResponse { return ListCustomerManagedPolicyReferencesInPermissionSetResponse( customerManagedPolicyReferences: (json['CustomerManagedPolicyReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomerManagedPolicyReference.fromJson( e as Map)) .toList(), @@ -6412,7 +6410,7 @@ class ListInstancesResponse { factory ListInstancesResponse.fromJson(Map json) { return ListInstancesResponse( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceMetadata.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6446,7 +6444,7 @@ class ListManagedPoliciesInPermissionSetResponse { Map json) { return ListManagedPoliciesInPermissionSetResponse( attachedManagedPolicies: (json['AttachedManagedPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachedManagedPolicy.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6484,7 +6482,7 @@ class ListPermissionSetProvisioningStatusResponse { nextToken: json['NextToken'] as String?, permissionSetsProvisioningStatus: (json['PermissionSetsProvisioningStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PermissionSetProvisioningStatusMetadata.fromJson( e as Map)) .toList(), @@ -6521,7 +6519,7 @@ class ListPermissionSetsProvisionedToAccountResponse { return ListPermissionSetsProvisionedToAccountResponse( nextToken: json['NextToken'] as String?, permissionSets: (json['PermissionSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6554,7 +6552,7 @@ class ListPermissionSetsResponse { return ListPermissionSetsResponse( nextToken: json['NextToken'] as String?, permissionSets: (json['PermissionSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6587,7 +6585,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6624,7 +6622,7 @@ class ListTrustedTokenIssuersResponse { return ListTrustedTokenIssuersResponse( nextToken: json['NextToken'] as String?, trustedTokenIssuers: (json['TrustedTokenIssuers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrustedTokenIssuerMetadata.fromJson(e as Map)) .toList(), @@ -7210,7 +7208,7 @@ class ScopeDetails { return ScopeDetails( scope: json['Scope'] as String, authorizedTargets: (json['AuthorizedTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/sso_oidc/v2019_06_10.dart b/aws_client/lib/src/generated/sso_oidc/v2019_06_10.dart index 72bc68f0b..ac8c7e2bf 100644 --- a/aws_client/lib/src/generated/sso_oidc/v2019_06_10.dart +++ b/aws_client/lib/src/generated/sso_oidc/v2019_06_10.dart @@ -575,10 +575,8 @@ class CreateTokenWithIAMResponse { idToken: json['idToken'] as String?, issuedTokenType: json['issuedTokenType'] as String?, refreshToken: json['refreshToken'] as String?, - scope: (json['scope'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + scope: + (json['scope'] as List?)?.nonNulls.map((e) => e as String).toList(), tokenType: json['tokenType'] as String?, ); } diff --git a/aws_client/lib/src/generated/storage_gateway/v2013_06_30.dart b/aws_client/lib/src/generated/storage_gateway/v2013_06_30.dart index 01ff612e0..8165b0986 100644 --- a/aws_client/lib/src/generated/storage_gateway/v2013_06_30.dart +++ b/aws_client/lib/src/generated/storage_gateway/v2013_06_30.dart @@ -5552,7 +5552,7 @@ class AutomaticTapeCreationPolicyInfo { factory AutomaticTapeCreationPolicyInfo.fromJson(Map json) { return AutomaticTapeCreationPolicyInfo( automaticTapeCreationRules: (json['AutomaticTapeCreationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomaticTapeCreationRule.fromJson(e as Map)) .toList(), @@ -5717,10 +5717,8 @@ class BandwidthRateLimitInterval { factory BandwidthRateLimitInterval.fromJson(Map json) { return BandwidthRateLimitInterval( - daysOfWeek: (json['DaysOfWeek'] as List) - .whereNotNull() - .map((e) => e as int) - .toList(), + daysOfWeek: + (json['DaysOfWeek'] as List).nonNulls.map((e) => e as int).toList(), endHourOfDay: json['EndHourOfDay'] as int, endMinuteOfHour: json['EndMinuteOfHour'] as int, startHourOfDay: json['StartHourOfDay'] as int, @@ -6297,7 +6295,7 @@ class CreateTapesOutput { factory CreateTapesOutput.fromJson(Map json) { return CreateTapesOutput( tapeARNs: (json['TapeARNs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6647,7 +6645,7 @@ class DescribeBandwidthRateLimitScheduleOutput { return DescribeBandwidthRateLimitScheduleOutput( bandwidthRateLimitIntervals: (json['BandwidthRateLimitIntervals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BandwidthRateLimitInterval.fromJson(e as Map)) .toList(), @@ -6711,10 +6709,8 @@ class DescribeCacheOutput { cacheHitPercentage: json['CacheHitPercentage'] as double?, cacheMissPercentage: json['CacheMissPercentage'] as double?, cacheUsedPercentage: json['CacheUsedPercentage'] as double?, - diskIds: (json['DiskIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + diskIds: + (json['DiskIds'] as List?)?.nonNulls.map((e) => e as String).toList(), gatewayARN: json['GatewayARN'] as String?, ); } @@ -6756,7 +6752,7 @@ class DescribeCachediSCSIVolumesOutput { factory DescribeCachediSCSIVolumesOutput.fromJson(Map json) { return DescribeCachediSCSIVolumesOutput( cachediSCSIVolumes: (json['CachediSCSIVolumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CachediSCSIVolume.fromJson(e as Map)) .toList(), ); @@ -6805,7 +6801,7 @@ class DescribeChapCredentialsOutput { factory DescribeChapCredentialsOutput.fromJson(Map json) { return DescribeChapCredentialsOutput( chapCredentials: (json['ChapCredentials'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChapInfo.fromJson(e as Map)) .toList(), ); @@ -6833,7 +6829,7 @@ class DescribeFileSystemAssociationsOutput { return DescribeFileSystemAssociationsOutput( fileSystemAssociationInfoList: (json['FileSystemAssociationInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemAssociationInfo.fromJson(e as Map)) .toList(), @@ -6978,7 +6974,7 @@ class DescribeGatewayInformationOutput { gatewayId: json['GatewayId'] as String?, gatewayName: json['GatewayName'] as String?, gatewayNetworkInterfaces: (json['GatewayNetworkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), gatewayState: json['GatewayState'] as String?, @@ -6992,11 +6988,11 @@ class DescribeGatewayInformationOutput { softwareUpdatesEndDate: json['SoftwareUpdatesEndDate'] as String?, softwareVersion: json['SoftwareVersion'] as String?, supportedGatewayCapacities: (json['SupportedGatewayCapacities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GatewayCapacity.fromString((e as String))) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vPCEndpoint: json['VPCEndpoint'] as String?, @@ -7155,7 +7151,7 @@ class DescribeNFSFileSharesOutput { factory DescribeNFSFileSharesOutput.fromJson(Map json) { return DescribeNFSFileSharesOutput( nFSFileShareInfoList: (json['NFSFileShareInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NFSFileShareInfo.fromJson(e as Map)) .toList(), ); @@ -7182,7 +7178,7 @@ class DescribeSMBFileSharesOutput { factory DescribeSMBFileSharesOutput.fromJson(Map json) { return DescribeSMBFileSharesOutput( sMBFileShareInfoList: (json['SMBFileShareInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SMBFileShareInfo.fromJson(e as Map)) .toList(), ); @@ -7373,7 +7369,7 @@ class DescribeSnapshotScheduleOutput { recurrenceInHours: json['RecurrenceInHours'] as int?, startAt: json['StartAt'] as int?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), timezone: json['Timezone'] as String?, @@ -7477,7 +7473,7 @@ class DescribeStorediSCSIVolumesOutput { factory DescribeStorediSCSIVolumesOutput.fromJson(Map json) { return DescribeStorediSCSIVolumesOutput( storediSCSIVolumes: (json['StorediSCSIVolumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorediSCSIVolume.fromJson(e as Map)) .toList(), ); @@ -7516,7 +7512,7 @@ class DescribeTapeArchivesOutput { return DescribeTapeArchivesOutput( marker: json['Marker'] as String?, tapeArchives: (json['TapeArchives'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TapeArchive.fromJson(e as Map)) .toList(), ); @@ -7559,7 +7555,7 @@ class DescribeTapeRecoveryPointsOutput { gatewayARN: json['GatewayARN'] as String?, marker: json['Marker'] as String?, tapeRecoveryPointInfos: (json['TapeRecoveryPointInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TapeRecoveryPointInfo.fromJson(e as Map)) .toList(), ); @@ -7599,7 +7595,7 @@ class DescribeTapesOutput { return DescribeTapesOutput( marker: json['Marker'] as String?, tapes: (json['Tapes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tape.fromJson(e as Map)) .toList(), ); @@ -7638,10 +7634,8 @@ class DescribeUploadBufferOutput { factory DescribeUploadBufferOutput.fromJson(Map json) { return DescribeUploadBufferOutput( - diskIds: (json['DiskIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + diskIds: + (json['DiskIds'] as List?)?.nonNulls.map((e) => e as String).toList(), gatewayARN: json['GatewayARN'] as String?, uploadBufferAllocatedInBytes: json['UploadBufferAllocatedInBytes'] as int?, @@ -7690,7 +7684,7 @@ class DescribeVTLDevicesOutput { gatewayARN: json['GatewayARN'] as String?, marker: json['Marker'] as String?, vTLDevices: (json['VTLDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VTLDevice.fromJson(e as Map)) .toList(), ); @@ -7734,10 +7728,8 @@ class DescribeWorkingStorageOutput { factory DescribeWorkingStorageOutput.fromJson(Map json) { return DescribeWorkingStorageOutput( - diskIds: (json['DiskIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + diskIds: + (json['DiskIds'] as List?)?.nonNulls.map((e) => e as String).toList(), gatewayARN: json['GatewayARN'] as String?, workingStorageAllocatedInBytes: json['WorkingStorageAllocatedInBytes'] as int?, @@ -7919,7 +7911,7 @@ class Disk { diskAllocationResource: json['DiskAllocationResource'] as String?, diskAllocationType: json['DiskAllocationType'] as String?, diskAttributeList: (json['DiskAttributeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), diskId: json['DiskId'] as String?, @@ -7971,7 +7963,7 @@ class EndpointNetworkConfiguration { factory EndpointNetworkConfiguration.fromJson(Map json) { return EndpointNetworkConfiguration( ipAddresses: (json['IpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8111,14 +8103,14 @@ class FileSystemAssociationInfo { json['FileSystemAssociationStatus'] as String?, fileSystemAssociationStatusDetails: (json['FileSystemAssociationStatusDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemAssociationStatusDetail.fromJson( e as Map)) .toList(), gatewayARN: json['GatewayARN'] as String?, locationARN: json['LocationARN'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8448,7 +8440,7 @@ class ListAutomaticTapeCreationPoliciesOutput { return ListAutomaticTapeCreationPoliciesOutput( automaticTapeCreationPolicyInfos: (json['AutomaticTapeCreationPolicyInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomaticTapeCreationPolicyInfo.fromJson( e as Map)) .toList(), @@ -8488,7 +8480,7 @@ class ListFileSharesOutput { factory ListFileSharesOutput.fromJson(Map json) { return ListFileSharesOutput( fileShareInfoList: (json['FileShareInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileShareInfo.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8532,7 +8524,7 @@ class ListFileSystemAssociationsOutput { return ListFileSystemAssociationsOutput( fileSystemAssociationSummaryList: (json['FileSystemAssociationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemAssociationSummary.fromJson( e as Map)) .toList(), @@ -8572,7 +8564,7 @@ class ListGatewaysOutput { factory ListGatewaysOutput.fromJson(Map json) { return ListGatewaysOutput( gateways: (json['Gateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GatewayInfo.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8608,7 +8600,7 @@ class ListLocalDisksOutput { factory ListLocalDisksOutput.fromJson(Map json) { return ListLocalDisksOutput( disks: (json['Disks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Disk.fromJson(e as Map)) .toList(), gatewayARN: json['GatewayARN'] as String?, @@ -8649,7 +8641,7 @@ class ListTagsForResourceOutput { marker: json['Marker'] as String?, resourceARN: json['ResourceARN'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8688,7 +8680,7 @@ class ListTapePoolsOutput { return ListTapePoolsOutput( marker: json['Marker'] as String?, poolInfos: (json['PoolInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PoolInfo.fromJson(e as Map)) .toList(), ); @@ -8731,7 +8723,7 @@ class ListTapesOutput { return ListTapesOutput( marker: json['Marker'] as String?, tapeInfos: (json['TapeInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TapeInfo.fromJson(e as Map)) .toList(), ); @@ -8760,7 +8752,7 @@ class ListVolumeInitiatorsOutput { factory ListVolumeInitiatorsOutput.fromJson(Map json) { return ListVolumeInitiatorsOutput( initiators: (json['Initiators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8789,7 +8781,7 @@ class ListVolumeRecoveryPointsOutput { return ListVolumeRecoveryPointsOutput( gatewayARN: json['GatewayARN'] as String?, volumeRecoveryPointInfos: (json['VolumeRecoveryPointInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeRecoveryPointInfo.fromJson(e as Map)) .toList(), @@ -8841,7 +8833,7 @@ class ListVolumesOutput { gatewayARN: json['GatewayARN'] as String?, marker: json['Marker'] as String?, volumeInfos: (json['VolumeInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeInfo.fromJson(e as Map)) .toList(), ); @@ -9066,7 +9058,7 @@ class NFSFileShareInfo { json['CacheAttributes'] as Map) : null, clientList: (json['ClientList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultStorageClass: json['DefaultStorageClass'] as String?, @@ -9091,7 +9083,7 @@ class NFSFileShareInfo { role: json['Role'] as String?, squash: json['Squash'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vPCEndpointDNSName: json['VPCEndpointDNSName'] as String?, @@ -9671,7 +9663,7 @@ class SMBFileShareInfo { return SMBFileShareInfo( accessBasedEnumeration: json['AccessBasedEnumeration'] as bool?, adminUserList: (json['AdminUserList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), auditDestinationARN: json['AuditDestinationARN'] as String?, @@ -9691,7 +9683,7 @@ class SMBFileShareInfo { gatewayARN: json['GatewayARN'] as String?, guessMIMETypeEnabled: json['GuessMIMETypeEnabled'] as bool?, invalidUserList: (json['InvalidUserList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), kMSEncrypted: json['KMSEncrypted'] as bool?, @@ -9706,12 +9698,12 @@ class SMBFileShareInfo { role: json['Role'] as String?, sMBACLEnabled: json['SMBACLEnabled'] as bool?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vPCEndpointDNSName: json['VPCEndpointDNSName'] as String?, validUserList: (json['ValidUserList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9803,7 +9795,7 @@ class SMBLocalGroups { factory SMBLocalGroups.fromJson(Map json) { return SMBLocalGroups( gatewayAdmins: (json['GatewayAdmins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/support/v2013_04_15.dart b/aws_client/lib/src/generated/support/v2013_04_15.dart index 6f7bcde60..c1be45cd6 100644 --- a/aws_client/lib/src/generated/support/v2013_04_15.dart +++ b/aws_client/lib/src/generated/support/v2013_04_15.dart @@ -1606,7 +1606,7 @@ class CaseDetails { caseId: json['caseId'] as String?, categoryCode: json['categoryCode'] as String?, ccEmailAddresses: (json['ccEmailAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), displayId: json['displayId'] as String?, @@ -1724,7 +1724,7 @@ class Communication { factory Communication.fromJson(Map json) { return Communication( attachmentSet: (json['attachmentSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachmentDetails.fromJson(e as Map)) .toList(), body: json['body'] as String?, @@ -1793,11 +1793,11 @@ class CommunicationTypeOptions { factory CommunicationTypeOptions.fromJson(Map json) { return CommunicationTypeOptions( datesWithoutSupport: (json['datesWithoutSupport'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateInterval.fromJson(e as Map)) .toList(), supportedHours: (json['supportedHours'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedHour.fromJson(e as Map)) .toList(), type: json['type'] as String?, @@ -1924,7 +1924,7 @@ class DescribeCasesResponse { factory DescribeCasesResponse.fromJson(Map json) { return DescribeCasesResponse( cases: (json['cases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaseDetails.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1957,7 +1957,7 @@ class DescribeCommunicationsResponse { factory DescribeCommunicationsResponse.fromJson(Map json) { return DescribeCommunicationsResponse( communications: (json['communications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Communication.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2003,7 +2003,7 @@ class DescribeCreateCaseOptionsResponse { Map json) { return DescribeCreateCaseOptionsResponse( communicationTypes: (json['communicationTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CommunicationTypeOptions.fromJson(e as Map)) .toList(), @@ -2035,7 +2035,7 @@ class DescribeServicesResponse { factory DescribeServicesResponse.fromJson(Map json) { return DescribeServicesResponse( services: (json['services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Service.fromJson(e as Map)) .toList(), ); @@ -2063,7 +2063,7 @@ class DescribeSeverityLevelsResponse { factory DescribeSeverityLevelsResponse.fromJson(Map json) { return DescribeSeverityLevelsResponse( severityLevels: (json['severityLevels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SeverityLevel.fromJson(e as Map)) .toList(), ); @@ -2089,7 +2089,7 @@ class DescribeSupportedLanguagesResponse { Map json) { return DescribeSupportedLanguagesResponse( supportedLanguages: (json['supportedLanguages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedLanguage.fromJson(e as Map)) .toList(), ); @@ -2117,7 +2117,7 @@ class DescribeTrustedAdvisorCheckRefreshStatusesResponse { Map json) { return DescribeTrustedAdvisorCheckRefreshStatusesResponse( statuses: (json['statuses'] as List) - .whereNotNull() + .nonNulls .map((e) => TrustedAdvisorCheckRefreshStatus.fromJson( e as Map)) .toList(), @@ -2174,7 +2174,7 @@ class DescribeTrustedAdvisorCheckSummariesResponse { Map json) { return DescribeTrustedAdvisorCheckSummariesResponse( summaries: (json['summaries'] as List) - .whereNotNull() + .nonNulls .map((e) => TrustedAdvisorCheckSummary.fromJson(e as Map)) .toList(), @@ -2203,7 +2203,7 @@ class DescribeTrustedAdvisorChecksResponse { Map json) { return DescribeTrustedAdvisorChecksResponse( checks: (json['checks'] as List) - .whereNotNull() + .nonNulls .map((e) => TrustedAdvisorCheckDescription.fromJson( e as Map)) .toList(), @@ -2234,7 +2234,7 @@ class RecentCaseCommunications { factory RecentCaseCommunications.fromJson(Map json) { return RecentCaseCommunications( communications: (json['communications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Communication.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2334,7 +2334,7 @@ class Service { factory Service.fromJson(Map json) { return Service( categories: (json['categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Category.fromJson(e as Map)) .toList(), code: json['code'] as String?, @@ -2554,10 +2554,8 @@ class TrustedAdvisorCheckDescription { category: json['category'] as String, description: json['description'] as String, id: json['id'] as String, - metadata: (json['metadata'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + metadata: + (json['metadata'] as List).nonNulls.map((e) => e as String).toList(), name: json['name'] as String, ); } @@ -2674,7 +2672,7 @@ class TrustedAdvisorCheckResult { json['categorySpecificSummary'] as Map), checkId: json['checkId'] as String, flaggedResources: (json['flaggedResources'] as List) - .whereNotNull() + .nonNulls .map((e) => TrustedAdvisorResourceDetail.fromJson(e as Map)) .toList(), @@ -2833,10 +2831,8 @@ class TrustedAdvisorResourceDetail { factory TrustedAdvisorResourceDetail.fromJson(Map json) { return TrustedAdvisorResourceDetail( - metadata: (json['metadata'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + metadata: + (json['metadata'] as List).nonNulls.map((e) => e as String).toList(), resourceId: json['resourceId'] as String, status: json['status'] as String, isSuppressed: json['isSuppressed'] as bool?, diff --git a/aws_client/lib/src/generated/support_app/v2021_08_20.dart b/aws_client/lib/src/generated/support_app/v2021_08_20.dart index d34f7811c..8e6bb684f 100644 --- a/aws_client/lib/src/generated/support_app/v2021_08_20.dart +++ b/aws_client/lib/src/generated/support_app/v2021_08_20.dart @@ -630,7 +630,7 @@ class ListSlackChannelConfigurationsResult { Map json) { return ListSlackChannelConfigurationsResult( slackChannelConfigurations: (json['slackChannelConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => SlackChannelConfiguration.fromJson(e as Map)) .toList(), @@ -667,7 +667,7 @@ class ListSlackWorkspaceConfigurationsResult { nextToken: json['nextToken'] as String?, slackWorkspaceConfigurations: (json['slackWorkspaceConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlackWorkspaceConfiguration.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/swf/v2012_01_25.dart b/aws_client/lib/src/generated/swf/v2012_01_25.dart index a6bf47fca..8099ed653 100644 --- a/aws_client/lib/src/generated/swf/v2012_01_25.dart +++ b/aws_client/lib/src/generated/swf/v2012_01_25.dart @@ -4554,7 +4554,7 @@ class ActivityTypeInfos { factory ActivityTypeInfos.fromJson(Map json) { return ActivityTypeInfos( typeInfos: (json['typeInfos'] as List) - .whereNotNull() + .nonNulls .map((e) => ActivityTypeInfo.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -5971,7 +5971,7 @@ class DecisionTask { factory DecisionTask.fromJson(Map json) { return DecisionTask( events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => HistoryEvent.fromJson(e as Map)) .toList(), startedEventId: json['startedEventId'] as int, @@ -6387,7 +6387,7 @@ class DomainInfos { factory DomainInfos.fromJson(Map json) { return DomainInfos( domainInfos: (json['domainInfos'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainInfo.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -6725,7 +6725,7 @@ class History { factory History.fromJson(Map json) { return History( events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => HistoryEvent.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -8184,7 +8184,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), ); @@ -9840,10 +9840,8 @@ class StartChildWorkflowExecutionInitiatedEventAttributes { json['executionStartToCloseTimeout'] as String?, input: json['input'] as String?, lambdaRole: json['lambdaRole'] as String?, - tagList: (json['tagList'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tagList: + (json['tagList'] as List?)?.nonNulls.map((e) => e as String).toList(), taskPriority: json['taskPriority'] as String?, taskStartToCloseTimeout: json['taskStartToCloseTimeout'] as String?, ); @@ -10604,10 +10602,8 @@ class WorkflowExecutionContinuedAsNewEventAttributes { json['executionStartToCloseTimeout'] as String?, input: json['input'] as String?, lambdaRole: json['lambdaRole'] as String?, - tagList: (json['tagList'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tagList: + (json['tagList'] as List?)?.nonNulls.map((e) => e as String).toList(), taskPriority: json['taskPriority'] as String?, taskStartToCloseTimeout: json['taskStartToCloseTimeout'] as String?, ); @@ -10888,10 +10884,8 @@ class WorkflowExecutionInfo { parent: json['parent'] != null ? WorkflowExecution.fromJson(json['parent'] as Map) : null, - tagList: (json['tagList'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tagList: + (json['tagList'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -10942,7 +10936,7 @@ class WorkflowExecutionInfos { factory WorkflowExecutionInfos.fromJson(Map json) { return WorkflowExecutionInfos( executionInfos: (json['executionInfos'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkflowExecutionInfo.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -11180,10 +11174,8 @@ class WorkflowExecutionStartedEventAttributes { ? WorkflowExecution.fromJson( json['parentWorkflowExecution'] as Map) : null, - tagList: (json['tagList'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tagList: + (json['tagList'] as List?)?.nonNulls.map((e) => e as String).toList(), taskPriority: json['taskPriority'] as String?, taskStartToCloseTimeout: json['taskStartToCloseTimeout'] as String?, ); @@ -11693,7 +11685,7 @@ class WorkflowTypeInfos { factory WorkflowTypeInfos.fromJson(Map json) { return WorkflowTypeInfos( typeInfos: (json['typeInfos'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkflowTypeInfo.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, diff --git a/aws_client/lib/src/generated/synthetics/v2017_10_11.dart b/aws_client/lib/src/generated/synthetics/v2017_10_11.dart index 52c95b0b2..c9aae79d0 100644 --- a/aws_client/lib/src/generated/synthetics/v2017_10_11.dart +++ b/aws_client/lib/src/generated/synthetics/v2017_10_11.dart @@ -1252,7 +1252,7 @@ class BaseScreenshot { return BaseScreenshot( screenshotName: json['ScreenshotName'] as String, ignoreCoordinates: (json['IgnoreCoordinates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2142,7 +2142,7 @@ class DescribeCanariesLastRunResponse { factory DescribeCanariesLastRunResponse.fromJson(Map json) { return DescribeCanariesLastRunResponse( canariesLastRun: (json['CanariesLastRun'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CanaryLastRun.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2177,7 +2177,7 @@ class DescribeCanariesResponse { factory DescribeCanariesResponse.fromJson(Map json) { return DescribeCanariesResponse( canaries: (json['Canaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Canary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2213,7 +2213,7 @@ class DescribeRuntimeVersionsResponse { return DescribeRuntimeVersionsResponse( nextToken: json['NextToken'] as String?, runtimeVersions: (json['RuntimeVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuntimeVersion.fromJson(e as Map)) .toList(), ); @@ -2298,7 +2298,7 @@ class GetCanaryRunsResponse { factory GetCanaryRunsResponse.fromJson(Map json) { return GetCanaryRunsResponse( canaryRuns: (json['CanaryRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CanaryRun.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2454,7 +2454,7 @@ class ListAssociatedGroupsResponse { factory ListAssociatedGroupsResponse.fromJson(Map json) { return ListAssociatedGroupsResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2490,7 +2490,7 @@ class ListGroupResourcesResponse { return ListGroupResourcesResponse( nextToken: json['NextToken'] as String?, resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2523,7 +2523,7 @@ class ListGroupsResponse { factory ListGroupsResponse.fromJson(Map json) { return ListGroupsResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2784,7 +2784,7 @@ class VisualReferenceOutput { return VisualReferenceOutput( baseCanaryRunId: json['BaseCanaryRunId'] as String?, baseScreenshots: (json['BaseScreenshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BaseScreenshot.fromJson(e as Map)) .toList(), ); @@ -2851,11 +2851,11 @@ class VpcConfigOutput { factory VpcConfigOutput.fromJson(Map json) { return VpcConfigOutput( securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, diff --git a/aws_client/lib/src/generated/tax_settings/v2018_05_10.dart b/aws_client/lib/src/generated/tax_settings/v2018_05_10.dart index 3a5a30030..8cd88a3ba 100644 --- a/aws_client/lib/src/generated/tax_settings/v2018_05_10.dart +++ b/aws_client/lib/src/generated/tax_settings/v2018_05_10.dart @@ -1240,7 +1240,7 @@ class BatchDeleteTaxRegistrationResponse { Map json) { return BatchDeleteTaxRegistrationResponse( errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDeleteTaxRegistrationError.fromJson( e as Map)) .toList(), @@ -1315,7 +1315,7 @@ class BatchPutTaxRegistrationResponse { factory BatchPutTaxRegistrationResponse.fromJson(Map json) { return BatchPutTaxRegistrationResponse( errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchPutTaxRegistrationError.fromJson(e as Map)) .toList(), @@ -1801,7 +1801,7 @@ class ListTaxRegistrationsResponse { factory ListTaxRegistrationsResponse.fromJson(Map json) { return ListTaxRegistrationsResponse( accountDetails: (json['accountDetails'] as List) - .whereNotNull() + .nonNulls .map((e) => AccountDetails.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1830,7 +1830,7 @@ class MalaysiaAdditionalInfo { factory MalaysiaAdditionalInfo.fromJson(Map json) { return MalaysiaAdditionalInfo( serviceTaxCodes: (json['serviceTaxCodes'] as List) - .whereNotNull() + .nonNulls .map((e) => MalaysiaServiceTaxCode.fromString((e as String))) .toList(), ); @@ -2250,7 +2250,7 @@ class TaxRegistration { certifiedEmailId: json['certifiedEmailId'] as String?, sector: (json['sector'] as String?)?.let(Sector.fromString), taxDocumentMetadatas: (json['taxDocumentMetadatas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaxDocumentMetadata.fromJson(e as Map)) .toList(), ); @@ -2498,7 +2498,7 @@ class TaxRegistrationWithJurisdiction { certifiedEmailId: json['certifiedEmailId'] as String?, sector: (json['sector'] as String?)?.let(Sector.fromString), taxDocumentMetadatas: (json['taxDocumentMetadatas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaxDocumentMetadata.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/textract/v2018_06_27.dart b/aws_client/lib/src/generated/textract/v2018_06_27.dart index f5fa0f9dc..2bd5d59a4 100644 --- a/aws_client/lib/src/generated/textract/v2018_06_27.dart +++ b/aws_client/lib/src/generated/textract/v2018_06_27.dart @@ -1836,7 +1836,7 @@ class AdapterOverview { adapterName: json['AdapterName'] as String?, creationTime: timeStampFromJson(json['CreationTime']), featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureType.fromString((e as String))) .toList(), ); @@ -1964,7 +1964,7 @@ class AdapterVersionOverview { adapterVersion: json['AdapterVersion'] as String?, creationTime: timeStampFromJson(json['CreationTime']), featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureType.fromString((e as String))) .toList(), status: (json['Status'] as String?)?.let(AdapterVersionStatus.fromString), @@ -2053,7 +2053,7 @@ class AnalyzeDocumentResponse { analyzeDocumentModelVersion: json['AnalyzeDocumentModelVersion'] as String?, blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), documentMetadata: json['DocumentMetadata'] != null @@ -2101,7 +2101,7 @@ class AnalyzeExpenseResponse { json['DocumentMetadata'] as Map) : null, expenseDocuments: (json['ExpenseDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpenseDocument.fromJson(e as Map)) .toList(), ); @@ -2181,7 +2181,7 @@ class AnalyzeIDResponse { json['DocumentMetadata'] as Map) : null, identityDocuments: (json['IdentityDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityDocument.fromJson(e as Map)) .toList(), ); @@ -2491,7 +2491,7 @@ class Block { columnSpan: json['ColumnSpan'] as int?, confidence: json['Confidence'] as double?, entityTypes: (json['EntityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityType.fromString((e as String))) .toList(), geometry: json['Geometry'] != null @@ -2503,7 +2503,7 @@ class Block { ? Query.fromJson(json['Query'] as Map) : null, relationships: (json['Relationships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Relationship.fromJson(e as Map)) .toList(), rowIndex: json['RowIndex'] as int?, @@ -2763,7 +2763,7 @@ class DetectDocumentTextResponse { factory DetectDocumentTextResponse.fromJson(Map json) { return DetectDocumentTextResponse( blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), detectDocumentTextModelVersion: @@ -2889,16 +2889,16 @@ class DocumentGroup { factory DocumentGroup.fromJson(Map json) { return DocumentGroup( detectedSignatures: (json['DetectedSignatures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectedSignature.fromJson(e as Map)) .toList(), splitDocuments: (json['SplitDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SplitDocument.fromJson(e as Map)) .toList(), type: json['Type'] as String?, undetectedSignatures: (json['UndetectedSignatures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UndetectedSignature.fromJson(e as Map)) .toList(), ); @@ -3156,16 +3156,16 @@ class ExpenseDocument { factory ExpenseDocument.fromJson(Map json) { return ExpenseDocument( blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), expenseIndex: json['ExpenseIndex'] as int?, lineItemGroups: (json['LineItemGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineItemGroup.fromJson(e as Map)) .toList(), summaryFields: (json['SummaryFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpenseField.fromJson(e as Map)) .toList(), ); @@ -3224,7 +3224,7 @@ class ExpenseField { ? ExpenseCurrency.fromJson(json['Currency'] as Map) : null, groupProperties: (json['GroupProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpenseGroupProperty.fromJson(e as Map)) .toList(), labelDetection: json['LabelDetection'] != null @@ -3278,10 +3278,8 @@ class ExpenseGroupProperty { factory ExpenseGroupProperty.fromJson(Map json) { return ExpenseGroupProperty( id: json['Id'] as String?, - types: (json['Types'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + types: + (json['Types'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -3409,7 +3407,7 @@ class Geometry { ? BoundingBox.fromJson(json['BoundingBox'] as Map) : null, polygon: (json['Polygon'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Point.fromJson(e as Map)) .toList(), ); @@ -3467,7 +3465,7 @@ class GetAdapterResponse { creationTime: timeStampFromJson(json['CreationTime']), description: json['Description'] as String?, featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureType.fromString((e as String))) .toList(), tags: (json['Tags'] as Map?) @@ -3557,12 +3555,12 @@ class GetAdapterVersionResponse { json['DatasetConfig'] as Map) : null, evaluationMetrics: (json['EvaluationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdapterVersionEvaluationMetric.fromJson( e as Map)) .toList(), featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureType.fromString((e as String))) .toList(), kMSKeyId: json['KMSKeyId'] as String?, @@ -3648,7 +3646,7 @@ class GetDocumentAnalysisResponse { analyzeDocumentModelVersion: json['AnalyzeDocumentModelVersion'] as String?, blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), documentMetadata: json['DocumentMetadata'] != null @@ -3659,7 +3657,7 @@ class GetDocumentAnalysisResponse { nextToken: json['NextToken'] as String?, statusMessage: json['StatusMessage'] as String?, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -3727,7 +3725,7 @@ class GetDocumentTextDetectionResponse { factory GetDocumentTextDetectionResponse.fromJson(Map json) { return GetDocumentTextDetectionResponse( blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), detectDocumentTextModelVersion: @@ -3740,7 +3738,7 @@ class GetDocumentTextDetectionResponse { nextToken: json['NextToken'] as String?, statusMessage: json['StatusMessage'] as String?, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -3813,14 +3811,14 @@ class GetExpenseAnalysisResponse { json['DocumentMetadata'] as Map) : null, expenseDocuments: (json['ExpenseDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpenseDocument.fromJson(e as Map)) .toList(), jobStatus: (json['JobStatus'] as String?)?.let(JobStatus.fromString), nextToken: json['NextToken'] as String?, statusMessage: json['StatusMessage'] as String?, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -3891,12 +3889,12 @@ class GetLendingAnalysisResponse { jobStatus: (json['JobStatus'] as String?)?.let(JobStatus.fromString), nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LendingResult.fromJson(e as Map)) .toList(), statusMessage: json['StatusMessage'] as String?, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -3964,7 +3962,7 @@ class GetLendingAnalysisSummaryResponse { ? LendingSummary.fromJson(json['Summary'] as Map) : null, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -4017,7 +4015,7 @@ class HumanLoopActivationOutput { json['HumanLoopActivationConditionsEvaluationResults'] as String), humanLoopActivationReasons: (json['HumanLoopActivationReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), humanLoopArn: json['HumanLoopArn'] as String?, @@ -4114,12 +4112,12 @@ class IdentityDocument { factory IdentityDocument.fromJson(Map json) { return IdentityDocument( blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), documentIndex: json['DocumentIndex'] as int?, identityDocumentFields: (json['IdentityDocumentFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityDocumentField.fromJson(e as Map)) .toList(), ); @@ -4250,11 +4248,11 @@ class LendingDocument { factory LendingDocument.fromJson(Map json) { return LendingDocument( lendingFields: (json['LendingFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LendingField.fromJson(e as Map)) .toList(), signatureDetections: (json['SignatureDetections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SignatureDetection.fromJson(e as Map)) .toList(), ); @@ -4296,7 +4294,7 @@ class LendingField { : null, type: json['Type'] as String?, valueDetections: (json['ValueDetections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LendingDetection.fromJson(e as Map)) .toList(), ); @@ -4336,7 +4334,7 @@ class LendingResult { factory LendingResult.fromJson(Map json) { return LendingResult( extractions: (json['Extractions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Extraction.fromJson(e as Map)) .toList(), page: json['Page'] as int?, @@ -4375,11 +4373,11 @@ class LendingSummary { factory LendingSummary.fromJson(Map json) { return LendingSummary( documentGroups: (json['DocumentGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentGroup.fromJson(e as Map)) .toList(), undetectedDocumentTypes: (json['UndetectedDocumentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4409,7 +4407,7 @@ class LineItemFields { factory LineItemFields.fromJson(Map json) { return LineItemFields( lineItemExpenseFields: (json['LineItemExpenseFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpenseField.fromJson(e as Map)) .toList(), ); @@ -4443,7 +4441,7 @@ class LineItemGroup { return LineItemGroup( lineItemGroupIndex: json['LineItemGroupIndex'] as int?, lineItems: (json['LineItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineItemFields.fromJson(e as Map)) .toList(), ); @@ -4475,7 +4473,7 @@ class ListAdapterVersionsResponse { factory ListAdapterVersionsResponse.fromJson(Map json) { return ListAdapterVersionsResponse( adapterVersions: (json['AdapterVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AdapterVersionOverview.fromJson(e as Map)) .toList(), @@ -4509,7 +4507,7 @@ class ListAdaptersResponse { factory ListAdaptersResponse.fromJson(Map json) { return ListAdaptersResponse( adapters: (json['Adapters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdapterOverview.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4681,11 +4679,11 @@ class PageClassification { factory PageClassification.fromJson(Map json) { return PageClassification( pageNumber: (json['PageNumber'] as List) - .whereNotNull() + .nonNulls .map((e) => Prediction.fromJson(e as Map)) .toList(), pageType: (json['PageType'] as List) - .whereNotNull() + .nonNulls .map((e) => Prediction.fromJson(e as Map)) .toList(), ); @@ -4834,10 +4832,8 @@ class Query { return Query( text: json['Text'] as String, alias: json['Alias'] as String?, - pages: (json['Pages'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + pages: + (json['Pages'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4907,10 +4903,7 @@ class Relationship { factory Relationship.fromJson(Map json) { return Relationship( - ids: (json['Ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['Ids'] as List?)?.nonNulls.map((e) => e as String).toList(), type: (json['Type'] as String?)?.let(RelationshipType.fromString), ); } @@ -5057,10 +5050,7 @@ class SplitDocument { factory SplitDocument.fromJson(Map json) { return SplitDocument( index: json['Index'] as int?, - pages: (json['Pages'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + pages: (json['Pages'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } @@ -5272,7 +5262,7 @@ class UpdateAdapterResponse { creationTime: timeStampFromJson(json['CreationTime']), description: json['Description'] as String?, featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureType.fromString((e as String))) .toList(), ); @@ -5329,10 +5319,7 @@ class Warning { factory Warning.fromJson(Map json) { return Warning( errorCode: json['ErrorCode'] as String?, - pages: (json['Pages'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + pages: (json['Pages'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } diff --git a/aws_client/lib/src/generated/timestream_influx_db/v2023_01_27.dart b/aws_client/lib/src/generated/timestream_influx_db/v2023_01_27.dart index f00b5a795..88e7bebe9 100644 --- a/aws_client/lib/src/generated/timestream_influx_db/v2023_01_27.dart +++ b/aws_client/lib/src/generated/timestream_influx_db/v2023_01_27.dart @@ -662,7 +662,7 @@ class CreateDbInstanceOutput { id: json['id'] as String, name: json['name'] as String, vpcSubnetIds: (json['vpcSubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allocatedStorage: json['allocatedStorage'] as int?, @@ -685,7 +685,7 @@ class CreateDbInstanceOutput { secondaryAvailabilityZone: json['secondaryAvailabilityZone'] as String?, status: (json['status'] as String?)?.let(Status.fromString), vpcSecurityGroupIds: (json['vpcSecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1040,7 +1040,7 @@ class DeleteDbInstanceOutput { id: json['id'] as String, name: json['name'] as String, vpcSubnetIds: (json['vpcSubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allocatedStorage: json['allocatedStorage'] as int?, @@ -1063,7 +1063,7 @@ class DeleteDbInstanceOutput { secondaryAvailabilityZone: json['secondaryAvailabilityZone'] as String?, status: (json['status'] as String?)?.let(Status.fromString), vpcSecurityGroupIds: (json['vpcSecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1214,7 +1214,7 @@ class GetDbInstanceOutput { id: json['id'] as String, name: json['name'] as String, vpcSubnetIds: (json['vpcSubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allocatedStorage: json['allocatedStorage'] as int?, @@ -1237,7 +1237,7 @@ class GetDbInstanceOutput { secondaryAvailabilityZone: json['secondaryAvailabilityZone'] as String?, status: (json['status'] as String?)?.let(Status.fromString), vpcSecurityGroupIds: (json['vpcSecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1446,7 +1446,7 @@ class ListDbInstancesOutput { factory ListDbInstancesOutput.fromJson(Map json) { return ListDbInstancesOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => DbInstanceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1479,7 +1479,7 @@ class ListDbParameterGroupsOutput { factory ListDbParameterGroupsOutput.fromJson(Map json) { return ListDbParameterGroupsOutput( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => DbParameterGroupSummary.fromJson(e as Map)) .toList(), @@ -1736,7 +1736,7 @@ class UpdateDbInstanceOutput { id: json['id'] as String, name: json['name'] as String, vpcSubnetIds: (json['vpcSubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allocatedStorage: json['allocatedStorage'] as int?, @@ -1759,7 +1759,7 @@ class UpdateDbInstanceOutput { secondaryAvailabilityZone: json['secondaryAvailabilityZone'] as String?, status: (json['status'] as String?)?.let(Status.fromString), vpcSecurityGroupIds: (json['vpcSecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/timestream_query/v2018_11_01.dart b/aws_client/lib/src/generated/timestream_query/v2018_11_01.dart index 6f647fa7e..ca50499f5 100644 --- a/aws_client/lib/src/generated/timestream_query/v2018_11_01.dart +++ b/aws_client/lib/src/generated/timestream_query/v2018_11_01.dart @@ -961,7 +961,7 @@ class Datum { factory Datum.fromJson(Map json) { return Datum( arrayValue: (json['ArrayValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Datum.fromJson(e as Map)) .toList(), nullValue: json['NullValue'] as bool?, @@ -970,7 +970,7 @@ class Datum { : null, scalarValue: json['ScalarValue'] as String?, timeSeriesValue: (json['TimeSeriesValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesDataPoint.fromJson(e as Map)) .toList(), ); @@ -1038,7 +1038,7 @@ class DescribeEndpointsResponse { factory DescribeEndpointsResponse.fromJson(Map json) { return DescribeEndpointsResponse( endpoints: (json['Endpoints'] as List) - .whereNotNull() + .nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), ); @@ -1281,7 +1281,7 @@ class ListScheduledQueriesResponse { factory ListScheduledQueriesResponse.fromJson(Map json) { return ListScheduledQueriesResponse( scheduledQueries: (json['ScheduledQueries'] as List) - .whereNotNull() + .nonNulls .map((e) => ScheduledQuery.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1314,7 +1314,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1387,7 +1387,7 @@ class MixedMeasureMapping { measureName: json['MeasureName'] as String?, multiMeasureAttributeMappings: (json['MultiMeasureAttributeMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiMeasureAttributeMapping.fromJson(e as Map)) .toList(), @@ -1477,7 +1477,7 @@ class MultiMeasureMappings { return MultiMeasureMappings( multiMeasureAttributeMappings: (json['MultiMeasureAttributeMappings'] as List) - .whereNotNull() + .nonNulls .map((e) => MultiMeasureAttributeMapping.fromJson(e as Map)) .toList(), @@ -1569,11 +1569,11 @@ class PrepareQueryResponse { factory PrepareQueryResponse.fromJson(Map json) { return PrepareQueryResponse( columns: (json['Columns'] as List) - .whereNotNull() + .nonNulls .map((e) => SelectColumn.fromJson(e as Map)) .toList(), parameters: (json['Parameters'] as List) - .whereNotNull() + .nonNulls .map((e) => ParameterMapping.fromJson(e as Map)) .toList(), queryString: json['QueryString'] as String, @@ -1636,12 +1636,12 @@ class QueryResponse { factory QueryResponse.fromJson(Map json) { return QueryResponse( columnInfo: (json['ColumnInfo'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnInfo.fromJson(e as Map)) .toList(), queryId: json['QueryId'] as String, rows: (json['Rows'] as List) - .whereNotNull() + .nonNulls .map((e) => Row.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1725,7 +1725,7 @@ class Row { factory Row.fromJson(Map json) { return Row( data: (json['Data'] as List) - .whereNotNull() + .nonNulls .map((e) => Datum.fromJson(e as Map)) .toList(), ); @@ -2067,7 +2067,7 @@ class ScheduledQueryDescription { nextInvocationTime: timeStampFromJson(json['NextInvocationTime']), previousInvocationTime: timeStampFromJson(json['PreviousInvocationTime']), recentlyFailedRuns: (json['RecentlyFailedRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduledQueryRunSummary.fromJson(e as Map)) .toList(), @@ -2472,14 +2472,14 @@ class TimestreamConfiguration { return TimestreamConfiguration( databaseName: json['DatabaseName'] as String, dimensionMappings: (json['DimensionMappings'] as List) - .whereNotNull() + .nonNulls .map((e) => DimensionMapping.fromJson(e as Map)) .toList(), tableName: json['TableName'] as String, timeColumn: json['TimeColumn'] as String, measureNameColumn: json['MeasureNameColumn'] as String?, mixedMeasureMappings: (json['MixedMeasureMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MixedMeasureMapping.fromJson(e as Map)) .toList(), multiMeasureMappings: json['MultiMeasureMappings'] != null @@ -2574,7 +2574,7 @@ class Type { ? ColumnInfo.fromJson(json['ArrayColumnInfo'] as Map) : null, rowColumnInfo: (json['RowColumnInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnInfo.fromJson(e as Map)) .toList(), scalarType: (json['ScalarType'] as String?)?.let(ScalarType.fromString), diff --git a/aws_client/lib/src/generated/timestream_write/v2018_11_01.dart b/aws_client/lib/src/generated/timestream_write/v2018_11_01.dart index 5ae777821..24ccff019 100644 --- a/aws_client/lib/src/generated/timestream_write/v2018_11_01.dart +++ b/aws_client/lib/src/generated/timestream_write/v2018_11_01.dart @@ -1486,12 +1486,12 @@ class DataModel { factory DataModel.fromJson(Map json) { return DataModel( dimensionMappings: (json['DimensionMappings'] as List) - .whereNotNull() + .nonNulls .map((e) => DimensionMapping.fromJson(e as Map)) .toList(), measureNameColumn: json['MeasureNameColumn'] as String?, mixedMeasureMappings: (json['MixedMeasureMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MixedMeasureMapping.fromJson(e as Map)) .toList(), multiMeasureMappings: json['MultiMeasureMappings'] != null @@ -1781,7 +1781,7 @@ class DescribeEndpointsResponse { factory DescribeEndpointsResponse.fromJson(Map json) { return DescribeEndpointsResponse( endpoints: (json['Endpoints'] as List) - .whereNotNull() + .nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), ); @@ -1948,7 +1948,7 @@ class ListBatchLoadTasksResponse { factory ListBatchLoadTasksResponse.fromJson(Map json) { return ListBatchLoadTasksResponse( batchLoadTasks: (json['BatchLoadTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchLoadTask.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1981,7 +1981,7 @@ class ListDatabasesResponse { factory ListDatabasesResponse.fromJson(Map json) { return ListDatabasesResponse( databases: (json['Databases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Database.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2015,7 +2015,7 @@ class ListTablesResponse { return ListTablesResponse( nextToken: json['NextToken'] as String?, tables: (json['Tables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Table.fromJson(e as Map)) .toList(), ); @@ -2042,7 +2042,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2215,7 +2215,7 @@ class MixedMeasureMapping { measureName: json['MeasureName'] as String?, multiMeasureAttributeMappings: (json['MultiMeasureAttributeMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiMeasureAttributeMapping.fromJson(e as Map)) .toList(), @@ -2299,7 +2299,7 @@ class MultiMeasureMappings { return MultiMeasureMappings( multiMeasureAttributeMappings: (json['MultiMeasureAttributeMappings'] as List) - .whereNotNull() + .nonNulls .map((e) => MultiMeasureAttributeMapping.fromJson(e as Map)) .toList(), @@ -2743,7 +2743,7 @@ class Schema { factory Schema.fromJson(Map json) { return Schema( compositePartitionKey: (json['CompositePartitionKey'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionKey.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/tnb/v2008_10_21.dart b/aws_client/lib/src/generated/tnb/v2008_10_21.dart index 212699f58..6bdba283d 100644 --- a/aws_client/lib/src/generated/tnb/v2008_10_21.dart +++ b/aws_client/lib/src/generated/tnb/v2008_10_21.dart @@ -1533,7 +1533,7 @@ class FunctionArtifactMeta { factory FunctionArtifactMeta.fromJson(Map json) { return FunctionArtifactMeta( overrides: (json['overrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ToscaOverride.fromJson(e as Map)) .toList(), ); @@ -2115,7 +2115,7 @@ class GetSolNetworkOperationOutput { tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GetSolNetworkOperationTaskDetails.fromJson( e as Map)) .toList(), @@ -2362,10 +2362,8 @@ class GetSolNetworkPackageOutput { nsdUsageState: NsdUsageState.fromString((json['nsdUsageState'] as String)), nsdVersion: json['nsdVersion'] as String, - vnfPkgIds: (json['vnfPkgIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + vnfPkgIds: + (json['vnfPkgIds'] as List).nonNulls.map((e) => e as String).toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), ); @@ -2419,7 +2417,7 @@ class GetSolVnfInfo { vnfState: (json['vnfState'] as String?)?.let(VnfOperationalState.fromString), vnfcResourceInfo: (json['vnfcResourceInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GetSolVnfcResourceInfo.fromJson(e as Map)) .toList(), @@ -2709,7 +2707,7 @@ class ListSolFunctionInstancesOutput { factory ListSolFunctionInstancesOutput.fromJson(Map json) { return ListSolFunctionInstancesOutput( functionInstances: (json['functionInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListSolFunctionInstanceInfo.fromJson(e as Map)) .toList(), @@ -2879,7 +2877,7 @@ class ListSolFunctionPackagesOutput { factory ListSolFunctionPackagesOutput.fromJson(Map json) { return ListSolFunctionPackagesOutput( functionPackages: (json['functionPackages'] as List) - .whereNotNull() + .nonNulls .map((e) => ListSolFunctionPackageInfo.fromJson(e as Map)) .toList(), @@ -3025,7 +3023,7 @@ class ListSolNetworkInstancesOutput { factory ListSolNetworkInstancesOutput.fromJson(Map json) { return ListSolNetworkInstancesOutput( networkInstances: (json['networkInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListSolNetworkInstanceInfo.fromJson(e as Map)) .toList(), @@ -3166,7 +3164,7 @@ class ListSolNetworkOperationsOutput { factory ListSolNetworkOperationsOutput.fromJson(Map json) { return ListSolNetworkOperationsOutput( networkOperations: (json['networkOperations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListSolNetworkOperationsInfo.fromJson(e as Map)) .toList(), @@ -3260,7 +3258,7 @@ class ListSolNetworkPackageInfo { nsdName: json['nsdName'] as String?, nsdVersion: json['nsdVersion'] as String?, vnfPkgIds: (json['vnfPkgIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3349,7 +3347,7 @@ class ListSolNetworkPackagesOutput { factory ListSolNetworkPackagesOutput.fromJson(Map json) { return ListSolNetworkPackagesOutput( networkPackages: (json['networkPackages'] as List) - .whereNotNull() + .nonNulls .map((e) => ListSolNetworkPackageInfo.fromJson(e as Map)) .toList(), @@ -3407,7 +3405,7 @@ class NetworkArtifactMeta { factory NetworkArtifactMeta.fromJson(Map json) { return NetworkArtifactMeta( overrides: (json['overrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ToscaOverride.fromJson(e as Map)) .toList(), ); @@ -3740,10 +3738,8 @@ class PutSolNetworkPackageContentOutput { nsdId: json['nsdId'] as String, nsdName: json['nsdName'] as String, nsdVersion: json['nsdVersion'] as String, - vnfPkgIds: (json['vnfPkgIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + vnfPkgIds: + (json['vnfPkgIds'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -4170,10 +4166,8 @@ class ValidateSolNetworkPackageContentOutput { nsdId: json['nsdId'] as String, nsdName: json['nsdName'] as String, nsdVersion: json['nsdVersion'] as String, - vnfPkgIds: (json['vnfPkgIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + vnfPkgIds: + (json['vnfPkgIds'] as List).nonNulls.map((e) => e as String).toList(), ); } diff --git a/aws_client/lib/src/generated/transcribe/v2017_10_26.dart b/aws_client/lib/src/generated/transcribe/v2017_10_26.dart index b73aa3b17..5e68957d3 100644 --- a/aws_client/lib/src/generated/transcribe/v2017_10_26.dart +++ b/aws_client/lib/src/generated/transcribe/v2017_10_26.dart @@ -3705,7 +3705,7 @@ class CallAnalyticsJob { callAnalyticsJobStatus: (json['CallAnalyticsJobStatus'] as String?) ?.let(CallAnalyticsJobStatus.fromString), channelDefinitions: (json['ChannelDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelDefinition.fromJson(e as Map)) .toList(), completionTime: timeStampFromJson(json['CompletionTime']), @@ -3794,7 +3794,7 @@ class CallAnalyticsJobDetails { factory CallAnalyticsJobDetails.fromJson(Map json) { return CallAnalyticsJobDetails( skipped: (json['Skipped'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CallAnalyticsSkippedFeature.fromJson(e as Map)) .toList(), @@ -3922,7 +3922,7 @@ class CallAnalyticsJobSettings { LanguageIdSettings.fromJson(e as Map))), languageModelName: json['LanguageModelName'] as String?, languageOptions: (json['LanguageOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LanguageCode.fromString((e as String))) .toList(), summarization: json['Summarization'] != null @@ -4200,7 +4200,7 @@ class CategoryProperties { inputType: (json['InputType'] as String?)?.let(InputType.fromString), lastUpdateTime: timeStampFromJson(json['LastUpdateTime']), rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), ); @@ -4302,7 +4302,7 @@ class ContentRedaction { redactionType: RedactionType.fromString((json['RedactionType'] as String)), piiEntityTypes: (json['PiiEntityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PiiEntityType.fromString((e as String))) .toList(), ); @@ -5599,7 +5599,7 @@ class ListCallAnalyticsCategoriesResponse { Map json) { return ListCallAnalyticsCategoriesResponse( categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CategoryProperties.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5640,7 +5640,7 @@ class ListCallAnalyticsJobsResponse { factory ListCallAnalyticsJobsResponse.fromJson(Map json) { return ListCallAnalyticsJobsResponse( callAnalyticsJobSummaries: (json['CallAnalyticsJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CallAnalyticsJobSummary.fromJson(e as Map)) .toList(), @@ -5683,7 +5683,7 @@ class ListLanguageModelsResponse { factory ListLanguageModelsResponse.fromJson(Map json) { return ListLanguageModelsResponse( models: (json['Models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LanguageModel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5724,7 +5724,7 @@ class ListMedicalScribeJobsResponse { factory ListMedicalScribeJobsResponse.fromJson(Map json) { return ListMedicalScribeJobsResponse( medicalScribeJobSummaries: (json['MedicalScribeJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MedicalScribeJobSummary.fromJson(e as Map)) .toList(), @@ -5773,7 +5773,7 @@ class ListMedicalTranscriptionJobsResponse { return ListMedicalTranscriptionJobsResponse( medicalTranscriptionJobSummaries: (json['MedicalTranscriptionJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MedicalTranscriptionJobSummary.fromJson( e as Map)) .toList(), @@ -5825,7 +5825,7 @@ class ListMedicalVocabulariesResponse { nextToken: json['NextToken'] as String?, status: (json['Status'] as String?)?.let(VocabularyState.fromString), vocabularies: (json['Vocabularies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VocabularyInfo.fromJson(e as Map)) .toList(), ); @@ -5860,7 +5860,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( resourceArn: json['ResourceArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5903,7 +5903,7 @@ class ListTranscriptionJobsResponse { status: (json['Status'] as String?)?.let(TranscriptionJobStatus.fromString), transcriptionJobSummaries: (json['TranscriptionJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TranscriptionJobSummary.fromJson(e as Map)) .toList(), @@ -5951,7 +5951,7 @@ class ListVocabulariesResponse { nextToken: json['NextToken'] as String?, status: (json['Status'] as String?)?.let(VocabularyState.fromString), vocabularies: (json['Vocabularies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VocabularyInfo.fromJson(e as Map)) .toList(), ); @@ -5990,7 +5990,7 @@ class ListVocabularyFiltersResponse { return ListVocabularyFiltersResponse( nextToken: json['NextToken'] as String?, vocabularyFilters: (json['VocabularyFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VocabularyFilterInfo.fromJson(e as Map)) .toList(), ); @@ -6268,7 +6268,7 @@ class MedicalScribeJob { factory MedicalScribeJob.fromJson(Map json) { return MedicalScribeJob( channelDefinitions: (json['ChannelDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MedicalScribeChannelDefinition.fromJson( e as Map)) .toList(), @@ -6294,7 +6294,7 @@ class MedicalScribeJob { : null, startTime: timeStampFromJson(json['StartTime']), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6824,7 +6824,7 @@ class MedicalTranscriptionJob { specialty: (json['Specialty'] as String?)?.let(Specialty.fromString), startTime: timeStampFromJson(json['StartTime']), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), transcript: json['Transcript'] != null @@ -7547,7 +7547,7 @@ class SentimentFilter { factory SentimentFilter.fromJson(Map json) { return SentimentFilter( sentiments: (json['Sentiments'] as List) - .whereNotNull() + .nonNulls .map((e) => SentimentValue.fromString((e as String))) .toList(), absoluteTimeRange: json['AbsoluteTimeRange'] != null @@ -7950,12 +7950,12 @@ class SubtitlesOutput { factory SubtitlesOutput.fromJson(Map json) { return SubtitlesOutput( formats: (json['Formats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubtitleFormat.fromString((e as String))) .toList(), outputStartIndex: json['OutputStartIndex'] as int?, subtitleFileUris: (json['SubtitleFileUris'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8093,7 +8093,7 @@ class ToxicityDetectionSettings { factory ToxicityDetectionSettings.fromJson(Map json) { return ToxicityDetectionSettings( toxicityCategories: (json['ToxicityCategories'] as List) - .whereNotNull() + .nonNulls .map((e) => ToxicityCategory.fromString((e as String))) .toList(), ); @@ -8237,10 +8237,8 @@ class TranscriptFilter { factory TranscriptFilter.fromJson(Map json) { return TranscriptFilter( - targets: (json['Targets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['Targets'] as List).nonNulls.map((e) => e as String).toList(), transcriptFilterType: TranscriptFilterType.fromString( (json['TranscriptFilterType'] as String)), absoluteTimeRange: json['AbsoluteTimeRange'] != null @@ -8513,14 +8511,14 @@ class TranscriptionJob { languageCode: (json['LanguageCode'] as String?)?.let(LanguageCode.fromString), languageCodes: (json['LanguageCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LanguageCodeItem.fromJson(e as Map)) .toList(), languageIdSettings: (json['LanguageIdSettings'] as Map?) ?.map((k, e) => MapEntry(LanguageCode.fromString(k), LanguageIdSettings.fromJson(e as Map))), languageOptions: (json['LanguageOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LanguageCode.fromString((e as String))) .toList(), media: json['Media'] != null @@ -8541,11 +8539,11 @@ class TranscriptionJob { ? SubtitlesOutput.fromJson(json['Subtitles'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), toxicityDetection: (json['ToxicityDetection'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ToxicityDetectionSettings.fromJson(e as Map)) .toList(), @@ -8763,7 +8761,7 @@ class TranscriptionJobSummary { languageCode: (json['LanguageCode'] as String?)?.let(LanguageCode.fromString), languageCodes: (json['LanguageCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LanguageCodeItem.fromJson(e as Map)) .toList(), modelSettings: json['ModelSettings'] != null @@ -8774,7 +8772,7 @@ class TranscriptionJobSummary { ?.let(OutputLocationType.fromString), startTime: timeStampFromJson(json['StartTime']), toxicityDetection: (json['ToxicityDetection'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ToxicityDetectionSettings.fromJson(e as Map)) .toList(), diff --git a/aws_client/lib/src/generated/transfer/v2018_11_05.dart b/aws_client/lib/src/generated/transfer/v2018_11_05.dart index 450788dfc..570830411 100644 --- a/aws_client/lib/src/generated/transfer/v2018_11_05.dart +++ b/aws_client/lib/src/generated/transfer/v2018_11_05.dart @@ -5435,7 +5435,7 @@ class DescribedAccess { externalId: json['ExternalId'] as String?, homeDirectory: json['HomeDirectory'] as String?, homeDirectoryMappings: (json['HomeDirectoryMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HomeDirectoryMapEntry.fromJson(e as Map)) .toList(), homeDirectoryType: (json['HomeDirectoryType'] as String?) @@ -5562,7 +5562,7 @@ class DescribedAgreement { serverId: json['ServerId'] as String?, status: (json['Status'] as String?)?.let(AgreementStatusType.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5689,7 +5689,7 @@ class DescribedCertificate { status: (json['Status'] as String?)?.let(CertificateStatusType.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(CertificateType.fromString), @@ -5827,7 +5827,7 @@ class DescribedConnector { securityPolicyName: json['SecurityPolicyName'] as String?, serviceManagedEgressIpAddresses: (json['ServiceManagedEgressIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sftpConfig: json['SftpConfig'] != null @@ -5835,7 +5835,7 @@ class DescribedConnector { json['SftpConfig'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), url: json['Url'] as String?, @@ -6023,7 +6023,7 @@ class DescribedHostKey { hostKeyFingerprint: json['HostKeyFingerprint'] as String?, hostKeyId: json['HostKeyId'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: json['Type'] as String?, @@ -6094,14 +6094,14 @@ class DescribedProfile { arn: json['Arn'] as String, as2Id: json['As2Id'] as String?, certificateIds: (json['CertificateIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), profileId: json['ProfileId'] as String?, profileType: (json['ProfileType'] as String?)?.let(ProfileType.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6193,27 +6193,23 @@ class DescribedSecurityPolicy { securityPolicyName: json['SecurityPolicyName'] as String, fips: json['Fips'] as bool?, protocols: (json['Protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityPolicyProtocol.fromString((e as String))) .toList(), sshCiphers: (json['SshCiphers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sshHostKeyAlgorithms: (json['SshHostKeyAlgorithms'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - sshKexs: (json['SshKexs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - sshMacs: (json['SshMacs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + sshKexs: + (json['SshKexs'] as List?)?.nonNulls.map((e) => e as String).toList(), + sshMacs: + (json['SshMacs'] as List?)?.nonNulls.map((e) => e as String).toList(), tlsCiphers: (json['TlsCiphers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: @@ -6516,7 +6512,7 @@ class DescribedServer { arn: json['Arn'] as String, as2ServiceManagedEgressIpAddresses: (json['As2ServiceManagedEgressIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), certificate: json['Certificate'] as String?, @@ -6544,7 +6540,7 @@ class DescribedServer { json['ProtocolDetails'] as Map) : null, protocols: (json['Protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Protocol.fromString((e as String))) .toList(), s3StorageOptions: json['S3StorageOptions'] != null @@ -6555,11 +6551,11 @@ class DescribedServer { serverId: json['ServerId'] as String?, state: (json['State'] as String?)?.let(State.fromString), structuredLogDestinations: (json['StructuredLogDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), userCount: json['UserCount'] as int?, @@ -6736,7 +6732,7 @@ class DescribedUser { arn: json['Arn'] as String, homeDirectory: json['HomeDirectory'] as String?, homeDirectoryMappings: (json['HomeDirectoryMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HomeDirectoryMapEntry.fromJson(e as Map)) .toList(), homeDirectoryType: (json['HomeDirectoryType'] as String?) @@ -6747,11 +6743,11 @@ class DescribedUser { : null, role: json['Role'] as String?, sshPublicKeys: (json['SshPublicKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SshPublicKey.fromJson(e as Map)) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), userName: json['UserName'] as String?, @@ -6822,15 +6818,15 @@ class DescribedWorkflow { arn: json['Arn'] as String, description: json['Description'] as String?, onExceptionSteps: (json['OnExceptionSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowStep.fromJson(e as Map)) .toList(), steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowStep.fromJson(e as Map)) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), workflowId: json['WorkflowId'] as String?, @@ -7067,15 +7063,15 @@ class EndpointDetails { factory EndpointDetails.fromJson(Map json) { return EndpointDetails( addressAllocationIds: (json['AddressAllocationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcEndpointId: json['VpcEndpointId'] as String?, @@ -7226,11 +7222,11 @@ class ExecutionResults { factory ExecutionResults.fromJson(Map json) { return ExecutionResults( onExceptionSteps: (json['OnExceptionSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExecutionStepResult.fromJson(e as Map)) .toList(), steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExecutionStepResult.fromJson(e as Map)) .toList(), ); @@ -7696,7 +7692,7 @@ class ListAccessesResponse { factory ListAccessesResponse.fromJson(Map json) { return ListAccessesResponse( accesses: (json['Accesses'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedAccess.fromJson(e as Map)) .toList(), serverId: json['ServerId'] as String, @@ -7732,7 +7728,7 @@ class ListAgreementsResponse { factory ListAgreementsResponse.fromJson(Map json) { return ListAgreementsResponse( agreements: (json['Agreements'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedAgreement.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7765,7 +7761,7 @@ class ListCertificatesResponse { factory ListCertificatesResponse.fromJson(Map json) { return ListCertificatesResponse( certificates: (json['Certificates'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedCertificate.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7798,7 +7794,7 @@ class ListConnectorsResponse { factory ListConnectorsResponse.fromJson(Map json) { return ListConnectorsResponse( connectors: (json['Connectors'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedConnector.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7837,7 +7833,7 @@ class ListExecutionsResponse { factory ListExecutionsResponse.fromJson(Map json) { return ListExecutionsResponse( executions: (json['Executions'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedExecution.fromJson(e as Map)) .toList(), workflowId: json['WorkflowId'] as String, @@ -7877,7 +7873,7 @@ class ListHostKeysResponse { factory ListHostKeysResponse.fromJson(Map json) { return ListHostKeysResponse( hostKeys: (json['HostKeys'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedHostKey.fromJson(e as Map)) .toList(), serverId: json['ServerId'] as String, @@ -7913,7 +7909,7 @@ class ListProfilesResponse { factory ListProfilesResponse.fromJson(Map json) { return ListProfilesResponse( profiles: (json['Profiles'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedProfile.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7948,7 +7944,7 @@ class ListSecurityPoliciesResponse { factory ListSecurityPoliciesResponse.fromJson(Map json) { return ListSecurityPoliciesResponse( securityPolicyNames: (json['SecurityPolicyNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7983,7 +7979,7 @@ class ListServersResponse { factory ListServersResponse.fromJson(Map json) { return ListServersResponse( servers: (json['Servers'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedServer.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8025,7 +8021,7 @@ class ListTagsForResourceResponse { arn: json['Arn'] as String?, nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8068,7 +8064,7 @@ class ListUsersResponse { return ListUsersResponse( serverId: json['ServerId'] as String, users: (json['Users'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedUser.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8105,7 +8101,7 @@ class ListWorkflowsResponse { factory ListWorkflowsResponse.fromJson(Map json) { return ListWorkflowsResponse( workflows: (json['Workflows'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedWorkflow.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8968,7 +8964,7 @@ class PosixProfile { gid: json['Gid'] as int, uid: json['Uid'] as int, secondaryGids: (json['SecondaryGids'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -9127,7 +9123,7 @@ class ProtocolDetails { factory ProtocolDetails.fromJson(Map json) { return ProtocolDetails( as2Transports: (json['As2Transports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => As2Transport.fromString((e as String))) .toList(), passiveIp: json['PassiveIp'] as String?, @@ -9474,7 +9470,7 @@ class SftpConnectorConfig { factory SftpConnectorConfig.fromJson(Map json) { return SftpConnectorConfig( trustedHostKeys: (json['TrustedHostKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userSecretId: json['UserSecretId'] as String?, @@ -9713,7 +9709,7 @@ class TagStepDetails { name: json['Name'] as String?, sourceFileLocation: json['SourceFileLocation'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Tag.fromJson(e as Map)) .toList(), ); @@ -10165,11 +10161,11 @@ class WorkflowDetails { factory WorkflowDetails.fromJson(Map json) { return WorkflowDetails( onPartialUpload: (json['OnPartialUpload'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowDetail.fromJson(e as Map)) .toList(), onUpload: (json['OnUpload'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowDetail.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/translate/v2017_07_01.dart b/aws_client/lib/src/generated/translate/v2017_07_01.dart index 32518c37c..b2abeae97 100644 --- a/aws_client/lib/src/generated/translate/v2017_07_01.dart +++ b/aws_client/lib/src/generated/translate/v2017_07_01.dart @@ -1125,7 +1125,7 @@ class AppliedTerminology { return AppliedTerminology( name: json['Name'] as String?, terms: (json['Terms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Term.fromJson(e as Map)) .toList(), ); @@ -1750,7 +1750,7 @@ class ListLanguagesResponse { displayLanguageCode: (json['DisplayLanguageCode'] as String?) ?.let(DisplayLanguageCode.fromString), languages: (json['Languages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Language.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1787,7 +1787,7 @@ class ListParallelDataResponse { return ListParallelDataResponse( nextToken: json['NextToken'] as String?, parallelDataPropertiesList: (json['ParallelDataPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ParallelDataProperties.fromJson(e as Map)) .toList(), @@ -1819,7 +1819,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1851,7 +1851,7 @@ class ListTerminologiesResponse { return ListTerminologiesResponse( nextToken: json['NextToken'] as String?, terminologyPropertiesList: (json['TerminologyPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TerminologyProperties.fromJson(e as Map)) .toList(), ); @@ -1886,7 +1886,7 @@ class ListTextTranslationJobsResponse { nextToken: json['NextToken'] as String?, textTranslationJobPropertiesList: (json['TextTranslationJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TextTranslationJobProperties.fromJson( e as Map)) .toList(), @@ -2150,7 +2150,7 @@ class ParallelDataProperties { sourceLanguageCode: json['SourceLanguageCode'] as String?, status: (json['Status'] as String?)?.let(ParallelDataStatus.fromString), targetLanguageCodes: (json['TargetLanguageCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2597,7 +2597,7 @@ class TerminologyProperties { skippedTermCount: json['SkippedTermCount'] as int?, sourceLanguageCode: json['SourceLanguageCode'] as String?, targetLanguageCodes: (json['TargetLanguageCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), termCount: json['TermCount'] as int?, @@ -2778,7 +2778,7 @@ class TextTranslationJobProperties { json['OutputDataConfig'] as Map) : null, parallelDataNames: (json['ParallelDataNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), settings: json['Settings'] != null @@ -2788,11 +2788,11 @@ class TextTranslationJobProperties { sourceLanguageCode: json['SourceLanguageCode'] as String?, submittedTime: timeStampFromJson(json['SubmittedTime']), targetLanguageCodes: (json['TargetLanguageCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), terminologyNames: (json['TerminologyNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2871,7 +2871,7 @@ class TranslateDocumentResponse { json['AppliedSettings'] as Map) : null, appliedTerminologies: (json['AppliedTerminologies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppliedTerminology.fromJson(e as Map)) .toList(), ); @@ -2929,7 +2929,7 @@ class TranslateTextResponse { json['AppliedSettings'] as Map) : null, appliedTerminologies: (json['AppliedTerminologies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppliedTerminology.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/trusted_advisor/v2022_09_15.dart b/aws_client/lib/src/generated/trusted_advisor/v2022_09_15.dart index 75a1d6cf7..603b003e3 100644 --- a/aws_client/lib/src/generated/trusted_advisor/v2022_09_15.dart +++ b/aws_client/lib/src/generated/trusted_advisor/v2022_09_15.dart @@ -703,7 +703,7 @@ class BatchUpdateRecommendationResourceExclusionResponse { return BatchUpdateRecommendationResourceExclusionResponse( batchUpdateRecommendationResourceExclusionErrors: (json['batchUpdateRecommendationResourceExclusionErrors'] as List) - .whereNotNull() + .nonNulls .map((e) => UpdateRecommendationResourceExclusionError.fromJson( e as Map)) .toList(), @@ -761,7 +761,7 @@ class CheckSummary { return CheckSummary( arn: json['arn'] as String, awsServices: (json['awsServices'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), description: json['description'] as String, @@ -770,7 +770,7 @@ class CheckSummary { .map((k, e) => MapEntry(k, e as String)), name: json['name'] as String, pillars: (json['pillars'] as List) - .whereNotNull() + .nonNulls .map((e) => RecommendationPillar.fromString((e as String))) .toList(), source: RecommendationSource.fromString((json['source'] as String)), @@ -882,7 +882,7 @@ class ListChecksResponse { factory ListChecksResponse.fromJson(Map json) { return ListChecksResponse( checkSummaries: (json['checkSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => CheckSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -919,7 +919,7 @@ class ListOrganizationRecommendationAccountsResponse { return ListOrganizationRecommendationAccountsResponse( accountRecommendationLifecycleSummaries: (json['accountRecommendationLifecycleSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AccountRecommendationLifecycleSummary.fromJson( e as Map)) .toList(), @@ -958,7 +958,7 @@ class ListOrganizationRecommendationResourcesResponse { return ListOrganizationRecommendationResourcesResponse( organizationRecommendationResourceSummaries: (json['organizationRecommendationResourceSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => OrganizationRecommendationResourceSummary.fromJson( e as Map)) .toList(), @@ -997,7 +997,7 @@ class ListOrganizationRecommendationsResponse { return ListOrganizationRecommendationsResponse( organizationRecommendationSummaries: (json['organizationRecommendationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => OrganizationRecommendationSummary.fromJson( e as Map)) .toList(), @@ -1035,7 +1035,7 @@ class ListRecommendationResourcesResponse { return ListRecommendationResourcesResponse( recommendationResourceSummaries: (json['recommendationResourceSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => RecommendationResourceSummary.fromJson(e as Map)) .toList(), @@ -1070,7 +1070,7 @@ class ListRecommendationsResponse { factory ListRecommendationsResponse.fromJson(Map json) { return ListRecommendationsResponse( recommendationSummaries: (json['recommendationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => RecommendationSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1191,7 +1191,7 @@ class OrganizationRecommendation { id: json['id'] as String, name: json['name'] as String, pillars: (json['pillars'] as List) - .whereNotNull() + .nonNulls .map((e) => RecommendationPillar.fromString((e as String))) .toList(), resourcesAggregates: RecommendationResourcesAggregates.fromJson( @@ -1200,7 +1200,7 @@ class OrganizationRecommendation { status: RecommendationStatus.fromString((json['status'] as String)), type: RecommendationType.fromString((json['type'] as String)), awsServices: (json['awsServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), checkArn: json['checkArn'] as String?, @@ -1432,7 +1432,7 @@ class OrganizationRecommendationSummary { id: json['id'] as String, name: json['name'] as String, pillars: (json['pillars'] as List) - .whereNotNull() + .nonNulls .map((e) => RecommendationPillar.fromString((e as String))) .toList(), resourcesAggregates: RecommendationResourcesAggregates.fromJson( @@ -1441,7 +1441,7 @@ class OrganizationRecommendationSummary { status: RecommendationStatus.fromString((json['status'] as String)), type: RecommendationType.fromString((json['type'] as String)), awsServices: (json['awsServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), checkArn: json['checkArn'] as String?, @@ -1595,7 +1595,7 @@ class Recommendation { id: json['id'] as String, name: json['name'] as String, pillars: (json['pillars'] as List) - .whereNotNull() + .nonNulls .map((e) => RecommendationPillar.fromString((e as String))) .toList(), resourcesAggregates: RecommendationResourcesAggregates.fromJson( @@ -1604,7 +1604,7 @@ class Recommendation { status: RecommendationStatus.fromString((json['status'] as String)), type: RecommendationType.fromString((json['type'] as String)), awsServices: (json['awsServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), checkArn: json['checkArn'] as String?, @@ -2054,7 +2054,7 @@ class RecommendationSummary { id: json['id'] as String, name: json['name'] as String, pillars: (json['pillars'] as List) - .whereNotNull() + .nonNulls .map((e) => RecommendationPillar.fromString((e as String))) .toList(), resourcesAggregates: RecommendationResourcesAggregates.fromJson( @@ -2063,7 +2063,7 @@ class RecommendationSummary { status: RecommendationStatus.fromString((json['status'] as String)), type: RecommendationType.fromString((json['type'] as String)), awsServices: (json['awsServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), checkArn: json['checkArn'] as String?, diff --git a/aws_client/lib/src/generated/verified_permissions/v2021_12_01.dart b/aws_client/lib/src/generated/verified_permissions/v2021_12_01.dart index fa6b3671e..e32eebfa1 100644 --- a/aws_client/lib/src/generated/verified_permissions/v2021_12_01.dart +++ b/aws_client/lib/src/generated/verified_permissions/v2021_12_01.dart @@ -1961,7 +1961,7 @@ class AttributeValue { record: (json['record'] as Map?)?.map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map))), set: (json['set'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeValue.fromJson(e as Map)) .toList(), string: json['string'] as String?, @@ -2054,7 +2054,7 @@ class BatchIsAuthorizedOutput { factory BatchIsAuthorizedOutput.fromJson(Map json) { return BatchIsAuthorizedOutput( results: (json['results'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchIsAuthorizedOutputItem.fromJson(e as Map)) .toList(), @@ -2103,11 +2103,11 @@ class BatchIsAuthorizedOutputItem { return BatchIsAuthorizedOutputItem( decision: Decision.fromString((json['decision'] as String)), determiningPolicies: (json['determiningPolicies'] as List) - .whereNotNull() + .nonNulls .map((e) => DeterminingPolicyItem.fromJson(e as Map)) .toList(), errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationErrorItem.fromJson(e as Map)) .toList(), request: BatchIsAuthorizedInputItem.fromJson( @@ -2193,7 +2193,7 @@ class BatchIsAuthorizedWithTokenOutput { factory BatchIsAuthorizedWithTokenOutput.fromJson(Map json) { return BatchIsAuthorizedWithTokenOutput( results: (json['results'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchIsAuthorizedWithTokenOutputItem.fromJson( e as Map)) .toList(), @@ -2248,11 +2248,11 @@ class BatchIsAuthorizedWithTokenOutputItem { return BatchIsAuthorizedWithTokenOutputItem( decision: Decision.fromString((json['decision'] as String)), determiningPolicies: (json['determiningPolicies'] as List) - .whereNotNull() + .nonNulls .map((e) => DeterminingPolicyItem.fromJson(e as Map)) .toList(), errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationErrorItem.fromJson(e as Map)) .toList(), request: BatchIsAuthorizedWithTokenInputItem.fromJson( @@ -2457,10 +2457,8 @@ class CognitoUserPoolConfigurationDetail { factory CognitoUserPoolConfigurationDetail.fromJson( Map json) { return CognitoUserPoolConfigurationDetail( - clientIds: (json['clientIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + clientIds: + (json['clientIds'] as List).nonNulls.map((e) => e as String).toList(), issuer: json['issuer'] as String, userPoolArn: json['userPoolArn'] as String, groupConfiguration: json['groupConfiguration'] != null @@ -2532,10 +2530,8 @@ class CognitoUserPoolConfigurationItem { factory CognitoUserPoolConfigurationItem.fromJson(Map json) { return CognitoUserPoolConfigurationItem( - clientIds: (json['clientIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + clientIds: + (json['clientIds'] as List).nonNulls.map((e) => e as String).toList(), issuer: json['issuer'] as String, userPoolArn: json['userPoolArn'] as String, groupConfiguration: json['groupConfiguration'] != null @@ -2823,7 +2819,7 @@ class CreatePolicyOutput { policyStoreId: json['policyStoreId'] as String, policyType: PolicyType.fromString((json['policyType'] as String)), actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionIdentifier.fromJson(e as Map)) .toList(), effect: (json['effect'] as String?)?.let(PolicyEffect.fromString), @@ -3358,7 +3354,7 @@ class GetPolicyOutput { policyStoreId: json['policyStoreId'] as String, policyType: PolicyType.fromString((json['policyType'] as String)), actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionIdentifier.fromJson(e as Map)) .toList(), effect: (json['effect'] as String?)?.let(PolicyEffect.fromString), @@ -3548,7 +3544,7 @@ class GetSchemaOutput { policyStoreId: json['policyStoreId'] as String, schema: json['schema'] as String, namespaces: (json['namespaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3612,7 +3608,7 @@ class IdentitySourceDetails { factory IdentitySourceDetails.fromJson(Map json) { return IdentitySourceDetails( clientIds: (json['clientIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), discoveryUrl: json['discoveryUrl'] as String?, @@ -3778,7 +3774,7 @@ class IdentitySourceItemDetails { factory IdentitySourceItemDetails.fromJson(Map json) { return IdentitySourceItemDetails( clientIds: (json['clientIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), discoveryUrl: json['discoveryUrl'] as String?, @@ -3830,11 +3826,11 @@ class IsAuthorizedOutput { return IsAuthorizedOutput( decision: Decision.fromString((json['decision'] as String)), determiningPolicies: (json['determiningPolicies'] as List) - .whereNotNull() + .nonNulls .map((e) => DeterminingPolicyItem.fromJson(e as Map)) .toList(), errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationErrorItem.fromJson(e as Map)) .toList(), ); @@ -3885,11 +3881,11 @@ class IsAuthorizedWithTokenOutput { return IsAuthorizedWithTokenOutput( decision: Decision.fromString((json['decision'] as String)), determiningPolicies: (json['determiningPolicies'] as List) - .whereNotNull() + .nonNulls .map((e) => DeterminingPolicyItem.fromJson(e as Map)) .toList(), errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationErrorItem.fromJson(e as Map)) .toList(), principal: json['principal'] != null @@ -3932,7 +3928,7 @@ class ListIdentitySourcesOutput { factory ListIdentitySourcesOutput.fromJson(Map json) { return ListIdentitySourcesOutput( identitySources: (json['identitySources'] as List) - .whereNotNull() + .nonNulls .map((e) => IdentitySourceItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3969,7 +3965,7 @@ class ListPoliciesOutput { factory ListPoliciesOutput.fromJson(Map json) { return ListPoliciesOutput( policies: (json['policies'] as List) - .whereNotNull() + .nonNulls .map((e) => PolicyItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4006,7 +4002,7 @@ class ListPolicyStoresOutput { factory ListPolicyStoresOutput.fromJson(Map json) { return ListPolicyStoresOutput( policyStores: (json['policyStores'] as List) - .whereNotNull() + .nonNulls .map((e) => PolicyStoreItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4043,7 +4039,7 @@ class ListPolicyTemplatesOutput { factory ListPolicyTemplatesOutput.fromJson(Map json) { return ListPolicyTemplatesOutput( policyTemplates: (json['policyTemplates'] as List) - .whereNotNull() + .nonNulls .map((e) => PolicyTemplateItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4328,7 +4324,7 @@ class PolicyItem { policyStoreId: json['policyStoreId'] as String, policyType: PolicyType.fromString((json['policyType'] as String)), actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionIdentifier.fromJson(e as Map)) .toList(), effect: (json['effect'] as String?)?.let(PolicyEffect.fromString), @@ -4520,7 +4516,7 @@ class PutSchemaOutput { lastUpdatedDate: nonNullableTimeStampFromJson(json['lastUpdatedDate'] as Object), namespaces: (json['namespaces'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), policyStoreId: json['policyStoreId'] as String, @@ -4995,7 +4991,7 @@ class UpdatePolicyOutput { policyStoreId: json['policyStoreId'] as String, policyType: PolicyType.fromString((json['policyType'] as String)), actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionIdentifier.fromJson(e as Map)) .toList(), effect: (json['effect'] as String?)?.let(PolicyEffect.fromString), diff --git a/aws_client/lib/src/generated/voice_id/v2021_09_27.dart b/aws_client/lib/src/generated/voice_id/v2021_09_27.dart index b43309bf6..1c051519d 100644 --- a/aws_client/lib/src/generated/voice_id/v2021_09_27.dart +++ b/aws_client/lib/src/generated/voice_id/v2021_09_27.dart @@ -2088,7 +2088,7 @@ class EnrollmentJobFraudDetectionConfig { ?.let(FraudDetectionAction.fromString), riskThreshold: json['RiskThreshold'] as int?, watchlistIds: (json['WatchlistIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2368,7 +2368,7 @@ class FraudDetectionResult { (json['Decision'] as String?)?.let(FraudDetectionDecision.fromString), fraudDetectionResultId: json['FraudDetectionResultId'] as String?, reasons: (json['Reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FraudDetectionReason.fromString((e as String))) .toList(), riskDetails: json['RiskDetails'] != null @@ -2462,7 +2462,7 @@ class Fraudster { domainId: json['DomainId'] as String?, generatedFraudsterId: json['GeneratedFraudsterId'] as String?, watchlistIds: (json['WatchlistIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2738,7 +2738,7 @@ class FraudsterSummary { domainId: json['DomainId'] as String?, generatedFraudsterId: json['GeneratedFraudsterId'] as String?, watchlistIds: (json['WatchlistIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2860,7 +2860,7 @@ class ListDomainsResponse { factory ListDomainsResponse.fromJson(Map json) { return ListDomainsResponse( domainSummaries: (json['DomainSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2896,7 +2896,7 @@ class ListFraudsterRegistrationJobsResponse { Map json) { return ListFraudsterRegistrationJobsResponse( jobSummaries: (json['JobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FraudsterRegistrationJobSummary.fromJson( e as Map)) .toList(), @@ -2933,7 +2933,7 @@ class ListFraudstersResponse { factory ListFraudstersResponse.fromJson(Map json) { return ListFraudstersResponse( fraudsterSummaries: (json['FraudsterSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FraudsterSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2969,7 +2969,7 @@ class ListSpeakerEnrollmentJobsResponse { Map json) { return ListSpeakerEnrollmentJobsResponse( jobSummaries: (json['JobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SpeakerEnrollmentJobSummary.fromJson(e as Map)) .toList(), @@ -3007,7 +3007,7 @@ class ListSpeakersResponse { return ListSpeakersResponse( nextToken: json['NextToken'] as String?, speakerSummaries: (json['SpeakerSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SpeakerSummary.fromJson(e as Map)) .toList(), ); @@ -3034,7 +3034,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3068,7 +3068,7 @@ class ListWatchlistsResponse { return ListWatchlistsResponse( nextToken: json['NextToken'] as String?, watchlistSummaries: (json['WatchlistSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WatchlistSummary.fromJson(e as Map)) .toList(), ); @@ -3175,7 +3175,7 @@ class RegistrationConfig { fraudsterSimilarityThreshold: json['FraudsterSimilarityThreshold'] as int?, watchlistIds: (json['WatchlistIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/aws_client/lib/src/generated/vpc_lattice/v2022_11_30.dart b/aws_client/lib/src/generated/vpc_lattice/v2022_11_30.dart index 72ec6dab6..1c3f19d88 100644 --- a/aws_client/lib/src/generated/vpc_lattice/v2022_11_30.dart +++ b/aws_client/lib/src/generated/vpc_lattice/v2022_11_30.dart @@ -2176,11 +2176,11 @@ class BatchUpdateRuleResponse { factory BatchUpdateRuleResponse.fromJson(Map json) { return BatchUpdateRuleResponse( successful: (json['successful'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleUpdateSuccess.fromJson(e as Map)) .toList(), unsuccessful: (json['unsuccessful'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleUpdateFailure.fromJson(e as Map)) .toList(), ); @@ -2519,7 +2519,7 @@ class CreateServiceNetworkVpcAssociationResponse { createdBy: json['createdBy'] as String?, id: json['id'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?) @@ -2928,11 +2928,11 @@ class DeregisterTargetsResponse { factory DeregisterTargetsResponse.fromJson(Map json) { return DeregisterTargetsResponse( successful: (json['successful'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), unsuccessful: (json['unsuccessful'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetFailure.fromJson(e as Map)) .toList(), ); @@ -3023,7 +3023,7 @@ class ForwardAction { factory ForwardAction.fromJson(Map json) { return ForwardAction( targetGroups: (json['targetGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => WeightedTargetGroup.fromJson(e as Map)) .toList(), ); @@ -3618,7 +3618,7 @@ class GetServiceNetworkVpcAssociationResponse { id: json['id'] as String?, lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serviceNetworkArn: json['serviceNetworkArn'] as String?, @@ -3828,7 +3828,7 @@ class GetTargetGroupResponse { lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), name: json['name'] as String?, serviceArns: (json['serviceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(TargetGroupStatus.fromString), @@ -4085,7 +4085,7 @@ class HttpMatch { factory HttpMatch.fromJson(Map json) { return HttpMatch( headerMatches: (json['headerMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HeaderMatch.fromJson(e as Map)) .toList(), method: json['method'] as String?, @@ -4153,7 +4153,7 @@ class ListAccessLogSubscriptionsResponse { Map json) { return ListAccessLogSubscriptionsResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => AccessLogSubscriptionSummary.fromJson(e as Map)) .toList(), @@ -4187,7 +4187,7 @@ class ListListenersResponse { factory ListListenersResponse.fromJson(Map json) { return ListListenersResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => ListenerSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4220,7 +4220,7 @@ class ListRulesResponse { factory ListRulesResponse.fromJson(Map json) { return ListRulesResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4254,7 +4254,7 @@ class ListServiceNetworkServiceAssociationsResponse { Map json) { return ListServiceNetworkServiceAssociationsResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => ServiceNetworkServiceAssociationSummary.fromJson( e as Map)) .toList(), @@ -4289,7 +4289,7 @@ class ListServiceNetworkVpcAssociationsResponse { Map json) { return ListServiceNetworkVpcAssociationsResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => ServiceNetworkVpcAssociationSummary.fromJson( e as Map)) .toList(), @@ -4323,7 +4323,7 @@ class ListServiceNetworksResponse { factory ListServiceNetworksResponse.fromJson(Map json) { return ListServiceNetworksResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => ServiceNetworkSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4356,7 +4356,7 @@ class ListServicesResponse { factory ListServicesResponse.fromJson(Map json) { return ListServicesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4412,7 +4412,7 @@ class ListTargetGroupsResponse { factory ListTargetGroupsResponse.fromJson(Map json) { return ListTargetGroupsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4445,7 +4445,7 @@ class ListTargetsResponse { factory ListTargetsResponse.fromJson(Map json) { return ListTargetsResponse( items: (json['items'] as List) - .whereNotNull() + .nonNulls .map((e) => TargetSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4694,11 +4694,11 @@ class RegisterTargetsResponse { factory RegisterTargetsResponse.fromJson(Map json) { return RegisterTargetsResponse( successful: (json['successful'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), unsuccessful: (json['unsuccessful'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetFailure.fromJson(e as Map)) .toList(), ); @@ -5704,7 +5704,7 @@ class TargetGroupSummary { protocol: (json['protocol'] as String?)?.let(TargetGroupProtocol.fromString), serviceArns: (json['serviceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(TargetGroupStatus.fromString), @@ -6135,7 +6135,7 @@ class UpdateServiceNetworkVpcAssociationResponse { createdBy: json['createdBy'] as String?, id: json['id'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?) diff --git a/aws_client/lib/src/generated/waf/v2015_08_24.dart b/aws_client/lib/src/generated/waf/v2015_08_24.dart index 46896f50f..ca2b2f294 100644 --- a/aws_client/lib/src/generated/waf/v2015_08_24.dart +++ b/aws_client/lib/src/generated/waf/v2015_08_24.dart @@ -5952,7 +5952,7 @@ class ActivatedRule { ? WafAction.fromJson(json['Action'] as Map) : null, excludedRules: (json['ExcludedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExcludedRule.fromJson(e as Map)) .toList(), overrideAction: json['OverrideAction'] != null @@ -6035,7 +6035,7 @@ class ByteMatchSet { return ByteMatchSet( byteMatchSetId: json['ByteMatchSetId'] as String, byteMatchTuples: (json['ByteMatchTuples'] as List) - .whereNotNull() + .nonNulls .map((e) => ByteMatchTuple.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -7742,7 +7742,7 @@ class GeoMatchSet { factory GeoMatchSet.fromJson(Map json) { return GeoMatchSet( geoMatchConstraints: (json['GeoMatchConstraints'] as List) - .whereNotNull() + .nonNulls .map((e) => GeoMatchConstraint.fromJson(e as Map)) .toList(), geoMatchSetId: json['GeoMatchSetId'] as String, @@ -8064,7 +8064,7 @@ class GetRateBasedRuleManagedKeysResponse { Map json) { return GetRateBasedRuleManagedKeysResponse( managedKeys: (json['ManagedKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8252,7 +8252,7 @@ class GetSampledRequestsResponse { return GetSampledRequestsResponse( populationSize: json['PopulationSize'] as int?, sampledRequests: (json['SampledRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampledHTTPRequest.fromJson(e as Map)) .toList(), timeWindow: json['TimeWindow'] != null @@ -8565,7 +8565,7 @@ class HTTPRequest { country: json['Country'] as String?, hTTPVersion: json['HTTPVersion'] as String?, headers: (json['Headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HTTPHeader.fromJson(e as Map)) .toList(), method: json['Method'] as String?, @@ -8646,7 +8646,7 @@ class IPSet { factory IPSet.fromJson(Map json) { return IPSet( iPSetDescriptors: (json['IPSetDescriptors'] as List) - .whereNotNull() + .nonNulls .map((e) => IPSetDescriptor.fromJson(e as Map)) .toList(), iPSetId: json['IPSetId'] as String, @@ -8855,7 +8855,7 @@ class ListActivatedRulesInRuleGroupResponse { Map json) { return ListActivatedRulesInRuleGroupResponse( activatedRules: (json['ActivatedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActivatedRule.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8892,7 +8892,7 @@ class ListByteMatchSetsResponse { factory ListByteMatchSetsResponse.fromJson(Map json) { return ListByteMatchSetsResponse( byteMatchSets: (json['ByteMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ByteMatchSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8929,7 +8929,7 @@ class ListGeoMatchSetsResponse { factory ListGeoMatchSetsResponse.fromJson(Map json) { return ListGeoMatchSetsResponse( geoMatchSets: (json['GeoMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GeoMatchSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8963,7 +8963,7 @@ class ListIPSetsResponse { factory ListIPSetsResponse.fromJson(Map json) { return ListIPSetsResponse( iPSets: (json['IPSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IPSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -9002,7 +9002,7 @@ class ListLoggingConfigurationsResponse { Map json) { return ListLoggingConfigurationsResponse( loggingConfigurations: (json['LoggingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoggingConfiguration.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -9041,7 +9041,7 @@ class ListRateBasedRulesResponse { return ListRateBasedRulesResponse( nextMarker: json['NextMarker'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), ); @@ -9078,7 +9078,7 @@ class ListRegexMatchSetsResponse { return ListRegexMatchSetsResponse( nextMarker: json['NextMarker'] as String?, regexMatchSets: (json['RegexMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegexMatchSetSummary.fromJson(e as Map)) .toList(), ); @@ -9115,7 +9115,7 @@ class ListRegexPatternSetsResponse { return ListRegexPatternSetsResponse( nextMarker: json['NextMarker'] as String?, regexPatternSets: (json['RegexPatternSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RegexPatternSetSummary.fromJson(e as Map)) .toList(), @@ -9153,7 +9153,7 @@ class ListRuleGroupsResponse { return ListRuleGroupsResponse( nextMarker: json['NextMarker'] as String?, ruleGroups: (json['RuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSummary.fromJson(e as Map)) .toList(), ); @@ -9190,7 +9190,7 @@ class ListRulesResponse { return ListRulesResponse( nextMarker: json['NextMarker'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), ); @@ -9227,7 +9227,7 @@ class ListSizeConstraintSetsResponse { return ListSizeConstraintSetsResponse( nextMarker: json['NextMarker'] as String?, sizeConstraintSets: (json['SizeConstraintSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SizeConstraintSetSummary.fromJson(e as Map)) .toList(), @@ -9268,7 +9268,7 @@ class ListSqlInjectionMatchSetsResponse { return ListSqlInjectionMatchSetsResponse( nextMarker: json['NextMarker'] as String?, sqlInjectionMatchSets: (json['SqlInjectionMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SqlInjectionMatchSetSummary.fromJson(e as Map)) .toList(), @@ -9307,7 +9307,7 @@ class ListSubscribedRuleGroupsResponse { return ListSubscribedRuleGroupsResponse( nextMarker: json['NextMarker'] as String?, ruleGroups: (json['RuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubscribedRuleGroupSummary.fromJson(e as Map)) .toList(), @@ -9377,7 +9377,7 @@ class ListWebACLsResponse { return ListWebACLsResponse( nextMarker: json['NextMarker'] as String?, webACLs: (json['WebACLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WebACLSummary.fromJson(e as Map)) .toList(), ); @@ -9415,7 +9415,7 @@ class ListXssMatchSetsResponse { return ListXssMatchSetsResponse( nextMarker: json['NextMarker'] as String?, xssMatchSets: (json['XssMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => XssMatchSetSummary.fromJson(e as Map)) .toList(), ); @@ -9466,12 +9466,12 @@ class LoggingConfiguration { factory LoggingConfiguration.fromJson(Map json) { return LoggingConfiguration( logDestinationConfigs: (json['LogDestinationConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), resourceArn: json['ResourceArn'] as String, redactedFields: (json['RedactedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldToMatch.fromJson(e as Map)) .toList(), ); @@ -9740,7 +9740,7 @@ class RateBasedRule { factory RateBasedRule.fromJson(Map json) { return RateBasedRule( matchPredicates: (json['MatchPredicates'] as List) - .whereNotNull() + .nonNulls .map((e) => Predicate.fromJson(e as Map)) .toList(), rateKey: RateKey.fromString((json['RateKey'] as String)), @@ -9851,7 +9851,7 @@ class RegexMatchSet { name: json['Name'] as String?, regexMatchSetId: json['RegexMatchSetId'] as String?, regexMatchTuples: (json['RegexMatchTuples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegexMatchTuple.fromJson(e as Map)) .toList(), ); @@ -10181,7 +10181,7 @@ class RegexPatternSet { return RegexPatternSet( regexPatternSetId: json['RegexPatternSetId'] as String, regexPatternStrings: (json['RegexPatternStrings'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -10358,7 +10358,7 @@ class Rule { factory Rule.fromJson(Map json) { return Rule( predicates: (json['Predicates'] as List) - .whereNotNull() + .nonNulls .map((e) => Predicate.fromJson(e as Map)) .toList(), ruleId: json['RuleId'] as String, @@ -10966,7 +10966,7 @@ class SizeConstraintSet { return SizeConstraintSet( sizeConstraintSetId: json['SizeConstraintSetId'] as String, sizeConstraints: (json['SizeConstraints'] as List) - .whereNotNull() + .nonNulls .map((e) => SizeConstraint.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -11130,7 +11130,7 @@ class SqlInjectionMatchSet { return SqlInjectionMatchSet( sqlInjectionMatchSetId: json['SqlInjectionMatchSetId'] as String, sqlInjectionMatchTuples: (json['SqlInjectionMatchTuples'] as List) - .whereNotNull() + .nonNulls .map( (e) => SqlInjectionMatchTuple.fromJson(e as Map)) .toList(), @@ -11530,7 +11530,7 @@ class TagInfoForResource { return TagInfoForResource( resourceARN: json['ResourceARN'] as String?, tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -12166,7 +12166,7 @@ class WebACL { defaultAction: WafAction.fromJson(json['DefaultAction'] as Map), rules: (json['Rules'] as List) - .whereNotNull() + .nonNulls .map((e) => ActivatedRule.fromJson(e as Map)) .toList(), webACLId: json['WebACLId'] as String, @@ -12331,7 +12331,7 @@ class XssMatchSet { return XssMatchSet( xssMatchSetId: json['XssMatchSetId'] as String, xssMatchTuples: (json['XssMatchTuples'] as List) - .whereNotNull() + .nonNulls .map((e) => XssMatchTuple.fromJson(e as Map)) .toList(), name: json['Name'] as String?, diff --git a/aws_client/lib/src/generated/waf_regional/v2016_11_28.dart b/aws_client/lib/src/generated/waf_regional/v2016_11_28.dart index 5535cd1c4..6c8fa704a 100644 --- a/aws_client/lib/src/generated/waf_regional/v2016_11_28.dart +++ b/aws_client/lib/src/generated/waf_regional/v2016_11_28.dart @@ -6186,7 +6186,7 @@ class ActivatedRule { ? WafAction.fromJson(json['Action'] as Map) : null, excludedRules: (json['ExcludedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExcludedRule.fromJson(e as Map)) .toList(), overrideAction: json['OverrideAction'] != null @@ -6281,7 +6281,7 @@ class ByteMatchSet { return ByteMatchSet( byteMatchSetId: json['ByteMatchSetId'] as String, byteMatchTuples: (json['ByteMatchTuples'] as List) - .whereNotNull() + .nonNulls .map((e) => ByteMatchTuple.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -8000,7 +8000,7 @@ class GeoMatchSet { factory GeoMatchSet.fromJson(Map json) { return GeoMatchSet( geoMatchConstraints: (json['GeoMatchConstraints'] as List) - .whereNotNull() + .nonNulls .map((e) => GeoMatchConstraint.fromJson(e as Map)) .toList(), geoMatchSetId: json['GeoMatchSetId'] as String, @@ -8322,7 +8322,7 @@ class GetRateBasedRuleManagedKeysResponse { Map json) { return GetRateBasedRuleManagedKeysResponse( managedKeys: (json['ManagedKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8510,7 +8510,7 @@ class GetSampledRequestsResponse { return GetSampledRequestsResponse( populationSize: json['PopulationSize'] as int?, sampledRequests: (json['SampledRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampledHTTPRequest.fromJson(e as Map)) .toList(), timeWindow: json['TimeWindow'] != null @@ -8850,7 +8850,7 @@ class HTTPRequest { country: json['Country'] as String?, hTTPVersion: json['HTTPVersion'] as String?, headers: (json['Headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HTTPHeader.fromJson(e as Map)) .toList(), method: json['Method'] as String?, @@ -8931,7 +8931,7 @@ class IPSet { factory IPSet.fromJson(Map json) { return IPSet( iPSetDescriptors: (json['IPSetDescriptors'] as List) - .whereNotNull() + .nonNulls .map((e) => IPSetDescriptor.fromJson(e as Map)) .toList(), iPSetId: json['IPSetId'] as String, @@ -9140,7 +9140,7 @@ class ListActivatedRulesInRuleGroupResponse { Map json) { return ListActivatedRulesInRuleGroupResponse( activatedRules: (json['ActivatedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActivatedRule.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -9177,7 +9177,7 @@ class ListByteMatchSetsResponse { factory ListByteMatchSetsResponse.fromJson(Map json) { return ListByteMatchSetsResponse( byteMatchSets: (json['ByteMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ByteMatchSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -9214,7 +9214,7 @@ class ListGeoMatchSetsResponse { factory ListGeoMatchSetsResponse.fromJson(Map json) { return ListGeoMatchSetsResponse( geoMatchSets: (json['GeoMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GeoMatchSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -9248,7 +9248,7 @@ class ListIPSetsResponse { factory ListIPSetsResponse.fromJson(Map json) { return ListIPSetsResponse( iPSets: (json['IPSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IPSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -9287,7 +9287,7 @@ class ListLoggingConfigurationsResponse { Map json) { return ListLoggingConfigurationsResponse( loggingConfigurations: (json['LoggingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoggingConfiguration.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -9326,7 +9326,7 @@ class ListRateBasedRulesResponse { return ListRateBasedRulesResponse( nextMarker: json['NextMarker'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), ); @@ -9363,7 +9363,7 @@ class ListRegexMatchSetsResponse { return ListRegexMatchSetsResponse( nextMarker: json['NextMarker'] as String?, regexMatchSets: (json['RegexMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegexMatchSetSummary.fromJson(e as Map)) .toList(), ); @@ -9400,7 +9400,7 @@ class ListRegexPatternSetsResponse { return ListRegexPatternSetsResponse( nextMarker: json['NextMarker'] as String?, regexPatternSets: (json['RegexPatternSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RegexPatternSetSummary.fromJson(e as Map)) .toList(), @@ -9430,7 +9430,7 @@ class ListResourcesForWebACLResponse { factory ListResourcesForWebACLResponse.fromJson(Map json) { return ListResourcesForWebACLResponse( resourceArns: (json['ResourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9465,7 +9465,7 @@ class ListRuleGroupsResponse { return ListRuleGroupsResponse( nextMarker: json['NextMarker'] as String?, ruleGroups: (json['RuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSummary.fromJson(e as Map)) .toList(), ); @@ -9502,7 +9502,7 @@ class ListRulesResponse { return ListRulesResponse( nextMarker: json['NextMarker'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), ); @@ -9539,7 +9539,7 @@ class ListSizeConstraintSetsResponse { return ListSizeConstraintSetsResponse( nextMarker: json['NextMarker'] as String?, sizeConstraintSets: (json['SizeConstraintSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SizeConstraintSetSummary.fromJson(e as Map)) .toList(), @@ -9580,7 +9580,7 @@ class ListSqlInjectionMatchSetsResponse { return ListSqlInjectionMatchSetsResponse( nextMarker: json['NextMarker'] as String?, sqlInjectionMatchSets: (json['SqlInjectionMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SqlInjectionMatchSetSummary.fromJson(e as Map)) .toList(), @@ -9619,7 +9619,7 @@ class ListSubscribedRuleGroupsResponse { return ListSubscribedRuleGroupsResponse( nextMarker: json['NextMarker'] as String?, ruleGroups: (json['RuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubscribedRuleGroupSummary.fromJson(e as Map)) .toList(), @@ -9689,7 +9689,7 @@ class ListWebACLsResponse { return ListWebACLsResponse( nextMarker: json['NextMarker'] as String?, webACLs: (json['WebACLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WebACLSummary.fromJson(e as Map)) .toList(), ); @@ -9727,7 +9727,7 @@ class ListXssMatchSetsResponse { return ListXssMatchSetsResponse( nextMarker: json['NextMarker'] as String?, xssMatchSets: (json['XssMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => XssMatchSetSummary.fromJson(e as Map)) .toList(), ); @@ -9778,12 +9778,12 @@ class LoggingConfiguration { factory LoggingConfiguration.fromJson(Map json) { return LoggingConfiguration( logDestinationConfigs: (json['LogDestinationConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), resourceArn: json['ResourceArn'] as String, redactedFields: (json['RedactedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldToMatch.fromJson(e as Map)) .toList(), ); @@ -10052,7 +10052,7 @@ class RateBasedRule { factory RateBasedRule.fromJson(Map json) { return RateBasedRule( matchPredicates: (json['MatchPredicates'] as List) - .whereNotNull() + .nonNulls .map((e) => Predicate.fromJson(e as Map)) .toList(), rateKey: RateKey.fromString((json['RateKey'] as String)), @@ -10163,7 +10163,7 @@ class RegexMatchSet { name: json['Name'] as String?, regexMatchSetId: json['RegexMatchSetId'] as String?, regexMatchTuples: (json['RegexMatchTuples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegexMatchTuple.fromJson(e as Map)) .toList(), ); @@ -10493,7 +10493,7 @@ class RegexPatternSet { return RegexPatternSet( regexPatternSetId: json['RegexPatternSetId'] as String, regexPatternStrings: (json['RegexPatternStrings'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -10685,7 +10685,7 @@ class Rule { factory Rule.fromJson(Map json) { return Rule( predicates: (json['Predicates'] as List) - .whereNotNull() + .nonNulls .map((e) => Predicate.fromJson(e as Map)) .toList(), ruleId: json['RuleId'] as String, @@ -11293,7 +11293,7 @@ class SizeConstraintSet { return SizeConstraintSet( sizeConstraintSetId: json['SizeConstraintSetId'] as String, sizeConstraints: (json['SizeConstraints'] as List) - .whereNotNull() + .nonNulls .map((e) => SizeConstraint.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -11457,7 +11457,7 @@ class SqlInjectionMatchSet { return SqlInjectionMatchSet( sqlInjectionMatchSetId: json['SqlInjectionMatchSetId'] as String, sqlInjectionMatchTuples: (json['SqlInjectionMatchTuples'] as List) - .whereNotNull() + .nonNulls .map( (e) => SqlInjectionMatchTuple.fromJson(e as Map)) .toList(), @@ -11857,7 +11857,7 @@ class TagInfoForResource { return TagInfoForResource( resourceARN: json['ResourceARN'] as String?, tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -12493,7 +12493,7 @@ class WebACL { defaultAction: WafAction.fromJson(json['DefaultAction'] as Map), rules: (json['Rules'] as List) - .whereNotNull() + .nonNulls .map((e) => ActivatedRule.fromJson(e as Map)) .toList(), webACLId: json['WebACLId'] as String, @@ -12658,7 +12658,7 @@ class XssMatchSet { return XssMatchSet( xssMatchSetId: json['XssMatchSetId'] as String, xssMatchTuples: (json['XssMatchTuples'] as List) - .whereNotNull() + .nonNulls .map((e) => XssMatchTuple.fromJson(e as Map)) .toList(), name: json['Name'] as String?, diff --git a/aws_client/lib/src/generated/wafv2/v2019_07_29.dart b/aws_client/lib/src/generated/wafv2/v2019_07_29.dart index b3787d371..b2e581b87 100644 --- a/aws_client/lib/src/generated/wafv2/v2019_07_29.dart +++ b/aws_client/lib/src/generated/wafv2/v2019_07_29.dart @@ -4497,7 +4497,7 @@ class APIKeySummary { aPIKey: json['APIKey'] as String?, creationTimestamp: timeStampFromJson(json['CreationTimestamp']), tokenDomains: (json['TokenDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), version: json['Version'] as int?, @@ -4927,7 +4927,7 @@ class AndStatement { factory AndStatement.fromJson(Map json) { return AndStatement( statements: (json['Statements'] as List) - .whereNotNull() + .nonNulls .map((e) => Statement.fromJson(e as Map)) .toList(), ); @@ -5283,7 +5283,7 @@ class ByteMatchStatement { (json['PositionalConstraint'] as String)), searchString: _s.decodeUint8List(json['SearchString']! as String), textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -5712,11 +5712,11 @@ class CookieMatchPattern { ? All.fromJson(json['All'] as Map) : null, excludedCookies: (json['ExcludedCookies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includedCookies: (json['IncludedCookies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6309,7 +6309,7 @@ class CustomRequestHandling { factory CustomRequestHandling.fromJson(Map json) { return CustomRequestHandling( insertHeaders: (json['InsertHeaders'] as List) - .whereNotNull() + .nonNulls .map((e) => CustomHTTPHeader.fromJson(e as Map)) .toList(), ); @@ -6368,7 +6368,7 @@ class CustomResponse { responseCode: json['ResponseCode'] as int, customResponseBodyKey: json['CustomResponseBodyKey'] as String?, responseHeaders: (json['ResponseHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomHTTPHeader.fromJson(e as Map)) .toList(), ); @@ -6594,7 +6594,7 @@ class DescribeAllManagedProductsResponse { Map json) { return DescribeAllManagedProductsResponse( managedProducts: (json['ManagedProducts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedProductDescriptor.fromJson(e as Map)) .toList(), @@ -6622,7 +6622,7 @@ class DescribeManagedProductsByVendorResponse { Map json) { return DescribeManagedProductsByVendorResponse( managedProducts: (json['ManagedProducts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedProductDescriptor.fromJson(e as Map)) .toList(), @@ -6711,17 +6711,17 @@ class DescribeManagedRuleGroupResponse { factory DescribeManagedRuleGroupResponse.fromJson(Map json) { return DescribeManagedRuleGroupResponse( availableLabels: (json['AvailableLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelSummary.fromJson(e as Map)) .toList(), capacity: json['Capacity'] as int?, consumedLabels: (json['ConsumedLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelSummary.fromJson(e as Map)) .toList(), labelNamespace: json['LabelNamespace'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), snsTopicArn: json['SnsTopicArn'] as String?, @@ -7165,7 +7165,7 @@ class Filter { return Filter( behavior: FilterBehavior.fromString((json['Behavior'] as String)), conditions: (json['Conditions'] as List) - .whereNotNull() + .nonNulls .map((e) => Condition.fromJson(e as Map)) .toList(), requirement: @@ -7506,7 +7506,7 @@ class GeoMatchStatement { factory GeoMatchStatement.fromJson(Map json) { return GeoMatchStatement( countryCodes: (json['CountryCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CountryCode.fromString((e as String))) .toList(), forwardedIPConfig: json['ForwardedIPConfig'] != null @@ -7543,7 +7543,7 @@ class GetDecryptedAPIKeyResponse { return GetDecryptedAPIKeyResponse( creationTimestamp: timeStampFromJson(json['CreationTimestamp']), tokenDomains: (json['TokenDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7856,7 +7856,7 @@ class GetSampledRequestsResponse { return GetSampledRequestsResponse( populationSize: json['PopulationSize'] as int?, sampledRequests: (json['SampledRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampledHTTPRequest.fromJson(e as Map)) .toList(), timeWindow: json['TimeWindow'] != null @@ -8047,7 +8047,7 @@ class HTTPRequest { country: json['Country'] as String?, hTTPVersion: json['HTTPVersion'] as String?, headers: (json['Headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HTTPHeader.fromJson(e as Map)) .toList(), method: json['Method'] as String?, @@ -8105,11 +8105,11 @@ class HeaderMatchPattern { ? All.fromJson(json['All'] as Map) : null, excludedHeaders: (json['ExcludedHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includedHeaders: (json['IncludedHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8371,10 +8371,8 @@ class IPSet { factory IPSet.fromJson(Map json) { return IPSet( arn: json['ARN'] as String, - addresses: (json['Addresses'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + addresses: + (json['Addresses'] as List).nonNulls.map((e) => e as String).toList(), iPAddressVersion: IPAddressVersion.fromString((json['IPAddressVersion'] as String)), id: json['Id'] as String, @@ -8891,7 +8889,7 @@ class JsonMatchPattern { ? All.fromJson(json['All'] as Map) : null, includedPaths: (json['IncludedPaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9109,7 +9107,7 @@ class ListAPIKeysResponse { factory ListAPIKeysResponse.fromJson(Map json) { return ListAPIKeysResponse( aPIKeySummaries: (json['APIKeySummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => APIKeySummary.fromJson(e as Map)) .toList(), applicationIntegrationURL: json['ApplicationIntegrationURL'] as String?, @@ -9158,7 +9156,7 @@ class ListAvailableManagedRuleGroupVersionsResponse { currentDefaultVersion: json['CurrentDefaultVersion'] as String?, nextMarker: json['NextMarker'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedRuleGroupVersion.fromJson(e as Map)) .toList(), @@ -9199,7 +9197,7 @@ class ListAvailableManagedRuleGroupsResponse { Map json) { return ListAvailableManagedRuleGroupsResponse( managedRuleGroups: (json['ManagedRuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedRuleGroupSummary.fromJson(e as Map)) .toList(), @@ -9237,7 +9235,7 @@ class ListIPSetsResponse { factory ListIPSetsResponse.fromJson(Map json) { return ListIPSetsResponse( iPSets: (json['IPSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IPSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -9275,7 +9273,7 @@ class ListLoggingConfigurationsResponse { Map json) { return ListLoggingConfigurationsResponse( loggingConfigurations: (json['LoggingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoggingConfiguration.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -9313,7 +9311,7 @@ class ListManagedRuleSetsResponse { factory ListManagedRuleSetsResponse.fromJson(Map json) { return ListManagedRuleSetsResponse( managedRuleSets: (json['ManagedRuleSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedRuleSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -9351,7 +9349,7 @@ class ListMobileSdkReleasesResponse { return ListMobileSdkReleasesResponse( nextMarker: json['NextMarker'] as String?, releaseSummaries: (json['ReleaseSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReleaseSummary.fromJson(e as Map)) .toList(), ); @@ -9388,7 +9386,7 @@ class ListRegexPatternSetsResponse { return ListRegexPatternSetsResponse( nextMarker: json['NextMarker'] as String?, regexPatternSets: (json['RegexPatternSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RegexPatternSetSummary.fromJson(e as Map)) .toList(), @@ -9416,7 +9414,7 @@ class ListResourcesForWebACLResponse { factory ListResourcesForWebACLResponse.fromJson(Map json) { return ListResourcesForWebACLResponse( resourceArns: (json['ResourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9451,7 +9449,7 @@ class ListRuleGroupsResponse { return ListRuleGroupsResponse( nextMarker: json['NextMarker'] as String?, ruleGroups: (json['RuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSummary.fromJson(e as Map)) .toList(), ); @@ -9525,7 +9523,7 @@ class ListWebACLsResponse { return ListWebACLsResponse( nextMarker: json['NextMarker'] as String?, webACLs: (json['WebACLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WebACLSummary.fromJson(e as Map)) .toList(), ); @@ -9683,7 +9681,7 @@ class LoggingConfiguration { factory LoggingConfiguration.fromJson(Map json) { return LoggingConfiguration( logDestinationConfigs: (json['LogDestinationConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), resourceArn: json['ResourceArn'] as String, @@ -9695,7 +9693,7 @@ class LoggingConfiguration { : null, managedByFirewallManager: json['ManagedByFirewallManager'] as bool?, redactedFields: (json['RedactedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldToMatch.fromJson(e as Map)) .toList(), ); @@ -9745,7 +9743,7 @@ class LoggingFilter { defaultBehavior: FilterBehavior.fromString((json['DefaultBehavior'] as String)), filters: (json['Filters'] as List) - .whereNotNull() + .nonNulls .map((e) => Filter.fromJson(e as Map)) .toList(), ); @@ -10124,16 +10122,16 @@ class ManagedRuleGroupStatement { name: json['Name'] as String, vendorName: json['VendorName'] as String, excludedRules: (json['ExcludedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExcludedRule.fromJson(e as Map)) .toList(), managedRuleGroupConfigs: (json['ManagedRuleGroupConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ManagedRuleGroupConfig.fromJson(e as Map)) .toList(), ruleActionOverrides: (json['RuleActionOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleActionOverride.fromJson(e as Map)) .toList(), scopeDownStatement: json['ScopeDownStatement'] != null @@ -10622,7 +10620,7 @@ class MobileSdkRelease { releaseNotes: json['ReleaseNotes'] as String?, releaseVersion: json['ReleaseVersion'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), timestamp: timeStampFromJson(json['Timestamp']), @@ -10703,7 +10701,7 @@ class OrStatement { factory OrStatement.fromJson(Map json) { return OrStatement( statements: (json['Statements'] as List) - .whereNotNull() + .nonNulls .map((e) => Statement.fromJson(e as Map)) .toList(), ); @@ -11266,7 +11264,7 @@ class RateBasedStatement { (json['AggregateKeyType'] as String)), limit: json['Limit'] as int, customKeys: (json['CustomKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RateBasedStatementCustomKey.fromJson(e as Map)) .toList(), @@ -11497,7 +11495,7 @@ class RateBasedStatementManagedKeysIPSet { Map json) { return RateBasedStatementManagedKeysIPSet( addresses: (json['Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), iPAddressVersion: (json['IPAddressVersion'] as String?) @@ -11543,7 +11541,7 @@ class RateLimitCookie { return RateLimitCookie( name: json['Name'] as String, textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11637,7 +11635,7 @@ class RateLimitHeader { return RateLimitHeader( name: json['Name'] as String, textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11738,7 +11736,7 @@ class RateLimitQueryArgument { return RateLimitQueryArgument( name: json['Name'] as String, textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11777,7 +11775,7 @@ class RateLimitQueryString { factory RateLimitQueryString.fromJson(Map json) { return RateLimitQueryString( textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11814,7 +11812,7 @@ class RateLimitUriPath { factory RateLimitUriPath.fromJson(Map json) { return RateLimitUriPath( textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11883,7 +11881,7 @@ class RegexMatchStatement { FieldToMatch.fromJson(json['FieldToMatch'] as Map), regexString: json['RegexString'] as String, textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11939,7 +11937,7 @@ class RegexPatternSet { id: json['Id'] as String?, name: json['Name'] as String?, regularExpressionList: (json['RegularExpressionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Regex.fromJson(e as Map)) .toList(), ); @@ -12005,7 +12003,7 @@ class RegexPatternSetReferenceStatement { fieldToMatch: FieldToMatch.fromJson(json['FieldToMatch'] as Map), textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -12437,7 +12435,7 @@ class RequestInspectionACFP { return RequestInspectionACFP( payloadType: PayloadType.fromString((json['PayloadType'] as String)), addressFields: (json['AddressFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddressField.fromJson(e as Map)) .toList(), emailField: json['EmailField'] != null @@ -12448,7 +12446,7 @@ class RequestInspectionACFP { json['PasswordField'] as Map) : null, phoneNumberFields: (json['PhoneNumberFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberField.fromJson(e as Map)) .toList(), usernameField: json['UsernameField'] != null @@ -12631,11 +12629,11 @@ class ResponseInspectionBodyContains { factory ResponseInspectionBodyContains.fromJson(Map json) { return ResponseInspectionBodyContains( failureStrings: (json['FailureStrings'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), successStrings: (json['SuccessStrings'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -12694,12 +12692,12 @@ class ResponseInspectionHeader { factory ResponseInspectionHeader.fromJson(Map json) { return ResponseInspectionHeader( failureValues: (json['FailureValues'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String, successValues: (json['SuccessValues'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -12759,12 +12757,12 @@ class ResponseInspectionJson { factory ResponseInspectionJson.fromJson(Map json) { return ResponseInspectionJson( failureValues: (json['FailureValues'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), identifier: json['Identifier'] as String, successValues: (json['SuccessValues'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -12814,14 +12812,10 @@ class ResponseInspectionStatusCode { factory ResponseInspectionStatusCode.fromJson(Map json) { return ResponseInspectionStatusCode( - failureCodes: (json['FailureCodes'] as List) - .whereNotNull() - .map((e) => e as int) - .toList(), - successCodes: (json['SuccessCodes'] as List) - .whereNotNull() - .map((e) => e as int) - .toList(), + failureCodes: + (json['FailureCodes'] as List).nonNulls.map((e) => e as int).toList(), + successCodes: + (json['SuccessCodes'] as List).nonNulls.map((e) => e as int).toList(), ); } @@ -12984,7 +12978,7 @@ class Rule { json['OverrideAction'] as Map) : null, ruleLabels: (json['RuleLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Label.fromJson(e as Map)) .toList(), ); @@ -13237,11 +13231,11 @@ class RuleGroup { visibilityConfig: VisibilityConfig.fromJson( json['VisibilityConfig'] as Map), availableLabels: (json['AvailableLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelSummary.fromJson(e as Map)) .toList(), consumedLabels: (json['ConsumedLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelSummary.fromJson(e as Map)) .toList(), customResponseBodies: @@ -13251,7 +13245,7 @@ class RuleGroup { description: json['Description'] as String?, labelNamespace: json['LabelNamespace'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), ); @@ -13328,11 +13322,11 @@ class RuleGroupReferenceStatement { return RuleGroupReferenceStatement( arn: json['ARN'] as String, excludedRules: (json['ExcludedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExcludedRule.fromJson(e as Map)) .toList(), ruleActionOverrides: (json['RuleActionOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleActionOverride.fromJson(e as Map)) .toList(), ); @@ -13541,12 +13535,12 @@ class SampledHTTPRequest { json['ChallengeResponse'] as Map) : null, labels: (json['Labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Label.fromJson(e as Map)) .toList(), overriddenAction: json['OverriddenAction'] as String?, requestHeadersInserted: (json['RequestHeadersInserted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HTTPHeader.fromJson(e as Map)) .toList(), responseCodeSent: json['ResponseCodeSent'] as int?, @@ -13730,7 +13724,7 @@ class SizeConstraintStatement { FieldToMatch.fromJson(json['FieldToMatch'] as Map), size: json['Size'] as int, textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -13813,7 +13807,7 @@ class SqliMatchStatement { fieldToMatch: FieldToMatch.fromJson(json['FieldToMatch'] as Map), textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), sensitivityLevel: (json['SensitivityLevel'] as String?) @@ -14324,7 +14318,7 @@ class TagInfoForResource { return TagInfoForResource( resourceARN: json['ResourceARN'] as String?, tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -15004,22 +14998,22 @@ class WebACL { managedByFirewallManager: json['ManagedByFirewallManager'] as bool?, postProcessFirewallManagerRuleGroups: (json['PostProcessFirewallManagerRuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallManagerRuleGroup.fromJson(e as Map)) .toList(), preProcessFirewallManagerRuleGroups: (json['PreProcessFirewallManagerRuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallManagerRuleGroup.fromJson(e as Map)) .toList(), rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), tokenDomains: (json['TokenDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15167,7 +15161,7 @@ class XssMatchStatement { fieldToMatch: FieldToMatch.fromJson(json['FieldToMatch'] as Map), textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/well_architected/v2020_03_31.dart b/aws_client/lib/src/generated/well_architected/v2020_03_31.dart index 85179623c..4e7df6be3 100644 --- a/aws_client/lib/src/generated/well_architected/v2020_03_31.dart +++ b/aws_client/lib/src/generated/well_architected/v2020_03_31.dart @@ -2927,7 +2927,7 @@ class AdditionalResources { factory AdditionalResources.fromJson(Map json) { return AdditionalResources( content: (json['Content'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChoiceContent.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(AdditionalResourceType.fromString), @@ -2992,11 +2992,11 @@ class Answer { factory Answer.fromJson(Map json) { return Answer( choiceAnswers: (json['ChoiceAnswers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChoiceAnswer.fromJson(e as Map)) .toList(), choices: (json['Choices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Choice.fromJson(e as Map)) .toList(), helpfulResourceDisplayText: json['HelpfulResourceDisplayText'] as String?, @@ -3015,7 +3015,7 @@ class Answer { reason: (json['Reason'] as String?)?.let(AnswerReason.fromString), risk: (json['Risk'] as String?)?.let(Risk.fromString), selectedChoices: (json['SelectedChoices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3115,11 +3115,11 @@ class AnswerSummary { factory AnswerSummary.fromJson(Map json) { return AnswerSummary( choiceAnswerSummaries: (json['ChoiceAnswerSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChoiceAnswerSummary.fromJson(e as Map)) .toList(), choices: (json['Choices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Choice.fromJson(e as Map)) .toList(), isApplicable: json['IsApplicable'] as bool?, @@ -3135,7 +3135,7 @@ class AnswerSummary { reason: (json['Reason'] as String?)?.let(AnswerReason.fromString), risk: (json['Risk'] as String?)?.let(Risk.fromString), selectedChoices: (json['SelectedChoices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3468,7 +3468,7 @@ class Choice { factory Choice.fromJson(Map json) { return Choice( additionalResources: (json['AdditionalResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalResources.fromJson(e as Map)) .toList(), choiceId: json['ChoiceId'] as String?, @@ -3741,7 +3741,7 @@ class ConsolidatedReportMetric { factory ConsolidatedReportMetric.fromJson(Map json) { return ConsolidatedReportMetric( lenses: (json['Lenses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LensMetric.fromJson(e as Map)) .toList(), lensesAppliedCount: json['LensesAppliedCount'] as int?, @@ -4148,7 +4148,7 @@ class GetConsolidatedReportOutput { return GetConsolidatedReportOutput( base64String: json['Base64String'] as String?, metrics: (json['Metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsolidatedReportMetric.fromJson(e as Map)) .toList(), @@ -4631,7 +4631,7 @@ class ImprovementSummary { return ImprovementSummary( improvementPlanUrl: json['ImprovementPlanUrl'] as String?, improvementPlans: (json['ImprovementPlans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChoiceImprovementPlan.fromJson(e as Map)) .toList(), jiraConfiguration: json['JiraConfiguration'] != null @@ -4765,7 +4765,7 @@ class JiraSelectedQuestionConfiguration { Map json) { return JiraSelectedQuestionConfiguration( selectedPillars: (json['SelectedPillars'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SelectedPillar.fromJson(e as Map)) .toList(), ); @@ -4861,7 +4861,7 @@ class LensMetric { return LensMetric( lensArn: json['LensArn'] as String?, pillars: (json['Pillars'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PillarMetric.fromJson(e as Map)) .toList(), riskCounts: (json['RiskCounts'] as Map?) @@ -4937,14 +4937,14 @@ class LensReview { nextToken: json['NextToken'] as String?, notes: json['Notes'] as String?, pillarReviewSummaries: (json['PillarReviewSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PillarReviewSummary.fromJson(e as Map)) .toList(), prioritizedRiskCounts: (json['PrioritizedRiskCounts'] as Map?) ?.map((k, e) => MapEntry(Risk.fromString(k), e as int)), profiles: (json['Profiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkloadProfile.fromJson(e as Map)) .toList(), riskCounts: (json['RiskCounts'] as Map?) @@ -5066,7 +5066,7 @@ class LensReviewSummary { (json['PrioritizedRiskCounts'] as Map?) ?.map((k, e) => MapEntry(Risk.fromString(k), e as int)), profiles: (json['Profiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkloadProfile.fromJson(e as Map)) .toList(), riskCounts: (json['RiskCounts'] as Map?) @@ -5351,7 +5351,7 @@ class ListAnswersOutput { factory ListAnswersOutput.fromJson(Map json) { return ListAnswersOutput( answerSummaries: (json['AnswerSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnswerSummary.fromJson(e as Map)) .toList(), lensAlias: json['LensAlias'] as String?, @@ -5394,7 +5394,7 @@ class ListCheckDetailsOutput { factory ListCheckDetailsOutput.fromJson(Map json) { return ListCheckDetailsOutput( checkDetails: (json['CheckDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CheckDetail.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5425,7 +5425,7 @@ class ListCheckSummariesOutput { factory ListCheckSummariesOutput.fromJson(Map json) { return ListCheckSummariesOutput( checkSummaries: (json['CheckSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CheckSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5465,7 +5465,7 @@ class ListLensReviewImprovementsOutput { factory ListLensReviewImprovementsOutput.fromJson(Map json) { return ListLensReviewImprovementsOutput( improvementSummaries: (json['ImprovementSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImprovementSummary.fromJson(e as Map)) .toList(), lensAlias: json['LensAlias'] as String?, @@ -5512,7 +5512,7 @@ class ListLensReviewsOutput { factory ListLensReviewsOutput.fromJson(Map json) { return ListLensReviewsOutput( lensReviewSummaries: (json['LensReviewSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LensReviewSummary.fromJson(e as Map)) .toList(), milestoneNumber: json['MilestoneNumber'] as int?, @@ -5549,7 +5549,7 @@ class ListLensSharesOutput { factory ListLensSharesOutput.fromJson(Map json) { return ListLensSharesOutput( lensShareSummaries: (json['LensShareSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LensShareSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5579,7 +5579,7 @@ class ListLensesOutput { factory ListLensesOutput.fromJson(Map json) { return ListLensesOutput( lensSummaries: (json['LensSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LensSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5611,7 +5611,7 @@ class ListMilestonesOutput { factory ListMilestonesOutput.fromJson(Map json) { return ListMilestonesOutput( milestoneSummaries: (json['MilestoneSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MilestoneSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5646,7 +5646,7 @@ class ListNotificationsOutput { return ListNotificationsOutput( nextToken: json['NextToken'] as String?, notificationSummaries: (json['NotificationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationSummary.fromJson(e as Map)) .toList(), ); @@ -5678,7 +5678,7 @@ class ListProfileNotificationsOutput { return ListProfileNotificationsOutput( nextToken: json['NextToken'] as String?, notificationSummaries: (json['NotificationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileNotificationSummary.fromJson(e as Map)) .toList(), @@ -5711,7 +5711,7 @@ class ListProfileSharesOutput { return ListProfileSharesOutput( nextToken: json['NextToken'] as String?, profileShareSummaries: (json['ProfileShareSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileShareSummary.fromJson(e as Map)) .toList(), ); @@ -5743,7 +5743,7 @@ class ListProfilesOutput { return ListProfilesOutput( nextToken: json['NextToken'] as String?, profileSummaries: (json['ProfileSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileSummary.fromJson(e as Map)) .toList(), ); @@ -5778,7 +5778,7 @@ class ListReviewTemplateAnswersOutput { factory ListReviewTemplateAnswersOutput.fromJson(Map json) { return ListReviewTemplateAnswersOutput( answerSummaries: (json['AnswerSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReviewTemplateAnswerSummary.fromJson(e as Map)) .toList(), @@ -5817,7 +5817,7 @@ class ListReviewTemplatesOutput { return ListReviewTemplatesOutput( nextToken: json['NextToken'] as String?, reviewTemplates: (json['ReviewTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReviewTemplateSummary.fromJson(e as Map)) .toList(), ); @@ -5849,7 +5849,7 @@ class ListShareInvitationsOutput { return ListShareInvitationsOutput( nextToken: json['NextToken'] as String?, shareInvitationSummaries: (json['ShareInvitationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ShareInvitationSummary.fromJson(e as Map)) .toList(), @@ -5910,7 +5910,7 @@ class ListTemplateSharesOutput { nextToken: json['NextToken'] as String?, templateArn: json['TemplateArn'] as String?, templateShareSummaries: (json['TemplateShareSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateShareSummary.fromJson(e as Map)) .toList(), ); @@ -5946,7 +5946,7 @@ class ListWorkloadSharesOutput { nextToken: json['NextToken'] as String?, workloadId: json['WorkloadId'] as String?, workloadShareSummaries: (json['WorkloadShareSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkloadShareSummary.fromJson(e as Map)) .toList(), ); @@ -5979,7 +5979,7 @@ class ListWorkloadsOutput { return ListWorkloadsOutput( nextToken: json['NextToken'] as String?, workloadSummaries: (json['WorkloadSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkloadSummary.fromJson(e as Map)) .toList(), ); @@ -6190,7 +6190,7 @@ class PillarDifference { pillarId: json['PillarId'] as String?, pillarName: json['PillarName'] as String?, questionDifferences: (json['QuestionDifferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QuestionDifference.fromJson(e as Map)) .toList(), ); @@ -6229,7 +6229,7 @@ class PillarMetric { return PillarMetric( pillarId: json['PillarId'] as String?, questions: (json['Questions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QuestionMetric.fromJson(e as Map)) .toList(), riskCounts: (json['RiskCounts'] as Map?) @@ -6346,7 +6346,7 @@ class Profile { profileDescription: json['ProfileDescription'] as String?, profileName: json['ProfileName'] as String?, profileQuestions: (json['ProfileQuestions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileQuestion.fromJson(e as Map)) .toList(), profileVersion: json['ProfileVersion'] as String?, @@ -6540,14 +6540,14 @@ class ProfileQuestion { maxSelectedChoices: json['MaxSelectedChoices'] as int?, minSelectedChoices: json['MinSelectedChoices'] as int?, questionChoices: (json['QuestionChoices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileChoice.fromJson(e as Map)) .toList(), questionDescription: json['QuestionDescription'] as String?, questionId: json['QuestionId'] as String?, questionTitle: json['QuestionTitle'] as String?, selectedChoiceIds: (json['SelectedChoiceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6718,7 +6718,7 @@ class ProfileTemplate { createdAt: timeStampFromJson(json['CreatedAt']), templateName: json['TemplateName'] as String?, templateQuestions: (json['TemplateQuestions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileTemplateQuestion.fromJson(e as Map)) .toList(), @@ -6800,7 +6800,7 @@ class ProfileTemplateQuestion { maxSelectedChoices: json['MaxSelectedChoices'] as int?, minSelectedChoices: json['MinSelectedChoices'] as int?, questionChoices: (json['QuestionChoices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileTemplateChoice.fromJson(e as Map)) .toList(), questionDescription: json['QuestionDescription'] as String?, @@ -6893,7 +6893,7 @@ class QuestionMetric { factory QuestionMetric.fromJson(Map json) { return QuestionMetric( bestPractices: (json['BestPractices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BestPractice.fromJson(e as Map)) .toList(), questionId: json['QuestionId'] as String?, @@ -7005,10 +7005,8 @@ class ReviewTemplate { factory ReviewTemplate.fromJson(Map json) { return ReviewTemplate( description: json['Description'] as String?, - lenses: (json['Lenses'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + lenses: + (json['Lenses'] as List?)?.nonNulls.map((e) => e as String).toList(), notes: json['Notes'] as String?, owner: json['Owner'] as String?, questionCounts: (json['QuestionCounts'] as Map?) @@ -7102,11 +7100,11 @@ class ReviewTemplateAnswer { answerStatus: (json['AnswerStatus'] as String?) ?.let(ReviewTemplateAnswerStatus.fromString), choiceAnswers: (json['ChoiceAnswers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChoiceAnswer.fromJson(e as Map)) .toList(), choices: (json['Choices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Choice.fromJson(e as Map)) .toList(), helpfulResourceDisplayText: json['HelpfulResourceDisplayText'] as String?, @@ -7120,7 +7118,7 @@ class ReviewTemplateAnswer { questionTitle: json['QuestionTitle'] as String?, reason: (json['Reason'] as String?)?.let(AnswerReason.fromString), selectedChoices: (json['SelectedChoices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7216,11 +7214,11 @@ class ReviewTemplateAnswerSummary { answerStatus: (json['AnswerStatus'] as String?) ?.let(ReviewTemplateAnswerStatus.fromString), choiceAnswerSummaries: (json['ChoiceAnswerSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChoiceAnswerSummary.fromJson(e as Map)) .toList(), choices: (json['Choices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Choice.fromJson(e as Map)) .toList(), isApplicable: json['IsApplicable'] as bool?, @@ -7231,7 +7229,7 @@ class ReviewTemplateAnswerSummary { (json['QuestionType'] as String?)?.let(QuestionType.fromString), reason: (json['Reason'] as String?)?.let(AnswerReason.fromString), selectedChoices: (json['SelectedChoices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7311,7 +7309,7 @@ class ReviewTemplateLensReview { nextToken: json['NextToken'] as String?, notes: json['Notes'] as String?, pillarReviewSummaries: (json['PillarReviewSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReviewTemplatePillarReviewSummary.fromJson( e as Map)) .toList(), @@ -7424,10 +7422,8 @@ class ReviewTemplateSummary { factory ReviewTemplateSummary.fromJson(Map json) { return ReviewTemplateSummary( description: json['Description'] as String?, - lenses: (json['Lenses'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + lenses: + (json['Lenses'] as List?)?.nonNulls.map((e) => e as String).toList(), owner: json['Owner'] as String?, templateArn: json['TemplateArn'] as String?, templateName: json['TemplateName'] as String?, @@ -7506,7 +7502,7 @@ class SelectedPillar { return SelectedPillar( pillarId: json['PillarId'] as String?, selectedQuestionIds: (json['SelectedQuestionIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8097,7 +8093,7 @@ class VersionDifferences { factory VersionDifferences.fromJson(Map json) { return VersionDifferences( pillarDifferences: (json['PillarDifferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PillarDifference.fromJson(e as Map)) .toList(), ); @@ -8195,16 +8191,16 @@ class Workload { factory Workload.fromJson(Map json) { return Workload( accountIds: (json['AccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), architecturalDesign: json['ArchitecturalDesign'] as String?, awsRegions: (json['AwsRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['Description'] as String?, @@ -8224,25 +8220,23 @@ class Workload { ? WorkloadJiraConfigurationOutput.fromJson( json['JiraConfiguration'] as Map) : null, - lenses: (json['Lenses'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + lenses: + (json['Lenses'] as List?)?.nonNulls.map((e) => e as String).toList(), nonAwsRegions: (json['NonAwsRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notes: json['Notes'] as String?, owner: json['Owner'] as String?, pillarPriorities: (json['PillarPriorities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), prioritizedRiskCounts: (json['PrioritizedRiskCounts'] as Map?) ?.map((k, e) => MapEntry(Risk.fromString(k), e as int)), profiles: (json['Profiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkloadProfile.fromJson(e as Map)) .toList(), reviewOwner: json['ReviewOwner'] as String?, @@ -8351,7 +8345,7 @@ class WorkloadDiscoveryConfig { (json['TrustedAdvisorIntegrationStatus'] as String?) ?.let(TrustedAdvisorIntegrationStatus.fromString), workloadResourceDefinition: (json['WorkloadResourceDefinition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionType.fromString((e as String))) .toList(), ); @@ -8662,16 +8656,14 @@ class WorkloadSummary { return WorkloadSummary( improvementStatus: (json['ImprovementStatus'] as String?) ?.let(WorkloadImprovementStatus.fromString), - lenses: (json['Lenses'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + lenses: + (json['Lenses'] as List?)?.nonNulls.map((e) => e as String).toList(), owner: json['Owner'] as String?, prioritizedRiskCounts: (json['PrioritizedRiskCounts'] as Map?) ?.map((k, e) => MapEntry(Risk.fromString(k), e as int)), profiles: (json['Profiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkloadProfile.fromJson(e as Map)) .toList(), riskCounts: (json['RiskCounts'] as Map?) diff --git a/aws_client/lib/src/generated/wisdom/v2020_10_19.dart b/aws_client/lib/src/generated/wisdom/v2020_10_19.dart index aeadedcf3..d8b3e6dc3 100644 --- a/aws_client/lib/src/generated/wisdom/v2020_10_19.dart +++ b/aws_client/lib/src/generated/wisdom/v2020_10_19.dart @@ -1965,7 +1965,7 @@ class AppIntegrationsConfiguration { return AppIntegrationsConfiguration( appIntegrationArn: json['appIntegrationArn'] as String, objectFields: (json['objectFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3059,7 +3059,7 @@ class DocumentText { factory DocumentText.fromJson(Map json) { return DocumentText( highlights: (json['highlights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Highlight.fromJson(e as Map)) .toList(), text: json['text'] as String?, @@ -3365,11 +3365,11 @@ class GetRecommendationsResponse { factory GetRecommendationsResponse.fromJson(Map json) { return GetRecommendationsResponse( recommendations: (json['recommendations'] as List) - .whereNotNull() + .nonNulls .map((e) => RecommendationData.fromJson(e as Map)) .toList(), triggers: (json['triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationTrigger.fromJson(e as Map)) .toList(), ); @@ -3448,10 +3448,8 @@ class GroupingConfiguration { factory GroupingConfiguration.fromJson(Map json) { return GroupingConfiguration( criteria: json['criteria'] as String?, - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4066,7 +4064,7 @@ class ListAssistantAssociationsResponse { return ListAssistantAssociationsResponse( assistantAssociationSummaries: (json['assistantAssociationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssistantAssociationSummary.fromJson(e as Map)) .toList(), @@ -4100,7 +4098,7 @@ class ListAssistantsResponse { factory ListAssistantsResponse.fromJson(Map json) { return ListAssistantsResponse( assistantSummaries: (json['assistantSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AssistantSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4133,7 +4131,7 @@ class ListContentsResponse { factory ListContentsResponse.fromJson(Map json) { return ListContentsResponse( contentSummaries: (json['contentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ContentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4166,7 +4164,7 @@ class ListImportJobsResponse { factory ListImportJobsResponse.fromJson(Map json) { return ListImportJobsResponse( importJobSummaries: (json['importJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ImportJobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4199,7 +4197,7 @@ class ListKnowledgeBasesResponse { factory ListKnowledgeBasesResponse.fromJson(Map json) { return ListKnowledgeBasesResponse( knowledgeBaseSummaries: (json['knowledgeBaseSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => KnowledgeBaseSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4232,7 +4230,7 @@ class ListQuickResponsesResponse { factory ListQuickResponsesResponse.fromJson(Map json) { return ListQuickResponsesResponse( quickResponseSummaries: (json['quickResponseSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => QuickResponseSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4319,12 +4317,12 @@ class NotifyRecommendationsReceivedResponse { Map json) { return NotifyRecommendationsReceivedResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotifyRecommendationsReceivedError.fromJson( e as Map)) .toList(), recommendationIds: (json['recommendationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4385,7 +4383,7 @@ class QueryAssistantResponse { factory QueryAssistantResponse.fromJson(Map json) { return QueryAssistantResponse( results: (json['results'] as List) - .whereNotNull() + .nonNulls .map((e) => ResultData.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4589,7 +4587,7 @@ class QuickResponseData { quickResponseId: json['quickResponseId'] as String, status: QuickResponseStatus.fromString((json['status'] as String)), channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), contents: json['contents'] != null @@ -5053,15 +5051,15 @@ class QuickResponseSearchResultData { quickResponseId: json['quickResponseId'] as String, status: QuickResponseStatus.fromString((json['status'] as String)), attributesInterpolated: (json['attributesInterpolated'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), attributesNotInterpolated: (json['attributesNotInterpolated'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -5235,7 +5233,7 @@ class QuickResponseSummary { quickResponseId: json['quickResponseId'] as String, status: QuickResponseStatus.fromString((json['status'] as String)), channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -5392,7 +5390,7 @@ class RecommendationTrigger { json['data'] as Map), id: json['id'] as String, recommendationIds: (json['recommendationIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), source: RecommendationSourceType.fromString((json['source'] as String)), @@ -5598,7 +5596,7 @@ class SearchContentResponse { factory SearchContentResponse.fromJson(Map json) { return SearchContentResponse( contentSummaries: (json['contentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ContentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5648,7 +5646,7 @@ class SearchQuickResponsesResponse { factory SearchQuickResponsesResponse.fromJson(Map json) { return SearchQuickResponsesResponse( results: (json['results'] as List) - .whereNotNull() + .nonNulls .map((e) => QuickResponseSearchResultData.fromJson(e as Map)) .toList(), @@ -5682,7 +5680,7 @@ class SearchSessionsResponse { factory SearchSessionsResponse.fromJson(Map json) { return SearchSessionsResponse( sessionSummaries: (json['sessionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => SessionSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/aws_client/lib/src/generated/work_docs/v2016_05_01.dart b/aws_client/lib/src/generated/work_docs/v2016_05_01.dart index a3fc71a3b..b7b428fe4 100644 --- a/aws_client/lib/src/generated/work_docs/v2016_05_01.dart +++ b/aws_client/lib/src/generated/work_docs/v2016_05_01.dart @@ -2631,7 +2631,7 @@ class AddResourcePermissionsResponse { factory AddResourcePermissionsResponse.fromJson(Map json) { return AddResourcePermissionsResponse( shareResults: (json['ShareResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ShareResult.fromJson(e as Map)) .toList(), ); @@ -3060,7 +3060,7 @@ class DescribeActivitiesResponse { return DescribeActivitiesResponse( marker: json['Marker'] as String?, userActivities: (json['UserActivities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Activity.fromJson(e as Map)) .toList(), ); @@ -3092,7 +3092,7 @@ class DescribeCommentsResponse { factory DescribeCommentsResponse.fromJson(Map json) { return DescribeCommentsResponse( comments: (json['Comments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Comment.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -3125,7 +3125,7 @@ class DescribeDocumentVersionsResponse { factory DescribeDocumentVersionsResponse.fromJson(Map json) { return DescribeDocumentVersionsResponse( documentVersions: (json['DocumentVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentVersionMetadata.fromJson(e as Map)) .toList(), @@ -3163,11 +3163,11 @@ class DescribeFolderContentsResponse { factory DescribeFolderContentsResponse.fromJson(Map json) { return DescribeFolderContentsResponse( documents: (json['Documents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentMetadata.fromJson(e as Map)) .toList(), folders: (json['Folders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FolderMetadata.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -3202,7 +3202,7 @@ class DescribeGroupsResponse { factory DescribeGroupsResponse.fromJson(Map json) { return DescribeGroupsResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupMetadata.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -3237,7 +3237,7 @@ class DescribeNotificationSubscriptionsResponse { return DescribeNotificationSubscriptionsResponse( marker: json['Marker'] as String?, subscriptions: (json['Subscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subscription.fromJson(e as Map)) .toList(), ); @@ -3271,7 +3271,7 @@ class DescribeResourcePermissionsResponse { return DescribeResourcePermissionsResponse( marker: json['Marker'] as String?, principals: (json['Principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Principal.fromJson(e as Map)) .toList(), ); @@ -3302,7 +3302,7 @@ class DescribeRootFoldersResponse { factory DescribeRootFoldersResponse.fromJson(Map json) { return DescribeRootFoldersResponse( folders: (json['Folders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FolderMetadata.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -3341,7 +3341,7 @@ class DescribeUsersResponse { marker: json['Marker'] as String?, totalNumberOfUsers: json['TotalNumberOfUsers'] as int?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -3401,10 +3401,8 @@ class DocumentMetadata { createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), creatorId: json['CreatorId'] as String?, id: json['Id'] as String?, - labels: (json['Labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['Labels'] as List?)?.nonNulls.map((e) => e as String).toList(), latestVersionMetadata: json['LatestVersionMetadata'] != null ? DocumentVersionMetadata.fromJson( json['LatestVersionMetadata'] as Map) @@ -3765,10 +3763,8 @@ class FolderMetadata { createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), creatorId: json['CreatorId'] as String?, id: json['Id'] as String?, - labels: (json['Labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['Labels'] as List?)?.nonNulls.map((e) => e as String).toList(), latestVersionSize: json['LatestVersionSize'] as int?, modifiedTimestamp: timeStampFromJson(json['ModifiedTimestamp']), name: json['Name'] as String?, @@ -3999,11 +3995,11 @@ class GetResourcesResponse { factory GetResourcesResponse.fromJson(Map json) { return GetResourcesResponse( documents: (json['Documents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentMetadata.fromJson(e as Map)) .toList(), folders: (json['Folders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FolderMetadata.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -4249,11 +4245,11 @@ class Participants { factory Participants.fromJson(Map json) { return Participants( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupMetadata.fromJson(e as Map)) .toList(), users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserMetadata.fromJson(e as Map)) .toList(), ); @@ -4320,7 +4316,7 @@ class Principal { return Principal( id: json['Id'] as String?, roles: (json['Roles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PermissionInfo.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(PrincipalType.fromString), @@ -4468,7 +4464,7 @@ class ResourcePath { factory ResourcePath.fromJson(Map json) { return ResourcePath( components: (json['Components'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePathComponent.fromJson(e as Map)) .toList(), ); @@ -4767,7 +4763,7 @@ class SearchResourcesResponse { factory SearchResourcesResponse.fromJson(Map json) { return SearchResourcesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseItem.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, diff --git a/aws_client/lib/src/generated/work_link/v2018_09_25.dart b/aws_client/lib/src/generated/work_link/v2018_09_25.dart index 188282785..3dec4e0e4 100644 --- a/aws_client/lib/src/generated/work_link/v2018_09_25.dart +++ b/aws_client/lib/src/generated/work_link/v2018_09_25.dart @@ -1351,11 +1351,11 @@ class DescribeCompanyNetworkConfigurationResponse { Map json) { return DescribeCompanyNetworkConfigurationResponse( securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -1960,7 +1960,7 @@ class ListDevicesResponse { factory ListDevicesResponse.fromJson(Map json) { return ListDevicesResponse( devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1993,7 +1993,7 @@ class ListDomainsResponse { factory ListDomainsResponse.fromJson(Map json) { return ListDomainsResponse( domains: (json['Domains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2026,7 +2026,7 @@ class ListFleetsResponse { factory ListFleetsResponse.fromJson(Map json) { return ListFleetsResponse( fleetSummaryList: (json['FleetSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2086,7 +2086,7 @@ class ListWebsiteAuthorizationProvidersResponse { nextToken: json['NextToken'] as String?, websiteAuthorizationProviders: (json['WebsiteAuthorizationProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WebsiteAuthorizationProviderSummary.fromJson( e as Map)) .toList(), @@ -2123,7 +2123,7 @@ class ListWebsiteCertificateAuthoritiesResponse { nextToken: json['NextToken'] as String?, websiteCertificateAuthorities: (json['WebsiteCertificateAuthorities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WebsiteCaSummary.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/work_mail/v2017_10_01.dart b/aws_client/lib/src/generated/work_mail/v2017_10_01.dart index cc002c33b..97b9e27b6 100644 --- a/aws_client/lib/src/generated/work_mail/v2017_10_01.dart +++ b/aws_client/lib/src/generated/work_mail/v2017_10_01.dart @@ -4673,44 +4673,40 @@ class AccessControlRule { factory AccessControlRule.fromJson(Map json) { return AccessControlRule( - actions: (json['Actions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List?)?.nonNulls.map((e) => e as String).toList(), dateCreated: timeStampFromJson(json['DateCreated']), dateModified: timeStampFromJson(json['DateModified']), description: json['Description'] as String?, effect: (json['Effect'] as String?)?.let(AccessControlRuleEffect.fromString), impersonationRoleIds: (json['ImpersonationRoleIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ipRanges: (json['IpRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, notActions: (json['NotActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notImpersonationRoleIds: (json['NotImpersonationRoleIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notIpRanges: (json['NotIpRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notUserIds: (json['NotUserIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - userIds: (json['UserIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + userIds: + (json['UserIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6248,7 +6244,7 @@ class GetAccessControlEffectResponse { effect: (json['Effect'] as String?)?.let(AccessControlRuleEffect.fromString), matchedRules: (json['MatchedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6289,7 +6285,7 @@ class GetDefaultRetentionPolicyResponse { return GetDefaultRetentionPolicyResponse( description: json['Description'] as String?, folderConfigurations: (json['FolderConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FolderConfiguration.fromJson(e as Map)) .toList(), id: json['Id'] as String?, @@ -6334,7 +6330,7 @@ class GetImpersonationRoleEffectResponse { return GetImpersonationRoleEffectResponse( effect: (json['Effect'] as String?)?.let(AccessEffect.fromString), matchedRules: (json['MatchedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImpersonationMatchedRule.fromJson(e as Map)) .toList(), @@ -6394,7 +6390,7 @@ class GetImpersonationRoleResponse { impersonationRoleId: json['ImpersonationRoleId'] as String?, name: json['Name'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImpersonationRule.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(ImpersonationRoleType.fromString), @@ -6461,7 +6457,7 @@ class GetMailDomainResponse { (json['OwnershipVerificationStatus'] as String?) ?.let(DnsRecordVerificationStatus.fromString), records: (json['Records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DnsRecord.fromJson(e as Map)) .toList(), ); @@ -6535,7 +6531,7 @@ class GetMobileDeviceAccessEffectResponse { effect: (json['Effect'] as String?) ?.let(MobileDeviceAccessRuleEffect.fromString), matchedRules: (json['MatchedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MobileDeviceAccessMatchedRule.fromJson(e as Map)) .toList(), @@ -6837,11 +6833,11 @@ class ImpersonationRule { description: json['Description'] as String?, name: json['Name'] as String?, notTargetUsers: (json['NotTargetUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), targetUsers: (json['TargetUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6900,7 +6896,7 @@ class ListAccessControlRulesResponse { factory ListAccessControlRulesResponse.fromJson(Map json) { return ListAccessControlRulesResponse( rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessControlRule.fromJson(e as Map)) .toList(), ); @@ -6929,10 +6925,8 @@ class ListAliasesResponse { factory ListAliasesResponse.fromJson(Map json) { return ListAliasesResponse( - aliases: (json['Aliases'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + aliases: + (json['Aliases'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -6965,7 +6959,7 @@ class ListAvailabilityConfigurationsResponse { Map json) { return ListAvailabilityConfigurationsResponse( availabilityConfigurations: (json['AvailabilityConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailabilityConfiguration.fromJson(e as Map)) .toList(), @@ -7000,7 +6994,7 @@ class ListGroupMembersResponse { factory ListGroupMembersResponse.fromJson(Map json) { return ListGroupMembersResponse( members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Member.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7081,7 +7075,7 @@ class ListGroupsForEntityResponse { factory ListGroupsForEntityResponse.fromJson(Map json) { return ListGroupsForEntityResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupIdentifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7114,7 +7108,7 @@ class ListGroupsResponse { factory ListGroupsResponse.fromJson(Map json) { return ListGroupsResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7148,7 +7142,7 @@ class ListImpersonationRolesResponse { return ListImpersonationRolesResponse( nextToken: json['NextToken'] as String?, roles: (json['Roles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImpersonationRole.fromJson(e as Map)) .toList(), ); @@ -7182,7 +7176,7 @@ class ListMailDomainsResponse { factory ListMailDomainsResponse.fromJson(Map json) { return ListMailDomainsResponse( mailDomains: (json['MailDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MailDomainSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7214,7 +7208,7 @@ class ListMailboxExportJobsResponse { factory ListMailboxExportJobsResponse.fromJson(Map json) { return ListMailboxExportJobsResponse( jobs: (json['Jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MailboxExportJob.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7248,7 +7242,7 @@ class ListMailboxPermissionsResponse { return ListMailboxPermissionsResponse( nextToken: json['NextToken'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromJson(e as Map)) .toList(), ); @@ -7283,7 +7277,7 @@ class ListMobileDeviceAccessOverridesResponse { return ListMobileDeviceAccessOverridesResponse( nextToken: json['NextToken'] as String?, overrides: (json['Overrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MobileDeviceAccessOverride.fromJson(e as Map)) .toList(), @@ -7313,7 +7307,7 @@ class ListMobileDeviceAccessRulesResponse { Map json) { return ListMobileDeviceAccessRulesResponse( rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MobileDeviceAccessRule.fromJson(e as Map)) .toList(), @@ -7346,7 +7340,7 @@ class ListOrganizationsResponse { return ListOrganizationsResponse( nextToken: json['NextToken'] as String?, organizationSummaries: (json['OrganizationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationSummary.fromJson(e as Map)) .toList(), ); @@ -7380,7 +7374,7 @@ class ListResourceDelegatesResponse { factory ListResourceDelegatesResponse.fromJson(Map json) { return ListResourceDelegatesResponse( delegates: (json['Delegates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Delegate.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7445,7 +7439,7 @@ class ListResourcesResponse { return ListResourcesResponse( nextToken: json['NextToken'] as String?, resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -7472,7 +7466,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7539,7 +7533,7 @@ class ListUsersResponse { return ListUsersResponse( nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -7919,19 +7913,19 @@ class MobileDeviceAccessRule { dateModified: timeStampFromJson(json['DateModified']), description: json['Description'] as String?, deviceModels: (json['DeviceModels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deviceOperatingSystems: (json['DeviceOperatingSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deviceTypes: (json['DeviceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deviceUserAgents: (json['DeviceUserAgents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), effect: (json['Effect'] as String?) @@ -7939,19 +7933,19 @@ class MobileDeviceAccessRule { mobileDeviceAccessRuleId: json['MobileDeviceAccessRuleId'] as String?, name: json['Name'] as String?, notDeviceModels: (json['NotDeviceModels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notDeviceOperatingSystems: (json['NotDeviceOperatingSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notDeviceTypes: (json['NotDeviceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notDeviceUserAgents: (json['NotDeviceUserAgents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8093,7 +8087,7 @@ class Permission { granteeId: json['GranteeId'] as String, granteeType: MemberType.fromString((json['GranteeType'] as String)), permissionValues: (json['PermissionValues'] as List) - .whereNotNull() + .nonNulls .map((e) => PermissionType.fromString((e as String))) .toList(), ); diff --git a/aws_client/lib/src/generated/work_spaces/v2015_04_08.dart b/aws_client/lib/src/generated/work_spaces/v2015_04_08.dart index 4cbe570aa..556547565 100644 --- a/aws_client/lib/src/generated/work_spaces/v2015_04_08.dart +++ b/aws_client/lib/src/generated/work_spaces/v2015_04_08.dart @@ -4385,7 +4385,7 @@ class ConnectionAlias { return ConnectionAlias( aliasId: json['AliasId'] as String?, associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionAliasAssociation.fromJson(e as Map)) .toList(), @@ -4660,12 +4660,12 @@ class CreateStandbyWorkspacesResult { factory CreateStandbyWorkspacesResult.fromJson(Map json) { return CreateStandbyWorkspacesResult( failedStandbyRequests: (json['FailedStandbyRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCreateStandbyWorkspacesRequest.fromJson( e as Map)) .toList(), pendingStandbyRequests: (json['PendingStandbyRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingCreateStandbyWorkspacesRequest.fromJson( e as Map)) .toList(), @@ -4842,12 +4842,12 @@ class CreateWorkspacesResult { factory CreateWorkspacesResult.fromJson(Map json) { return CreateWorkspacesResult( failedRequests: (json['FailedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCreateWorkspaceRequest.fromJson(e as Map)) .toList(), pendingRequests: (json['PendingRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Workspace.fromJson(e as Map)) .toList(), ); @@ -5414,7 +5414,7 @@ class DescribeAccountModificationsResult { Map json) { return DescribeAccountModificationsResult( accountModifications: (json['AccountModifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountModification.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5500,7 +5500,7 @@ class DescribeApplicationAssociationsResult { Map json) { return DescribeApplicationAssociationsResult( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationResourceAssociation.fromJson( e as Map)) .toList(), @@ -5534,7 +5534,7 @@ class DescribeApplicationsResult { factory DescribeApplicationsResult.fromJson(Map json) { return DescribeApplicationsResult( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkSpaceApplication.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5562,7 +5562,7 @@ class DescribeBundleAssociationsResult { factory DescribeBundleAssociationsResult.fromJson(Map json) { return DescribeBundleAssociationsResult( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BundleResourceAssociation.fromJson(e as Map)) .toList(), @@ -5663,7 +5663,7 @@ class DescribeClientPropertiesResult { factory DescribeClientPropertiesResult.fromJson(Map json) { return DescribeClientPropertiesResult( clientPropertiesList: (json['ClientPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ClientPropertiesResult.fromJson(e as Map)) .toList(), @@ -5696,7 +5696,7 @@ class DescribeConnectClientAddInsResult { Map json) { return DescribeConnectClientAddInsResult( addIns: (json['AddIns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectClientAddIn.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5735,7 +5735,7 @@ class DescribeConnectionAliasPermissionsResult { return DescribeConnectionAliasPermissionsResult( aliasId: json['AliasId'] as String?, connectionAliasPermissions: (json['ConnectionAliasPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionAliasPermission.fromJson(e as Map)) .toList(), @@ -5772,7 +5772,7 @@ class DescribeConnectionAliasesResult { factory DescribeConnectionAliasesResult.fromJson(Map json) { return DescribeConnectionAliasesResult( connectionAliases: (json['ConnectionAliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionAlias.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5800,7 +5800,7 @@ class DescribeImageAssociationsResult { factory DescribeImageAssociationsResult.fromJson(Map json) { return DescribeImageAssociationsResult( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageResourceAssociation.fromJson(e as Map)) .toList(), @@ -5832,7 +5832,7 @@ class DescribeIpGroupsResult { return DescribeIpGroupsResult( nextToken: json['NextToken'] as String?, result: (json['Result'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspacesIpGroup.fromJson(e as Map)) .toList(), ); @@ -5859,7 +5859,7 @@ class DescribeTagsResult { factory DescribeTagsResult.fromJson(Map json) { return DescribeTagsResult( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5885,7 +5885,7 @@ class DescribeWorkspaceAssociationsResult { Map json) { return DescribeWorkspaceAssociationsResult( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceResourceAssociation.fromJson(e as Map)) .toList(), @@ -5917,7 +5917,7 @@ class DescribeWorkspaceBundlesResult { factory DescribeWorkspaceBundlesResult.fromJson(Map json) { return DescribeWorkspaceBundlesResult( bundles: (json['Bundles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceBundle.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5951,7 +5951,7 @@ class DescribeWorkspaceDirectoriesResult { Map json) { return DescribeWorkspaceDirectoriesResult( directories: (json['Directories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceDirectory.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5991,7 +5991,7 @@ class DescribeWorkspaceImagePermissionsResult { return DescribeWorkspaceImagePermissionsResult( imageId: json['ImageId'] as String?, imagePermissions: (json['ImagePermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImagePermission.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6026,7 +6026,7 @@ class DescribeWorkspaceImagesResult { factory DescribeWorkspaceImagesResult.fromJson(Map json) { return DescribeWorkspaceImagesResult( images: (json['Images'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceImage.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6060,11 +6060,11 @@ class DescribeWorkspaceSnapshotsResult { factory DescribeWorkspaceSnapshotsResult.fromJson(Map json) { return DescribeWorkspaceSnapshotsResult( rebuildSnapshots: (json['RebuildSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Snapshot.fromJson(e as Map)) .toList(), restoreSnapshots: (json['RestoreSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Snapshot.fromJson(e as Map)) .toList(), ); @@ -6098,7 +6098,7 @@ class DescribeWorkspacesConnectionStatusResult { return DescribeWorkspacesConnectionStatusResult( nextToken: json['NextToken'] as String?, workspacesConnectionStatus: (json['WorkspacesConnectionStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceConnectionStatus.fromJson(e as Map)) .toList(), @@ -6136,7 +6136,7 @@ class DescribeWorkspacesResult { return DescribeWorkspacesResult( nextToken: json['NextToken'] as String?, workspaces: (json['Workspaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Workspace.fromJson(e as Map)) .toList(), ); @@ -6873,7 +6873,7 @@ class ListAccountLinksResult { factory ListAccountLinksResult.fromJson(Map json) { return ListAccountLinksResult( accountLinks: (json['AccountLinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountLink.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6907,7 +6907,7 @@ class ListAvailableManagementCidrRangesResult { Map json) { return ListAvailableManagementCidrRangesResult( managementCidrRanges: (json['ManagementCidrRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7300,7 +7300,7 @@ class RebootWorkspacesResult { factory RebootWorkspacesResult.fromJson(Map json) { return RebootWorkspacesResult( failedRequests: (json['FailedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedWorkspaceChangeRequest.fromJson(e as Map)) .toList(), @@ -7343,7 +7343,7 @@ class RebuildWorkspacesResult { factory RebuildWorkspacesResult.fromJson(Map json) { return RebuildWorkspacesResult( failedRequests: (json['FailedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedWorkspaceChangeRequest.fromJson(e as Map)) .toList(), @@ -7727,7 +7727,7 @@ class StandbyWorkspace { dataReplication: (json['DataReplication'] as String?)?.let(DataReplication.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), volumeEncryptionKey: json['VolumeEncryptionKey'] as String?, @@ -7835,7 +7835,7 @@ class StartWorkspacesResult { factory StartWorkspacesResult.fromJson(Map json) { return StartWorkspacesResult( failedRequests: (json['FailedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedWorkspaceChangeRequest.fromJson(e as Map)) .toList(), @@ -7878,7 +7878,7 @@ class StopWorkspacesResult { factory StopWorkspacesResult.fromJson(Map json) { return StopWorkspacesResult( failedRequests: (json['FailedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedWorkspaceChangeRequest.fromJson(e as Map)) .toList(), @@ -7980,7 +7980,7 @@ class TerminateWorkspacesResult { factory TerminateWorkspacesResult.fromJson(Map json) { return TerminateWorkspacesResult( failedRequests: (json['FailedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedWorkspaceChangeRequest.fromJson(e as Map)) .toList(), @@ -8170,12 +8170,12 @@ class WorkSpaceApplication { state: (json['State'] as String?)?.let(WorkSpaceApplicationState.fromString), supportedComputeTypeNames: (json['SupportedComputeTypeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Compute.fromString((e as String))) .toList(), supportedOperatingSystemNames: (json['SupportedOperatingSystemNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OperatingSystemName.fromString((e as String))) .toList(), ); @@ -8221,7 +8221,7 @@ class WorkSpaceApplicationDeployment { factory WorkSpaceApplicationDeployment.fromJson(Map json) { return WorkSpaceApplicationDeployment( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceResourceAssociation.fromJson(e as Map)) .toList(), @@ -8451,18 +8451,18 @@ class Workspace { errorMessage: json['ErrorMessage'] as String?, ipAddress: json['IpAddress'] as String?, modificationStates: (json['ModificationStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModificationState.fromJson(e as Map)) .toList(), relatedWorkspaces: (json['RelatedWorkspaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedWorkspaceProperties.fromJson(e as Map)) .toList(), rootVolumeEncryptionEnabled: json['RootVolumeEncryptionEnabled'] as bool?, standbyWorkspacesProperties: (json['StandbyWorkspacesProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StandbyWorkspacesProperties.fromJson(e as Map)) .toList(), @@ -9001,7 +9001,7 @@ class WorkspaceDirectory { directoryType: (json['DirectoryType'] as String?) ?.let(WorkspaceDirectoryType.fromString), dnsIpAddresses: (json['DnsIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), iamRoleId: json['IamRoleId'] as String?, @@ -9017,7 +9017,7 @@ class WorkspaceDirectory { state: (json['State'] as String?)?.let(WorkspaceDirectoryState.fromString), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tenancy: (json['Tenancy'] as String?)?.let(Tenancy.fromString), @@ -9031,7 +9031,7 @@ class WorkspaceDirectory { : null, workspaceSecurityGroupId: json['WorkspaceSecurityGroupId'] as String?, ipGroupIds: (json['ipGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9183,7 +9183,7 @@ class WorkspaceImage { description: json['Description'] as String?, errorCode: json['ErrorCode'] as String?, errorDetails: (json['ErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetails.fromJson(e as Map)) .toList(), errorMessage: json['ErrorMessage'] as String?, @@ -9396,7 +9396,7 @@ class WorkspaceProperties { operatingSystemName: (json['OperatingSystemName'] as String?) ?.let(OperatingSystemName.fromString), protocols: (json['Protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Protocol.fromString((e as String))) .toList(), rootVolumeSizeGib: json['RootVolumeSizeGib'] as int?, @@ -9488,7 +9488,7 @@ class WorkspaceRequest { userName: json['UserName'] as String, rootVolumeEncryptionEnabled: json['RootVolumeEncryptionEnabled'] as bool?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), userVolumeEncryptionEnabled: json['UserVolumeEncryptionEnabled'] as bool?, @@ -9658,7 +9658,7 @@ class WorkspacesIpGroup { groupId: json['groupId'] as String?, groupName: json['groupName'] as String?, userRules: (json['userRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpRuleItem.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/generated/work_spaces_thin_client/v2023_08_22.dart b/aws_client/lib/src/generated/work_spaces_thin_client/v2023_08_22.dart index 560e9ccc6..f116606ba 100644 --- a/aws_client/lib/src/generated/work_spaces_thin_client/v2023_08_22.dart +++ b/aws_client/lib/src/generated/work_spaces_thin_client/v2023_08_22.dart @@ -1571,7 +1571,7 @@ class ListDevicesResponse { factory ListDevicesResponse.fromJson(Map json) { return ListDevicesResponse( devices: (json['devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1608,7 +1608,7 @@ class ListEnvironmentsResponse { factory ListEnvironmentsResponse.fromJson(Map json) { return ListEnvironmentsResponse( environments: (json['environments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1646,7 +1646,7 @@ class ListSoftwareSetsResponse { return ListSoftwareSetsResponse( nextToken: json['nextToken'] as String?, softwareSets: (json['softwareSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SoftwareSetSummary.fromJson(e as Map)) .toList(), ); @@ -1727,7 +1727,7 @@ class MaintenanceWindow { applyTimeOf: (json['applyTimeOf'] as String?)?.let(ApplyTimeOf.fromString), daysOfTheWeek: (json['daysOfTheWeek'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DayOfWeek.fromString((e as String))) .toList(), endTimeHour: json['endTimeHour'] as int?, @@ -1847,7 +1847,7 @@ class SoftwareSet { id: json['id'] as String?, releasedAt: timeStampFromJson(json['releasedAt']), software: (json['software'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Software.fromJson(e as Map)) .toList(), supportedUntil: timeStampFromJson(json['supportedUntil']), diff --git a/aws_client/lib/src/generated/work_spaces_web/v2020_07_08.dart b/aws_client/lib/src/generated/work_spaces_web/v2020_07_08.dart index 2863349df..d81268f71 100644 --- a/aws_client/lib/src/generated/work_spaces_web/v2020_07_08.dart +++ b/aws_client/lib/src/generated/work_spaces_web/v2020_07_08.dart @@ -2694,7 +2694,7 @@ class BrowserSettings { (json['additionalEncryptionContext'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), associatedPortalArns: (json['associatedPortalArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), browserPolicy: json['browserPolicy'] as String?, @@ -2926,11 +2926,11 @@ class CookieSynchronizationConfiguration { Map json) { return CookieSynchronizationConfiguration( allowlist: (json['allowlist'] as List) - .whereNotNull() + .nonNulls .map((e) => CookieSpecification.fromJson(e as Map)) .toList(), blocklist: (json['blocklist'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CookieSpecification.fromJson(e as Map)) .toList(), ); @@ -3862,7 +3862,7 @@ class IpAccessSettings { (json['additionalEncryptionContext'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), associatedPortalArns: (json['associatedPortalArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationDate: timeStampFromJson(json['creationDate']), @@ -3870,7 +3870,7 @@ class IpAccessSettings { description: json['description'] as String?, displayName: json['displayName'] as String?, ipRules: (json['ipRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpRule.fromJson(e as Map)) .toList(), ); @@ -3992,7 +3992,7 @@ class ListBrowserSettingsResponse { factory ListBrowserSettingsResponse.fromJson(Map json) { return ListBrowserSettingsResponse( browserSettings: (json['browserSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BrowserSettingsSummary.fromJson(e as Map)) .toList(), @@ -4026,7 +4026,7 @@ class ListIdentityProvidersResponse { factory ListIdentityProvidersResponse.fromJson(Map json) { return ListIdentityProvidersResponse( identityProviders: (json['identityProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityProviderSummary.fromJson(e as Map)) .toList(), @@ -4060,7 +4060,7 @@ class ListIpAccessSettingsResponse { factory ListIpAccessSettingsResponse.fromJson(Map json) { return ListIpAccessSettingsResponse( ipAccessSettings: (json['ipAccessSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpAccessSettingsSummary.fromJson(e as Map)) .toList(), @@ -4094,7 +4094,7 @@ class ListNetworkSettingsResponse { factory ListNetworkSettingsResponse.fromJson(Map json) { return ListNetworkSettingsResponse( networkSettings: (json['networkSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => NetworkSettingsSummary.fromJson(e as Map)) .toList(), @@ -4129,7 +4129,7 @@ class ListPortalsResponse { return ListPortalsResponse( nextToken: json['nextToken'] as String?, portals: (json['portals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortalSummary.fromJson(e as Map)) .toList(), ); @@ -4156,7 +4156,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4192,7 +4192,7 @@ class ListTrustStoreCertificatesResponse { return ListTrustStoreCertificatesResponse( trustStoreArn: json['trustStoreArn'] as String, certificateList: (json['certificateList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4228,7 +4228,7 @@ class ListTrustStoresResponse { return ListTrustStoresResponse( nextToken: json['nextToken'] as String?, trustStores: (json['trustStores'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrustStoreSummary.fromJson(e as Map)) .toList(), ); @@ -4262,7 +4262,7 @@ class ListUserAccessLoggingSettingsResponse { return ListUserAccessLoggingSettingsResponse( nextToken: json['nextToken'] as String?, userAccessLoggingSettings: (json['userAccessLoggingSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserAccessLoggingSettingsSummary.fromJson( e as Map)) .toList(), @@ -4297,7 +4297,7 @@ class ListUserSettingsResponse { return ListUserSettingsResponse( nextToken: json['nextToken'] as String?, userSettings: (json['userSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserSettingsSummary.fromJson(e as Map)) .toList(), ); @@ -4347,15 +4347,15 @@ class NetworkSettings { return NetworkSettings( networkSettingsArn: json['networkSettingsArn'] as String, associatedPortalArns: (json['associatedPortalArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, @@ -4832,7 +4832,7 @@ class TrustStore { return TrustStore( trustStoreArn: json['trustStoreArn'] as String, associatedPortalArns: (json['associatedPortalArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5093,7 +5093,7 @@ class UserAccessLoggingSettings { userAccessLoggingSettingsArn: json['userAccessLoggingSettingsArn'] as String, associatedPortalArns: (json['associatedPortalArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), kinesisStreamArn: json['kinesisStreamArn'] as String?, @@ -5215,7 +5215,7 @@ class UserSettings { (json['additionalEncryptionContext'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), associatedPortalArns: (json['associatedPortalArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cookieSynchronizationConfiguration: diff --git a/aws_client/lib/src/generated/x_ray/v2016_04_12.dart b/aws_client/lib/src/generated/x_ray/v2016_04_12.dart index 5778a5055..67c12b545 100644 --- a/aws_client/lib/src/generated/x_ray/v2016_04_12.dart +++ b/aws_client/lib/src/generated/x_ray/v2016_04_12.dart @@ -1300,10 +1300,8 @@ class Alias { factory Alias.fromJson(Map json) { return Alias( name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), type: json['Type'] as String?, ); } @@ -1473,11 +1471,11 @@ class BatchGetTracesResult { return BatchGetTracesResult( nextToken: json['NextToken'] as String?, traces: (json['Traces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trace.fromJson(e as Map)) .toList(), unprocessedTraceIds: (json['UnprocessedTraceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1643,18 +1641,18 @@ class Edge { factory Edge.fromJson(Map json) { return Edge( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), edgeType: json['EdgeType'] as String?, endTime: timeStampFromJson(json['EndTime']), receivedEventAgeHistogram: (json['ReceivedEventAgeHistogram'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HistogramEntry.fromJson(e as Map)) .toList(), referenceId: json['ReferenceId'] as int?, responseTimeHistogram: (json['ResponseTimeHistogram'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HistogramEntry.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -1833,7 +1831,7 @@ class ErrorRootCause { return ErrorRootCause( clientImpacting: json['ClientImpacting'] as bool?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorRootCauseService.fromJson(e as Map)) .toList(), ); @@ -1870,7 +1868,7 @@ class ErrorRootCauseEntity { factory ErrorRootCauseEntity.fromJson(Map json) { return ErrorRootCauseEntity( exceptions: (json['Exceptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RootCauseException.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -1923,15 +1921,13 @@ class ErrorRootCauseService { return ErrorRootCauseService( accountId: json['AccountId'] as String?, entityPath: (json['EntityPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorRootCauseEntity.fromJson(e as Map)) .toList(), inferred: json['Inferred'] as bool?, name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), type: json['Type'] as String?, ); } @@ -2011,7 +2007,7 @@ class FaultRootCause { return FaultRootCause( clientImpacting: json['ClientImpacting'] as bool?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaultRootCauseService.fromJson(e as Map)) .toList(), ); @@ -2048,7 +2044,7 @@ class FaultRootCauseEntity { factory FaultRootCauseEntity.fromJson(Map json) { return FaultRootCauseEntity( exceptions: (json['Exceptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RootCauseException.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -2101,15 +2097,13 @@ class FaultRootCauseService { return FaultRootCauseService( accountId: json['AccountId'] as String?, entityPath: (json['EntityPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaultRootCauseEntity.fromJson(e as Map)) .toList(), inferred: json['Inferred'] as bool?, name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), type: json['Type'] as String?, ); } @@ -2261,7 +2255,7 @@ class GetGroupsResult { factory GetGroupsResult.fromJson(Map json) { return GetGroupsResult( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2295,7 +2289,7 @@ class GetInsightEventsResult { factory GetInsightEventsResult.fromJson(Map json) { return GetInsightEventsResult( insightEvents: (json['InsightEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightEvent.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2352,7 +2346,7 @@ class GetInsightImpactGraphResult { serviceGraphEndTime: timeStampFromJson(json['ServiceGraphEndTime']), serviceGraphStartTime: timeStampFromJson(json['ServiceGraphStartTime']), services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightImpactGraphService.fromJson(e as Map)) .toList(), @@ -2424,7 +2418,7 @@ class GetInsightSummariesResult { factory GetInsightSummariesResult.fromJson(Map json) { return GetInsightSummariesResult( insightSummaries: (json['InsightSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2457,7 +2451,7 @@ class GetSamplingRulesResult { return GetSamplingRulesResult( nextToken: json['NextToken'] as String?, samplingRuleRecords: (json['SamplingRuleRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SamplingRuleRecord.fromJson(e as Map)) .toList(), ); @@ -2492,7 +2486,7 @@ class GetSamplingStatisticSummariesResult { return GetSamplingStatisticSummariesResult( nextToken: json['NextToken'] as String?, samplingStatisticSummaries: (json['SamplingStatisticSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SamplingStatisticSummary.fromJson(e as Map)) .toList(), @@ -2536,12 +2530,12 @@ class GetSamplingTargetsResult { return GetSamplingTargetsResult( lastRuleModification: timeStampFromJson(json['LastRuleModification']), samplingTargetDocuments: (json['SamplingTargetDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SamplingTargetDocument.fromJson(e as Map)) .toList(), unprocessedStatistics: (json['UnprocessedStatistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedStatistics.fromJson(e as Map)) .toList(), ); @@ -2595,7 +2589,7 @@ class GetServiceGraphResult { endTime: timeStampFromJson(json['EndTime']), nextToken: json['NextToken'] as String?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Service.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -2644,7 +2638,7 @@ class GetTimeSeriesServiceStatisticsResult { nextToken: json['NextToken'] as String?, timeSeriesServiceStatistics: (json['TimeSeriesServiceStatistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesServiceStatistics.fromJson(e as Map)) .toList(), @@ -2681,7 +2675,7 @@ class GetTraceGraphResult { return GetTraceGraphResult( nextToken: json['NextToken'] as String?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Service.fromJson(e as Map)) .toList(), ); @@ -2726,7 +2720,7 @@ class GetTraceSummariesResult { approximateTime: timeStampFromJson(json['ApproximateTime']), nextToken: json['NextToken'] as String?, traceSummaries: (json['TraceSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TraceSummary.fromJson(e as Map)) .toList(), tracesProcessedCount: json['TracesProcessedCount'] as int?, @@ -3010,7 +3004,7 @@ class Insight { factory Insight.fromJson(Map json) { return Insight( categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightCategory.fromString((e as String))) .toList(), clientRequestImpactStatistics: @@ -3036,7 +3030,7 @@ class Insight { state: (json['State'] as String?)?.let(InsightState.fromString), summary: json['Summary'] as String?, topAnomalousServices: (json['TopAnomalousServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalousService.fromJson(e as Map)) .toList(), ); @@ -3138,7 +3132,7 @@ class InsightEvent { : null, summary: json['Summary'] as String?, topAnomalousServices: (json['TopAnomalousServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalousService.fromJson(e as Map)) .toList(), ); @@ -3244,15 +3238,13 @@ class InsightImpactGraphService { return InsightImpactGraphService( accountId: json['AccountId'] as String?, edges: (json['Edges'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => InsightImpactGraphEdge.fromJson(e as Map)) .toList(), name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), referenceId: json['ReferenceId'] as int?, type: json['Type'] as String?, ); @@ -3352,7 +3344,7 @@ class InsightSummary { factory InsightSummary.fromJson(Map json) { return InsightSummary( categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightCategory.fromString((e as String))) .toList(), clientRequestImpactStatistics: @@ -3379,7 +3371,7 @@ class InsightSummary { state: (json['State'] as String?)?.let(InsightState.fromString), summary: json['Summary'] as String?, topAnomalousServices: (json['TopAnomalousServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalousService.fromJson(e as Map)) .toList(), ); @@ -3497,7 +3489,7 @@ class ListResourcePoliciesResult { return ListResourcePoliciesResult( nextToken: json['NextToken'] as String?, resourcePolicies: (json['ResourcePolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePolicy.fromJson(e as Map)) .toList(), ); @@ -3532,7 +3524,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3622,7 +3614,7 @@ class PutTraceSegmentsResult { factory PutTraceSegmentsResult.fromJson(Map json) { return PutTraceSegmentsResult( unprocessedTraceSegments: (json['UnprocessedTraceSegments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedTraceSegment.fromJson(e as Map)) .toList(), @@ -3764,7 +3756,7 @@ class ResponseTimeRootCause { return ResponseTimeRootCause( clientImpacting: json['ClientImpacting'] as bool?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseTimeRootCauseService.fromJson(e as Map)) .toList(), @@ -3852,16 +3844,14 @@ class ResponseTimeRootCauseService { return ResponseTimeRootCauseService( accountId: json['AccountId'] as String?, entityPath: (json['EntityPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseTimeRootCauseEntity.fromJson(e as Map)) .toList(), inferred: json['Inferred'] as bool?, name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), type: json['Type'] as String?, ); } @@ -4484,22 +4474,20 @@ class Service { return Service( accountId: json['AccountId'] as String?, durationHistogram: (json['DurationHistogram'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HistogramEntry.fromJson(e as Map)) .toList(), edges: (json['Edges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Edge.fromJson(e as Map)) .toList(), endTime: timeStampFromJson(json['EndTime']), name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), referenceId: json['ReferenceId'] as int?, responseTimeHistogram: (json['ResponseTimeHistogram'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HistogramEntry.fromJson(e as Map)) .toList(), root: json['Root'] as bool?, @@ -4571,10 +4559,8 @@ class ServiceId { return ServiceId( accountId: json['AccountId'] as String?, name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), type: json['Type'] as String?, ); } @@ -4814,7 +4800,7 @@ class TimeSeriesServiceStatistics { json['EdgeSummaryStatistics'] as Map) : null, responseTimeHistogram: (json['ResponseTimeHistogram'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HistogramEntry.fromJson(e as Map)) .toList(), serviceForecastStatistics: json['ServiceForecastStatistics'] != null @@ -4882,7 +4868,7 @@ class Trace { id: json['Id'] as String?, limitExceeded: json['LimitExceeded'] as bool?, segments: (json['Segments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Segment.fromJson(e as Map)) .toList(), ); @@ -5009,12 +4995,12 @@ class TraceSummary { MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ValueWithServiceIds.fromJson(e as Map)) .toList())), availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AvailabilityZoneDetail.fromJson(e as Map)) .toList(), @@ -5023,11 +5009,11 @@ class TraceSummary { ? ServiceId.fromJson(json['EntryPoint'] as Map) : null, errorRootCauses: (json['ErrorRootCauses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorRootCause.fromJson(e as Map)) .toList(), faultRootCauses: (json['FaultRootCauses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaultRootCause.fromJson(e as Map)) .toList(), hasError: json['HasError'] as bool?, @@ -5038,28 +5024,28 @@ class TraceSummary { : null, id: json['Id'] as String?, instanceIds: (json['InstanceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceIdDetail.fromJson(e as Map)) .toList(), isPartial: json['IsPartial'] as bool?, matchedEventTime: timeStampFromJson(json['MatchedEventTime']), resourceARNs: (json['ResourceARNs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceARNDetail.fromJson(e as Map)) .toList(), responseTime: json['ResponseTime'] as double?, responseTimeRootCauses: (json['ResponseTimeRootCauses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseTimeRootCause.fromJson(e as Map)) .toList(), revision: json['Revision'] as int?, serviceIds: (json['ServiceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceId.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TraceUser.fromJson(e as Map)) .toList(), ); @@ -5131,7 +5117,7 @@ class TraceUser { factory TraceUser.fromJson(Map json) { return TraceUser( serviceIds: (json['ServiceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceId.fromJson(e as Map)) .toList(), userName: json['UserName'] as String?, @@ -5307,7 +5293,7 @@ class ValueWithServiceIds { json['AnnotationValue'] as Map) : null, serviceIds: (json['ServiceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceId.fromJson(e as Map)) .toList(), ); diff --git a/aws_client/lib/src/shared/src/protocol/_sign.dart b/aws_client/lib/src/shared/src/protocol/_sign.dart index 7ed7c212d..f323241bd 100644 --- a/aws_client/lib/src/shared/src/protocol/_sign.dart +++ b/aws_client/lib/src/shared/src/protocol/_sign.dart @@ -34,7 +34,7 @@ void signAws4HmacSha256({ final payloadHash = sha256.convert(rq.bodyBytes).toString(); final canonical = [ rq.method.toUpperCase(), - Uri.encodeFull(rq.url.path), + rq.url.path, canonicalQueryParametersAll(rq.url.queryParametersAll), ...canonicalHeaders, '', diff --git a/aws_client/pubspec.yaml b/aws_client/pubspec.yaml index aa251187f..13e6f852b 100644 --- a/aws_client/pubspec.yaml +++ b/aws_client/pubspec.yaml @@ -6,7 +6,7 @@ topics: - aws environment: - sdk: '>=2.17.0 <4.0.0' + sdk: '^3.0.0' dependencies: crypto: ^3.0.1 diff --git a/aws_credential_providers/pubspec.yaml b/aws_credential_providers/pubspec.yaml index 843f0b2c7..f41d903db 100644 --- a/aws_credential_providers/pubspec.yaml +++ b/aws_credential_providers/pubspec.yaml @@ -6,7 +6,7 @@ version: 0.0.2 homepage: https://github.com/agilord/aws_client/tree/master/aws_credential_providers environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: aws_sts_api: ^1.2.0 diff --git a/document_client/pubspec.yaml b/document_client/pubspec.yaml index f95aea534..45e040506 100644 --- a/document_client/pubspec.yaml +++ b/document_client/pubspec.yaml @@ -7,7 +7,7 @@ version: 2.0.0 homepage: https://github.com/agilord/aws_client environment: - sdk: ">=2.17.0 <3.0.0" + sdk: "^3.0.0" dependencies: aws_dynamodb_api: ^2.0.0 diff --git a/generated/aws_accessanalyzer_api/lib/accessanalyzer-2019-11-01.dart b/generated/aws_accessanalyzer_api/lib/accessanalyzer-2019-11-01.dart index af470c4a3..d4e37d43a 100644 --- a/generated/aws_accessanalyzer_api/lib/accessanalyzer-2019-11-01.dart +++ b/generated/aws_accessanalyzer_api/lib/accessanalyzer-2019-11-01.dart @@ -1592,10 +1592,8 @@ class AccessPreviewFinding { resourceOwnerAccount: json['resourceOwnerAccount'] as String, resourceType: ResourceType.fromString((json['resourceType'] as String)), status: FindingStatus.fromString((json['status'] as String)), - action: (json['action'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + action: + (json['action'] as List?)?.nonNulls.map((e) => e as String).toList(), condition: (json['condition'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), error: json['error'] as String?, @@ -1607,7 +1605,7 @@ class AccessPreviewFinding { ?.map((k, e) => MapEntry(k, e as String)), resource: json['resource'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingSource.fromJson(e as Map)) .toList(), ); @@ -1826,13 +1824,11 @@ class AnalyzedResource { resourceOwnerAccount: json['resourceOwnerAccount'] as String, resourceType: ResourceType.fromString((json['resourceType'] as String)), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), - actions: (json['actions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['actions'] as List?)?.nonNulls.map((e) => e as String).toList(), error: json['error'] as String?, sharedVia: (json['sharedVia'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(FindingStatus.fromString), @@ -2056,7 +2052,7 @@ class CheckAccessNotGrantedResponse { return CheckAccessNotGrantedResponse( message: json['message'] as String?, reasons: (json['reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReasonSummary.fromJson(e as Map)) .toList(), result: (json['result'] as String?) @@ -2102,7 +2098,7 @@ class CheckNoNewAccessResponse { return CheckNoNewAccessResponse( message: json['message'] as String?, reasons: (json['reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReasonSummary.fromJson(e as Map)) .toList(), result: @@ -2195,7 +2191,7 @@ class CloudTrailProperties { endTime: nonNullableTimeStampFromJson(json['endTime'] as Object), startTime: nonNullableTimeStampFromJson(json['startTime'] as Object), trailProperties: (json['trailProperties'] as List) - .whereNotNull() + .nonNulls .map((e) => TrailProperties.fromJson(e as Map)) .toList(), ); @@ -2420,18 +2416,12 @@ class Criterion { factory Criterion.fromJson(Map json) { return Criterion( contains: (json['contains'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - eq: (json['eq'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + eq: (json['eq'] as List?)?.nonNulls.map((e) => e as String).toList(), exists: json['exists'] as bool?, - neq: (json['neq'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + neq: (json['neq'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2613,15 +2603,11 @@ class EbsSnapshotConfiguration { factory EbsSnapshotConfiguration.fromJson(Map json) { return EbsSnapshotConfiguration( - groups: (json['groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['groups'] as List?)?.nonNulls.map((e) => e as String).toList(), kmsKeyId: json['kmsKeyId'] as String?, - userIds: (json['userIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + userIds: + (json['userIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2766,15 +2752,13 @@ class ExternalAccessDetails { return ExternalAccessDetails( condition: (json['condition'] as Map) .map((k, e) => MapEntry(k, e as String)), - action: (json['action'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + action: + (json['action'] as List?)?.nonNulls.map((e) => e as String).toList(), isPublic: json['isPublic'] as bool?, principal: (json['principal'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingSource.fromJson(e as Map)) .toList(), ); @@ -2857,17 +2841,15 @@ class Finding { resourceType: ResourceType.fromString((json['resourceType'] as String)), status: FindingStatus.fromString((json['status'] as String)), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), - action: (json['action'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + action: + (json['action'] as List?)?.nonNulls.map((e) => e as String).toList(), error: json['error'] as String?, isPublic: json['isPublic'] as bool?, principal: (json['principal'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), resource: json['resource'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingSource.fromJson(e as Map)) .toList(), ); @@ -3121,17 +3103,15 @@ class FindingSummary { resourceType: ResourceType.fromString((json['resourceType'] as String)), status: FindingStatus.fromString((json['status'] as String)), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), - action: (json['action'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + action: + (json['action'] as List?)?.nonNulls.map((e) => e as String).toList(), error: json['error'] as String?, isPublic: json['isPublic'] as bool?, principal: (json['principal'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), resource: json['resource'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingSource.fromJson(e as Map)) .toList(), ); @@ -3291,7 +3271,7 @@ class GeneratedPolicyResult { properties: GeneratedPolicyProperties.fromJson( json['properties'] as Map), generatedPolicies: (json['generatedPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GeneratedPolicy.fromJson(e as Map)) .toList(), ); @@ -3447,7 +3427,7 @@ class GetFindingV2Response { analyzedAt: nonNullableTimeStampFromJson(json['analyzedAt'] as Object), createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), findingDetails: (json['findingDetails'] as List) - .whereNotNull() + .nonNulls .map((e) => FindingDetails.fromJson(e as Map)) .toList(), id: json['id'] as String, @@ -3696,7 +3676,7 @@ class KmsGrantConfiguration { granteePrincipal: json['granteePrincipal'] as String, issuingAccount: json['issuingAccount'] as String, operations: (json['operations'] as List) - .whereNotNull() + .nonNulls .map((e) => KmsGrantOperation.fromString((e as String))) .toList(), constraints: json['constraints'] != null @@ -3837,7 +3817,7 @@ class KmsKeyConfiguration { factory KmsKeyConfiguration.fromJson(Map json) { return KmsKeyConfiguration( grants: (json['grants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KmsGrantConfiguration.fromJson(e as Map)) .toList(), keyPolicies: (json['keyPolicies'] as Map?) @@ -3871,7 +3851,7 @@ class ListAccessPreviewFindingsResponse { Map json) { return ListAccessPreviewFindingsResponse( findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => AccessPreviewFinding.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3894,7 +3874,7 @@ class ListAccessPreviewsResponse { factory ListAccessPreviewsResponse.fromJson(Map json) { return ListAccessPreviewsResponse( accessPreviews: (json['accessPreviews'] as List) - .whereNotNull() + .nonNulls .map((e) => AccessPreviewSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3918,7 +3898,7 @@ class ListAnalyzedResourcesResponse { factory ListAnalyzedResourcesResponse.fromJson(Map json) { return ListAnalyzedResourcesResponse( analyzedResources: (json['analyzedResources'] as List) - .whereNotNull() + .nonNulls .map((e) => AnalyzedResourceSummary.fromJson(e as Map)) .toList(), @@ -3943,7 +3923,7 @@ class ListAnalyzersResponse { factory ListAnalyzersResponse.fromJson(Map json) { return ListAnalyzersResponse( analyzers: (json['analyzers'] as List) - .whereNotNull() + .nonNulls .map((e) => AnalyzerSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3967,7 +3947,7 @@ class ListArchiveRulesResponse { factory ListArchiveRulesResponse.fromJson(Map json) { return ListArchiveRulesResponse( archiveRules: (json['archiveRules'] as List) - .whereNotNull() + .nonNulls .map((e) => ArchiveRuleSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3992,7 +3972,7 @@ class ListFindingsResponse { factory ListFindingsResponse.fromJson(Map json) { return ListFindingsResponse( findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => FindingSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4016,7 +3996,7 @@ class ListFindingsV2Response { factory ListFindingsV2Response.fromJson(Map json) { return ListFindingsV2Response( findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => FindingSummaryV2.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4040,7 +4020,7 @@ class ListPolicyGenerationsResponse { factory ListPolicyGenerationsResponse.fromJson(Map json) { return ListPolicyGenerationsResponse( policyGenerations: (json['policyGenerations'] as List) - .whereNotNull() + .nonNulls .map((e) => PolicyGeneration.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4104,7 +4084,7 @@ class Location { factory Location.fromJson(Map json) { return Location( path: (json['path'] as List) - .whereNotNull() + .nonNulls .map((e) => PathElement.fromJson(e as Map)) .toList(), span: Span.fromJson(json['span'] as Map), @@ -4341,7 +4321,7 @@ class RdsDbClusterSnapshotAttributeValue { Map json) { return RdsDbClusterSnapshotAttributeValue( accountIds: (json['accountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4451,7 +4431,7 @@ class RdsDbSnapshotAttributeValue { factory RdsDbSnapshotAttributeValue.fromJson(Map json) { return RdsDbSnapshotAttributeValue( accountIds: (json['accountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4729,7 +4709,7 @@ class S3BucketConfiguration { (k, e) => MapEntry(k, S3AccessPointConfiguration.fromJson(e as Map))), bucketAclGrants: (json['bucketAclGrants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3BucketAclGrantConfiguration.fromJson(e as Map)) .toList(), @@ -5124,10 +5104,8 @@ class TrailProperties { return TrailProperties( cloudTrailArn: json['cloudTrailArn'] as String, allRegions: json['allRegions'] as bool?, - regions: (json['regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['regions'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -5302,7 +5280,7 @@ class UnusedPermissionDetails { return UnusedPermissionDetails( serviceNamespace: json['serviceNamespace'] as String, actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnusedAction.fromJson(e as Map)) .toList(), lastAccessed: timeStampFromJson(json['lastAccessed']), @@ -5359,7 +5337,7 @@ class ValidatePolicyFinding { issueCode: json['issueCode'] as String, learnMoreLink: json['learnMoreLink'] as String, locations: (json['locations'] as List) - .whereNotNull() + .nonNulls .map((e) => Location.fromJson(e as Map)) .toList(), ); @@ -5418,7 +5396,7 @@ class ValidatePolicyResponse { factory ValidatePolicyResponse.fromJson(Map json) { return ValidatePolicyResponse( findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => ValidatePolicyFinding.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/generated/aws_accessanalyzer_api/pubspec.yaml b/generated/aws_accessanalyzer_api/pubspec.yaml index 2a6962ce9..6ba44f342 100644 --- a/generated/aws_accessanalyzer_api/pubspec.yaml +++ b/generated/aws_accessanalyzer_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_access protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_acm_api/lib/acm-2015-12-08.dart b/generated/aws_acm_api/lib/acm-2015-12-08.dart index c124235b5..7ce79c8b3 100644 --- a/generated/aws_acm_api/lib/acm-2015-12-08.dart +++ b/generated/aws_acm_api/lib/acm-2015-12-08.dart @@ -1179,26 +1179,24 @@ class CertificateDetail { createdAt: timeStampFromJson(json['CreatedAt']), domainName: json['DomainName'] as String?, domainValidationOptions: (json['DomainValidationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainValidation.fromJson(e as Map)) .toList(), extendedKeyUsages: (json['ExtendedKeyUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtendedKeyUsage.fromJson(e as Map)) .toList(), failureReason: (json['FailureReason'] as String?)?.let(FailureReason.fromString), importedAt: timeStampFromJson(json['ImportedAt']), - inUseBy: (json['InUseBy'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inUseBy: + (json['InUseBy'] as List?)?.nonNulls.map((e) => e as String).toList(), issuedAt: timeStampFromJson(json['IssuedAt']), issuer: json['Issuer'] as String?, keyAlgorithm: (json['KeyAlgorithm'] as String?)?.let(KeyAlgorithm.fromString), keyUsages: (json['KeyUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyUsage.fromJson(e as Map)) .toList(), notAfter: timeStampFromJson(json['NotAfter']), @@ -1220,7 +1218,7 @@ class CertificateDetail { status: (json['Status'] as String?)?.let(CertificateStatus.fromString), subject: json['Subject'] as String?, subjectAlternativeNames: (json['SubjectAlternativeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['Type'] as String?)?.let(CertificateType.fromString), @@ -1429,7 +1427,7 @@ class CertificateSummary { domainName: json['DomainName'] as String?, exported: json['Exported'] as bool?, extendedKeyUsages: (json['ExtendedKeyUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtendedKeyUsageName.fromString((e as String))) .toList(), hasAdditionalSubjectAlternativeNames: @@ -1440,7 +1438,7 @@ class CertificateSummary { keyAlgorithm: (json['KeyAlgorithm'] as String?)?.let(KeyAlgorithm.fromString), keyUsages: (json['KeyUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyUsageName.fromString((e as String))) .toList(), notAfter: timeStampFromJson(json['NotAfter']), @@ -1451,7 +1449,7 @@ class CertificateSummary { status: (json['Status'] as String?)?.let(CertificateStatus.fromString), subjectAlternativeNameSummaries: (json['SubjectAlternativeNameSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['Type'] as String?)?.let(CertificateType.fromString), @@ -1586,7 +1584,7 @@ class DomainValidation { : null, validationDomain: json['ValidationDomain'] as String?, validationEmails: (json['ValidationEmails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), validationMethod: (json['ValidationMethod'] as String?) @@ -1983,7 +1981,7 @@ class ListCertificatesResponse { factory ListCertificatesResponse.fromJson(Map json) { return ListCertificatesResponse( certificateSummaryList: (json['CertificateSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2002,7 +2000,7 @@ class ListTagsForCertificateResponse { factory ListTagsForCertificateResponse.fromJson(Map json) { return ListTagsForCertificateResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2088,7 +2086,7 @@ class RenewalSummary { factory RenewalSummary.fromJson(Map json) { return RenewalSummary( domainValidationOptions: (json['DomainValidationOptions'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainValidation.fromJson(e as Map)) .toList(), renewalStatus: diff --git a/generated/aws_acm_api/pubspec.yaml b/generated/aws_acm_api/pubspec.yaml index 380a1b2f2..2581a9265 100644 --- a/generated/aws_acm_api/pubspec.yaml +++ b/generated/aws_acm_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_acm_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_acm_pca_api/lib/acm-pca-2017-08-22.dart b/generated/aws_acm_pca_api/lib/acm-pca-2017-08-22.dart index bd964578b..c09a308fb 100644 --- a/generated/aws_acm_pca_api/lib/acm-pca-2017-08-22.dart +++ b/generated/aws_acm_pca_api/lib/acm-pca-2017-08-22.dart @@ -2038,7 +2038,7 @@ class ASN1Subject { commonName: json['CommonName'] as String?, country: json['Country'] as String?, customAttributes: (json['CustomAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomAttribute.fromJson(e as Map)) .toList(), distinguishedNameQualifier: json['DistinguishedNameQualifier'] as String?, @@ -2820,7 +2820,7 @@ class CsrExtensions { ? KeyUsage.fromJson(json['KeyUsage'] as Map) : null, subjectInformationAccess: (json['SubjectInformationAccess'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessDescription.fromJson(e as Map)) .toList(), ); @@ -3429,7 +3429,7 @@ class ListCertificateAuthoritiesResponse { Map json) { return ListCertificateAuthoritiesResponse( certificateAuthorities: (json['CertificateAuthorities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateAuthority.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3456,7 +3456,7 @@ class ListPermissionsResponse { return ListPermissionsResponse( nextToken: json['NextToken'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromJson(e as Map)) .toList(), ); @@ -3480,7 +3480,7 @@ class ListTagsResponse { return ListTagsResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3614,7 +3614,7 @@ class Permission { factory Permission.fromJson(Map json) { return Permission( actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionType.fromString((e as String))) .toList(), certificateAuthorityArn: json['CertificateAuthorityArn'] as String?, diff --git a/generated/aws_acm_pca_api/pubspec.yaml b/generated/aws_acm_pca_api/pubspec.yaml index 5bab95d0a..01aab74d5 100644 --- a/generated/aws_acm_pca_api/pubspec.yaml +++ b/generated/aws_acm_pca_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_acm_pc protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_alexaforbusiness_api/lib/alexaforbusiness-2017-11-09.dart b/generated/aws_alexaforbusiness_api/lib/alexaforbusiness-2017-11-09.dart index de4f58ff2..4dc6d10a4 100644 --- a/generated/aws_alexaforbusiness_api/lib/alexaforbusiness-2017-11-09.dart +++ b/generated/aws_alexaforbusiness_api/lib/alexaforbusiness-2017-11-09.dart @@ -4386,11 +4386,11 @@ class Contact { lastName: json['LastName'] as String?, phoneNumber: json['PhoneNumber'] as String?, phoneNumbers: (json['PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumber.fromJson(e as Map)) .toList(), sipAddresses: (json['SipAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipAddress.fromJson(e as Map)) .toList(), ); @@ -4441,11 +4441,11 @@ class ContactData { lastName: json['LastName'] as String?, phoneNumber: json['PhoneNumber'] as String?, phoneNumbers: (json['PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumber.fromJson(e as Map)) .toList(), sipAddresses: (json['SipAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipAddress.fromJson(e as Map)) .toList(), ); @@ -5210,7 +5210,7 @@ class DeviceStatusInfo { connectionStatusUpdatedTime: timeStampFromJson(json['ConnectionStatusUpdatedTime']), deviceStatusDetails: (json['DeviceStatusDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceStatusDetail.fromJson(e as Map)) .toList(), ); @@ -5342,7 +5342,7 @@ class EndOfMeetingReminder { return EndOfMeetingReminder( enabled: json['Enabled'] as bool?, reminderAtMinutes: (json['ReminderAtMinutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), reminderType: (json['ReminderType'] as String?) @@ -5709,7 +5709,7 @@ class GetInvitationConfigurationResponse { contactEmail: json['ContactEmail'] as String?, organizationName: json['OrganizationName'] as String?, privateSkillIds: (json['PrivateSkillIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5874,7 +5874,7 @@ class ListBusinessReportSchedulesResponse { Map json) { return ListBusinessReportSchedulesResponse( businessReportSchedules: (json['BusinessReportSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BusinessReportSchedule.fromJson(e as Map)) .toList(), @@ -5898,7 +5898,7 @@ class ListConferenceProvidersResponse { factory ListConferenceProvidersResponse.fromJson(Map json) { return ListConferenceProvidersResponse( conferenceProviders: (json['ConferenceProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConferenceProvider.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5921,7 +5921,7 @@ class ListDeviceEventsResponse { factory ListDeviceEventsResponse.fromJson(Map json) { return ListDeviceEventsResponse( deviceEvents: (json['DeviceEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceEvent.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5944,7 +5944,7 @@ class ListGatewayGroupsResponse { factory ListGatewayGroupsResponse.fromJson(Map json) { return ListGatewayGroupsResponse( gatewayGroups: (json['GatewayGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GatewayGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5967,7 +5967,7 @@ class ListGatewaysResponse { factory ListGatewaysResponse.fromJson(Map json) { return ListGatewaysResponse( gateways: (json['Gateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GatewaySummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5991,7 +5991,7 @@ class ListSkillsResponse { return ListSkillsResponse( nextToken: json['NextToken'] as String?, skillSummaries: (json['SkillSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SkillSummary.fromJson(e as Map)) .toList(), ); @@ -6014,7 +6014,7 @@ class ListSkillsStoreCategoriesResponse { Map json) { return ListSkillsStoreCategoriesResponse( categoryList: (json['CategoryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Category.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6039,7 +6039,7 @@ class ListSkillsStoreSkillsByCategoryResponse { return ListSkillsStoreSkillsByCategoryResponse( nextToken: json['NextToken'] as String?, skillsStoreSkills: (json['SkillsStoreSkills'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SkillsStoreSkill.fromJson(e as Map)) .toList(), ); @@ -6062,7 +6062,7 @@ class ListSmartHomeAppliancesResponse { return ListSmartHomeAppliancesResponse( nextToken: json['NextToken'] as String?, smartHomeAppliances: (json['SmartHomeAppliances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SmartHomeAppliance.fromJson(e as Map)) .toList(), ); @@ -6085,7 +6085,7 @@ class ListTagsResponse { return ListTagsResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6270,7 +6270,7 @@ class NetworkProfile { ?.let(NetworkSecurityType.fromString), ssid: json['Ssid'] as String?, trustAnchors: (json['TrustAnchors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6708,7 +6708,7 @@ class ResolveRoomResponse { roomArn: json['RoomArn'] as String?, roomName: json['RoomName'] as String?, roomSkillParameters: (json['RoomSkillParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoomSkillParameter.fromJson(e as Map)) .toList(), ); @@ -6851,7 +6851,7 @@ class SearchAddressBooksResponse { factory SearchAddressBooksResponse.fromJson(Map json) { return SearchAddressBooksResponse( addressBooks: (json['AddressBooks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddressBookData.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6879,7 +6879,7 @@ class SearchContactsResponse { factory SearchContactsResponse.fromJson(Map json) { return SearchContactsResponse( contacts: (json['Contacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactData.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6907,7 +6907,7 @@ class SearchDevicesResponse { factory SearchDevicesResponse.fromJson(Map json) { return SearchDevicesResponse( devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceData.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6939,7 +6939,7 @@ class SearchNetworkProfilesResponse { factory SearchNetworkProfilesResponse.fromJson(Map json) { return SearchNetworkProfilesResponse( networkProfiles: (json['NetworkProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkProfileData.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6968,7 +6968,7 @@ class SearchProfilesResponse { return SearchProfilesResponse( nextToken: json['NextToken'] as String?, profiles: (json['Profiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfileData.fromJson(e as Map)) .toList(), totalCount: json['TotalCount'] as int?, @@ -6996,7 +6996,7 @@ class SearchRoomsResponse { return SearchRoomsResponse( nextToken: json['NextToken'] as String?, rooms: (json['Rooms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoomData.fromJson(e as Map)) .toList(), totalCount: json['TotalCount'] as int?, @@ -7024,7 +7024,7 @@ class SearchSkillGroupsResponse { return SearchSkillGroupsResponse( nextToken: json['NextToken'] as String?, skillGroups: (json['SkillGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SkillGroupData.fromJson(e as Map)) .toList(), totalCount: json['TotalCount'] as int?, @@ -7053,7 +7053,7 @@ class SearchUsersResponse { nextToken: json['NextToken'] as String?, totalCount: json['TotalCount'] as int?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserData.fromJson(e as Map)) .toList(), ); @@ -7177,7 +7177,7 @@ class SkillDetails { factory SkillDetails.fromJson(Map json) { return SkillDetails( bulletPoints: (json['BulletPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), developerInfo: json['DeveloperInfo'] != null @@ -7186,13 +7186,13 @@ class SkillDetails { : null, endUserLicenseAgreement: json['EndUserLicenseAgreement'] as String?, genericKeywords: (json['GenericKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), invocationPhrase: json['InvocationPhrase'] as String?, newInThisVersionBulletPoints: (json['NewInThisVersionBulletPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), productDescription: json['ProductDescription'] as String?, @@ -7200,7 +7200,7 @@ class SkillDetails { reviews: (json['Reviews'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), skillTypes: (json['SkillTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7364,7 +7364,7 @@ class SkillsStoreSkill { return SkillsStoreSkill( iconUrl: json['IconUrl'] as String?, sampleUtterances: (json['SampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), shortDescription: json['ShortDescription'] as String?, diff --git a/generated/aws_alexaforbusiness_api/pubspec.yaml b/generated/aws_alexaforbusiness_api/pubspec.yaml index 4cf49fc72..71e59b650 100644 --- a/generated/aws_alexaforbusiness_api/pubspec.yaml +++ b/generated/aws_alexaforbusiness_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_alexaf protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_amplify_api/lib/amplify-2017-07-25.dart b/generated/aws_amplify_api/lib/amplify-2017-07-25.dart index 4c29bdbe0..a709aee12 100644 --- a/generated/aws_amplify_api/lib/amplify-2017-07-25.dart +++ b/generated/aws_amplify_api/lib/amplify-2017-07-25.dart @@ -1989,14 +1989,14 @@ class App { json['autoBranchCreationConfig'] as Map) : null, autoBranchCreationPatterns: (json['autoBranchCreationPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), basicAuthCredentials: json['basicAuthCredentials'] as String?, buildSpec: json['buildSpec'] as String?, customHeaders: json['customHeaders'] as String?, customRules: (json['customRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRule.fromJson(e as Map)) .toList(), enableAutoBranchCreation: json['enableAutoBranchCreation'] as bool?, @@ -2342,7 +2342,7 @@ class Branch { branchName: json['branchName'] as String, createTime: nonNullableTimeStampFromJson(json['createTime'] as Object), customDomains: (json['customDomains'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), description: json['description'] as String, @@ -2360,7 +2360,7 @@ class Branch { ttl: json['ttl'] as String, updateTime: nonNullableTimeStampFromJson(json['updateTime'] as Object), associatedResources: (json['associatedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), backend: json['backend'] != null @@ -2833,12 +2833,12 @@ class DomainAssociation { enableAutoSubDomain: json['enableAutoSubDomain'] as bool, statusReason: json['statusReason'] as String, subDomains: (json['subDomains'] as List) - .whereNotNull() + .nonNulls .map((e) => SubDomain.fromJson(e as Map)) .toList(), autoSubDomainCreationPatterns: (json['autoSubDomainCreationPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), autoSubDomainIAMRole: json['autoSubDomainIAMRole'] as String?, @@ -3022,7 +3022,7 @@ class Job { factory Job.fromJson(Map json) { return Job( steps: (json['steps'] as List) - .whereNotNull() + .nonNulls .map((e) => Step.fromJson(e as Map)) .toList(), summary: JobSummary.fromJson(json['summary'] as Map), @@ -3143,7 +3143,7 @@ class ListAppsResult { factory ListAppsResult.fromJson(Map json) { return ListAppsResult( apps: (json['apps'] as List) - .whereNotNull() + .nonNulls .map((e) => App.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3168,7 +3168,7 @@ class ListArtifactsResult { factory ListArtifactsResult.fromJson(Map json) { return ListArtifactsResult( artifacts: (json['artifacts'] as List) - .whereNotNull() + .nonNulls .map((e) => Artifact.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3193,7 +3193,7 @@ class ListBackendEnvironmentsResult { factory ListBackendEnvironmentsResult.fromJson(Map json) { return ListBackendEnvironmentsResult( backendEnvironments: (json['backendEnvironments'] as List) - .whereNotNull() + .nonNulls .map((e) => BackendEnvironment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3218,7 +3218,7 @@ class ListBranchesResult { factory ListBranchesResult.fromJson(Map json) { return ListBranchesResult( branches: (json['branches'] as List) - .whereNotNull() + .nonNulls .map((e) => Branch.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3243,7 +3243,7 @@ class ListDomainAssociationsResult { factory ListDomainAssociationsResult.fromJson(Map json) { return ListDomainAssociationsResult( domainAssociations: (json['domainAssociations'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainAssociation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3268,7 +3268,7 @@ class ListJobsResult { factory ListJobsResult.fromJson(Map json) { return ListJobsResult( jobSummaries: (json['jobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => JobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3310,7 +3310,7 @@ class ListWebhooksResult { factory ListWebhooksResult.fromJson(Map json) { return ListWebhooksResult( webhooks: (json['webhooks'] as List) - .whereNotNull() + .nonNulls .map((e) => Webhook.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/generated/aws_amplify_api/pubspec.yaml b/generated/aws_amplify_api/pubspec.yaml index 35da97c75..f40c816f6 100644 --- a/generated/aws_amplify_api/pubspec.yaml +++ b/generated/aws_amplify_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_amplif protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_apigateway_api/lib/apigateway-2015-07-09.dart b/generated/aws_apigateway_api/lib/apigateway-2015-07-09.dart index 8d545e39e..97b31a91a 100644 --- a/generated/aws_apigateway_api/lib/apigateway-2015-07-09.dart +++ b/generated/aws_apigateway_api/lib/apigateway-2015-07-09.dart @@ -4903,7 +4903,7 @@ class Account { apiKeyVersion: json['apiKeyVersion'] as String?, cloudwatchRoleArn: json['cloudwatchRoleArn'] as String?, features: (json['features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), throttleSettings: json['throttleSettings'] != null @@ -4974,7 +4974,7 @@ class ApiKey { lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, stageKeys: (json['stageKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -4999,12 +4999,9 @@ class ApiKeyIds { factory ApiKeyIds.fromJson(Map json) { return ApiKeyIds( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5045,12 +5042,12 @@ class ApiKeys { factory ApiKeys.fromJson(Map json) { return ApiKeys( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiKey.fromJson(e as Map)) .toList(), position: json['position'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5220,7 +5217,7 @@ class Authorizer { json['identityValidationExpression'] as String?, name: json['name'] as String?, providerARNs: (json['providerARNs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(AuthorizerType.fromString), @@ -5263,7 +5260,7 @@ class Authorizers { factory Authorizers.fromJson(Map json) { return Authorizers( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Authorizer.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -5313,7 +5310,7 @@ class BasePathMappings { factory BasePathMappings.fromJson(Map json) { return BasePathMappings( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BasePathMapping.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -5472,7 +5469,7 @@ class ClientCertificates { factory ClientCertificates.fromJson(Map json) { return ClientCertificates( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClientCertificate.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -5599,7 +5596,7 @@ class Deployments { factory Deployments.fromJson(Map json) { return Deployments( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Deployment.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -5662,12 +5659,9 @@ class DocumentationPartIds { factory DocumentationPartIds.fromJson(Map json) { return DocumentationPartIds( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5801,7 +5795,7 @@ class DocumentationParts { factory DocumentationParts.fromJson(Map json) { return DocumentationParts( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentationPart.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -5849,7 +5843,7 @@ class DocumentationVersions { factory DocumentationVersions.fromJson(Map json) { return DocumentationVersions( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentationVersion.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -6030,7 +6024,7 @@ class DomainNames { factory DomainNames.fromJson(Map json) { return DomainNames( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainName.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -6060,11 +6054,11 @@ class EndpointConfiguration { factory EndpointConfiguration.fromJson(Map json) { return EndpointConfiguration( types: (json['types'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointType.fromString((e as String))) .toList(), vpcEndpointIds: (json['vpcEndpointIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6214,7 +6208,7 @@ class GatewayResponses { factory GatewayResponses.fromJson(Map json) { return GatewayResponses( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GatewayResponse.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -6376,7 +6370,7 @@ class Integration { factory Integration.fromJson(Map json) { return Integration( cacheKeyParameters: (json['cacheKeyParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cacheNamespace: json['cacheNamespace'] as String?, @@ -6601,7 +6595,7 @@ class Method { return Method( apiKeyRequired: json['apiKeyRequired'] as bool?, authorizationScopes: (json['authorizationScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authorizationType: json['authorizationType'] as String?, @@ -6827,7 +6821,7 @@ class Models { factory Models.fromJson(Map json) { return Models( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Model.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -6870,7 +6864,7 @@ class MutualTlsAuthentication { truststoreUri: json['truststoreUri'] as String?, truststoreVersion: json['truststoreVersion'] as String?, truststoreWarnings: (json['truststoreWarnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7100,7 +7094,7 @@ class RequestValidators { factory RequestValidators.fromJson(Map json) { return RequestValidators( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RequestValidator.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -7159,7 +7153,7 @@ class Resources { factory Resources.fromJson(Map json) { return Resources( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -7252,7 +7246,7 @@ class RestApi { apiKeySource: (json['apiKeySource'] as String?)?.let(ApiKeySourceType.fromString), binaryMediaTypes: (json['binaryMediaTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdDate: timeStampFromJson(json['createdDate']), @@ -7271,7 +7265,7 @@ class RestApi { ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7293,7 +7287,7 @@ class RestApis { factory RestApis.fromJson(Map json) { return RestApis( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RestApi.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -7381,7 +7375,7 @@ class SdkType { factory SdkType.fromJson(Map json) { return SdkType( configurationProperties: (json['configurationProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SdkConfigurationProperty.fromJson(e as Map)) .toList(), @@ -7406,7 +7400,7 @@ class SdkTypes { factory SdkTypes.fromJson(Map json) { return SdkTypes( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SdkType.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -7589,7 +7583,7 @@ class Stages { factory Stages.fromJson(Map json) { return Stages( item: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Stage.fromJson(e as Map)) .toList(), ); @@ -7669,9 +7663,9 @@ class TestInvokeAuthorizerResponse { factory TestInvokeAuthorizerResponse.fromJson(Map json) { return TestInvokeAuthorizerResponse( - authorization: (json['authorization'] as Map?)?.map( - (k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + authorization: (json['authorization'] as Map?)?.map((k, + e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), claims: (json['claims'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), clientStatus: json['clientStatus'] as int?, @@ -7721,7 +7715,7 @@ class TestInvokeMethodResponse { log: json['log'] as String?, multiValueHeaders: (json['multiValueHeaders'] as Map?) ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + k, (e as List).nonNulls.map((e) => e as String).toList())), status: json['status'] as int?, ); } @@ -7845,9 +7839,8 @@ class Usage { items: (json['values'] as Map?)?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as int).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as int).toList()) .toList())), position: json['position'] as String?, startDate: json['startDate'] as String?, @@ -7907,7 +7900,7 @@ class UsagePlan { factory UsagePlan.fromJson(Map json) { return UsagePlan( apiStages: (json['apiStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiStage.fromJson(e as Map)) .toList(), description: json['description'] as String?, @@ -7973,7 +7966,7 @@ class UsagePlanKeys { factory UsagePlanKeys.fromJson(Map json) { return UsagePlanKeys( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsagePlanKey.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -7995,7 +7988,7 @@ class UsagePlans { factory UsagePlans.fromJson(Map json) { return UsagePlans( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsagePlan.fromJson(e as Map)) .toList(), position: json['position'] as String?, @@ -8054,7 +8047,7 @@ class VpcLink { tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), targetArns: (json['targetArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8092,7 +8085,7 @@ class VpcLinks { factory VpcLinks.fromJson(Map json) { return VpcLinks( items: (json['item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcLink.fromJson(e as Map)) .toList(), position: json['position'] as String?, diff --git a/generated/aws_apigateway_api/pubspec.yaml b/generated/aws_apigateway_api/pubspec.yaml index 5cc35af20..9f9a9c1f5 100644 --- a/generated/aws_apigateway_api/pubspec.yaml +++ b/generated/aws_apigateway_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_apigat protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_apigatewaymanagementapi_api/pubspec.yaml b/generated/aws_apigatewaymanagementapi_api/pubspec.yaml index c13ecdefe..9db042c05 100644 --- a/generated/aws_apigatewaymanagementapi_api/pubspec.yaml +++ b/generated/aws_apigatewaymanagementapi_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_apigat protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_apigatewayv2_api/lib/apigatewayv2-2018-11-29.dart b/generated/aws_apigatewayv2_api/lib/apigatewayv2-2018-11-29.dart index 0252ccdeb..bd4116628 100644 --- a/generated/aws_apigatewayv2_api/lib/apigatewayv2-2018-11-29.dart +++ b/generated/aws_apigatewayv2_api/lib/apigatewayv2-2018-11-29.dart @@ -3500,14 +3500,14 @@ class Api { disableExecuteApiEndpoint: json['disableExecuteApiEndpoint'] as bool?, disableSchemaValidation: json['disableSchemaValidation'] as bool?, importInfo: (json['importInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3681,7 +3681,7 @@ class Authorizer { authorizerUri: json['authorizerUri'] as String?, enableSimpleResponses: json['enableSimpleResponses'] as bool?, identitySource: (json['identitySource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identityValidationExpression: @@ -3783,19 +3783,19 @@ class Cors { return Cors( allowCredentials: json['allowCredentials'] as bool?, allowHeaders: (json['allowHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allowMethods: (json['allowMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allowOrigins: (json['allowOrigins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), exposeHeaders: (json['exposeHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxAge: json['maxAge'] as int?, @@ -3949,7 +3949,7 @@ class CreateApiResponse { disableExecuteApiEndpoint: json['disableExecuteApiEndpoint'] as bool?, disableSchemaValidation: json['disableSchemaValidation'] as bool?, importInfo: (json['importInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -3960,7 +3960,7 @@ class CreateApiResponse { ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4079,7 +4079,7 @@ class CreateAuthorizerResponse { authorizerUri: json['authorizerUri'] as String?, enableSimpleResponses: json['enableSimpleResponses'] as bool?, identitySource: (json['identitySource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identityValidationExpression: @@ -4164,7 +4164,7 @@ class CreateDomainNameResponse { json['apiMappingSelectionExpression'] as String?, domainName: json['domainName'] as String?, domainNameConfigurations: (json['domainNameConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainNameConfiguration.fromJson(e as Map)) .toList(), @@ -4612,7 +4612,7 @@ class CreateRouteResult { apiGatewayManaged: json['apiGatewayManaged'] as bool?, apiKeyRequired: json['apiKeyRequired'] as bool?, authorizationScopes: (json['authorizationScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authorizationType: (json['authorizationType'] as String?) @@ -4818,11 +4818,11 @@ class CreateVpcLinkResponse { createdDate: timeStampFromJson(json['createdDate']), name: json['name'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -4937,7 +4937,7 @@ class DomainName { apiMappingSelectionExpression: json['apiMappingSelectionExpression'] as String?, domainNameConfigurations: (json['domainNameConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainNameConfiguration.fromJson(e as Map)) .toList(), @@ -5150,7 +5150,7 @@ class GetApiMappingsResponse { factory GetApiMappingsResponse.fromJson(Map json) { return GetApiMappingsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiMapping.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5257,7 +5257,7 @@ class GetApiResponse { disableExecuteApiEndpoint: json['disableExecuteApiEndpoint'] as bool?, disableSchemaValidation: json['disableSchemaValidation'] as bool?, importInfo: (json['importInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -5268,7 +5268,7 @@ class GetApiResponse { ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5291,7 +5291,7 @@ class GetApisResponse { factory GetApisResponse.fromJson(Map json) { return GetApisResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Api.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5411,7 +5411,7 @@ class GetAuthorizerResponse { authorizerUri: json['authorizerUri'] as String?, enableSimpleResponses: json['enableSimpleResponses'] as bool?, identitySource: (json['identitySource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identityValidationExpression: @@ -5441,7 +5441,7 @@ class GetAuthorizersResponse { factory GetAuthorizersResponse.fromJson(Map json) { return GetAuthorizersResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Authorizer.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5506,7 +5506,7 @@ class GetDeploymentsResponse { factory GetDeploymentsResponse.fromJson(Map json) { return GetDeploymentsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Deployment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5544,7 +5544,7 @@ class GetDomainNameResponse { json['apiMappingSelectionExpression'] as String?, domainName: json['domainName'] as String?, domainNameConfigurations: (json['domainNameConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainNameConfiguration.fromJson(e as Map)) .toList(), @@ -5574,7 +5574,7 @@ class GetDomainNamesResponse { factory GetDomainNamesResponse.fromJson(Map json) { return GetDomainNamesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainName.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5916,7 +5916,7 @@ class GetIntegrationResponsesResponse { factory GetIntegrationResponsesResponse.fromJson(Map json) { return GetIntegrationResponsesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegrationResponse.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5940,7 +5940,7 @@ class GetIntegrationsResponse { factory GetIntegrationsResponse.fromJson(Map json) { return GetIntegrationsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Integration.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6015,7 +6015,7 @@ class GetModelsResponse { factory GetModelsResponse.fromJson(Map json) { return GetModelsResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Model.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6102,7 +6102,7 @@ class GetRouteResult { apiGatewayManaged: json['apiGatewayManaged'] as bool?, apiKeyRequired: json['apiKeyRequired'] as bool?, authorizationScopes: (json['authorizationScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authorizationType: (json['authorizationType'] as String?) @@ -6179,7 +6179,7 @@ class GetRouteResponsesResponse { factory GetRouteResponsesResponse.fromJson(Map json) { return GetRouteResponsesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteResponse.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6203,7 +6203,7 @@ class GetRoutesResponse { factory GetRoutesResponse.fromJson(Map json) { return GetRoutesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6327,7 +6327,7 @@ class GetStagesResponse { factory GetStagesResponse.fromJson(Map json) { return GetStagesResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Stage.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6395,11 +6395,11 @@ class GetVpcLinkResponse { createdDate: timeStampFromJson(json['createdDate']), name: json['name'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -6430,7 +6430,7 @@ class GetVpcLinksResponse { factory GetVpcLinksResponse.fromJson(Map json) { return GetVpcLinksResponse( items: (json['items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcLink.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6537,7 +6537,7 @@ class ImportApiResponse { disableExecuteApiEndpoint: json['disableExecuteApiEndpoint'] as bool?, disableSchemaValidation: json['disableSchemaValidation'] as bool?, importInfo: (json['importInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -6548,7 +6548,7 @@ class ImportApiResponse { ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6917,7 +6917,7 @@ class JWTConfiguration { factory JWTConfiguration.fromJson(Map json) { return JWTConfiguration( audience: (json['audience'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), issuer: json['issuer'] as String?, @@ -7023,7 +7023,7 @@ class MutualTlsAuthentication { truststoreUri: json['truststoreUri'] as String?, truststoreVersion: json['truststoreVersion'] as String?, truststoreWarnings: (json['truststoreWarnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7216,7 +7216,7 @@ class ReimportApiResponse { disableExecuteApiEndpoint: json['disableExecuteApiEndpoint'] as bool?, disableSchemaValidation: json['disableSchemaValidation'] as bool?, importInfo: (json['importInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -7227,7 +7227,7 @@ class ReimportApiResponse { ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7315,7 +7315,7 @@ class Route { apiGatewayManaged: json['apiGatewayManaged'] as bool?, apiKeyRequired: json['apiKeyRequired'] as bool?, authorizationScopes: (json['authorizationScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authorizationType: (json['authorizationType'] as String?) @@ -7731,7 +7731,7 @@ class UpdateApiResponse { disableExecuteApiEndpoint: json['disableExecuteApiEndpoint'] as bool?, disableSchemaValidation: json['disableSchemaValidation'] as bool?, importInfo: (json['importInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -7742,7 +7742,7 @@ class UpdateApiResponse { ?.map((k, e) => MapEntry(k, e as String)), version: json['version'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7861,7 +7861,7 @@ class UpdateAuthorizerResponse { authorizerUri: json['authorizerUri'] as String?, enableSimpleResponses: json['enableSimpleResponses'] as bool?, identitySource: (json['identitySource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identityValidationExpression: @@ -7946,7 +7946,7 @@ class UpdateDomainNameResponse { json['apiMappingSelectionExpression'] as String?, domainName: json['domainName'] as String?, domainNameConfigurations: (json['domainNameConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainNameConfiguration.fromJson(e as Map)) .toList(), @@ -8394,7 +8394,7 @@ class UpdateRouteResult { apiGatewayManaged: json['apiGatewayManaged'] as bool?, apiKeyRequired: json['apiKeyRequired'] as bool?, authorizationScopes: (json['authorizationScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authorizationType: (json['authorizationType'] as String?) @@ -8600,11 +8600,11 @@ class UpdateVpcLinkResponse { createdDate: timeStampFromJson(json['createdDate']), name: json['name'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -8664,13 +8664,11 @@ class VpcLink { return VpcLink( name: json['name'] as String, securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcLinkId: json['vpcLinkId'] as String, createdDate: timeStampFromJson(json['createdDate']), tags: (json['tags'] as Map?) diff --git a/generated/aws_apigatewayv2_api/pubspec.yaml b/generated/aws_apigatewayv2_api/pubspec.yaml index ff45a66c7..64a251932 100644 --- a/generated/aws_apigatewayv2_api/pubspec.yaml +++ b/generated/aws_apigatewayv2_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_apigat protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_appconfig_api/lib/appconfig-2019-10-09.dart b/generated/aws_appconfig_api/lib/appconfig-2019-10-09.dart index 7125b3830..7fc9b60a9 100644 --- a/generated/aws_appconfig_api/lib/appconfig-2019-10-09.dart +++ b/generated/aws_appconfig_api/lib/appconfig-2019-10-09.dart @@ -2388,7 +2388,7 @@ class Applications { factory Applications.fromJson(Map json) { return Applications( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2525,7 +2525,7 @@ class ConfigurationProfile { retrievalRoleArn: json['RetrievalRoleArn'] as String?, type: json['Type'] as String?, validators: (json['Validators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Validator.fromJson(e as Map)) .toList(), ); @@ -2578,7 +2578,7 @@ class ConfigurationProfileSummary { name: json['Name'] as String?, type: json['Type'] as String?, validatorTypes: (json['ValidatorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidatorType.fromString((e as String))) .toList(), ); @@ -2601,7 +2601,7 @@ class ConfigurationProfiles { factory ConfigurationProfiles.fromJson(Map json) { return ConfigurationProfiles( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationProfileSummary.fromJson(e as Map)) .toList(), @@ -2717,7 +2717,7 @@ class Deployment { return Deployment( applicationId: json['ApplicationId'] as String?, appliedExtensions: (json['AppliedExtensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppliedExtension.fromJson(e as Map)) .toList(), completedAt: timeStampFromJson(json['CompletedAt']), @@ -2731,7 +2731,7 @@ class Deployment { description: json['Description'] as String?, environmentId: json['EnvironmentId'] as String?, eventLog: (json['EventLog'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentEvent.fromJson(e as Map)) .toList(), finalBakeTimeInMinutes: json['FinalBakeTimeInMinutes'] as int?, @@ -2793,7 +2793,7 @@ class DeploymentEvent { factory DeploymentEvent.fromJson(Map json) { return DeploymentEvent( actionInvocations: (json['ActionInvocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionInvocation.fromJson(e as Map)) .toList(), description: json['Description'] as String?, @@ -2860,7 +2860,7 @@ class DeploymentStrategies { factory DeploymentStrategies.fromJson(Map json) { return DeploymentStrategies( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentStrategy.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3010,7 +3010,7 @@ class Deployments { factory Deployments.fromJson(Map json) { return Deployments( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3054,7 +3054,7 @@ class Environment { description: json['Description'] as String?, id: json['Id'] as String?, monitors: (json['Monitors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Monitor.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -3096,7 +3096,7 @@ class Environments { factory Environments.fromJson(Map json) { return Environments( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Environment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3145,7 +3145,7 @@ class Extension { MapEntry( ActionPoint.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => Action.fromJson(e as Map)) .toList())), arn: json['Arn'] as String?, @@ -3251,7 +3251,7 @@ class ExtensionAssociations { factory ExtensionAssociations.fromJson(Map json) { return ExtensionAssociations( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtensionAssociationSummary.fromJson(e as Map)) .toList(), @@ -3314,7 +3314,7 @@ class Extensions { factory Extensions.fromJson(Map json) { return Extensions( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtensionSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3444,7 +3444,7 @@ class HostedConfigurationVersions { factory HostedConfigurationVersions.fromJson(Map json) { return HostedConfigurationVersions( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HostedConfigurationVersionSummary.fromJson( e as Map)) .toList(), diff --git a/generated/aws_appconfig_api/pubspec.yaml b/generated/aws_appconfig_api/pubspec.yaml index 619fc9cdf..b23923891 100644 --- a/generated/aws_appconfig_api/pubspec.yaml +++ b/generated/aws_appconfig_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_appcon protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_application_autoscaling_api/lib/application-autoscaling-2016-02-06.dart b/generated/aws_application_autoscaling_api/lib/application-autoscaling-2016-02-06.dart index b4b2b804c..1e7439764 100644 --- a/generated/aws_application_autoscaling_api/lib/application-autoscaling-2016-02-06.dart +++ b/generated/aws_application_autoscaling_api/lib/application-autoscaling-2016-02-06.dart @@ -3268,12 +3268,12 @@ class CustomizedMetricSpecification { factory CustomizedMetricSpecification.fromJson(Map json) { return CustomizedMetricSpecification( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDimension.fromJson(e as Map)) .toList(), metricName: json['MetricName'] as String?, metrics: (json['Metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetTrackingMetricDataQuery.fromJson(e as Map)) .toList(), @@ -3343,7 +3343,7 @@ class DescribeScalableTargetsResponse { return DescribeScalableTargetsResponse( nextToken: json['NextToken'] as String?, scalableTargets: (json['ScalableTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalableTarget.fromJson(e as Map)) .toList(), ); @@ -3368,7 +3368,7 @@ class DescribeScalingActivitiesResponse { return DescribeScalingActivitiesResponse( nextToken: json['NextToken'] as String?, scalingActivities: (json['ScalingActivities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingActivity.fromJson(e as Map)) .toList(), ); @@ -3392,7 +3392,7 @@ class DescribeScalingPoliciesResponse { return DescribeScalingPoliciesResponse( nextToken: json['NextToken'] as String?, scalingPolicies: (json['ScalingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingPolicy.fromJson(e as Map)) .toList(), ); @@ -3416,7 +3416,7 @@ class DescribeScheduledActionsResponse { return DescribeScheduledActionsResponse( nextToken: json['NextToken'] as String?, scheduledActions: (json['ScheduledActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduledAction.fromJson(e as Map)) .toList(), ); @@ -3702,7 +3702,7 @@ class PutScalingPolicyResponse { return PutScalingPolicyResponse( policyARN: json['PolicyARN'] as String, alarms: (json['Alarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alarm.fromJson(e as Map)) .toList(), ); @@ -4338,7 +4338,7 @@ class ScalingActivity { details: json['Details'] as String?, endTime: timeStampFromJson(json['EndTime']), notScaledReasons: (json['NotScaledReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotScaledReason.fromJson(e as Map)) .toList(), statusMessage: json['StatusMessage'] as String?, @@ -4628,7 +4628,7 @@ class ScalingPolicy { serviceNamespace: ServiceNamespace.fromString((json['ServiceNamespace'] as String)), alarms: (json['Alarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alarm.fromJson(e as Map)) .toList(), stepScalingPolicyConfiguration: json['StepScalingPolicyConfiguration'] != @@ -5128,7 +5128,7 @@ class StepScalingPolicyConfiguration { ?.let(MetricAggregationType.fromString), minAdjustmentMagnitude: json['MinAdjustmentMagnitude'] as int?, stepAdjustments: (json['StepAdjustments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StepAdjustment.fromJson(e as Map)) .toList(), ); @@ -5241,7 +5241,7 @@ class TargetTrackingMetric { factory TargetTrackingMetric.fromJson(Map json) { return TargetTrackingMetric( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetTrackingMetricDimension.fromJson(e as Map)) .toList(), diff --git a/generated/aws_application_autoscaling_api/pubspec.yaml b/generated/aws_application_autoscaling_api/pubspec.yaml index beef549f7..d5333630c 100644 --- a/generated/aws_application_autoscaling_api/pubspec.yaml +++ b/generated/aws_application_autoscaling_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_applic protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_application_insights_api/lib/application-insights-2018-11-25.dart b/generated/aws_application_insights_api/lib/application-insights-2018-11-25.dart index 74b534095..16fbe3006 100644 --- a/generated/aws_application_insights_api/lib/application-insights-2018-11-25.dart +++ b/generated/aws_application_insights_api/lib/application-insights-2018-11-25.dart @@ -2073,7 +2073,7 @@ class DescribeComponentResponse { json['ApplicationComponent'] as Map) : null, resourceList: (json['ResourceList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2264,7 +2264,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applicationInfoList: (json['ApplicationInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2287,7 +2287,7 @@ class ListComponentsResponse { factory ListComponentsResponse.fromJson(Map json) { return ListComponentsResponse( applicationComponentList: (json['ApplicationComponentList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationComponent.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2315,7 +2315,7 @@ class ListConfigurationHistoryResponse { factory ListConfigurationHistoryResponse.fromJson(Map json) { return ListConfigurationHistoryResponse( eventList: (json['EventList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationEvent.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2348,7 +2348,7 @@ class ListLogPatternSetsResponse { return ListLogPatternSetsResponse( accountId: json['AccountId'] as String?, logPatternSets: (json['LogPatternSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -2382,7 +2382,7 @@ class ListLogPatternsResponse { return ListLogPatternsResponse( accountId: json['AccountId'] as String?, logPatterns: (json['LogPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogPattern.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2417,7 +2417,7 @@ class ListProblemsResponse { accountId: json['AccountId'] as String?, nextToken: json['NextToken'] as String?, problemList: (json['ProblemList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Problem.fromJson(e as Map)) .toList(), resourceGroupName: json['ResourceGroupName'] as String?, @@ -2438,7 +2438,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2461,7 +2461,7 @@ class ListWorkloadsResponse { return ListWorkloadsResponse( nextToken: json['NextToken'] as String?, workloadList: (json['WorkloadList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Workload.fromJson(e as Map)) .toList(), ); @@ -2918,7 +2918,7 @@ class RelatedObservations { factory RelatedObservations.fromJson(Map json) { return RelatedObservations( observationList: (json['ObservationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Observation.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_application_insights_api/pubspec.yaml b/generated/aws_application_insights_api/pubspec.yaml index bfe087c0b..222d40564 100644 --- a/generated/aws_application_insights_api/pubspec.yaml +++ b/generated/aws_application_insights_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_applic protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_appmesh_api/lib/appmesh-2018-10-01.dart b/generated/aws_appmesh_api/lib/appmesh-2018-10-01.dart index 5f6cb99f0..c274b1854 100644 --- a/generated/aws_appmesh_api/lib/appmesh-2018-10-01.dart +++ b/generated/aws_appmesh_api/lib/appmesh-2018-10-01.dart @@ -1217,11 +1217,11 @@ class VirtualNodeSpec { factory VirtualNodeSpec.fromJson(Map json) { return VirtualNodeSpec( backends: (json['backends'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), listeners: (json['listeners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Listener.fromJson(e as Map)) .toList(), serviceDiscovery: json['serviceDiscovery'] != null @@ -1299,7 +1299,7 @@ class HttpRouteAction { factory HttpRouteAction.fromJson(Map json) { return HttpRouteAction( weightedTargets: (json['weightedTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WeightedTarget.fromJson(e as Map)) .toList(), ); @@ -1375,7 +1375,7 @@ class ListMeshesOutput { factory ListMeshesOutput.fromJson(Map json) { return ListMeshesOutput( meshes: (json['meshes'] as List) - .whereNotNull() + .nonNulls .map((e) => MeshRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1503,7 +1503,7 @@ class ListRoutesOutput { factory ListRoutesOutput.fromJson(Map json) { return ListRoutesOutput( routes: (json['routes'] as List) - .whereNotNull() + .nonNulls .map((e) => RouteRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1598,7 +1598,7 @@ class ListVirtualNodesOutput { factory ListVirtualNodesOutput.fromJson(Map json) { return ListVirtualNodesOutput( virtualNodes: (json['virtualNodes'] as List) - .whereNotNull() + .nonNulls .map((e) => VirtualNodeRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1636,7 +1636,7 @@ class ListVirtualRoutersOutput { factory ListVirtualRoutersOutput.fromJson(Map json) { return ListVirtualRoutersOutput( virtualRouters: (json['virtualRouters'] as List) - .whereNotNull() + .nonNulls .map((e) => VirtualRouterRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1793,7 +1793,7 @@ class VirtualRouterSpec { factory VirtualRouterSpec.fromJson(Map json) { return VirtualRouterSpec( serviceNames: (json['serviceNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_appmesh_api/lib/appmesh-2019-01-25.dart b/generated/aws_appmesh_api/lib/appmesh-2019-01-25.dart index b1bd8a306..1a2e0774b 100644 --- a/generated/aws_appmesh_api/lib/appmesh-2019-01-25.dart +++ b/generated/aws_appmesh_api/lib/appmesh-2019-01-25.dart @@ -2362,7 +2362,7 @@ class AwsCloudMapServiceDiscovery { namespaceName: json['namespaceName'] as String, serviceName: json['serviceName'] as String, attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCloudMapInstanceAttribute.fromJson(e as Map)) .toList(), @@ -2495,10 +2495,7 @@ class ClientPolicyTls { json['certificate'] as Map) : null, enforce: json['enforce'] as bool?, - ports: (json['ports'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + ports: (json['ports'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } @@ -3358,7 +3355,7 @@ class GrpcGatewayRouteMatch { json['hostname'] as Map) : null, metadata: (json['metadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrpcGatewayRouteMetadata.fromJson(e as Map)) .toList(), @@ -3555,15 +3552,15 @@ class GrpcRetryPolicy { perRetryTimeout: Duration.fromJson(json['perRetryTimeout'] as Map), grpcRetryEvents: (json['grpcRetryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrpcRetryPolicyEvent.fromString((e as String))) .toList(), httpRetryEvents: (json['httpRetryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tcpRetryEvents: (json['tcpRetryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TcpRetryPolicyEvent.fromString((e as String))) .toList(), ); @@ -3667,7 +3664,7 @@ class GrpcRouteAction { factory GrpcRouteAction.fromJson(Map json) { return GrpcRouteAction( weightedTargets: (json['weightedTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => WeightedTarget.fromJson(e as Map)) .toList(), ); @@ -3706,7 +3703,7 @@ class GrpcRouteMatch { factory GrpcRouteMatch.fromJson(Map json) { return GrpcRouteMatch( metadata: (json['metadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrpcRouteMetadata.fromJson(e as Map)) .toList(), methodName: json['methodName'] as String?, @@ -4142,7 +4139,7 @@ class HttpGatewayRouteMatch { factory HttpGatewayRouteMatch.fromJson(Map json) { return HttpGatewayRouteMatch( headers: (json['headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => HttpGatewayRouteHeader.fromJson(e as Map)) .toList(), @@ -4157,7 +4154,7 @@ class HttpGatewayRouteMatch { port: json['port'] as int?, prefix: json['prefix'] as String?, queryParameters: (json['queryParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpQueryParameter.fromJson(e as Map)) .toList(), ); @@ -4418,11 +4415,11 @@ class HttpRetryPolicy { perRetryTimeout: Duration.fromJson(json['perRetryTimeout'] as Map), httpRetryEvents: (json['httpRetryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tcpRetryEvents: (json['tcpRetryEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TcpRetryPolicyEvent.fromString((e as String))) .toList(), ); @@ -4505,7 +4502,7 @@ class HttpRouteAction { factory HttpRouteAction.fromJson(Map json) { return HttpRouteAction( weightedTargets: (json['weightedTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => WeightedTarget.fromJson(e as Map)) .toList(), ); @@ -4603,7 +4600,7 @@ class HttpRouteMatch { factory HttpRouteMatch.fromJson(Map json) { return HttpRouteMatch( headers: (json['headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpRouteHeader.fromJson(e as Map)) .toList(), method: (json['method'] as String?)?.let(HttpMethod.fromString), @@ -4613,7 +4610,7 @@ class HttpRouteMatch { port: json['port'] as int?, prefix: json['prefix'] as String?, queryParameters: (json['queryParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpQueryParameter.fromJson(e as Map)) .toList(), scheme: (json['scheme'] as String?)?.let(HttpScheme.fromString), @@ -4761,7 +4758,7 @@ class ListGatewayRoutesOutput { factory ListGatewayRoutesOutput.fromJson(Map json) { return ListGatewayRoutesOutput( gatewayRoutes: (json['gatewayRoutes'] as List) - .whereNotNull() + .nonNulls .map((e) => GatewayRouteRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4789,7 +4786,7 @@ class ListMeshesOutput { factory ListMeshesOutput.fromJson(Map json) { return ListMeshesOutput( meshes: (json['meshes'] as List) - .whereNotNull() + .nonNulls .map((e) => MeshRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4818,7 +4815,7 @@ class ListRoutesOutput { factory ListRoutesOutput.fromJson(Map json) { return ListRoutesOutput( routes: (json['routes'] as List) - .whereNotNull() + .nonNulls .map((e) => RouteRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4846,7 +4843,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['tags'] as List) - .whereNotNull() + .nonNulls .map((e) => TagRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4873,7 +4870,7 @@ class ListVirtualGatewaysOutput { factory ListVirtualGatewaysOutput.fromJson(Map json) { return ListVirtualGatewaysOutput( virtualGateways: (json['virtualGateways'] as List) - .whereNotNull() + .nonNulls .map((e) => VirtualGatewayRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4901,7 +4898,7 @@ class ListVirtualNodesOutput { factory ListVirtualNodesOutput.fromJson(Map json) { return ListVirtualNodesOutput( virtualNodes: (json['virtualNodes'] as List) - .whereNotNull() + .nonNulls .map((e) => VirtualNodeRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4929,7 +4926,7 @@ class ListVirtualRoutersOutput { factory ListVirtualRoutersOutput.fromJson(Map json) { return ListVirtualRoutersOutput( virtualRouters: (json['virtualRouters'] as List) - .whereNotNull() + .nonNulls .map((e) => VirtualRouterRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4957,7 +4954,7 @@ class ListVirtualServicesOutput { factory ListVirtualServicesOutput.fromJson(Map json) { return ListVirtualServicesOutput( virtualServices: (json['virtualServices'] as List) - .whereNotNull() + .nonNulls .map((e) => VirtualServiceRef.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5420,7 +5417,7 @@ class LoggingFormat { factory LoggingFormat.fromJson(Map json) { return LoggingFormat( json: (json['json'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JsonFormatRef.fromJson(e as Map)) .toList(), text: json['text'] as String?, @@ -6072,10 +6069,7 @@ class SubjectAlternativeNameMatchers { factory SubjectAlternativeNameMatchers.fromJson(Map json) { return SubjectAlternativeNameMatchers( - exact: (json['exact'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + exact: (json['exact'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -6224,7 +6218,7 @@ class TcpRouteAction { factory TcpRouteAction.fromJson(Map json) { return TcpRouteAction( weightedTargets: (json['weightedTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => WeightedTarget.fromJson(e as Map)) .toList(), ); @@ -6345,7 +6339,7 @@ class TlsValidationContextAcmTrust { factory TlsValidationContextAcmTrust.fromJson(Map json) { return TlsValidationContextAcmTrust( certificateAuthorityArns: (json['certificateAuthorityArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -6651,10 +6645,7 @@ class VirtualGatewayClientPolicyTls { json['certificate'] as Map) : null, enforce: json['enforce'] as bool?, - ports: (json['ports'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + ports: (json['ports'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } @@ -7501,7 +7492,7 @@ class VirtualGatewaySpec { factory VirtualGatewaySpec.fromJson(Map json) { return VirtualGatewaySpec( listeners: (json['listeners'] as List) - .whereNotNull() + .nonNulls .map( (e) => VirtualGatewayListener.fromJson(e as Map)) .toList(), @@ -7613,7 +7604,7 @@ class VirtualGatewayTlsValidationContextAcmTrust { Map json) { return VirtualGatewayTlsValidationContextAcmTrust( certificateAuthorityArns: (json['certificateAuthorityArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -8037,11 +8028,11 @@ class VirtualNodeSpec { json['backendDefaults'] as Map) : null, backends: (json['backends'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Backend.fromJson(e as Map)) .toList(), listeners: (json['listeners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Listener.fromJson(e as Map)) .toList(), logging: json['logging'] != null @@ -8285,7 +8276,7 @@ class VirtualRouterSpec { factory VirtualRouterSpec.fromJson(Map json) { return VirtualRouterSpec( listeners: (json['listeners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VirtualRouterListener.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_appmesh_api/pubspec.yaml b/generated/aws_appmesh_api/pubspec.yaml index c770571dd..c9dbeb79d 100644 --- a/generated/aws_appmesh_api/pubspec.yaml +++ b/generated/aws_appmesh_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_appmes protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_appstream_api/lib/appstream-2016-12-01.dart b/generated/aws_appstream_api/lib/appstream-2016-12-01.dart index 03710cdd9..d85cbc49d 100644 --- a/generated/aws_appstream_api/lib/appstream-2016-12-01.dart +++ b/generated/aws_appstream_api/lib/appstream-2016-12-01.dart @@ -4498,7 +4498,7 @@ class AppBlock { arn: json['Arn'] as String, name: json['Name'] as String, appBlockErrors: (json['AppBlockErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetails.fromJson(e as Map)) .toList(), createdTime: timeStampFromJson(json['CreatedTime']), @@ -4599,11 +4599,11 @@ class AppBlockBuilder { state: AppBlockBuilderState.fromString((json['State'] as String)), vpcConfig: VpcConfig.fromJson(json['VpcConfig'] as Map), accessEndpoints: (json['AccessEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessEndpoint.fromJson(e as Map)) .toList(), appBlockBuilderErrors: (json['AppBlockBuilderErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceError.fromJson(e as Map)) .toList(), createdTime: timeStampFromJson(json['CreatedTime']), @@ -4832,7 +4832,7 @@ class Application { : null, iconURL: json['IconURL'] as String?, instanceFamilies: (json['InstanceFamilies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), launchParameters: json['LaunchParameters'] as String?, @@ -4841,7 +4841,7 @@ class Application { ?.map((k, e) => MapEntry(k, e as String)), name: json['Name'] as String?, platforms: (json['Platforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformType.fromString((e as String))) .toList(), workingDirectory: json['WorkingDirectory'] as String?, @@ -5029,7 +5029,7 @@ class BatchAssociateUserStackResult { factory BatchAssociateUserStackResult.fromJson(Map json) { return BatchAssociateUserStackResult( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserStackAssociationError.fromJson(e as Map)) .toList(), @@ -5048,7 +5048,7 @@ class BatchDisassociateUserStackResult { factory BatchDisassociateUserStackResult.fromJson(Map json) { return BatchDisassociateUserStackResult( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserStackAssociationError.fromJson(e as Map)) .toList(), @@ -5615,7 +5615,7 @@ class DescribeAppBlockBuilderAppBlockAssociationsResult { return DescribeAppBlockBuilderAppBlockAssociationsResult( appBlockBuilderAppBlockAssociations: (json['AppBlockBuilderAppBlockAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppBlockBuilderAppBlockAssociation.fromJson( e as Map)) .toList(), @@ -5640,7 +5640,7 @@ class DescribeAppBlockBuildersResult { factory DescribeAppBlockBuildersResult.fromJson(Map json) { return DescribeAppBlockBuildersResult( appBlockBuilders: (json['AppBlockBuilders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppBlockBuilder.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5664,7 +5664,7 @@ class DescribeAppBlocksResult { factory DescribeAppBlocksResult.fromJson(Map json) { return DescribeAppBlocksResult( appBlocks: (json['AppBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppBlock.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5690,7 +5690,7 @@ class DescribeApplicationFleetAssociationsResult { return DescribeApplicationFleetAssociationsResult( applicationFleetAssociations: (json['ApplicationFleetAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationFleetAssociation.fromJson(e as Map)) .toList(), @@ -5715,7 +5715,7 @@ class DescribeApplicationsResult { factory DescribeApplicationsResult.fromJson(Map json) { return DescribeApplicationsResult( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5741,7 +5741,7 @@ class DescribeDirectoryConfigsResult { factory DescribeDirectoryConfigsResult.fromJson(Map json) { return DescribeDirectoryConfigsResult( directoryConfigs: (json['DirectoryConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectoryConfig.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5765,7 +5765,7 @@ class DescribeEntitlementsResult { factory DescribeEntitlementsResult.fromJson(Map json) { return DescribeEntitlementsResult( entitlements: (json['Entitlements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entitlement.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5789,7 +5789,7 @@ class DescribeFleetsResult { factory DescribeFleetsResult.fromJson(Map json) { return DescribeFleetsResult( fleets: (json['Fleets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Fleet.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5813,7 +5813,7 @@ class DescribeImageBuildersResult { factory DescribeImageBuildersResult.fromJson(Map json) { return DescribeImageBuildersResult( imageBuilders: (json['ImageBuilders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageBuilder.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5843,7 +5843,7 @@ class DescribeImagePermissionsResult { name: json['Name'] as String?, nextToken: json['NextToken'] as String?, sharedImagePermissionsList: (json['SharedImagePermissionsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SharedImagePermissions.fromJson(e as Map)) .toList(), @@ -5867,7 +5867,7 @@ class DescribeImagesResult { factory DescribeImagesResult.fromJson(Map json) { return DescribeImagesResult( images: (json['Images'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Image.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5892,7 +5892,7 @@ class DescribeSessionsResult { return DescribeSessionsResult( nextToken: json['NextToken'] as String?, sessions: (json['Sessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Session.fromJson(e as Map)) .toList(), ); @@ -5916,7 +5916,7 @@ class DescribeStacksResult { return DescribeStacksResult( nextToken: json['NextToken'] as String?, stacks: (json['Stacks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Stack.fromJson(e as Map)) .toList(), ); @@ -5941,7 +5941,7 @@ class DescribeUsageReportSubscriptionsResult { return DescribeUsageReportSubscriptionsResult( nextToken: json['NextToken'] as String?, usageReportSubscriptions: (json['UsageReportSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageReportSubscription.fromJson(e as Map)) .toList(), @@ -5967,7 +5967,7 @@ class DescribeUserStackAssociationsResult { return DescribeUserStackAssociationsResult( nextToken: json['NextToken'] as String?, userStackAssociations: (json['UserStackAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserStackAssociation.fromJson(e as Map)) .toList(), ); @@ -5991,7 +5991,7 @@ class DescribeUsersResult { return DescribeUsersResult( nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -6044,7 +6044,7 @@ class DirectoryConfig { createdTime: timeStampFromJson(json['CreatedTime']), organizationalUnitDistinguishedNames: (json['OrganizationalUnitDistinguishedNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serviceAccountCredentials: json['ServiceAccountCredentials'] != null @@ -6201,7 +6201,7 @@ class Entitlement { appVisibility: AppVisibility.fromString((json['AppVisibility'] as String)), attributes: (json['Attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => EntitlementAttribute.fromJson(e as Map)) .toList(), name: json['Name'] as String, @@ -6593,7 +6593,7 @@ class Fleet { : null, enableDefaultInternetAccess: json['EnableDefaultInternetAccess'] as bool?, fleetErrors: (json['FleetErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetError.fromJson(e as Map)) .toList(), fleetType: (json['FleetType'] as String?)?.let(FleetType.fromString), @@ -6612,7 +6612,7 @@ class Fleet { : null, streamView: (json['StreamView'] as String?)?.let(StreamView.fromString), usbDeviceFilterStrings: (json['UsbDeviceFilterStrings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcConfig: json['VpcConfig'] != null @@ -6828,7 +6828,7 @@ class Image { return Image( name: json['Name'] as String, applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), appstreamAgentVersion: json['AppstreamAgentVersion'] as String?, @@ -6840,7 +6840,7 @@ class Image { imageBuilderName: json['ImageBuilderName'] as String?, imageBuilderSupported: json['ImageBuilderSupported'] as bool?, imageErrors: (json['ImageErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceError.fromJson(e as Map)) .toList(), imagePermissions: json['ImagePermissions'] != null @@ -7058,7 +7058,7 @@ class ImageBuilder { return ImageBuilder( name: json['Name'] as String, accessEndpoints: (json['AccessEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessEndpoint.fromJson(e as Map)) .toList(), appstreamAgentVersion: json['AppstreamAgentVersion'] as String?, @@ -7074,7 +7074,7 @@ class ImageBuilder { iamRoleArn: json['IamRoleArn'] as String?, imageArn: json['ImageArn'] as String?, imageBuilderErrors: (json['ImageBuilderErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceError.fromJson(e as Map)) .toList(), instanceType: json['InstanceType'] as String?, @@ -7283,10 +7283,8 @@ class ListAssociatedFleetsResult { factory ListAssociatedFleetsResult.fromJson(Map json) { return ListAssociatedFleetsResult( - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -7307,10 +7305,8 @@ class ListAssociatedStacksResult { factory ListAssociatedStacksResult.fromJson(Map json) { return ListAssociatedStacksResult( - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -7332,7 +7328,7 @@ class ListEntitledApplicationsResult { factory ListEntitledApplicationsResult.fromJson(Map json) { return ListEntitledApplicationsResult( entitledApplications: (json['EntitledApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitledApplication.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7824,7 +7820,7 @@ class Stack { return Stack( name: json['Name'] as String, accessEndpoints: (json['AccessEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessEndpoint.fromJson(e as Map)) .toList(), applicationSettings: json['ApplicationSettings'] != null @@ -7836,17 +7832,17 @@ class Stack { description: json['Description'] as String?, displayName: json['DisplayName'] as String?, embedHostDomains: (json['EmbedHostDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), feedbackURL: json['FeedbackURL'] as String?, redirectURL: json['RedirectURL'] as String?, stackErrors: (json['StackErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StackError.fromJson(e as Map)) .toList(), storageConnectors: (json['StorageConnectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageConnector.fromJson(e as Map)) .toList(), streamingExperienceSettings: json['StreamingExperienceSettings'] != null @@ -7854,7 +7850,7 @@ class Stack { json['StreamingExperienceSettings'] as Map) : null, userSettings: (json['UserSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserSetting.fromJson(e as Map)) .toList(), ); @@ -8027,10 +8023,8 @@ class StorageConnector { return StorageConnector( connectorType: StorageConnectorType.fromString((json['ConnectorType'] as String)), - domains: (json['Domains'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + domains: + (json['Domains'] as List?)?.nonNulls.map((e) => e as String).toList(), resourceIdentifier: json['ResourceIdentifier'] as String?, ); } @@ -8298,7 +8292,7 @@ class UsageReportSubscription { schedule: (json['Schedule'] as String?)?.let(UsageReportSchedule.fromString), subscriptionErrors: (json['SubscriptionErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LastReportGenerationExecutionError.fromJson( e as Map)) .toList(), @@ -8567,11 +8561,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_appstream_api/pubspec.yaml b/generated/aws_appstream_api/pubspec.yaml index 7e8b23154..dabe5b304 100644 --- a/generated/aws_appstream_api/pubspec.yaml +++ b/generated/aws_appstream_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_appstr protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_appsync_api/lib/appsync-2017-07-25.dart b/generated/aws_appsync_api/lib/appsync-2017-07-25.dart index cf595d52a..a12f3c7a2 100644 --- a/generated/aws_appsync_api/lib/appsync-2017-07-25.dart +++ b/generated/aws_appsync_api/lib/appsync-2017-07-25.dart @@ -3813,7 +3813,7 @@ class CachingConfig { return CachingConfig( ttl: json['ttl'] as int, cachingKeys: (json['cachingKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4273,12 +4273,12 @@ class DataSourceIntrospectionModel { factory DataSourceIntrospectionModel.fromJson(Map json) { return DataSourceIntrospectionModel( fields: (json['fields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceIntrospectionModelField.fromJson( e as Map)) .toList(), indexes: (json['indexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceIntrospectionModelIndex.fromJson( e as Map)) .toList(), @@ -4380,10 +4380,8 @@ class DataSourceIntrospectionModelFieldType { ? DataSourceIntrospectionModelFieldType.fromJson( json['type'] as Map) : null, - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -4404,10 +4402,8 @@ class DataSourceIntrospectionModelIndex { factory DataSourceIntrospectionModelIndex.fromJson( Map json) { return DataSourceIntrospectionModelIndex( - fields: (json['fields'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + fields: + (json['fields'] as List?)?.nonNulls.map((e) => e as String).toList(), name: json['name'] as String?, ); } @@ -4433,7 +4429,7 @@ class DataSourceIntrospectionResult { factory DataSourceIntrospectionResult.fromJson(Map json) { return DataSourceIntrospectionResult( models: (json['models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceIntrospectionModel.fromJson(e as Map)) .toList(), @@ -5042,7 +5038,7 @@ class EvaluateCodeErrorDetail { factory EvaluateCodeErrorDetail.fromJson(Map json) { return EvaluateCodeErrorDetail( codeErrors: (json['codeErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeError.fromJson(e as Map)) .toList(), message: json['message'] as String?, @@ -5074,10 +5070,7 @@ class EvaluateCodeResponse { json['error'] as Map) : null, evaluationResult: json['evaluationResult'] as String?, - logs: (json['logs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + logs: (json['logs'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -5105,10 +5098,7 @@ class EvaluateMappingTemplateResponse { ? ErrorDetail.fromJson(json['error'] as Map) : null, evaluationResult: json['evaluationResult'] as String?, - logs: (json['logs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + logs: (json['logs'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -5672,7 +5662,7 @@ class GraphqlApi { return GraphqlApi( additionalAuthenticationProviders: (json['additionalAuthenticationProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalAuthenticationProvider.fromJson( e as Map)) .toList(), @@ -5885,7 +5875,7 @@ class ListApiKeysResponse { factory ListApiKeysResponse.fromJson(Map json) { return ListApiKeysResponse( apiKeys: (json['apiKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiKey.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5909,7 +5899,7 @@ class ListDataSourcesResponse { factory ListDataSourcesResponse.fromJson(Map json) { return ListDataSourcesResponse( dataSources: (json['dataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5933,7 +5923,7 @@ class ListDomainNamesResponse { factory ListDomainNamesResponse.fromJson(Map json) { return ListDomainNamesResponse( domainNameConfigs: (json['domainNameConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainNameConfig.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5957,7 +5947,7 @@ class ListFunctionsResponse { factory ListFunctionsResponse.fromJson(Map json) { return ListFunctionsResponse( functions: (json['functions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionConfiguration.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5981,7 +5971,7 @@ class ListGraphqlApisResponse { factory ListGraphqlApisResponse.fromJson(Map json) { return ListGraphqlApisResponse( graphqlApis: (json['graphqlApis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GraphqlApi.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6005,7 +5995,7 @@ class ListResolversByFunctionResponse { return ListResolversByFunctionResponse( nextToken: json['nextToken'] as String?, resolvers: (json['resolvers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resolver.fromJson(e as Map)) .toList(), ); @@ -6029,7 +6019,7 @@ class ListResolversResponse { return ListResolversResponse( nextToken: json['nextToken'] as String?, resolvers: (json['resolvers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resolver.fromJson(e as Map)) .toList(), ); @@ -6055,7 +6045,7 @@ class ListSourceApiAssociationsResponse { nextToken: json['nextToken'] as String?, sourceApiAssociationSummaries: (json['sourceApiAssociationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceApiAssociationSummary.fromJson(e as Map)) .toList(), @@ -6096,7 +6086,7 @@ class ListTypesByAssociationResponse { return ListTypesByAssociationResponse( nextToken: json['nextToken'] as String?, types: (json['types'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Type.fromJson(e as Map)) .toList(), ); @@ -6120,7 +6110,7 @@ class ListTypesResponse { return ListTypesResponse( nextToken: json['nextToken'] as String?, types: (json['types'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Type.fromJson(e as Map)) .toList(), ); @@ -6349,7 +6339,7 @@ class PipelineConfig { factory PipelineConfig.fromJson(Map json) { return PipelineConfig( functions: (json['functions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_appsync_api/pubspec.yaml b/generated/aws_appsync_api/pubspec.yaml index ef210514a..89fade533 100644 --- a/generated/aws_appsync_api/pubspec.yaml +++ b/generated/aws_appsync_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_appsyn protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_athena_api/lib/athena-2017-05-18.dart b/generated/aws_athena_api/lib/athena-2017-05-18.dart index 60a6598be..de0f22e5a 100644 --- a/generated/aws_athena_api/lib/athena-2017-05-18.dart +++ b/generated/aws_athena_api/lib/athena-2017-05-18.dart @@ -3167,7 +3167,7 @@ class ApplicationDPUSizes { return ApplicationDPUSizes( applicationRuntimeId: json['ApplicationRuntimeId'] as String?, supportedDPUSizes: (json['SupportedDPUSizes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -3249,11 +3249,11 @@ class BatchGetNamedQueryOutput { factory BatchGetNamedQueryOutput.fromJson(Map json) { return BatchGetNamedQueryOutput( namedQueries: (json['NamedQueries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NamedQuery.fromJson(e as Map)) .toList(), unprocessedNamedQueryIds: (json['UnprocessedNamedQueryIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedNamedQueryId.fromJson(e as Map)) .toList(), @@ -3278,12 +3278,12 @@ class BatchGetPreparedStatementOutput { factory BatchGetPreparedStatementOutput.fromJson(Map json) { return BatchGetPreparedStatementOutput( preparedStatements: (json['PreparedStatements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PreparedStatement.fromJson(e as Map)) .toList(), unprocessedPreparedStatementNames: (json['UnprocessedPreparedStatementNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedPreparedStatementName.fromJson( e as Map)) .toList(), @@ -3306,12 +3306,12 @@ class BatchGetQueryExecutionOutput { factory BatchGetQueryExecutionOutput.fromJson(Map json) { return BatchGetQueryExecutionOutput( queryExecutions: (json['QueryExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryExecution.fromJson(e as Map)) .toList(), unprocessedQueryExecutionIds: (json['UnprocessedQueryExecutionIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedQueryExecutionId.fromJson(e as Map)) .toList(), @@ -3557,7 +3557,7 @@ class CapacityAssignment { factory CapacityAssignment.fromJson(Map json) { return CapacityAssignment( workGroupNames: (json['WorkGroupNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3593,7 +3593,7 @@ class CapacityAssignmentConfiguration { factory CapacityAssignmentConfiguration.fromJson(Map json) { return CapacityAssignmentConfiguration( capacityAssignments: (json['CapacityAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityAssignment.fromJson(e as Map)) .toList(), capacityReservationName: json['CapacityReservationName'] as String?, @@ -4885,7 +4885,7 @@ class ListApplicationDPUSizesOutput { factory ListApplicationDPUSizesOutput.fromJson(Map json) { return ListApplicationDPUSizesOutput( applicationDPUSizes: (json['ApplicationDPUSizes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationDPUSizes.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4912,7 +4912,7 @@ class ListCalculationExecutionsResponse { Map json) { return ListCalculationExecutionsResponse( calculations: (json['Calculations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CalculationSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4938,7 +4938,7 @@ class ListCapacityReservationsOutput { factory ListCapacityReservationsOutput.fromJson(Map json) { return ListCapacityReservationsOutput( capacityReservations: (json['CapacityReservations'] as List) - .whereNotNull() + .nonNulls .map((e) => CapacityReservation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4964,7 +4964,7 @@ class ListDataCatalogsOutput { factory ListDataCatalogsOutput.fromJson(Map json) { return ListDataCatalogsOutput( dataCatalogsSummary: (json['DataCatalogsSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataCatalogSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4990,7 +4990,7 @@ class ListDatabasesOutput { factory ListDatabasesOutput.fromJson(Map json) { return ListDatabasesOutput( databaseList: (json['DatabaseList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Database.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5016,7 +5016,7 @@ class ListEngineVersionsOutput { factory ListEngineVersionsOutput.fromJson(Map json) { return ListEngineVersionsOutput( engineVersions: (json['EngineVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngineVersion.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5047,7 +5047,7 @@ class ListExecutorsResponse { return ListExecutorsResponse( sessionId: json['SessionId'] as String, executorsSummary: (json['ExecutorsSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExecutorsSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5073,7 +5073,7 @@ class ListNamedQueriesOutput { factory ListNamedQueriesOutput.fromJson(Map json) { return ListNamedQueriesOutput( namedQueryIds: (json['NamedQueryIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -5100,7 +5100,7 @@ class ListNotebookMetadataOutput { return ListNotebookMetadataOutput( nextToken: json['NextToken'] as String?, notebookMetadataList: (json['NotebookMetadataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookMetadata.fromJson(e as Map)) .toList(), ); @@ -5125,7 +5125,7 @@ class ListNotebookSessionsResponse { factory ListNotebookSessionsResponse.fromJson(Map json) { return ListNotebookSessionsResponse( notebookSessionsList: (json['NotebookSessionsList'] as List) - .whereNotNull() + .nonNulls .map( (e) => NotebookSessionSummary.fromJson(e as Map)) .toList(), @@ -5153,7 +5153,7 @@ class ListPreparedStatementsOutput { return ListPreparedStatementsOutput( nextToken: json['NextToken'] as String?, preparedStatements: (json['PreparedStatements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PreparedStatementSummary.fromJson(e as Map)) .toList(), @@ -5177,7 +5177,7 @@ class ListQueryExecutionsOutput { return ListQueryExecutionsOutput( nextToken: json['NextToken'] as String?, queryExecutionIds: (json['QueryExecutionIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5203,7 +5203,7 @@ class ListSessionsResponse { return ListSessionsResponse( nextToken: json['NextToken'] as String?, sessions: (json['Sessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SessionSummary.fromJson(e as Map)) .toList(), ); @@ -5229,7 +5229,7 @@ class ListTableMetadataOutput { return ListTableMetadataOutput( nextToken: json['NextToken'] as String?, tableMetadataList: (json['TableMetadataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableMetadata.fromJson(e as Map)) .toList(), ); @@ -5252,7 +5252,7 @@ class ListTagsForResourceOutput { return ListTagsForResourceOutput( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5279,7 +5279,7 @@ class ListWorkGroupsOutput { return ListWorkGroupsOutput( nextToken: json['NextToken'] as String?, workGroups: (json['WorkGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkGroupSummary.fromJson(e as Map)) .toList(), ); @@ -5549,7 +5549,7 @@ class QueryExecution { json['EngineVersion'] as Map) : null, executionParameters: (json['ExecutionParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), query: json['Query'] as String?, @@ -5981,7 +5981,7 @@ class QueryStage { stageId: json['StageId'] as int?, state: json['State'] as String?, subStages: (json['SubStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryStage.fromJson(e as Map)) .toList(), ); @@ -6015,13 +6015,13 @@ class QueryStagePlanNode { factory QueryStagePlanNode.fromJson(Map json) { return QueryStagePlanNode( children: (json['Children'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryStagePlanNode.fromJson(e as Map)) .toList(), identifier: json['Identifier'] as String?, name: json['Name'] as String?, remoteSources: (json['RemoteSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6346,7 +6346,7 @@ class ResultSet { json['ResultSetMetadata'] as Map) : null, rows: (json['Rows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Row.fromJson(e as Map)) .toList(), ); @@ -6367,7 +6367,7 @@ class ResultSetMetadata { factory ResultSetMetadata.fromJson(Map json) { return ResultSetMetadata( columnInfo: (json['ColumnInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnInfo.fromJson(e as Map)) .toList(), ); @@ -6386,7 +6386,7 @@ class Row { factory Row.fromJson(Map json) { return Row( data: (json['Data'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Datum.fromJson(e as Map)) .toList(), ); @@ -6769,7 +6769,7 @@ class TableMetadata { return TableMetadata( name: json['Name'] as String, columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), createTime: timeStampFromJson(json['CreateTime']), @@ -6777,7 +6777,7 @@ class TableMetadata { parameters: (json['Parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), tableType: json['TableType'] as String?, diff --git a/generated/aws_athena_api/pubspec.yaml b/generated/aws_athena_api/pubspec.yaml index ed4bd06dd..5d3464b1c 100644 --- a/generated/aws_athena_api/pubspec.yaml +++ b/generated/aws_athena_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_athena protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_autoscaling_api/pubspec.yaml b/generated/aws_autoscaling_api/pubspec.yaml index e0f5049a9..04b6b824a 100644 --- a/generated/aws_autoscaling_api/pubspec.yaml +++ b/generated/aws_autoscaling_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_autosc protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_autoscaling_plans_api/lib/autoscaling-plans-2018-01-06.dart b/generated/aws_autoscaling_plans_api/lib/autoscaling-plans-2018-01-06.dart index b8ee9c306..6688a87ac 100644 --- a/generated/aws_autoscaling_plans_api/lib/autoscaling-plans-2018-01-06.dart +++ b/generated/aws_autoscaling_plans_api/lib/autoscaling-plans-2018-01-06.dart @@ -426,7 +426,7 @@ class ApplicationSource { return ApplicationSource( cloudFormationStackARN: json['CloudFormationStackARN'] as String?, tagFilters: (json['TagFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagFilter.fromJson(e as Map)) .toList(), ); @@ -529,7 +529,7 @@ class CustomizedLoadMetricSpecification { namespace: json['Namespace'] as String, statistic: MetricStatistic.fromString((json['Statistic'] as String)), dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDimension.fromJson(e as Map)) .toList(), unit: json['Unit'] as String?, @@ -611,7 +611,7 @@ class CustomizedScalingMetricSpecification { namespace: json['Namespace'] as String, statistic: MetricStatistic.fromString((json['Statistic'] as String)), dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDimension.fromJson(e as Map)) .toList(), unit: json['Unit'] as String?, @@ -681,7 +681,7 @@ class DescribeScalingPlanResourcesResponse { return DescribeScalingPlanResourcesResponse( nextToken: json['NextToken'] as String?, scalingPlanResources: (json['ScalingPlanResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingPlanResource.fromJson(e as Map)) .toList(), ); @@ -705,7 +705,7 @@ class DescribeScalingPlansResponse { return DescribeScalingPlansResponse( nextToken: json['NextToken'] as String?, scalingPlans: (json['ScalingPlans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingPlan.fromJson(e as Map)) .toList(), ); @@ -741,7 +741,7 @@ class GetScalingPlanResourceForecastDataResponse { Map json) { return GetScalingPlanResourceForecastDataResponse( datapoints: (json['Datapoints'] as List) - .whereNotNull() + .nonNulls .map((e) => Datapoint.fromJson(e as Map)) .toList(), ); @@ -1246,7 +1246,7 @@ class ScalingInstruction { ServiceNamespace.fromString((json['ServiceNamespace'] as String)), targetTrackingConfigurations: (json['TargetTrackingConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => TargetTrackingConfiguration.fromJson(e as Map)) .toList(), @@ -1423,7 +1423,7 @@ class ScalingPlan { applicationSource: ApplicationSource.fromJson( json['ApplicationSource'] as Map), scalingInstructions: (json['ScalingInstructions'] as List) - .whereNotNull() + .nonNulls .map((e) => ScalingInstruction.fromJson(e as Map)) .toList(), scalingPlanName: json['ScalingPlanName'] as String, @@ -1571,7 +1571,7 @@ class ScalingPlanResource { serviceNamespace: ServiceNamespace.fromString((json['ServiceNamespace'] as String)), scalingPolicies: (json['ScalingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingPolicy.fromJson(e as Map)) .toList(), scalingStatusMessage: json['ScalingStatusMessage'] as String?, @@ -1695,10 +1695,8 @@ class TagFilter { factory TagFilter.fromJson(Map json) { return TagFilter( key: json['Key'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } diff --git a/generated/aws_autoscaling_plans_api/pubspec.yaml b/generated/aws_autoscaling_plans_api/pubspec.yaml index 68c475252..a30f436c2 100644 --- a/generated/aws_autoscaling_plans_api/pubspec.yaml +++ b/generated/aws_autoscaling_plans_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_autosc protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_backup_api/lib/backup-2018-11-15.dart b/generated/aws_backup_api/lib/backup-2018-11-15.dart index 9dff41467..c82012504 100644 --- a/generated/aws_backup_api/lib/backup-2018-11-15.dart +++ b/generated/aws_backup_api/lib/backup-2018-11-15.dart @@ -4952,11 +4952,11 @@ class BackupPlan { return BackupPlan( backupPlanName: json['BackupPlanName'] as String, rules: (json['Rules'] as List) - .whereNotNull() + .nonNulls .map((e) => BackupRule.fromJson(e as Map)) .toList(), advancedBackupSettings: (json['AdvancedBackupSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedBackupSetting.fromJson(e as Map)) .toList(), ); @@ -5081,7 +5081,7 @@ class BackupPlansListMember { factory BackupPlansListMember.fromJson(Map json) { return BackupPlansListMember( advancedBackupSettings: (json['AdvancedBackupSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedBackupSetting.fromJson(e as Map)) .toList(), backupPlanArn: json['BackupPlanArn'] as String?, @@ -5194,7 +5194,7 @@ class BackupRule { targetBackupVaultName: json['TargetBackupVaultName'] as String, completionWindowMinutes: json['CompletionWindowMinutes'] as int?, copyActions: (json['CopyActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CopyAction.fromJson(e as Map)) .toList(), enableContinuousBackup: json['EnableContinuousBackup'] as bool?, @@ -5415,15 +5415,15 @@ class BackupSelection { ? Conditions.fromJson(json['Conditions'] as Map) : null, listOfTags: (json['ListOfTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Condition.fromJson(e as Map)) .toList(), notResources: (json['NotResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5815,19 +5815,19 @@ class Conditions { factory Conditions.fromJson(Map json) { return Conditions( stringEquals: (json['StringEquals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConditionParameter.fromJson(e as Map)) .toList(), stringLike: (json['StringLike'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConditionParameter.fromJson(e as Map)) .toList(), stringNotEquals: (json['StringNotEquals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConditionParameter.fromJson(e as Map)) .toList(), stringNotLike: (json['StringNotLike'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConditionParameter.fromJson(e as Map)) .toList(), ); @@ -5917,11 +5917,11 @@ class ControlScope { factory ControlScope.fromJson(Map json) { return ControlScope( complianceResourceIds: (json['ComplianceResourceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), complianceResourceTypes: (json['ComplianceResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as Map?) @@ -6285,7 +6285,7 @@ class CreateBackupPlanOutput { factory CreateBackupPlanOutput.fromJson(Map json) { return CreateBackupPlanOutput( advancedBackupSettings: (json['AdvancedBackupSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedBackupSetting.fromJson(e as Map)) .toList(), backupPlanArn: json['BackupPlanArn'] as String?, @@ -7043,7 +7043,7 @@ class DescribeFrameworkOutput { deploymentStatus: json['DeploymentStatus'] as String?, frameworkArn: json['FrameworkArn'] as String?, frameworkControls: (json['FrameworkControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FrameworkControl.fromJson(e as Map)) .toList(), frameworkDescription: json['FrameworkDescription'] as String?, @@ -7671,7 +7671,7 @@ class FrameworkControl { return FrameworkControl( controlName: json['ControlName'] as String, controlInputParameters: (json['ControlInputParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ControlInputParameter.fromJson(e as Map)) .toList(), controlScope: json['ControlScope'] != null @@ -7789,7 +7789,7 @@ class GetBackupPlanOutput { factory GetBackupPlanOutput.fromJson(Map json) { return GetBackupPlanOutput( advancedBackupSettings: (json['AdvancedBackupSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedBackupSetting.fromJson(e as Map)) .toList(), backupPlan: json['BackupPlan'] != null @@ -7913,7 +7913,7 @@ class GetBackupVaultNotificationsOutput { return GetBackupVaultNotificationsOutput( backupVaultArn: json['BackupVaultArn'] as String?, backupVaultEvents: (json['BackupVaultEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupVaultEvent.fromString((e as String))) .toList(), backupVaultName: json['BackupVaultName'] as String?, @@ -8141,7 +8141,7 @@ class GetSupportedResourceTypesOutput { factory GetSupportedResourceTypesOutput.fromJson(Map json) { return GetSupportedResourceTypesOutput( resourceTypes: (json['ResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8358,7 +8358,7 @@ class ListBackupJobSummariesOutput { return ListBackupJobSummariesOutput( aggregationPeriod: json['AggregationPeriod'] as String?, backupJobSummaries: (json['BackupJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8385,7 +8385,7 @@ class ListBackupJobsOutput { factory ListBackupJobsOutput.fromJson(Map json) { return ListBackupJobsOutput( backupJobs: (json['BackupJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupJob.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8412,7 +8412,7 @@ class ListBackupPlanTemplatesOutput { factory ListBackupPlanTemplatesOutput.fromJson(Map json) { return ListBackupPlanTemplatesOutput( backupPlanTemplatesList: (json['BackupPlanTemplatesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupPlanTemplatesListMember.fromJson(e as Map)) .toList(), @@ -8439,7 +8439,7 @@ class ListBackupPlanVersionsOutput { factory ListBackupPlanVersionsOutput.fromJson(Map json) { return ListBackupPlanVersionsOutput( backupPlanVersionsList: (json['BackupPlanVersionsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupPlansListMember.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8466,7 +8466,7 @@ class ListBackupPlansOutput { factory ListBackupPlansOutput.fromJson(Map json) { return ListBackupPlansOutput( backupPlansList: (json['BackupPlansList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupPlansListMember.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8493,7 +8493,7 @@ class ListBackupSelectionsOutput { factory ListBackupSelectionsOutput.fromJson(Map json) { return ListBackupSelectionsOutput( backupSelectionsList: (json['BackupSelectionsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupSelectionsListMember.fromJson(e as Map)) .toList(), @@ -8523,7 +8523,7 @@ class ListBackupVaultsOutput { factory ListBackupVaultsOutput.fromJson(Map json) { return ListBackupVaultsOutput( backupVaultList: (json['BackupVaultList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupVaultListMember.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8568,7 +8568,7 @@ class ListCopyJobSummariesOutput { return ListCopyJobSummariesOutput( aggregationPeriod: json['AggregationPeriod'] as String?, copyJobSummaries: (json['CopyJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CopyJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8595,7 +8595,7 @@ class ListCopyJobsOutput { factory ListCopyJobsOutput.fromJson(Map json) { return ListCopyJobsOutput( copyJobs: (json['CopyJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CopyJob.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8621,7 +8621,7 @@ class ListFrameworksOutput { factory ListFrameworksOutput.fromJson(Map json) { return ListFrameworksOutput( frameworks: (json['Frameworks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Framework.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8647,7 +8647,7 @@ class ListLegalHoldsOutput { factory ListLegalHoldsOutput.fromJson(Map json) { return ListLegalHoldsOutput( legalHolds: (json['LegalHolds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LegalHold.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8676,7 +8676,7 @@ class ListProtectedResourcesByBackupVaultOutput { return ListProtectedResourcesByBackupVaultOutput( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectedResource.fromJson(e as Map)) .toList(), ); @@ -8704,7 +8704,7 @@ class ListProtectedResourcesOutput { return ListProtectedResourcesOutput( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectedResource.fromJson(e as Map)) .toList(), ); @@ -8732,7 +8732,7 @@ class ListRecoveryPointsByBackupVaultOutput { return ListRecoveryPointsByBackupVaultOutput( nextToken: json['NextToken'] as String?, recoveryPoints: (json['RecoveryPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryPointByBackupVault.fromJson(e as Map)) .toList(), @@ -8758,7 +8758,7 @@ class ListRecoveryPointsByLegalHoldOutput { return ListRecoveryPointsByLegalHoldOutput( nextToken: json['NextToken'] as String?, recoveryPoints: (json['RecoveryPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryPointMember.fromJson(e as Map)) .toList(), ); @@ -8789,7 +8789,7 @@ class ListRecoveryPointsByResourceOutput { return ListRecoveryPointsByResourceOutput( nextToken: json['NextToken'] as String?, recoveryPoints: (json['RecoveryPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryPointByResource.fromJson(e as Map)) .toList(), @@ -8814,7 +8814,7 @@ class ListReportJobsOutput { return ListReportJobsOutput( nextToken: json['NextToken'] as String?, reportJobs: (json['ReportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportJob.fromJson(e as Map)) .toList(), ); @@ -8841,7 +8841,7 @@ class ListReportPlansOutput { return ListReportPlansOutput( nextToken: json['NextToken'] as String?, reportPlans: (json['ReportPlans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportPlan.fromJson(e as Map)) .toList(), ); @@ -8886,7 +8886,7 @@ class ListRestoreJobSummariesOutput { aggregationPeriod: json['AggregationPeriod'] as String?, nextToken: json['NextToken'] as String?, restoreJobSummaries: (json['RestoreJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RestoreJobSummary.fromJson(e as Map)) .toList(), ); @@ -8914,7 +8914,7 @@ class ListRestoreJobsByProtectedResourceOutput { return ListRestoreJobsByProtectedResourceOutput( nextToken: json['NextToken'] as String?, restoreJobs: (json['RestoreJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RestoreJobsListMember.fromJson(e as Map)) .toList(), ); @@ -8941,7 +8941,7 @@ class ListRestoreJobsOutput { return ListRestoreJobsOutput( nextToken: json['NextToken'] as String?, restoreJobs: (json['RestoreJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RestoreJobsListMember.fromJson(e as Map)) .toList(), ); @@ -8966,7 +8966,7 @@ class ListRestoreTestingPlansOutput { factory ListRestoreTestingPlansOutput.fromJson(Map json) { return ListRestoreTestingPlansOutput( restoreTestingPlans: (json['RestoreTestingPlans'] as List) - .whereNotNull() + .nonNulls .map((e) => RestoreTestingPlanForList.fromJson(e as Map)) .toList(), @@ -8995,7 +8995,7 @@ class ListRestoreTestingSelectionsOutput { Map json) { return ListRestoreTestingSelectionsOutput( restoreTestingSelections: (json['RestoreTestingSelections'] as List) - .whereNotNull() + .nonNulls .map((e) => RestoreTestingSelectionForList.fromJson( e as Map)) .toList(), @@ -9101,11 +9101,11 @@ class ProtectedResourceConditions { factory ProtectedResourceConditions.fromJson(Map json) { return ProtectedResourceConditions( stringEquals: (json['StringEquals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValue.fromJson(e as Map)) .toList(), stringNotEquals: (json['StringNotEquals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValue.fromJson(e as Map)) .toList(), ); @@ -9485,11 +9485,11 @@ class RecoveryPointSelection { ? DateRange.fromJson(json['DateRange'] as Map) : null, resourceIdentifiers: (json['ResourceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vaultNames: (json['VaultNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9551,10 +9551,8 @@ class ReportDeliveryChannel { factory ReportDeliveryChannel.fromJson(Map json) { return ReportDeliveryChannel( s3BucketName: json['S3BucketName'] as String, - formats: (json['Formats'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + formats: + (json['Formats'] as List?)?.nonNulls.map((e) => e as String).toList(), s3KeyPrefix: json['S3KeyPrefix'] as String?, ); } @@ -9587,10 +9585,8 @@ class ReportDestination { factory ReportDestination.fromJson(Map json) { return ReportDestination( s3BucketName: json['S3BucketName'] as String?, - s3Keys: (json['S3Keys'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + s3Keys: + (json['S3Keys'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -9798,22 +9794,20 @@ class ReportSetting { return ReportSetting( reportTemplate: json['ReportTemplate'] as String, accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), frameworkArns: (json['FrameworkArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), numberOfFrameworks: json['NumberOfFrameworks'] as int?, organizationUnits: (json['OrganizationUnits'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - regions: (json['Regions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + regions: + (json['Regions'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -10399,15 +10393,15 @@ class RestoreTestingRecoveryPointSelection { algorithm: (json['Algorithm'] as String?) ?.let(RestoreTestingRecoveryPointSelectionAlgorithm.fromString), excludeVaults: (json['ExcludeVaults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includeVaults: (json['IncludeVaults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), recoveryPointTypes: (json['RecoveryPointTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RestoreTestingRecoveryPointType.fromString((e as String))) .toList(), selectionWindowDays: json['SelectionWindowDays'] as int?, @@ -10677,7 +10671,7 @@ class RestoreTestingSelectionForGet { json['RestoreTestingSelectionName'] as String, creatorRequestId: json['CreatorRequestId'] as String?, protectedResourceArns: (json['ProtectedResourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), protectedResourceConditions: json['ProtectedResourceConditions'] != null @@ -10977,7 +10971,7 @@ class UpdateBackupPlanOutput { factory UpdateBackupPlanOutput.fromJson(Map json) { return UpdateBackupPlanOutput( advancedBackupSettings: (json['AdvancedBackupSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedBackupSetting.fromJson(e as Map)) .toList(), backupPlanArn: json['BackupPlanArn'] as String?, diff --git a/generated/aws_backup_api/pubspec.yaml b/generated/aws_backup_api/pubspec.yaml index d051664a1..db7ea6a49 100644 --- a/generated/aws_backup_api/pubspec.yaml +++ b/generated/aws_backup_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_backup protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_batch_api/lib/batch-2016-08-10.dart b/generated/aws_batch_api/lib/batch-2016-08-10.dart index d85e57c94..2e839e153 100644 --- a/generated/aws_batch_api/lib/batch-2016-08-10.dart +++ b/generated/aws_batch_api/lib/batch-2016-08-10.dart @@ -1867,7 +1867,7 @@ class AttemptContainerDetail { exitCode: json['exitCode'] as int?, logStreamName: json['logStreamName'] as String?, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), reason: json['reason'] as String?, @@ -1917,7 +1917,7 @@ class AttemptDetail { statusReason: json['statusReason'] as String?, stoppedAt: json['stoppedAt'] as int?, taskProperties: (json['taskProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttemptEcsTaskDetails.fromJson(e as Map)) .toList(), ); @@ -1947,7 +1947,7 @@ class AttemptEcsTaskDetails { return AttemptEcsTaskDetails( containerInstanceArn: json['containerInstanceArn'] as String?, containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttemptTaskContainerDetails.fromJson(e as Map)) .toList(), @@ -1993,7 +1993,7 @@ class AttemptTaskContainerDetails { logStreamName: json['logStreamName'] as String?, name: json['name'] as String?, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), reason: json['reason'] as String?, @@ -2596,24 +2596,22 @@ class ComputeResource { factory ComputeResource.fromJson(Map json) { return ComputeResource( maxvCpus: json['maxvCpus'] as int, - subnets: (json['subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['subnets'] as List).nonNulls.map((e) => e as String).toList(), type: CRType.fromString((json['type'] as String)), allocationStrategy: (json['allocationStrategy'] as String?) ?.let(CRAllocationStrategy.fromString), bidPercentage: json['bidPercentage'] as int?, desiredvCpus: json['desiredvCpus'] as int?, ec2Configuration: (json['ec2Configuration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ec2Configuration.fromJson(e as Map)) .toList(), ec2KeyPair: json['ec2KeyPair'] as String?, imageId: json['imageId'] as String?, instanceRole: json['instanceRole'] as String?, instanceTypes: (json['instanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), launchTemplate: json['launchTemplate'] != null @@ -2623,7 +2621,7 @@ class ComputeResource { minvCpus: json['minvCpus'] as int?, placementGroup: json['placementGroup'] as String?, securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), spotIamFleetRole: json['spotIamFleetRole'] as String?, @@ -3337,13 +3335,11 @@ class ContainerDetail { factory ContainerDetail.fromJson(Map json) { return ContainerDetail( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), containerInstanceArn: json['containerInstanceArn'] as String?, environment: (json['environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), ephemeralStorage: json['ephemeralStorage'] != null @@ -3370,7 +3366,7 @@ class ContainerDetail { logStreamName: json['logStreamName'] as String?, memory: json['memory'] as int?, mountPoints: (json['mountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MountPoint.fromJson(e as Map)) .toList(), networkConfiguration: json['networkConfiguration'] != null @@ -3378,7 +3374,7 @@ class ContainerDetail { json['networkConfiguration'] as Map) : null, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), privileged: json['privileged'] as bool?, @@ -3389,7 +3385,7 @@ class ContainerDetail { json['repositoryCredentials'] as Map) : null, resourceRequirements: (json['resourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceRequirement.fromJson(e as Map)) .toList(), runtimePlatform: json['runtimePlatform'] != null @@ -3397,18 +3393,18 @@ class ContainerDetail { json['runtimePlatform'] as Map) : null, secrets: (json['secrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), taskArn: json['taskArn'] as String?, ulimits: (json['ulimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ulimit.fromJson(e as Map)) .toList(), user: json['user'] as String?, vcpus: json['vcpus'] as int?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -3796,12 +3792,10 @@ class ContainerProperties { factory ContainerProperties.fromJson(Map json) { return ContainerProperties( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), environment: (json['environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), ephemeralStorage: json['ephemeralStorage'] != null @@ -3826,7 +3820,7 @@ class ContainerProperties { : null, memory: json['memory'] as int?, mountPoints: (json['mountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MountPoint.fromJson(e as Map)) .toList(), networkConfiguration: json['networkConfiguration'] != null @@ -3840,7 +3834,7 @@ class ContainerProperties { json['repositoryCredentials'] as Map) : null, resourceRequirements: (json['resourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceRequirement.fromJson(e as Map)) .toList(), runtimePlatform: json['runtimePlatform'] != null @@ -3848,17 +3842,17 @@ class ContainerProperties { json['runtimePlatform'] as Map) : null, secrets: (json['secrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), ulimits: (json['ulimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ulimit.fromJson(e as Map)) .toList(), user: json['user'] as String?, vcpus: json['vcpus'] as int?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -4061,7 +4055,7 @@ class DescribeComputeEnvironmentsResponse { Map json) { return DescribeComputeEnvironmentsResponse( computeEnvironments: (json['computeEnvironments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComputeEnvironmentDetail.fromJson(e as Map)) .toList(), @@ -4089,7 +4083,7 @@ class DescribeJobDefinitionsResponse { factory DescribeJobDefinitionsResponse.fromJson(Map json) { return DescribeJobDefinitionsResponse( jobDefinitions: (json['jobDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobDefinition.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4116,7 +4110,7 @@ class DescribeJobQueuesResponse { factory DescribeJobQueuesResponse.fromJson(Map json) { return DescribeJobQueuesResponse( jobQueues: (json['jobQueues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobQueueDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4135,7 +4129,7 @@ class DescribeJobsResponse { factory DescribeJobsResponse.fromJson(Map json) { return DescribeJobsResponse( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobDetail.fromJson(e as Map)) .toList(), ); @@ -4154,7 +4148,7 @@ class DescribeSchedulingPoliciesResponse { Map json) { return DescribeSchedulingPoliciesResponse( schedulingPolicies: (json['schedulingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SchedulingPolicyDetail.fromJson(e as Map)) .toList(), @@ -4191,7 +4185,7 @@ class Device { hostPath: json['hostPath'] as String, containerPath: json['containerPath'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceCgroupPermission.fromString((e as String))) .toList(), ); @@ -4510,7 +4504,7 @@ class EcsProperties { factory EcsProperties.fromJson(Map json) { return EcsProperties( taskProperties: (json['taskProperties'] as List) - .whereNotNull() + .nonNulls .map((e) => EcsTaskProperties.fromJson(e as Map)) .toList(), ); @@ -4536,7 +4530,7 @@ class EcsPropertiesDetail { factory EcsPropertiesDetail.fromJson(Map json) { return EcsPropertiesDetail( taskProperties: (json['taskProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EcsTaskDetails.fromJson(e as Map)) .toList(), ); @@ -4638,7 +4632,7 @@ class EcsTaskDetails { return EcsTaskDetails( containerInstanceArn: json['containerInstanceArn'] as String?, containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskContainerDetails.fromJson(e as Map)) .toList(), ephemeralStorage: json['ephemeralStorage'] != null @@ -4660,7 +4654,7 @@ class EcsTaskDetails { taskArn: json['taskArn'] as String?, taskRoleArn: json['taskRoleArn'] as String?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -4771,7 +4765,7 @@ class EcsTaskProperties { factory EcsTaskProperties.fromJson(Map json) { return EcsTaskProperties( containers: (json['containers'] as List) - .whereNotNull() + .nonNulls .map((e) => TaskContainerProperties.fromJson(e as Map)) .toList(), @@ -4793,7 +4787,7 @@ class EcsTaskProperties { : null, taskRoleArn: json['taskRoleArn'] as String?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -4897,12 +4891,12 @@ class EksAttemptDetail { factory EksAttemptDetail.fromJson(Map json) { return EksAttemptDetail( containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksAttemptContainerDetail.fromJson(e as Map)) .toList(), initContainers: (json['initContainers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksAttemptContainerDetail.fromJson(e as Map)) .toList(), @@ -5066,16 +5060,11 @@ class EksContainer { factory EksContainer.fromJson(Map json) { return EksContainer( image: json['image'] as String, - args: (json['args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['args'] as List?)?.nonNulls.map((e) => e as String).toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), env: (json['env'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainerEnvironmentVariable.fromJson( e as Map)) .toList(), @@ -5090,7 +5079,7 @@ class EksContainer { json['securityContext'] as Map) : null, volumeMounts: (json['volumeMounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainerVolumeMount.fromJson(e as Map)) .toList(), @@ -5221,16 +5210,11 @@ class EksContainerDetail { factory EksContainerDetail.fromJson(Map json) { return EksContainerDetail( - args: (json['args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['args'] as List?)?.nonNulls.map((e) => e as String).toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), env: (json['env'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainerEnvironmentVariable.fromJson( e as Map)) .toList(), @@ -5248,7 +5232,7 @@ class EksContainerDetail { json['securityContext'] as Map) : null, volumeMounts: (json['volumeMounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainerVolumeMount.fromJson(e as Map)) .toList(), @@ -5784,17 +5768,17 @@ class EksPodProperties { factory EksPodProperties.fromJson(Map json) { return EksPodProperties( containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainer.fromJson(e as Map)) .toList(), dnsPolicy: json['dnsPolicy'] as String?, hostNetwork: json['hostNetwork'] as bool?, imagePullSecrets: (json['imagePullSecrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImagePullSecret.fromJson(e as Map)) .toList(), initContainers: (json['initContainers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainer.fromJson(e as Map)) .toList(), metadata: json['metadata'] != null @@ -5803,7 +5787,7 @@ class EksPodProperties { serviceAccountName: json['serviceAccountName'] as String?, shareProcessNamespace: json['shareProcessNamespace'] as bool?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksVolume.fromJson(e as Map)) .toList(), ); @@ -5931,17 +5915,17 @@ class EksPodPropertiesDetail { factory EksPodPropertiesDetail.fromJson(Map json) { return EksPodPropertiesDetail( containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainerDetail.fromJson(e as Map)) .toList(), dnsPolicy: json['dnsPolicy'] as String?, hostNetwork: json['hostNetwork'] as bool?, imagePullSecrets: (json['imagePullSecrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImagePullSecret.fromJson(e as Map)) .toList(), initContainers: (json['initContainers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksContainerDetail.fromJson(e as Map)) .toList(), metadata: json['metadata'] != null @@ -5952,7 +5936,7 @@ class EksPodPropertiesDetail { serviceAccountName: json['serviceAccountName'] as String?, shareProcessNamespace: json['shareProcessNamespace'] as bool?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksVolume.fromJson(e as Map)) .toList(), ); @@ -6295,7 +6279,7 @@ class FairsharePolicy { computeReservation: json['computeReservation'] as int?, shareDecaySeconds: json['shareDecaySeconds'] as int?, shareDistribution: (json['shareDistribution'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ShareAttributes.fromJson(e as Map)) .toList(), ); @@ -6365,7 +6349,7 @@ class FrontOfQueueDetail { factory FrontOfQueueDetail.fromJson(Map json) { return FrontOfQueueDetail( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FrontOfQueueJobSummary.fromJson(e as Map)) .toList(), @@ -6655,7 +6639,7 @@ class JobDefinition { parameters: (json['parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), platformCapabilities: (json['platformCapabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformCapability.fromString((e as String))) .toList(), propagateTags: json['propagateTags'] as bool?, @@ -6909,7 +6893,7 @@ class JobDetail { json['arrayProperties'] as Map) : null, attempts: (json['attempts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttemptDetail.fromJson(e as Map)) .toList(), container: json['container'] != null @@ -6917,7 +6901,7 @@ class JobDetail { : null, createdAt: json['createdAt'] as int?, dependsOn: (json['dependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobDependency.fromJson(e as Map)) .toList(), ecsProperties: json['ecsProperties'] != null @@ -6925,7 +6909,7 @@ class JobDetail { json['ecsProperties'] as Map) : null, eksAttempts: (json['eksAttempts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksAttemptDetail.fromJson(e as Map)) .toList(), eksProperties: json['eksProperties'] != null @@ -6945,7 +6929,7 @@ class JobDetail { parameters: (json['parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), platformCapabilities: (json['platformCapabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformCapability.fromString((e as String))) .toList(), propagateTags: json['propagateTags'] as bool?, @@ -7036,7 +7020,7 @@ class JobQueueDetail { factory JobQueueDetail.fromJson(Map json) { return JobQueueDetail( computeEnvironmentOrder: (json['computeEnvironmentOrder'] as List) - .whereNotNull() + .nonNulls .map((e) => ComputeEnvironmentOrder.fromJson(e as Map)) .toList(), @@ -7045,7 +7029,7 @@ class JobQueueDetail { priority: json['priority'] as int, state: JQState.fromString((json['state'] as String)), jobStateTimeLimitActions: (json['jobStateTimeLimitActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobStateTimeLimitAction.fromJson(e as Map)) .toList(), @@ -7530,7 +7514,7 @@ class LinuxParameters { factory LinuxParameters.fromJson(Map json) { return LinuxParameters( devices: (json['devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Device.fromJson(e as Map)) .toList(), initProcessEnabled: json['initProcessEnabled'] as bool?, @@ -7538,7 +7522,7 @@ class LinuxParameters { sharedMemorySize: json['sharedMemorySize'] as int?, swappiness: json['swappiness'] as int?, tmpfs: (json['tmpfs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tmpfs.fromJson(e as Map)) .toList(), ); @@ -7581,7 +7565,7 @@ class ListJobsResponse { factory ListJobsResponse.fromJson(Map json) { return ListJobsResponse( jobSummaryList: (json['jobSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => JobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7609,7 +7593,7 @@ class ListSchedulingPoliciesResponse { return ListSchedulingPoliciesResponse( nextToken: json['nextToken'] as String?, schedulingPolicies: (json['schedulingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchedulingPolicyListingDetail.fromJson(e as Map)) .toList(), @@ -7721,7 +7705,7 @@ class LogConfiguration { options: (json['options'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), secretOptions: (json['secretOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), ); @@ -7960,7 +7944,7 @@ class NodeProperties { return NodeProperties( mainNode: json['mainNode'] as int, nodeRangeProperties: (json['nodeRangeProperties'] as List) - .whereNotNull() + .nonNulls .map((e) => NodeRangeProperty.fromJson(e as Map)) .toList(), numNodes: json['numNodes'] as int, @@ -8105,7 +8089,7 @@ class NodeRangeProperty { json['ecsProperties'] as Map) : null, instanceTypes: (json['instanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8402,7 +8386,7 @@ class RetryStrategy { return RetryStrategy( attempts: json['attempts'] as int?, evaluateOnExit: (json['evaluateOnExit'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluateOnExit.fromJson(e as Map)) .toList(), ); @@ -9006,17 +8990,15 @@ class TaskContainerDetails { factory TaskContainerDetails.fromJson(Map json) { return TaskContainerDetails( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), dependsOn: (json['dependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskContainerDependency.fromJson(e as Map)) .toList(), environment: (json['environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), essential: json['essential'] as bool?, @@ -9032,12 +9014,12 @@ class TaskContainerDetails { : null, logStreamName: json['logStreamName'] as String?, mountPoints: (json['mountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MountPoint.fromJson(e as Map)) .toList(), name: json['name'] as String?, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), privileged: json['privileged'] as bool?, @@ -9048,15 +9030,15 @@ class TaskContainerDetails { json['repositoryCredentials'] as Map) : null, resourceRequirements: (json['resourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceRequirement.fromJson(e as Map)) .toList(), secrets: (json['secrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), ulimits: (json['ulimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ulimit.fromJson(e as Map)) .toList(), user: json['user'] as String?, @@ -9374,17 +9356,15 @@ class TaskContainerProperties { factory TaskContainerProperties.fromJson(Map json) { return TaskContainerProperties( image: json['image'] as String, - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), dependsOn: (json['dependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskContainerDependency.fromJson(e as Map)) .toList(), environment: (json['environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), essential: json['essential'] as bool?, @@ -9397,7 +9377,7 @@ class TaskContainerProperties { json['logConfiguration'] as Map) : null, mountPoints: (json['mountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MountPoint.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -9408,15 +9388,15 @@ class TaskContainerProperties { json['repositoryCredentials'] as Map) : null, resourceRequirements: (json['resourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceRequirement.fromJson(e as Map)) .toList(), secrets: (json['secrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), ulimits: (json['ulimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ulimit.fromJson(e as Map)) .toList(), user: json['user'] as String?, @@ -9529,7 +9509,7 @@ class Tmpfs { containerPath: json['containerPath'] as String, size: json['size'] as int, mountOptions: (json['mountOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_batch_api/pubspec.yaml b/generated/aws_batch_api/pubspec.yaml index be7bdc7a6..6e12c89a8 100644 --- a/generated/aws_batch_api/pubspec.yaml +++ b/generated/aws_batch_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_batch_ protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_budgets_api/lib/budgets-2016-10-20.dart b/generated/aws_budgets_api/lib/budgets-2016-10-20.dart index 868279068..fb18ebf03 100644 --- a/generated/aws_budgets_api/lib/budgets-2016-10-20.dart +++ b/generated/aws_budgets_api/lib/budgets-2016-10-20.dart @@ -1385,7 +1385,7 @@ class Action { NotificationType.fromString((json['NotificationType'] as String)), status: ActionStatus.fromString((json['Status'] as String)), subscribers: (json['Subscribers'] as List) - .whereNotNull() + .nonNulls .map((e) => Subscriber.fromJson(e as Map)) .toList(), ); @@ -1766,8 +1766,7 @@ class Budget { json['CalculatedSpend'] as Map) : null, costFilters: (json['CostFilters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), costTypes: json['CostTypes'] != null ? CostTypes.fromJson(json['CostTypes'] as Map) : null, @@ -1825,7 +1824,7 @@ class BudgetNotificationsForAccount { return BudgetNotificationsForAccount( budgetName: json['BudgetName'] as String?, notifications: (json['Notifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Notification.fromJson(e as Map)) .toList(), ); @@ -1865,13 +1864,12 @@ class BudgetPerformanceHistory { budgetType: (json['BudgetType'] as String?)?.let(BudgetType.fromString), budgetedAndActualAmountsList: (json['BudgetedAndActualAmountsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BudgetedAndActualAmounts.fromJson(e as Map)) .toList(), costFilters: (json['CostFilters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), costTypes: json['CostTypes'] != null ? CostTypes.fromJson(json['CostTypes'] as Map) : null, @@ -2279,7 +2277,7 @@ class DescribeBudgetActionHistoriesResponse { Map json) { return DescribeBudgetActionHistoriesResponse( actionHistories: (json['ActionHistories'] as List) - .whereNotNull() + .nonNulls .map((e) => ActionHistory.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2323,7 +2321,7 @@ class DescribeBudgetActionsForAccountResponse { Map json) { return DescribeBudgetActionsForAccountResponse( actions: (json['Actions'] as List) - .whereNotNull() + .nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2345,7 +2343,7 @@ class DescribeBudgetActionsForBudgetResponse { Map json) { return DescribeBudgetActionsForBudgetResponse( actions: (json['Actions'] as List) - .whereNotNull() + .nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2368,7 +2366,7 @@ class DescribeBudgetNotificationsForAccountResponse { return DescribeBudgetNotificationsForAccountResponse( budgetNotificationsForAccount: (json['BudgetNotificationsForAccount'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BudgetNotificationsForAccount.fromJson(e as Map)) .toList(), @@ -2441,7 +2439,7 @@ class DescribeBudgetsResponse { factory DescribeBudgetsResponse.fromJson(Map json) { return DescribeBudgetsResponse( budgets: (json['Budgets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Budget.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2468,7 +2466,7 @@ class DescribeNotificationsForBudgetResponse { return DescribeNotificationsForBudgetResponse( nextToken: json['NextToken'] as String?, notifications: (json['Notifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Notification.fromJson(e as Map)) .toList(), ); @@ -2494,7 +2492,7 @@ class DescribeSubscribersForNotificationResponse { return DescribeSubscribersForNotificationResponse( nextToken: json['NextToken'] as String?, subscribers: (json['Subscribers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subscriber.fromJson(e as Map)) .toList(), ); @@ -2654,18 +2652,12 @@ class IamActionDefinition { factory IamActionDefinition.fromJson(Map json) { return IamActionDefinition( policyArn: json['PolicyArn'] as String, - groups: (json['Groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - roles: (json['Roles'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - users: (json['Users'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['Groups'] as List?)?.nonNulls.map((e) => e as String).toList(), + roles: + (json['Roles'] as List?)?.nonNulls.map((e) => e as String).toList(), + users: + (json['Users'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2694,7 +2686,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), ); @@ -2896,10 +2888,8 @@ class ScpActionDefinition { factory ScpActionDefinition.fromJson(Map json) { return ScpActionDefinition( policyId: json['PolicyId'] as String, - targetIds: (json['TargetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + targetIds: + (json['TargetIds'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -2990,7 +2980,7 @@ class SsmActionDefinition { actionSubType: ActionSubType.fromString((json['ActionSubType'] as String)), instanceIds: (json['InstanceIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), region: json['Region'] as String, diff --git a/generated/aws_budgets_api/pubspec.yaml b/generated/aws_budgets_api/pubspec.yaml index b4a54a2fa..24f374964 100644 --- a/generated/aws_budgets_api/pubspec.yaml +++ b/generated/aws_budgets_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_budget protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_ce_api/lib/ce-2017-10-25.dart b/generated/aws_ce_api/lib/ce-2017-10-25.dart index 674b1a757..9643571e3 100644 --- a/generated/aws_ce_api/lib/ce-2017-10-25.dart +++ b/generated/aws_ce_api/lib/ce-2017-10-25.dart @@ -3644,7 +3644,7 @@ class Anomaly { feedback: (json['Feedback'] as String?)?.let(AnomalyFeedbackType.fromString), rootCauses: (json['RootCauses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RootCause.fromJson(e as Map)) .toList(), ); @@ -3916,11 +3916,11 @@ class AnomalySubscription { frequency: AnomalySubscriptionFrequency.fromString( (json['Frequency'] as String)), monitorArnList: (json['MonitorArnList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), subscribers: (json['Subscribers'] as List) - .whereNotNull() + .nonNulls .map((e) => Subscriber.fromJson(e as Map)) .toList(), subscriptionName: json['SubscriptionName'] as String, @@ -4200,18 +4200,18 @@ class CostCategory { ruleVersion: CostCategoryRuleVersion.fromString((json['RuleVersion'] as String)), rules: (json['Rules'] as List) - .whereNotNull() + .nonNulls .map((e) => CostCategoryRule.fromJson(e as Map)) .toList(), defaultValue: json['DefaultValue'] as String?, effectiveEnd: json['EffectiveEnd'] as String?, processingStatus: (json['ProcessingStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostCategoryProcessingStatus.fromJson(e as Map)) .toList(), splitChargeRules: (json['SplitChargeRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostCategorySplitChargeRule.fromJson(e as Map)) .toList(), @@ -4347,14 +4347,12 @@ class CostCategoryReference { name: json['Name'] as String?, numberOfRules: json['NumberOfRules'] as int?, processingStatus: (json['ProcessingStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostCategoryProcessingStatus.fromJson(e as Map)) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -4516,12 +4514,10 @@ class CostCategorySplitChargeRule { method: CostCategorySplitChargeMethod.fromString((json['Method'] as String)), source: json['Source'] as String, - targets: (json['Targets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['Targets'] as List).nonNulls.map((e) => e as String).toList(), parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostCategorySplitChargeRuleParameter.fromJson( e as Map)) .toList(), @@ -4560,10 +4556,8 @@ class CostCategorySplitChargeRuleParameter { return CostCategorySplitChargeRuleParameter( type: CostCategorySplitChargeRuleParameterType.fromString( (json['Type'] as String)), - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -4653,13 +4647,11 @@ class CostCategoryValues { return CostCategoryValues( key: json['Key'] as String?, matchOptions: (json['MatchOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchOption.fromString((e as String))) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4731,7 +4723,7 @@ class CoverageByTime { factory CoverageByTime.fromJson(Map json) { return CoverageByTime( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservationCoverageGroup.fromJson(e as Map)) .toList(), @@ -4967,7 +4959,7 @@ class CurrentInstance { savingsPlansCoveredHoursInLookbackPeriod: json['SavingsPlansCoveredHoursInLookbackPeriod'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagValues.fromJson(e as Map)) .toList(), totalRunningHoursInLookbackPeriod: @@ -5156,13 +5148,11 @@ class DimensionValues { return DimensionValues( key: (json['Key'] as String?)?.let(Dimension.fromString), matchOptions: (json['MatchOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchOption.fromString((e as String))) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -5684,7 +5674,7 @@ class Expression { factory Expression.fromJson(Map json) { return Expression( and: (json['And'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Expression.fromJson(e as Map)) .toList(), costCategories: json['CostCategories'] != null @@ -5698,7 +5688,7 @@ class Expression { ? Expression.fromJson(json['Not'] as Map) : null, or: (json['Or'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Expression.fromJson(e as Map)) .toList(), tags: json['Tags'] != null @@ -5861,7 +5851,7 @@ class GetAnomaliesResponse { factory GetAnomaliesResponse.fromJson(Map json) { return GetAnomaliesResponse( anomalies: (json['Anomalies'] as List) - .whereNotNull() + .nonNulls .map((e) => Anomaly.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -5887,7 +5877,7 @@ class GetAnomalyMonitorsResponse { factory GetAnomalyMonitorsResponse.fromJson(Map json) { return GetAnomalyMonitorsResponse( anomalyMonitors: (json['AnomalyMonitors'] as List) - .whereNotNull() + .nonNulls .map((e) => AnomalyMonitor.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -5913,7 +5903,7 @@ class GetAnomalySubscriptionsResponse { factory GetAnomalySubscriptionsResponse.fromJson(Map json) { return GetAnomalySubscriptionsResponse( anomalySubscriptions: (json['AnomalySubscriptions'] as List) - .whereNotNull() + .nonNulls .map((e) => AnomalySubscription.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -5978,17 +5968,17 @@ class GetCostAndUsageResponse { factory GetCostAndUsageResponse.fromJson(Map json) { return GetCostAndUsageResponse( dimensionValueAttributes: (json['DimensionValueAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionValuesWithAttributes.fromJson(e as Map)) .toList(), groupDefinitions: (json['GroupDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupDefinition.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, resultsByTime: (json['ResultsByTime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResultByTime.fromJson(e as Map)) .toList(), ); @@ -6023,17 +6013,17 @@ class GetCostAndUsageWithResourcesResponse { Map json) { return GetCostAndUsageWithResourcesResponse( dimensionValueAttributes: (json['DimensionValueAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionValuesWithAttributes.fromJson(e as Map)) .toList(), groupDefinitions: (json['GroupDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupDefinition.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, resultsByTime: (json['ResultsByTime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResultByTime.fromJson(e as Map)) .toList(), ); @@ -6075,11 +6065,11 @@ class GetCostCategoriesResponse { returnSize: json['ReturnSize'] as int, totalSize: json['TotalSize'] as int, costCategoryNames: (json['CostCategoryNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), costCategoryValues: (json['CostCategoryValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -6105,7 +6095,7 @@ class GetCostForecastResponse { factory GetCostForecastResponse.fromJson(Map json) { return GetCostForecastResponse( forecastResultsByTime: (json['ForecastResultsByTime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ForecastResult.fromJson(e as Map)) .toList(), total: json['Total'] != null @@ -6275,7 +6265,7 @@ class GetDimensionValuesResponse { factory GetDimensionValuesResponse.fromJson(Map json) { return GetDimensionValuesResponse( dimensionValues: (json['DimensionValues'] as List) - .whereNotNull() + .nonNulls .map((e) => DimensionValuesWithAttributes.fromJson(e as Map)) .toList(), @@ -6307,7 +6297,7 @@ class GetReservationCoverageResponse { factory GetReservationCoverageResponse.fromJson(Map json) { return GetReservationCoverageResponse( coveragesByTime: (json['CoveragesByTime'] as List) - .whereNotNull() + .nonNulls .map((e) => CoverageByTime.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -6344,7 +6334,7 @@ class GetReservationPurchaseRecommendationResponse { : null, nextPageToken: json['NextPageToken'] as String?, recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservationPurchaseRecommendation.fromJson( e as Map)) .toList(), @@ -6374,7 +6364,7 @@ class GetReservationUtilizationResponse { Map json) { return GetReservationUtilizationResponse( utilizationsByTime: (json['UtilizationsByTime'] as List) - .whereNotNull() + .nonNulls .map((e) => UtilizationByTime.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -6428,7 +6418,7 @@ class GetRightsizingRecommendationResponse { : null, nextPageToken: json['NextPageToken'] as String?, rightsizingRecommendations: (json['RightsizingRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RightsizingRecommendation.fromJson(e as Map)) .toList(), @@ -6481,7 +6471,7 @@ class GetSavingsPlansCoverageResponse { factory GetSavingsPlansCoverageResponse.fromJson(Map json) { return GetSavingsPlansCoverageResponse( savingsPlansCoverages: (json['SavingsPlansCoverages'] as List) - .whereNotNull() + .nonNulls .map((e) => SavingsPlansCoverage.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6552,7 +6542,7 @@ class GetSavingsPlansUtilizationDetailsResponse { return GetSavingsPlansUtilizationDetailsResponse( savingsPlansUtilizationDetails: (json['SavingsPlansUtilizationDetails'] as List) - .whereNotNull() + .nonNulls .map((e) => SavingsPlansUtilizationDetail.fromJson(e as Map)) .toList(), @@ -6588,7 +6578,7 @@ class GetSavingsPlansUtilizationResponse { json['Total'] as Map), savingsPlansUtilizationsByTime: (json['SavingsPlansUtilizationsByTime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlansUtilizationByTime.fromJson(e as Map)) .toList(), @@ -6621,10 +6611,7 @@ class GetTagsResponse { factory GetTagsResponse.fromJson(Map json) { return GetTagsResponse( returnSize: json['ReturnSize'] as int, - tags: (json['Tags'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tags: (json['Tags'] as List).nonNulls.map((e) => e as String).toList(), totalSize: json['TotalSize'] as int, nextPageToken: json['NextPageToken'] as String?, ); @@ -6648,7 +6635,7 @@ class GetUsageForecastResponse { factory GetUsageForecastResponse.fromJson(Map json) { return GetUsageForecastResponse( forecastResultsByTime: (json['ForecastResultsByTime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ForecastResult.fromJson(e as Map)) .toList(), total: json['Total'] != null @@ -6688,10 +6675,7 @@ class Group { factory Group.fromJson(Map json) { return Group( - keys: (json['Keys'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + keys: (json['Keys'] as List?)?.nonNulls.map((e) => e as String).toList(), metrics: (json['Metrics'] as Map?)?.map((k, e) => MapEntry(k, MetricValue.fromJson(e as Map))), ); @@ -6874,7 +6858,7 @@ class ListCostAllocationTagBackfillHistoryResponse { Map json) { return ListCostAllocationTagBackfillHistoryResponse( backfillRequests: (json['BackfillRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostAllocationTagBackfillRequest.fromJson( e as Map)) .toList(), @@ -6901,7 +6885,7 @@ class ListCostAllocationTagsResponse { factory ListCostAllocationTagsResponse.fromJson(Map json) { return ListCostAllocationTagsResponse( costAllocationTags: (json['CostAllocationTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostAllocationTag.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6928,7 +6912,7 @@ class ListCostCategoryDefinitionsResponse { Map json) { return ListCostCategoryDefinitionsResponse( costCategoryReferences: (json['CostCategoryReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostCategoryReference.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6952,7 +6936,7 @@ class ListSavingsPlansPurchaseRecommendationGenerationResponse { Map json) { return ListSavingsPlansPurchaseRecommendationGenerationResponse( generationSummaryList: (json['GenerationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GenerationSummary.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -6971,7 +6955,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), ); @@ -7104,7 +7088,7 @@ class ModifyRecommendationDetail { factory ModifyRecommendationDetail.fromJson(Map json) { return ModifyRecommendationDetail( targetInstances: (json['TargetInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetInstance.fromJson(e as Map)) .toList(), ); @@ -7488,7 +7472,7 @@ class RecommendationDetailData { lookbackPeriodInDays: (json['LookbackPeriodInDays'] as String?) ?.let(LookbackPeriodInDays.fromString), metricsOverLookbackPeriod: (json['MetricsOverLookbackPeriod'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationDetailHourlyMetrics.fromJson( e as Map)) .toList(), @@ -7777,7 +7761,7 @@ class ReservationPurchaseRecommendation { paymentOption: (json['PaymentOption'] as String?)?.let(PaymentOption.fromString), recommendationDetails: (json['RecommendationDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservationPurchaseRecommendationDetail.fromJson( e as Map)) .toList(), @@ -8138,7 +8122,7 @@ class ResultByTime { return ResultByTime( estimated: json['Estimated'] as bool?, groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), timePeriod: json['TimePeriod'] != null @@ -8189,7 +8173,7 @@ class RightsizingRecommendation { json['CurrentInstance'] as Map) : null, findingReasonCodes: (json['FindingReasonCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingReasonCode.fromString((e as String))) .toList(), modifyRecommendationDetail: json['ModifyRecommendationDetail'] != null @@ -8563,7 +8547,7 @@ class SavingsPlansPurchaseRecommendation { (json['PaymentOption'] as String?)?.let(PaymentOption.fromString), savingsPlansPurchaseRecommendationDetails: (json['SavingsPlansPurchaseRecommendationDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlansPurchaseRecommendationDetail.fromJson( e as Map)) .toList(), @@ -9239,13 +9223,11 @@ class TagValues { return TagValues( key: json['Key'] as String?, matchOptions: (json['MatchOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchOption.fromString((e as String))) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -9310,7 +9292,7 @@ class TargetInstance { json['ExpectedResourceUtilization'] as Map) : null, platformDifferences: (json['PlatformDifferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformDifference.fromString((e as String))) .toList(), resourceDetails: json['ResourceDetails'] != null @@ -9467,7 +9449,7 @@ class UpdateCostAllocationTagsStatusResponse { Map json) { return UpdateCostAllocationTagsStatusResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateCostAllocationTagsStatusError.fromJson( e as Map)) .toList(), @@ -9517,7 +9499,7 @@ class UtilizationByTime { factory UtilizationByTime.fromJson(Map json) { return UtilizationByTime( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservationUtilizationGroup.fromJson(e as Map)) .toList(), diff --git a/generated/aws_ce_api/pubspec.yaml b/generated/aws_ce_api/pubspec.yaml index 1c797c02e..4bd20ee0b 100644 --- a/generated/aws_ce_api/pubspec.yaml +++ b/generated/aws_ce_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_ce_api protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_chime_api/lib/chime-2018-05-01.dart b/generated/aws_chime_api/lib/chime-2018-05-01.dart index e629b8d01..bb4371111 100644 --- a/generated/aws_chime_api/lib/chime-2018-05-01.dart +++ b/generated/aws_chime_api/lib/chime-2018-05-01.dart @@ -9267,11 +9267,11 @@ class Account { defaultLicense: (json['DefaultLicense'] as String?)?.let(License.fromString), signinDelegateGroups: (json['SigninDelegateGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SigninDelegateGroup.fromJson(e as Map)) .toList(), supportedLicenses: (json['SupportedLicenses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => License.fromString((e as String))) .toList(), ); @@ -9792,7 +9792,7 @@ class AssociatePhoneNumbersWithVoiceConnectorGroupResponse { Map json) { return AssociatePhoneNumbersWithVoiceConnectorGroupResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -9813,7 +9813,7 @@ class AssociatePhoneNumbersWithVoiceConnectorResponse { Map json) { return AssociatePhoneNumbersWithVoiceConnectorResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -9932,7 +9932,7 @@ class BatchChannelMemberships { ? Identity.fromJson(json['InvitedBy'] as Map) : null, members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Identity.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(ChannelMembershipType.fromString), @@ -9956,11 +9956,11 @@ class BatchCreateAttendeeResponse { factory BatchCreateAttendeeResponse.fromJson(Map json) { return BatchCreateAttendeeResponse( attendees: (json['Attendees'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attendee.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CreateAttendeeError.fromJson(e as Map)) .toList(), ); @@ -10016,7 +10016,7 @@ class BatchCreateChannelMembershipResponse { json['BatchChannelMemberships'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchCreateChannelMembershipError.fromJson( e as Map)) .toList(), @@ -10037,7 +10037,7 @@ class BatchCreateRoomMembershipResponse { Map json) { return BatchCreateRoomMembershipResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberError.fromJson(e as Map)) .toList(), ); @@ -10057,7 +10057,7 @@ class BatchDeletePhoneNumberResponse { factory BatchDeletePhoneNumberResponse.fromJson(Map json) { return BatchDeletePhoneNumberResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -10077,7 +10077,7 @@ class BatchSuspendUserResponse { factory BatchSuspendUserResponse.fromJson(Map json) { return BatchSuspendUserResponse( userErrors: (json['UserErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserError.fromJson(e as Map)) .toList(), ); @@ -10097,7 +10097,7 @@ class BatchUnsuspendUserResponse { factory BatchUnsuspendUserResponse.fromJson(Map json) { return BatchUnsuspendUserResponse( userErrors: (json['UserErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserError.fromJson(e as Map)) .toList(), ); @@ -10117,7 +10117,7 @@ class BatchUpdatePhoneNumberResponse { factory BatchUpdatePhoneNumberResponse.fromJson(Map json) { return BatchUpdatePhoneNumberResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -10137,7 +10137,7 @@ class BatchUpdateUserResponse { factory BatchUpdateUserResponse.fromJson(Map json) { return BatchUpdateUserResponse( userErrors: (json['UserErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserError.fromJson(e as Map)) .toList(), ); @@ -11281,11 +11281,11 @@ class CreateMeetingWithAttendeesResponse { Map json) { return CreateMeetingWithAttendeesResponse( attendees: (json['Attendees'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attendee.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CreateAttendeeError.fromJson(e as Map)) .toList(), meeting: json['Meeting'] != null @@ -11738,7 +11738,7 @@ class DisassociatePhoneNumbersFromVoiceConnectorGroupResponse { Map json) { return DisassociatePhoneNumbersFromVoiceConnectorGroupResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -11759,7 +11759,7 @@ class DisassociatePhoneNumbersFromVoiceConnectorResponse { Map json) { return DisassociatePhoneNumbersFromVoiceConnectorResponse( phoneNumberErrors: (json['PhoneNumberErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberError.fromJson(e as Map)) .toList(), ); @@ -11804,7 +11804,7 @@ class EmergencyCallingConfiguration { factory EmergencyCallingConfiguration.fromJson(Map json) { return EmergencyCallingConfiguration( dnis: (json['DNIS'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DNISEmergencyCallingConfiguration.fromJson( e as Map)) .toList(), @@ -12296,7 +12296,7 @@ class GetAppInstanceStreamingConfigurationsResponse { return GetAppInstanceStreamingConfigurationsResponse( appInstanceStreamingConfigurations: (json['AppInstanceStreamingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppInstanceStreamingConfiguration.fromJson( e as Map)) .toList(), @@ -12907,7 +12907,7 @@ class InviteUsersResponse { factory InviteUsersResponse.fromJson(Map json) { return InviteUsersResponse( invites: (json['Invites'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Invite.fromJson(e as Map)) .toList(), ); @@ -12945,7 +12945,7 @@ class ListAccountsResponse { factory ListAccountsResponse.fromJson(Map json) { return ListAccountsResponse( accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Account.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12973,7 +12973,7 @@ class ListAppInstanceAdminsResponse { factory ListAppInstanceAdminsResponse.fromJson(Map json) { return ListAppInstanceAdminsResponse( appInstanceAdmins: (json['AppInstanceAdmins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppInstanceAdminSummary.fromJson(e as Map)) .toList(), @@ -13004,7 +13004,7 @@ class ListAppInstanceUsersResponse { return ListAppInstanceUsersResponse( appInstanceArn: json['AppInstanceArn'] as String?, appInstanceUsers: (json['AppInstanceUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AppInstanceUserSummary.fromJson(e as Map)) .toList(), @@ -13029,7 +13029,7 @@ class ListAppInstancesResponse { factory ListAppInstancesResponse.fromJson(Map json) { return ListAppInstancesResponse( appInstances: (json['AppInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppInstanceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13048,7 +13048,7 @@ class ListAttendeeTagsResponse { factory ListAttendeeTagsResponse.fromJson(Map json) { return ListAttendeeTagsResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -13070,7 +13070,7 @@ class ListAttendeesResponse { factory ListAttendeesResponse.fromJson(Map json) { return ListAttendeesResponse( attendees: (json['Attendees'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attendee.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13093,7 +13093,7 @@ class ListBotsResponse { factory ListBotsResponse.fromJson(Map json) { return ListBotsResponse( bots: (json['Bots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Bot.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13122,7 +13122,7 @@ class ListChannelBansResponse { return ListChannelBansResponse( channelArn: json['ChannelArn'] as String?, channelBans: (json['ChannelBans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelBanSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13147,7 +13147,7 @@ class ListChannelMembershipsForAppInstanceUserResponse { Map json) { return ListChannelMembershipsForAppInstanceUserResponse( channelMemberships: (json['ChannelMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelMembershipForAppInstanceUserSummary.fromJson( e as Map)) .toList(), @@ -13177,7 +13177,7 @@ class ListChannelMembershipsResponse { return ListChannelMembershipsResponse( channelArn: json['ChannelArn'] as String?, channelMemberships: (json['ChannelMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelMembershipSummary.fromJson(e as Map)) .toList(), @@ -13207,7 +13207,7 @@ class ListChannelMessagesResponse { return ListChannelMessagesResponse( channelArn: json['ChannelArn'] as String?, channelMessages: (json['ChannelMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelMessageSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13236,7 +13236,7 @@ class ListChannelModeratorsResponse { return ListChannelModeratorsResponse( channelArn: json['ChannelArn'] as String?, channelModerators: (json['ChannelModerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelModeratorSummary.fromJson(e as Map)) .toList(), @@ -13262,7 +13262,7 @@ class ListChannelsModeratedByAppInstanceUserResponse { Map json) { return ListChannelsModeratedByAppInstanceUserResponse( channels: (json['Channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelModeratedByAppInstanceUserSummary.fromJson( e as Map)) .toList(), @@ -13287,7 +13287,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( channels: (json['Channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13311,7 +13311,7 @@ class ListMediaCapturePipelinesResponse { Map json) { return ListMediaCapturePipelinesResponse( mediaCapturePipelines: (json['MediaCapturePipelines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaCapturePipeline.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13330,7 +13330,7 @@ class ListMeetingTagsResponse { factory ListMeetingTagsResponse.fromJson(Map json) { return ListMeetingTagsResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -13352,7 +13352,7 @@ class ListMeetingsResponse { factory ListMeetingsResponse.fromJson(Map json) { return ListMeetingsResponse( meetings: (json['Meetings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Meeting.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13376,7 +13376,7 @@ class ListPhoneNumberOrdersResponse { return ListPhoneNumberOrdersResponse( nextToken: json['NextToken'] as String?, phoneNumberOrders: (json['PhoneNumberOrders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberOrder.fromJson(e as Map)) .toList(), ); @@ -13399,7 +13399,7 @@ class ListPhoneNumbersResponse { return ListPhoneNumbersResponse( nextToken: json['NextToken'] as String?, phoneNumbers: (json['PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumber.fromJson(e as Map)) .toList(), ); @@ -13422,7 +13422,7 @@ class ListProxySessionsResponse { return ListProxySessionsResponse( nextToken: json['NextToken'] as String?, proxySessions: (json['ProxySessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProxySession.fromJson(e as Map)) .toList(), ); @@ -13445,7 +13445,7 @@ class ListRoomMembershipsResponse { return ListRoomMembershipsResponse( nextToken: json['NextToken'] as String?, roomMemberships: (json['RoomMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoomMembership.fromJson(e as Map)) .toList(), ); @@ -13468,7 +13468,7 @@ class ListRoomsResponse { return ListRoomsResponse( nextToken: json['NextToken'] as String?, rooms: (json['Rooms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Room.fromJson(e as Map)) .toList(), ); @@ -13491,7 +13491,7 @@ class ListSipMediaApplicationsResponse { return ListSipMediaApplicationsResponse( nextToken: json['NextToken'] as String?, sipMediaApplications: (json['SipMediaApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipMediaApplication.fromJson(e as Map)) .toList(), ); @@ -13514,7 +13514,7 @@ class ListSipRulesResponse { return ListSipRulesResponse( nextToken: json['NextToken'] as String?, sipRules: (json['SipRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipRule.fromJson(e as Map)) .toList(), ); @@ -13533,7 +13533,7 @@ class ListSupportedPhoneNumberCountriesResponse { Map json) { return ListSupportedPhoneNumberCountriesResponse( phoneNumberCountries: (json['PhoneNumberCountries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberCountry.fromJson(e as Map)) .toList(), ); @@ -13551,7 +13551,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -13574,7 +13574,7 @@ class ListUsersResponse { return ListUsersResponse( nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -13597,7 +13597,7 @@ class ListVoiceConnectorGroupsResponse { return ListVoiceConnectorGroupsResponse( nextToken: json['NextToken'] as String?, voiceConnectorGroups: (json['VoiceConnectorGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoiceConnectorGroup.fromJson(e as Map)) .toList(), ); @@ -13616,7 +13616,7 @@ class ListVoiceConnectorTerminationCredentialsResponse { Map json) { return ListVoiceConnectorTerminationCredentialsResponse( usernames: (json['Usernames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -13639,7 +13639,7 @@ class ListVoiceConnectorsResponse { return ListVoiceConnectorsResponse( nextToken: json['NextToken'] as String?, voiceConnectors: (json['VoiceConnectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoiceConnector.fromJson(e as Map)) .toList(), ); @@ -14145,7 +14145,7 @@ class Origination { return Origination( disabled: json['Disabled'] as bool?, routes: (json['Routes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OriginationRoute.fromJson(e as Map)) .toList(), ); @@ -14319,7 +14319,7 @@ class PhoneNumber { factory PhoneNumber.fromJson(Map json) { return PhoneNumber( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => PhoneNumberAssociation.fromJson(e as Map)) .toList(), @@ -14451,7 +14451,7 @@ class PhoneNumberCountry { return PhoneNumberCountry( countryCode: json['CountryCode'] as String?, supportedPhoneNumberTypes: (json['SupportedPhoneNumberTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberType.fromString((e as String))) .toList(), ); @@ -14520,7 +14520,7 @@ class PhoneNumberOrder { return PhoneNumberOrder( createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), orderedPhoneNumbers: (json['OrderedPhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrderedPhoneNumber.fromJson(e as Map)) .toList(), phoneNumberOrderId: json['PhoneNumberOrderId'] as String?, @@ -14630,7 +14630,7 @@ class Proxy { disabled: json['Disabled'] as bool?, fallBackPhoneNumber: json['FallBackPhoneNumber'] as String?, phoneNumberCountries: (json['PhoneNumberCountries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -14699,7 +14699,7 @@ class ProxySession { factory ProxySession.fromJson(Map json) { return ProxySession( capabilities: (json['Capabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Capability.fromString((e as String))) .toList(), createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), @@ -14715,7 +14715,7 @@ class ProxySession { numberSelectionBehavior: (json['NumberSelectionBehavior'] as String?) ?.let(NumberSelectionBehavior.fromString), participants: (json['Participants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Participant.fromJson(e as Map)) .toList(), proxySessionId: json['ProxySessionId'] as String?, @@ -14781,7 +14781,7 @@ class PutAppInstanceStreamingConfigurationsResponse { return PutAppInstanceStreamingConfigurationsResponse( appInstanceStreamingConfigurations: (json['AppInstanceStreamingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppInstanceStreamingConfiguration.fromJson( e as Map)) .toList(), @@ -15245,7 +15245,7 @@ class SearchAvailablePhoneNumbersResponse { Map json) { return SearchAvailablePhoneNumbersResponse( e164PhoneNumbers: (json['E164PhoneNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -15270,11 +15270,11 @@ class SelectedVideoStreams { factory SelectedVideoStreams.fromJson(Map json) { return SelectedVideoStreams( attendeeIds: (json['AttendeeIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), externalUserIds: (json['ExternalUserIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15370,7 +15370,7 @@ class SipMediaApplication { awsRegion: json['AwsRegion'] as String?, createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipMediaApplicationEndpoint.fromJson(e as Map)) .toList(), @@ -15504,7 +15504,7 @@ class SipRule { name: json['Name'] as String?, sipRuleId: json['SipRuleId'] as String?, targetApplications: (json['TargetApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SipRuleTargetApplication.fromJson(e as Map)) .toList(), @@ -15654,7 +15654,7 @@ class StreamingConfiguration { disabled: json['Disabled'] as bool?, streamingNotificationTargets: (json['StreamingNotificationTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamingNotificationTarget.fromJson(e as Map)) .toList(), @@ -15797,11 +15797,11 @@ class Termination { factory Termination.fromJson(Map json) { return Termination( callingRegions: (json['CallingRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cidrAllowedList: (json['CidrAllowedList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cpsLimit: json['CpsLimit'] as int?, @@ -16619,7 +16619,7 @@ class ValidateE911AddressResponse { : null, addressExternalId: json['AddressExternalId'] as String?, candidateAddressList: (json['CandidateAddressList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CandidateAddress.fromJson(e as Map)) .toList(), validationResult: json['ValidationResult'] as int?, @@ -16783,7 +16783,7 @@ class VoiceConnectorGroup { voiceConnectorGroupArn: json['VoiceConnectorGroupArn'] as String?, voiceConnectorGroupId: json['VoiceConnectorGroupId'] as String?, voiceConnectorItems: (json['VoiceConnectorItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoiceConnectorItem.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_chime_api/pubspec.yaml b/generated/aws_chime_api/pubspec.yaml index 9e308ff14..457e8993a 100644 --- a/generated/aws_chime_api/pubspec.yaml +++ b/generated/aws_chime_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_chime_ protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cloud9_api/lib/cloud9-2017-09-23.dart b/generated/aws_cloud9_api/lib/cloud9-2017-09-23.dart index d5b23c26d..96b011806 100644 --- a/generated/aws_cloud9_api/lib/cloud9-2017-09-23.dart +++ b/generated/aws_cloud9_api/lib/cloud9-2017-09-23.dart @@ -850,7 +850,7 @@ class DescribeEnvironmentMembershipsResult { Map json) { return DescribeEnvironmentMembershipsResult( memberships: (json['memberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentMember.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -913,7 +913,7 @@ class DescribeEnvironmentsResult { factory DescribeEnvironmentsResult.fromJson(Map json) { return DescribeEnvironmentsResult( environments: (json['environments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Environment.fromJson(e as Map)) .toList(), ); @@ -1196,7 +1196,7 @@ class ListEnvironmentsResult { factory ListEnvironmentsResult.fromJson(Map json) { return ListEnvironmentsResult( environmentIds: (json['environmentIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -1215,7 +1215,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_cloud9_api/pubspec.yaml b/generated/aws_cloud9_api/pubspec.yaml index 99d815c01..2e4d17ba4 100644 --- a/generated/aws_cloud9_api/pubspec.yaml +++ b/generated/aws_cloud9_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_cloud9 protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_clouddirectory_api/lib/clouddirectory-2016-05-10.dart b/generated/aws_clouddirectory_api/lib/clouddirectory-2016-05-10.dart index 4dd99154b..e58363b5d 100644 --- a/generated/aws_clouddirectory_api/lib/clouddirectory-2016-05-10.dart +++ b/generated/aws_clouddirectory_api/lib/clouddirectory-2016-05-10.dart @@ -3984,7 +3984,7 @@ class BatchGetLinkAttributesResponse { factory BatchGetLinkAttributesResponse.fromJson(Map json) { return BatchGetLinkAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -4035,7 +4035,7 @@ class BatchGetObjectAttributesResponse { factory BatchGetObjectAttributesResponse.fromJson(Map json) { return BatchGetObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -4079,7 +4079,7 @@ class BatchGetObjectInformationResponse { return BatchGetObjectInformationResponse( objectIdentifier: json['ObjectIdentifier'] as String?, schemaFacets: (json['SchemaFacets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaFacet.fromJson(e as Map)) .toList(), ); @@ -4133,7 +4133,7 @@ class BatchListAttachedIndicesResponse { factory BatchListAttachedIndicesResponse.fromJson(Map json) { return BatchListAttachedIndicesResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4207,7 +4207,7 @@ class BatchListIncomingTypedLinksResponse { Map json) { return BatchListIncomingTypedLinksResponse( linkSpecifiers: (json['LinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4269,7 +4269,7 @@ class BatchListIndexResponse { factory BatchListIndexResponse.fromJson(Map json) { return BatchListIndexResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4332,7 +4332,7 @@ class BatchListObjectAttributesResponse { Map json) { return BatchListObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4445,7 +4445,7 @@ class BatchListObjectParentPathsResponse { nextToken: json['NextToken'] as String?, pathToObjectIdentifiersList: (json['PathToObjectIdentifiersList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PathToObjectIdentifiers.fromJson(e as Map)) .toList(), @@ -4501,7 +4501,7 @@ class BatchListObjectPoliciesResponse { factory BatchListObjectPoliciesResponse.fromJson(Map json) { return BatchListObjectPoliciesResponse( attachedPolicyIds: (json['AttachedPolicyIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -4576,7 +4576,7 @@ class BatchListOutgoingTypedLinksResponse { return BatchListOutgoingTypedLinksResponse( nextToken: json['NextToken'] as String?, typedLinkSpecifiers: (json['TypedLinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), ); @@ -4632,7 +4632,7 @@ class BatchListPolicyAttachmentsResponse { return BatchListPolicyAttachmentsResponse( nextToken: json['NextToken'] as String?, objectIdentifiers: (json['ObjectIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4690,7 +4690,7 @@ class BatchLookupPolicyResponse { return BatchLookupPolicyResponse( nextToken: json['NextToken'] as String?, policyToPathList: (json['PolicyToPathList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyToPath.fromJson(e as Map)) .toList(), ); @@ -4901,7 +4901,7 @@ class BatchReadResponse { factory BatchReadResponse.fromJson(Map json) { return BatchReadResponse( responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchReadOperationResponse.fromJson(e as Map)) .toList(), @@ -5469,7 +5469,7 @@ class BatchWriteResponse { factory BatchWriteResponse.fromJson(Map json) { return BatchWriteResponse( responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchWriteOperationResponse.fromJson(e as Map)) .toList(), @@ -6168,7 +6168,7 @@ class GetLinkAttributesResponse { factory GetLinkAttributesResponse.fromJson(Map json) { return GetLinkAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -6186,7 +6186,7 @@ class GetObjectAttributesResponse { factory GetObjectAttributesResponse.fromJson(Map json) { return GetObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -6211,7 +6211,7 @@ class GetObjectInformationResponse { return GetObjectInformationResponse( objectIdentifier: json['ObjectIdentifier'] as String?, schemaFacets: (json['SchemaFacets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaFacet.fromJson(e as Map)) .toList(), ); @@ -6259,7 +6259,7 @@ class GetTypedLinkFacetInformationResponse { Map json) { return GetTypedLinkFacetInformationResponse( identityAttributeOrder: (json['IdentityAttributeOrder'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6303,7 +6303,7 @@ class IndexAttachment { factory IndexAttachment.fromJson(Map json) { return IndexAttachment( indexedAttributes: (json['IndexedAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), objectIdentifier: json['ObjectIdentifier'] as String?, @@ -6554,7 +6554,7 @@ class ListAppliedSchemaArnsResponse { return ListAppliedSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6576,7 +6576,7 @@ class ListAttachedIndicesResponse { factory ListAttachedIndicesResponse.fromJson(Map json) { return ListAttachedIndicesResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6601,7 +6601,7 @@ class ListDevelopmentSchemaArnsResponse { return ListDevelopmentSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6624,7 +6624,7 @@ class ListDirectoriesResponse { factory ListDirectoriesResponse.fromJson(Map json) { return ListDirectoriesResponse( directories: (json['Directories'] as List) - .whereNotNull() + .nonNulls .map((e) => Directory.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6647,7 +6647,7 @@ class ListFacetAttributesResponse { factory ListFacetAttributesResponse.fromJson(Map json) { return ListFacetAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FacetAttribute.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6670,7 +6670,7 @@ class ListFacetNamesResponse { factory ListFacetNamesResponse.fromJson(Map json) { return ListFacetNamesResponse( facetNames: (json['FacetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -6693,7 +6693,7 @@ class ListIncomingTypedLinksResponse { factory ListIncomingTypedLinksResponse.fromJson(Map json) { return ListIncomingTypedLinksResponse( linkSpecifiers: (json['LinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6716,7 +6716,7 @@ class ListIndexResponse { factory ListIndexResponse.fromJson(Map json) { return ListIndexResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6740,7 +6740,7 @@ class ListObjectAttributesResponse { factory ListObjectAttributesResponse.fromJson(Map json) { return ListObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6788,7 +6788,7 @@ class ListObjectParentPathsResponse { nextToken: json['NextToken'] as String?, pathToObjectIdentifiersList: (json['PathToObjectIdentifiersList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PathToObjectIdentifiers.fromJson(e as Map)) .toList(), @@ -6834,7 +6834,7 @@ class ListObjectPoliciesResponse { factory ListObjectPoliciesResponse.fromJson(Map json) { return ListObjectPoliciesResponse( attachedPolicyIds: (json['AttachedPolicyIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -6858,7 +6858,7 @@ class ListOutgoingTypedLinksResponse { return ListOutgoingTypedLinksResponse( nextToken: json['NextToken'] as String?, typedLinkSpecifiers: (json['TypedLinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), ); @@ -6881,7 +6881,7 @@ class ListPolicyAttachmentsResponse { return ListPolicyAttachmentsResponse( nextToken: json['NextToken'] as String?, objectIdentifiers: (json['ObjectIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6904,7 +6904,7 @@ class ListPublishedSchemaArnsResponse { return ListPublishedSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6928,7 +6928,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6951,7 +6951,7 @@ class ListTypedLinkFacetAttributesResponse { Map json) { return ListTypedLinkFacetAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkAttributeDefinition.fromJson(e as Map)) .toList(), @@ -6975,7 +6975,7 @@ class ListTypedLinkFacetNamesResponse { factory ListTypedLinkFacetNamesResponse.fromJson(Map json) { return ListTypedLinkFacetNamesResponse( facetNames: (json['FacetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7002,7 +7002,7 @@ class LookupPolicyResponse { return LookupPolicyResponse( nextToken: json['NextToken'] as String?, policyToPathList: (json['PolicyToPathList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyToPath.fromJson(e as Map)) .toList(), ); @@ -7237,7 +7237,7 @@ class PathToObjectIdentifiers { factory PathToObjectIdentifiers.fromJson(Map json) { return PathToObjectIdentifiers( objectIdentifiers: (json['ObjectIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), path: json['Path'] as String?, @@ -7295,7 +7295,7 @@ class PolicyToPath { return PolicyToPath( path: json['Path'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyAttachment.fromJson(e as Map)) .toList(), ); @@ -7873,7 +7873,7 @@ class TypedLinkSpecifier { factory TypedLinkSpecifier.fromJson(Map json) { return TypedLinkSpecifier( identityAttributeValues: (json['IdentityAttributeValues'] as List) - .whereNotNull() + .nonNulls .map((e) => AttributeNameAndValue.fromJson(e as Map)) .toList(), sourceObjectReference: ObjectReference.fromJson( diff --git a/generated/aws_clouddirectory_api/lib/clouddirectory-2017-01-11.dart b/generated/aws_clouddirectory_api/lib/clouddirectory-2017-01-11.dart index b10a4854c..17b4fdab6 100644 --- a/generated/aws_clouddirectory_api/lib/clouddirectory-2017-01-11.dart +++ b/generated/aws_clouddirectory_api/lib/clouddirectory-2017-01-11.dart @@ -4042,7 +4042,7 @@ class BatchGetLinkAttributesResponse { factory BatchGetLinkAttributesResponse.fromJson(Map json) { return BatchGetLinkAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -4093,7 +4093,7 @@ class BatchGetObjectAttributesResponse { factory BatchGetObjectAttributesResponse.fromJson(Map json) { return BatchGetObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -4137,7 +4137,7 @@ class BatchGetObjectInformationResponse { return BatchGetObjectInformationResponse( objectIdentifier: json['ObjectIdentifier'] as String?, schemaFacets: (json['SchemaFacets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaFacet.fromJson(e as Map)) .toList(), ); @@ -4191,7 +4191,7 @@ class BatchListAttachedIndicesResponse { factory BatchListAttachedIndicesResponse.fromJson(Map json) { return BatchListAttachedIndicesResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4265,7 +4265,7 @@ class BatchListIncomingTypedLinksResponse { Map json) { return BatchListIncomingTypedLinksResponse( linkSpecifiers: (json['LinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4327,7 +4327,7 @@ class BatchListIndexResponse { factory BatchListIndexResponse.fromJson(Map json) { return BatchListIndexResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4390,7 +4390,7 @@ class BatchListObjectAttributesResponse { Map json) { return BatchListObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4503,7 +4503,7 @@ class BatchListObjectParentPathsResponse { nextToken: json['NextToken'] as String?, pathToObjectIdentifiersList: (json['PathToObjectIdentifiersList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PathToObjectIdentifiers.fromJson(e as Map)) .toList(), @@ -4558,7 +4558,7 @@ class BatchListObjectParentsResponse { return BatchListObjectParentsResponse( nextToken: json['NextToken'] as String?, parentLinks: (json['ParentLinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ObjectIdentifierAndLinkNameTuple.fromJson( e as Map)) .toList(), @@ -4614,7 +4614,7 @@ class BatchListObjectPoliciesResponse { factory BatchListObjectPoliciesResponse.fromJson(Map json) { return BatchListObjectPoliciesResponse( attachedPolicyIds: (json['AttachedPolicyIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -4689,7 +4689,7 @@ class BatchListOutgoingTypedLinksResponse { return BatchListOutgoingTypedLinksResponse( nextToken: json['NextToken'] as String?, typedLinkSpecifiers: (json['TypedLinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), ); @@ -4745,7 +4745,7 @@ class BatchListPolicyAttachmentsResponse { return BatchListPolicyAttachmentsResponse( nextToken: json['NextToken'] as String?, objectIdentifiers: (json['ObjectIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4803,7 +4803,7 @@ class BatchLookupPolicyResponse { return BatchLookupPolicyResponse( nextToken: json['NextToken'] as String?, policyToPathList: (json['PolicyToPathList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyToPath.fromJson(e as Map)) .toList(), ); @@ -5021,7 +5021,7 @@ class BatchReadResponse { factory BatchReadResponse.fromJson(Map json) { return BatchReadResponse( responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchReadOperationResponse.fromJson(e as Map)) .toList(), @@ -5545,7 +5545,7 @@ class BatchWriteResponse { factory BatchWriteResponse.fromJson(Map json) { return BatchWriteResponse( responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchWriteOperationResponse.fromJson(e as Map)) .toList(), @@ -6128,7 +6128,7 @@ class GetLinkAttributesResponse { factory GetLinkAttributesResponse.fromJson(Map json) { return GetLinkAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -6146,7 +6146,7 @@ class GetObjectAttributesResponse { factory GetObjectAttributesResponse.fromJson(Map json) { return GetObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), ); @@ -6171,7 +6171,7 @@ class GetObjectInformationResponse { return GetObjectInformationResponse( objectIdentifier: json['ObjectIdentifier'] as String?, schemaFacets: (json['SchemaFacets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaFacet.fromJson(e as Map)) .toList(), ); @@ -6219,7 +6219,7 @@ class GetTypedLinkFacetInformationResponse { Map json) { return GetTypedLinkFacetInformationResponse( identityAttributeOrder: (json['IdentityAttributeOrder'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6246,7 +6246,7 @@ class IndexAttachment { factory IndexAttachment.fromJson(Map json) { return IndexAttachment( indexedAttributes: (json['IndexedAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), objectIdentifier: json['ObjectIdentifier'] as String?, @@ -6320,7 +6320,7 @@ class ListAppliedSchemaArnsResponse { return ListAppliedSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6342,7 +6342,7 @@ class ListAttachedIndicesResponse { factory ListAttachedIndicesResponse.fromJson(Map json) { return ListAttachedIndicesResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6367,7 +6367,7 @@ class ListDevelopmentSchemaArnsResponse { return ListDevelopmentSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6390,7 +6390,7 @@ class ListDirectoriesResponse { factory ListDirectoriesResponse.fromJson(Map json) { return ListDirectoriesResponse( directories: (json['Directories'] as List) - .whereNotNull() + .nonNulls .map((e) => Directory.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6413,7 +6413,7 @@ class ListFacetAttributesResponse { factory ListFacetAttributesResponse.fromJson(Map json) { return ListFacetAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FacetAttribute.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6436,7 +6436,7 @@ class ListFacetNamesResponse { factory ListFacetNamesResponse.fromJson(Map json) { return ListFacetNamesResponse( facetNames: (json['FacetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -6459,7 +6459,7 @@ class ListIncomingTypedLinksResponse { factory ListIncomingTypedLinksResponse.fromJson(Map json) { return ListIncomingTypedLinksResponse( linkSpecifiers: (json['LinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6482,7 +6482,7 @@ class ListIndexResponse { factory ListIndexResponse.fromJson(Map json) { return ListIndexResponse( indexAttachments: (json['IndexAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexAttachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6506,7 +6506,7 @@ class ListManagedSchemaArnsResponse { return ListManagedSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6529,7 +6529,7 @@ class ListObjectAttributesResponse { factory ListObjectAttributesResponse.fromJson(Map json) { return ListObjectAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeKeyAndValue.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6577,7 +6577,7 @@ class ListObjectParentPathsResponse { nextToken: json['NextToken'] as String?, pathToObjectIdentifiersList: (json['PathToObjectIdentifiersList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PathToObjectIdentifiers.fromJson(e as Map)) .toList(), @@ -6606,7 +6606,7 @@ class ListObjectParentsResponse { return ListObjectParentsResponse( nextToken: json['NextToken'] as String?, parentLinks: (json['ParentLinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ObjectIdentifierAndLinkNameTuple.fromJson( e as Map)) .toList(), @@ -6632,7 +6632,7 @@ class ListObjectPoliciesResponse { factory ListObjectPoliciesResponse.fromJson(Map json) { return ListObjectPoliciesResponse( attachedPolicyIds: (json['AttachedPolicyIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -6656,7 +6656,7 @@ class ListOutgoingTypedLinksResponse { return ListOutgoingTypedLinksResponse( nextToken: json['NextToken'] as String?, typedLinkSpecifiers: (json['TypedLinkSpecifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkSpecifier.fromJson(e as Map)) .toList(), ); @@ -6679,7 +6679,7 @@ class ListPolicyAttachmentsResponse { return ListPolicyAttachmentsResponse( nextToken: json['NextToken'] as String?, objectIdentifiers: (json['ObjectIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6702,7 +6702,7 @@ class ListPublishedSchemaArnsResponse { return ListPublishedSchemaArnsResponse( nextToken: json['NextToken'] as String?, schemaArns: (json['SchemaArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6726,7 +6726,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6749,7 +6749,7 @@ class ListTypedLinkFacetAttributesResponse { Map json) { return ListTypedLinkFacetAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TypedLinkAttributeDefinition.fromJson(e as Map)) .toList(), @@ -6773,7 +6773,7 @@ class ListTypedLinkFacetNamesResponse { factory ListTypedLinkFacetNamesResponse.fromJson(Map json) { return ListTypedLinkFacetNamesResponse( facetNames: (json['FacetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -6800,7 +6800,7 @@ class LookupPolicyResponse { return LookupPolicyResponse( nextToken: json['NextToken'] as String?, policyToPathList: (json['PolicyToPathList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyToPath.fromJson(e as Map)) .toList(), ); @@ -6980,7 +6980,7 @@ class PathToObjectIdentifiers { factory PathToObjectIdentifiers.fromJson(Map json) { return PathToObjectIdentifiers( objectIdentifiers: (json['ObjectIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), path: json['Path'] as String?, @@ -7038,7 +7038,7 @@ class PolicyToPath { return PolicyToPath( path: json['Path'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyAttachment.fromJson(e as Map)) .toList(), ); @@ -7535,7 +7535,7 @@ class TypedLinkSpecifier { factory TypedLinkSpecifier.fromJson(Map json) { return TypedLinkSpecifier( identityAttributeValues: (json['IdentityAttributeValues'] as List) - .whereNotNull() + .nonNulls .map((e) => AttributeNameAndValue.fromJson(e as Map)) .toList(), sourceObjectReference: ObjectReference.fromJson( diff --git a/generated/aws_clouddirectory_api/pubspec.yaml b/generated/aws_clouddirectory_api/pubspec.yaml index c92aac1a9..f23e99721 100644 --- a/generated/aws_clouddirectory_api/pubspec.yaml +++ b/generated/aws_clouddirectory_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_cloudd protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cloudformation_api/pubspec.yaml b/generated/aws_cloudformation_api/pubspec.yaml index 7a6a7b942..0644f6ef0 100644 --- a/generated/aws_cloudformation_api/pubspec.yaml +++ b/generated/aws_cloudformation_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_cloudf protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cloudfront_api/pubspec.yaml b/generated/aws_cloudfront_api/pubspec.yaml index f440bf0ee..ca77004c2 100644 --- a/generated/aws_cloudfront_api/pubspec.yaml +++ b/generated/aws_cloudfront_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_cloudf protocol: rest-xml environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cloudhsm_api/lib/cloudhsm-2014-05-30.dart b/generated/aws_cloudhsm_api/lib/cloudhsm-2014-05-30.dart index e9bf454a5..fbc0ba269 100644 --- a/generated/aws_cloudhsm_api/lib/cloudhsm-2014-05-30.dart +++ b/generated/aws_cloudhsm_api/lib/cloudhsm-2014-05-30.dart @@ -1339,21 +1339,21 @@ class DescribeHapgResponse { hapgArn: json['HapgArn'] as String?, hapgSerial: json['HapgSerial'] as String?, hsmsLastActionFailed: (json['HsmsLastActionFailed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), hsmsPendingDeletion: (json['HsmsPendingDeletion'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), hsmsPendingRegistration: (json['HsmsPendingRegistration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), label: json['Label'] as String?, lastModifiedTimestamp: json['LastModifiedTimestamp'] as String?, partitionSerialList: (json['PartitionSerialList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), state: (json['State'] as String?)?.let(CloudHsmObjectState.fromString), @@ -1457,7 +1457,7 @@ class DescribeHsmResponse { hsmType: json['HsmType'] as String?, iamRoleArn: json['IamRoleArn'] as String?, partitions: (json['Partitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serialNumber: json['SerialNumber'] as String?, @@ -1568,10 +1568,8 @@ class ListAvailableZonesResponse { factory ListAvailableZonesResponse.fromJson(Map json) { return ListAvailableZonesResponse( - aZList: (json['AZList'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + aZList: + (json['AZList'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -1591,10 +1589,8 @@ class ListHapgsResponse { factory ListHapgsResponse.fromJson(Map json) { return ListHapgsResponse( - hapgList: (json['HapgList'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + hapgList: + (json['HapgList'] as List).nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -1616,10 +1612,8 @@ class ListHsmsResponse { factory ListHsmsResponse.fromJson(Map json) { return ListHsmsResponse( - hsmList: (json['HsmList'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + hsmList: + (json['HsmList'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -1641,7 +1635,7 @@ class ListLunaClientsResponse { factory ListLunaClientsResponse.fromJson(Map json) { return ListLunaClientsResponse( clientList: (json['ClientList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -1660,7 +1654,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tagList: (json['TagList'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_cloudhsm_api/pubspec.yaml b/generated/aws_cloudhsm_api/pubspec.yaml index b651b3ba3..c46bf12b3 100644 --- a/generated/aws_cloudhsm_api/pubspec.yaml +++ b/generated/aws_cloudhsm_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_cloudh protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cloudhsmv2_api/lib/cloudhsmv2-2017-04-28.dart b/generated/aws_cloudhsmv2_api/lib/cloudhsmv2-2017-04-28.dart index 737750762..56d383601 100644 --- a/generated/aws_cloudhsmv2_api/lib/cloudhsmv2-2017-04-28.dart +++ b/generated/aws_cloudhsmv2_api/lib/cloudhsmv2-2017-04-28.dart @@ -856,7 +856,7 @@ class Backup { sourceCluster: json['SourceCluster'] as String?, sourceRegion: json['SourceRegion'] as String?, tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1060,7 +1060,7 @@ class Cluster { createTimestamp: timeStampFromJson(json['CreateTimestamp']), hsmType: json['HsmType'] as String?, hsms: (json['Hsms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Hsm.fromJson(e as Map)) .toList(), preCoPassword: json['PreCoPassword'] as String?, @@ -1071,7 +1071,7 @@ class Cluster { subnetMapping: (json['SubnetMapping'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -1226,7 +1226,7 @@ class DescribeBackupsResponse { factory DescribeBackupsResponse.fromJson(Map json) { return DescribeBackupsResponse( backups: (json['Backups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Backup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1251,7 +1251,7 @@ class DescribeClustersResponse { factory DescribeClustersResponse.fromJson(Map json) { return DescribeClustersResponse( clusters: (json['Clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cluster.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1400,7 +1400,7 @@ class ListTagsResponse { factory ListTagsResponse.fromJson(Map json) { return ListTagsResponse( tagList: (json['TagList'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/generated/aws_cloudhsmv2_api/pubspec.yaml b/generated/aws_cloudhsmv2_api/pubspec.yaml index 8f8796f04..084555d4f 100644 --- a/generated/aws_cloudhsmv2_api/pubspec.yaml +++ b/generated/aws_cloudhsmv2_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_cloudh protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cloudsearch_api/pubspec.yaml b/generated/aws_cloudsearch_api/pubspec.yaml index 9dfd4a361..dd17c86b1 100644 --- a/generated/aws_cloudsearch_api/pubspec.yaml +++ b/generated/aws_cloudsearch_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_clouds protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cloudsearchdomain_api/lib/cloudsearchdomain-2013-01-01.dart b/generated/aws_cloudsearchdomain_api/lib/cloudsearchdomain-2013-01-01.dart index 78cb49ab1..cfe1ada7d 100644 --- a/generated/aws_cloudsearchdomain_api/lib/cloudsearchdomain-2013-01-01.dart +++ b/generated/aws_cloudsearchdomain_api/lib/cloudsearchdomain-2013-01-01.dart @@ -641,7 +641,7 @@ class BucketInfo { factory BucketInfo.fromJson(Map json) { return BucketInfo( buckets: (json['buckets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Bucket.fromJson(e as Map)) .toList(), ); @@ -806,8 +806,8 @@ class Hit { return Hit( exprs: (json['exprs'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), - fields: (json['fields'] as Map?)?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + fields: (json['fields'] as Map?)?.map((k, e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), highlights: (json['highlights'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), id: json['id'] as String?, @@ -842,7 +842,7 @@ class Hits { cursor: json['cursor'] as String?, found: json['found'] as int?, hit: (json['hit'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Hit.fromJson(e as Map)) .toList(), start: json['start'] as int?, @@ -967,7 +967,7 @@ class SuggestModel { found: json['found'] as int?, query: json['query'] as String?, suggestions: (json['suggestions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuggestionMatch.fromJson(e as Map)) .toList(), ); @@ -1079,7 +1079,7 @@ class UploadDocumentsResponse { deletes: json['deletes'] as int?, status: json['status'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DocumentServiceWarning.fromJson(e as Map)) .toList(), diff --git a/generated/aws_cloudsearchdomain_api/pubspec.yaml b/generated/aws_cloudsearchdomain_api/pubspec.yaml index f816e21f4..161198592 100644 --- a/generated/aws_cloudsearchdomain_api/pubspec.yaml +++ b/generated/aws_cloudsearchdomain_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_clouds protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cloudtrail_api/lib/cloudtrail-2013-11-01.dart b/generated/aws_cloudtrail_api/lib/cloudtrail-2013-11-01.dart index d7d14f4ff..184d9ddd1 100644 --- a/generated/aws_cloudtrail_api/lib/cloudtrail-2013-11-01.dart +++ b/generated/aws_cloudtrail_api/lib/cloudtrail-2013-11-01.dart @@ -3575,7 +3575,7 @@ class AdvancedEventSelector { factory AdvancedEventSelector.fromJson(Map json) { return AdvancedEventSelector( fieldSelectors: (json['FieldSelectors'] as List) - .whereNotNull() + .nonNulls .map((e) => AdvancedFieldSelector.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -4496,27 +4496,25 @@ class AdvancedFieldSelector { return AdvancedFieldSelector( field: json['Field'] as String, endsWith: (json['EndsWith'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - equals: (json['Equals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + equals: + (json['Equals'] as List?)?.nonNulls.map((e) => e as String).toList(), notEndsWith: (json['NotEndsWith'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notEquals: (json['NotEquals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notStartsWith: (json['NotStartsWith'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), startsWith: (json['StartsWith'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4629,13 +4627,13 @@ class CreateChannelResponse { return CreateChannelResponse( channelArn: json['ChannelArn'] as String?, destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), name: json['Name'] as String?, source: json['Source'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4708,7 +4706,7 @@ class CreateEventDataStoreResponse { factory CreateEventDataStoreResponse.fromJson(Map json) { return CreateEventDataStoreResponse( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), billingMode: @@ -4722,7 +4720,7 @@ class CreateEventDataStoreResponse { retentionPeriod: json['RetentionPeriod'] as int?, status: (json['Status'] as String?)?.let(EventDataStoreStatus.fromString), tagsList: (json['TagsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), terminationProtectionEnabled: @@ -4975,10 +4973,8 @@ class DataResource { factory DataResource.fromJson(Map json) { return DataResource( type: json['Type'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -5131,7 +5127,7 @@ class DescribeTrailsResponse { factory DescribeTrailsResponse.fromJson(Map json) { return DescribeTrailsResponse( trailList: (json['trailList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trail.fromJson(e as Map)) .toList(), ); @@ -5292,7 +5288,7 @@ class Event { eventTime: timeStampFromJson(json['EventTime']), readOnly: json['ReadOnly'] as String?, resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), username: json['Username'] as String?, @@ -5371,7 +5367,7 @@ class EventDataStore { factory EventDataStore.fromJson(Map json) { return EventDataStore( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), @@ -5476,12 +5472,12 @@ class EventSelector { factory EventSelector.fromJson(Map json) { return EventSelector( dataResources: (json['DataResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataResource.fromJson(e as Map)) .toList(), excludeManagementEventSources: (json['ExcludeManagementEventSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includeManagementEvents: json['IncludeManagementEvents'] as bool?, @@ -5564,7 +5560,7 @@ class GetChannelResponse { return GetChannelResponse( channelArn: json['ChannelArn'] as String?, destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), ingestionStatus: json['IngestionStatus'] != null @@ -5662,7 +5658,7 @@ class GetEventDataStoreResponse { factory GetEventDataStoreResponse.fromJson(Map json) { return GetEventDataStoreResponse( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), billingMode: @@ -5677,7 +5673,7 @@ class GetEventDataStoreResponse { name: json['Name'] as String?, organizationEnabled: json['OrganizationEnabled'] as bool?, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionKey.fromJson(e as Map)) .toList(), retentionPeriod: json['RetentionPeriod'] as int?, @@ -5708,11 +5704,11 @@ class GetEventSelectorsResponse { factory GetEventSelectorsResponse.fromJson(Map json) { return GetEventSelectorsResponse( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), eventSelectors: (json['EventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSelector.fromJson(e as Map)) .toList(), trailARN: json['TrailARN'] as String?, @@ -5771,7 +5767,7 @@ class GetImportResponse { return GetImportResponse( createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), endEventTime: timeStampFromJson(json['EndEventTime']), @@ -5818,7 +5814,7 @@ class GetInsightSelectorsResponse { return GetInsightSelectorsResponse( eventDataStoreArn: json['EventDataStoreArn'] as String?, insightSelectors: (json['InsightSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightSelector.fromJson(e as Map)) .toList(), insightsDestination: json['InsightsDestination'] as String?, @@ -5858,9 +5854,9 @@ class GetQueryResultsResponse { errorMessage: json['ErrorMessage'] as String?, nextToken: json['NextToken'] as String?, queryResultRows: (json['QueryResultRows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList()) @@ -6211,7 +6207,7 @@ class ImportsListItem { return ImportsListItem( createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), importId: json['ImportId'] as String?, @@ -6343,7 +6339,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( channels: (json['Channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6367,7 +6363,7 @@ class ListEventDataStoresResponse { factory ListEventDataStoresResponse.fromJson(Map json) { return ListEventDataStoresResponse( eventDataStores: (json['EventDataStores'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDataStore.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6390,7 +6386,7 @@ class ListImportFailuresResponse { factory ListImportFailuresResponse.fromJson(Map json) { return ListImportFailuresResponse( failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportFailureListItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6413,7 +6409,7 @@ class ListImportsResponse { factory ListImportsResponse.fromJson(Map json) { return ListImportsResponse( imports: (json['Imports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportsListItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6477,13 +6473,11 @@ class ListInsightsMetricDataResponse { (json['InsightType'] as String?)?.let(InsightType.fromString), nextToken: json['NextToken'] as String?, timestamps: (json['Timestamps'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as double) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as double).toList(), ); } } @@ -6509,7 +6503,7 @@ class ListPublicKeysResponse { return ListPublicKeysResponse( nextToken: json['NextToken'] as String?, publicKeyList: (json['PublicKeyList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PublicKey.fromJson(e as Map)) .toList(), ); @@ -6533,7 +6527,7 @@ class ListQueriesResponse { return ListQueriesResponse( nextToken: json['NextToken'] as String?, queries: (json['Queries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Query.fromJson(e as Map)) .toList(), ); @@ -6558,7 +6552,7 @@ class ListTagsResponse { return ListTagsResponse( nextToken: json['NextToken'] as String?, resourceTagList: (json['ResourceTagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), ); @@ -6586,7 +6580,7 @@ class ListTrailsResponse { return ListTrailsResponse( nextToken: json['NextToken'] as String?, trails: (json['Trails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrailInfo.fromJson(e as Map)) .toList(), ); @@ -6665,7 +6659,7 @@ class LookupEventsResponse { factory LookupEventsResponse.fromJson(Map json) { return LookupEventsResponse( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6748,11 +6742,11 @@ class PutEventSelectorsResponse { factory PutEventSelectorsResponse.fromJson(Map json) { return PutEventSelectorsResponse( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), eventSelectors: (json['EventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSelector.fromJson(e as Map)) .toList(), trailARN: json['TrailARN'] as String?, @@ -6788,7 +6782,7 @@ class PutInsightSelectorsResponse { return PutInsightSelectorsResponse( eventDataStoreArn: json['EventDataStoreArn'] as String?, insightSelectors: (json['InsightSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightSelector.fromJson(e as Map)) .toList(), insightsDestination: json['InsightsDestination'] as String?, @@ -7019,7 +7013,7 @@ class ResourceTag { return ResourceTag( resourceId: json['ResourceId'] as String?, tagsList: (json['TagsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7089,7 +7083,7 @@ class RestoreEventDataStoreResponse { factory RestoreEventDataStoreResponse.fromJson(Map json) { return RestoreEventDataStoreResponse( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), billingMode: @@ -7162,7 +7156,7 @@ class SourceConfig { factory SourceConfig.fromJson(Map json) { return SourceConfig( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), applyToAllRegions: json['ApplyToAllRegions'] as bool?, @@ -7225,7 +7219,7 @@ class StartImportResponse { return StartImportResponse( createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), endEventTime: timeStampFromJson(json['EndEventTime']), @@ -7322,7 +7316,7 @@ class StopImportResponse { return StopImportResponse( createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), endEventTime: timeStampFromJson(json['EndEventTime']), @@ -7549,7 +7543,7 @@ class UpdateChannelResponse { return UpdateChannelResponse( channelArn: json['ChannelArn'] as String?, destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -7635,7 +7629,7 @@ class UpdateEventDataStoreResponse { factory UpdateEventDataStoreResponse.fromJson(Map json) { return UpdateEventDataStoreResponse( advancedEventSelectors: (json['AdvancedEventSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdvancedEventSelector.fromJson(e as Map)) .toList(), billingMode: diff --git a/generated/aws_cloudtrail_api/pubspec.yaml b/generated/aws_cloudtrail_api/pubspec.yaml index c53855db9..5e1b91a1b 100644 --- a/generated/aws_cloudtrail_api/pubspec.yaml +++ b/generated/aws_cloudtrail_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_cloudt protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cloudwatch_api/pubspec.yaml b/generated/aws_cloudwatch_api/pubspec.yaml index 978ba81b0..4eaf495c8 100644 --- a/generated/aws_cloudwatch_api/pubspec.yaml +++ b/generated/aws_cloudwatch_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_cloudw protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_codebuild_api/lib/codebuild-2016-10-06.dart b/generated/aws_codebuild_api/lib/codebuild-2016-10-06.dart index 828401457..013950b19 100644 --- a/generated/aws_codebuild_api/lib/codebuild-2016-10-06.dart +++ b/generated/aws_codebuild_api/lib/codebuild-2016-10-06.dart @@ -3668,11 +3668,11 @@ class BatchDeleteBuildsOutput { factory BatchDeleteBuildsOutput.fromJson(Map json) { return BatchDeleteBuildsOutput( buildsDeleted: (json['buildsDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), buildsNotDeleted: (json['buildsNotDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildNotDeleted.fromJson(e as Map)) .toList(), ); @@ -3696,11 +3696,11 @@ class BatchGetBuildBatchesOutput { factory BatchGetBuildBatchesOutput.fromJson(Map json) { return BatchGetBuildBatchesOutput( buildBatches: (json['buildBatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildBatch.fromJson(e as Map)) .toList(), buildBatchesNotFound: (json['buildBatchesNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3722,11 +3722,11 @@ class BatchGetBuildsOutput { factory BatchGetBuildsOutput.fromJson(Map json) { return BatchGetBuildsOutput( builds: (json['builds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Build.fromJson(e as Map)) .toList(), buildsNotFound: (json['buildsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3748,11 +3748,11 @@ class BatchGetFleetsOutput { factory BatchGetFleetsOutput.fromJson(Map json) { return BatchGetFleetsOutput( fleets: (json['fleets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Fleet.fromJson(e as Map)) .toList(), fleetsNotFound: (json['fleetsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3774,11 +3774,11 @@ class BatchGetProjectsOutput { factory BatchGetProjectsOutput.fromJson(Map json) { return BatchGetProjectsOutput( projects: (json['projects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Project.fromJson(e as Map)) .toList(), projectsNotFound: (json['projectsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3801,11 +3801,11 @@ class BatchGetReportGroupsOutput { factory BatchGetReportGroupsOutput.fromJson(Map json) { return BatchGetReportGroupsOutput( reportGroups: (json['reportGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportGroup.fromJson(e as Map)) .toList(), reportGroupsNotFound: (json['reportGroupsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3829,11 +3829,11 @@ class BatchGetReportsOutput { factory BatchGetReportsOutput.fromJson(Map json) { return BatchGetReportsOutput( reports: (json['reports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Report.fromJson(e as Map)) .toList(), reportsNotFound: (json['reportsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3875,7 +3875,7 @@ class BatchRestrictions { factory BatchRestrictions.fromJson(Map json) { return BatchRestrictions( computeTypesAllowed: (json['computeTypesAllowed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maximumBuildsAllowed: json['maximumBuildsAllowed'] as int?, @@ -4207,12 +4207,12 @@ class Build { : null, exportedEnvironmentVariables: (json['exportedEnvironmentVariables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportedEnvironmentVariable.fromJson(e as Map)) .toList(), fileSystemLocations: (json['fileSystemLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectFileSystemLocation.fromJson(e as Map)) .toList(), @@ -4226,26 +4226,26 @@ class Build { json['networkInterface'] as Map) : null, phases: (json['phases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildPhase.fromJson(e as Map)) .toList(), projectName: json['projectName'] as String?, queuedTimeoutInMinutes: json['queuedTimeoutInMinutes'] as int?, reportArns: (json['reportArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resolvedSourceVersion: json['resolvedSourceVersion'] as String?, secondaryArtifacts: (json['secondaryArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildArtifacts.fromJson(e as Map)) .toList(), secondarySourceVersions: (json['secondarySourceVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSourceVersion.fromJson(e as Map)) .toList(), secondarySources: (json['secondarySources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSource.fromJson(e as Map)) .toList(), serviceRole: json['serviceRole'] as String?, @@ -4529,7 +4529,7 @@ class BuildBatch { buildBatchStatus: (json['buildBatchStatus'] as String?)?.let(StatusType.fromString), buildGroups: (json['buildGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildGroup.fromJson(e as Map)) .toList(), buildTimeoutInMinutes: json['buildTimeoutInMinutes'] as int?, @@ -4546,7 +4546,7 @@ class BuildBatch { json['environment'] as Map) : null, fileSystemLocations: (json['fileSystemLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectFileSystemLocation.fromJson(e as Map)) .toList(), @@ -4556,22 +4556,22 @@ class BuildBatch { ? LogsConfig.fromJson(json['logConfig'] as Map) : null, phases: (json['phases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildBatchPhase.fromJson(e as Map)) .toList(), projectName: json['projectName'] as String?, queuedTimeoutInMinutes: json['queuedTimeoutInMinutes'] as int?, resolvedSourceVersion: json['resolvedSourceVersion'] as String?, secondaryArtifacts: (json['secondaryArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildArtifacts.fromJson(e as Map)) .toList(), secondarySourceVersions: (json['secondarySourceVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSourceVersion.fromJson(e as Map)) .toList(), secondarySources: (json['secondarySources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSource.fromJson(e as Map)) .toList(), serviceRole: json['serviceRole'] as String?, @@ -4668,7 +4668,7 @@ class BuildBatchPhase { factory BuildBatchPhase.fromJson(Map json) { return BuildBatchPhase( contexts: (json['contexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhaseContext.fromJson(e as Map)) .toList(), durationInSeconds: json['durationInSeconds'] as int?, @@ -4738,13 +4738,13 @@ class BuildGroup { json['currentBuildSummary'] as Map) : null, dependsOn: (json['dependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identifier: json['identifier'] as String?, ignoreFailure: json['ignoreFailure'] as bool?, priorBuildSummaryList: (json['priorBuildSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildSummary.fromJson(e as Map)) .toList(), ); @@ -4843,7 +4843,7 @@ class BuildPhase { factory BuildPhase.fromJson(Map json) { return BuildPhase( contexts: (json['contexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhaseContext.fromJson(e as Map)) .toList(), durationInSeconds: json['durationInSeconds'] as int?, @@ -4984,7 +4984,7 @@ class BuildSummary { : null, requestedOn: timeStampFromJson(json['requestedOn']), secondaryArtifacts: (json['secondaryArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolvedArtifact.fromJson(e as Map)) .toList(), ); @@ -5342,11 +5342,11 @@ class DeleteBuildBatchOutput { factory DeleteBuildBatchOutput.fromJson(Map json) { return DeleteBuildBatchOutput( buildsDeleted: (json['buildsDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), buildsNotDeleted: (json['buildsNotDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuildNotDeleted.fromJson(e as Map)) .toList(), statusCode: json['statusCode'] as String?, @@ -5434,7 +5434,7 @@ class DescribeCodeCoveragesOutput { factory DescribeCodeCoveragesOutput.fromJson(Map json) { return DescribeCodeCoveragesOutput( codeCoverages: (json['codeCoverages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeCoverage.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5464,7 +5464,7 @@ class DescribeTestCasesOutput { return DescribeTestCasesOutput( nextToken: json['nextToken'] as String?, testCases: (json['testCases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestCase.fromJson(e as Map)) .toList(), ); @@ -5493,7 +5493,7 @@ class EnvironmentImage { description: json['description'] as String?, name: json['name'] as String?, versions: (json['versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5518,7 +5518,7 @@ class EnvironmentLanguage { factory EnvironmentLanguage.fromJson(Map json) { return EnvironmentLanguage( images: (json['images'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentImage.fromJson(e as Map)) .toList(), language: (json['language'] as String?)?.let(LanguageType.fromString), @@ -5544,7 +5544,7 @@ class EnvironmentPlatform { factory EnvironmentPlatform.fromJson(Map json) { return EnvironmentPlatform( languages: (json['languages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentLanguage.fromJson(e as Map)) .toList(), platform: (json['platform'] as String?)?.let(PlatformType.fromString), @@ -5911,7 +5911,7 @@ class Fleet { ? FleetStatus.fromJson(json['status'] as Map) : null, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcConfig: json['vpcConfig'] != null @@ -6096,7 +6096,7 @@ class GetReportGroupTrendOutput { factory GetReportGroupTrendOutput.fromJson(Map json) { return GetReportGroupTrendOutput( rawData: (json['rawData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportWithRawData.fromJson(e as Map)) .toList(), stats: json['stats'] != null @@ -6223,10 +6223,7 @@ class ListBuildBatchesForProjectOutput { factory ListBuildBatchesForProjectOutput.fromJson(Map json) { return ListBuildBatchesForProjectOutput( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -6248,10 +6245,7 @@ class ListBuildBatchesOutput { factory ListBuildBatchesOutput.fromJson(Map json) { return ListBuildBatchesOutput( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -6275,10 +6269,7 @@ class ListBuildsForProjectOutput { factory ListBuildsForProjectOutput.fromJson(Map json) { return ListBuildsForProjectOutput( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -6301,10 +6292,7 @@ class ListBuildsOutput { factory ListBuildsOutput.fromJson(Map json) { return ListBuildsOutput( - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -6323,7 +6311,7 @@ class ListCuratedEnvironmentImagesOutput { Map json) { return ListCuratedEnvironmentImagesOutput( platforms: (json['platforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentPlatform.fromJson(e as Map)) .toList(), ); @@ -6347,10 +6335,8 @@ class ListFleetsOutput { factory ListFleetsOutput.fromJson(Map json) { return ListFleetsOutput( - fleets: (json['fleets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + fleets: + (json['fleets'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -6376,7 +6362,7 @@ class ListProjectsOutput { return ListProjectsOutput( nextToken: json['nextToken'] as String?, projects: (json['projects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6406,7 +6392,7 @@ class ListReportGroupsOutput { return ListReportGroupsOutput( nextToken: json['nextToken'] as String?, reportGroups: (json['reportGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6434,10 +6420,8 @@ class ListReportsForReportGroupOutput { factory ListReportsForReportGroupOutput.fromJson(Map json) { return ListReportsForReportGroupOutput( nextToken: json['nextToken'] as String?, - reports: (json['reports'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + reports: + (json['reports'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -6464,10 +6448,8 @@ class ListReportsOutput { factory ListReportsOutput.fromJson(Map json) { return ListReportsOutput( nextToken: json['nextToken'] as String?, - reports: (json['reports'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + reports: + (json['reports'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -6495,7 +6477,7 @@ class ListSharedProjectsOutput { return ListSharedProjectsOutput( nextToken: json['nextToken'] as String?, projects: (json['projects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6525,7 +6507,7 @@ class ListSharedReportGroupsOutput { return ListSharedReportGroupsOutput( nextToken: json['nextToken'] as String?, reportGroups: (json['reportGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6545,7 +6527,7 @@ class ListSourceCredentialsOutput { factory ListSourceCredentialsOutput.fromJson(Map json) { return ListSourceCredentialsOutput( sourceCredentialsInfos: (json['sourceCredentialsInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceCredentialsInfo.fromJson(e as Map)) .toList(), ); @@ -6941,7 +6923,7 @@ class Project { json['environment'] as Map) : null, fileSystemLocations: (json['fileSystemLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectFileSystemLocation.fromJson(e as Map)) .toList(), @@ -6956,15 +6938,15 @@ class Project { queuedTimeoutInMinutes: json['queuedTimeoutInMinutes'] as int?, resourceAccessRole: json['resourceAccessRole'] as String?, secondaryArtifacts: (json['secondaryArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectArtifacts.fromJson(e as Map)) .toList(), secondarySourceVersions: (json['secondarySourceVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSourceVersion.fromJson(e as Map)) .toList(), secondarySources: (json['secondarySources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSource.fromJson(e as Map)) .toList(), serviceRole: json['serviceRole'] as String?, @@ -6973,7 +6955,7 @@ class Project { : null, sourceVersion: json['sourceVersion'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), timeoutInMinutes: json['timeoutInMinutes'] as int?, @@ -7413,7 +7395,7 @@ class ProjectCache { type: CacheType.fromString((json['type'] as String)), location: json['location'] as String?, modes: (json['modes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CacheMode.fromString((e as String))) .toList(), ); @@ -7679,7 +7661,7 @@ class ProjectEnvironment { type: EnvironmentType.fromString((json['type'] as String)), certificate: json['certificate'] as String?, environmentVariables: (json['environmentVariables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentVariable.fromJson(e as Map)) .toList(), fleet: json['fleet'] != null @@ -8488,7 +8470,7 @@ class ReportGroup { status: (json['status'] as String?)?.let(ReportGroupStatusType.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: (json['type'] as String?)?.let(ReportType.fromString), @@ -8907,7 +8889,7 @@ class ScalingConfigurationOutput { (json['scalingType'] as String?)?.let(FleetScalingType.fromString), targetTrackingScalingConfigs: (json['targetTrackingScalingConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetTrackingScalingConfiguration.fromJson( e as Map)) .toList(), @@ -9465,13 +9447,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + subnets: + (json['subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), vpcId: json['vpcId'] as String?, ); } @@ -9555,9 +9535,9 @@ class Webhook { buildType: (json['buildType'] as String?)?.let(WebhookBuildType.fromString), filterGroups: (json['filterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => WebhookFilter.fromJson(e as Map)) .toList()) .toList(), diff --git a/generated/aws_codebuild_api/pubspec.yaml b/generated/aws_codebuild_api/pubspec.yaml index b8dcfabb5..ca377d6f7 100644 --- a/generated/aws_codebuild_api/pubspec.yaml +++ b/generated/aws_codebuild_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_codebu protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_codecommit_api/lib/codecommit-2015-04-13.dart b/generated/aws_codecommit_api/lib/codecommit-2015-04-13.dart index c844aa0a1..bfed86b4e 100644 --- a/generated/aws_codecommit_api/lib/codecommit-2015-04-13.dart +++ b/generated/aws_codecommit_api/lib/codecommit-2015-04-13.dart @@ -5229,11 +5229,11 @@ class BatchAssociateApprovalRuleTemplateWithRepositoriesOutput { Map json) { return BatchAssociateApprovalRuleTemplateWithRepositoriesOutput( associatedRepositoryNames: (json['associatedRepositoryNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchAssociateApprovalRuleTemplateWithRepositoriesError.fromJson( e as Map)) @@ -5305,14 +5305,14 @@ class BatchDescribeMergeConflictsOutput { Map json) { return BatchDescribeMergeConflictsOutput( conflicts: (json['conflicts'] as List) - .whereNotNull() + .nonNulls .map((e) => Conflict.fromJson(e as Map)) .toList(), destinationCommitId: json['destinationCommitId'] as String, sourceCommitId: json['sourceCommitId'] as String, baseCommitId: json['baseCommitId'] as String?, errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchDescribeMergeConflictsError.fromJson( e as Map)) .toList(), @@ -5371,11 +5371,11 @@ class BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput { return BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput( disassociatedRepositoryNames: (json['disassociatedRepositoryNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), errors: (json['errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDisassociateApprovalRuleTemplateFromRepositoriesError .fromJson(e as Map)) .toList(), @@ -5430,11 +5430,11 @@ class BatchGetCommitsOutput { factory BatchGetCommitsOutput.fromJson(Map json) { return BatchGetCommitsOutput( commits: (json['commits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Commit.fromJson(e as Map)) .toList(), errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchGetCommitsError.fromJson(e as Map)) .toList(), ); @@ -5517,16 +5517,16 @@ class BatchGetRepositoriesOutput { factory BatchGetRepositoriesOutput.fromJson(Map json) { return BatchGetRepositoriesOutput( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchGetRepositoriesError.fromJson(e as Map)) .toList(), repositories: (json['repositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryMetadata.fromJson(e as Map)) .toList(), repositoriesNotFound: (json['repositoriesNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5666,7 +5666,7 @@ class Comment { return Comment( authorArn: json['authorArn'] as String?, callerReactions: (json['callerReactions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clientRequestToken: json['clientRequestToken'] as String?, @@ -5729,7 +5729,7 @@ class CommentsForComparedCommit { beforeBlobId: json['beforeBlobId'] as String?, beforeCommitId: json['beforeCommitId'] as String?, comments: (json['comments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Comment.fromJson(e as Map)) .toList(), location: json['location'] != null @@ -5793,7 +5793,7 @@ class CommentsForPullRequest { beforeBlobId: json['beforeBlobId'] as String?, beforeCommitId: json['beforeCommitId'] as String?, comments: (json['comments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Comment.fromJson(e as Map)) .toList(), location: json['location'] != null @@ -5859,10 +5859,8 @@ class Commit { ? UserInfo.fromJson(json['committer'] as Map) : null, message: json['message'] as String?, - parents: (json['parents'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + parents: + (json['parents'] as List?)?.nonNulls.map((e) => e as String).toList(), treeId: json['treeId'] as String?, ); } @@ -5889,7 +5887,7 @@ class Conflict { json['conflictMetadata'] as Map) : null, mergeHunks: (json['mergeHunks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MergeHunk.fromJson(e as Map)) .toList(), ); @@ -6083,15 +6081,15 @@ class CreateCommitOutput { return CreateCommitOutput( commitId: json['commitId'] as String?, filesAdded: (json['filesAdded'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileMetadata.fromJson(e as Map)) .toList(), filesDeleted: (json['filesDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileMetadata.fromJson(e as Map)) .toList(), filesUpdated: (json['filesUpdated'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileMetadata.fromJson(e as Map)) .toList(), treeId: json['treeId'] as String?, @@ -6348,7 +6346,7 @@ class DescribeMergeConflictsOutput { json['conflictMetadata'] as Map), destinationCommitId: json['destinationCommitId'] as String, mergeHunks: (json['mergeHunks'] as List) - .whereNotNull() + .nonNulls .map((e) => MergeHunk.fromJson(e as Map)) .toList(), sourceCommitId: json['sourceCommitId'] as String, @@ -6374,7 +6372,7 @@ class DescribePullRequestEventsOutput { factory DescribePullRequestEventsOutput.fromJson(Map json) { return DescribePullRequestEventsOutput( pullRequestEvents: (json['pullRequestEvents'] as List) - .whereNotNull() + .nonNulls .map((e) => PullRequestEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6463,11 +6461,11 @@ class Evaluation { factory Evaluation.fromJson(Map json) { return Evaluation( approvalRulesNotSatisfied: (json['approvalRulesNotSatisfied'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), approvalRulesSatisfied: (json['approvalRulesSatisfied'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), approved: json['approved'] as bool?, @@ -6636,7 +6634,7 @@ class FileVersion { : null, path: json['path'] as String?, revisionChildren: (json['revisionChildren'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6754,7 +6752,7 @@ class GetCommentReactionsOutput { factory GetCommentReactionsOutput.fromJson(Map json) { return GetCommentReactionsOutput( reactionsForComment: (json['reactionsForComment'] as List) - .whereNotNull() + .nonNulls .map((e) => ReactionForComment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6780,7 +6778,7 @@ class GetCommentsForComparedCommitOutput { return GetCommentsForComparedCommitOutput( commentsForComparedCommitData: (json['commentsForComparedCommitData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CommentsForComparedCommit.fromJson(e as Map)) .toList(), @@ -6805,7 +6803,7 @@ class GetCommentsForPullRequestOutput { factory GetCommentsForPullRequestOutput.fromJson(Map json) { return GetCommentsForPullRequestOutput( commentsForPullRequestData: (json['commentsForPullRequestData'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CommentsForPullRequest.fromJson(e as Map)) .toList(), @@ -6849,7 +6847,7 @@ class GetDifferencesOutput { return GetDifferencesOutput( nextToken: json['NextToken'] as String?, differences: (json['differences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Difference.fromJson(e as Map)) .toList(), ); @@ -6945,19 +6943,19 @@ class GetFolderOutput { commitId: json['commitId'] as String, folderPath: json['folderPath'] as String, files: (json['files'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => File.fromJson(e as Map)) .toList(), subFolders: (json['subFolders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Folder.fromJson(e as Map)) .toList(), subModules: (json['subModules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubModule.fromJson(e as Map)) .toList(), symbolicLinks: (json['symbolicLinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SymbolicLink.fromJson(e as Map)) .toList(), treeId: json['treeId'] as String?, @@ -7035,7 +7033,7 @@ class GetMergeConflictsOutput { factory GetMergeConflictsOutput.fromJson(Map json) { return GetMergeConflictsOutput( conflictMetadataList: (json['conflictMetadataList'] as List) - .whereNotNull() + .nonNulls .map((e) => ConflictMetadata.fromJson(e as Map)) .toList(), destinationCommitId: json['destinationCommitId'] as String, @@ -7074,7 +7072,7 @@ class GetMergeOptionsOutput { baseCommitId: json['baseCommitId'] as String, destinationCommitId: json['destinationCommitId'] as String, mergeOptions: (json['mergeOptions'] as List) - .whereNotNull() + .nonNulls .map((e) => MergeOptionTypeEnum.fromString((e as String))) .toList(), sourceCommitId: json['sourceCommitId'] as String, @@ -7094,7 +7092,7 @@ class GetPullRequestApprovalStatesOutput { Map json) { return GetPullRequestApprovalStatesOutput( approvals: (json['approvals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Approval.fromJson(e as Map)) .toList(), ); @@ -7176,7 +7174,7 @@ class GetRepositoryTriggersOutput { return GetRepositoryTriggersOutput( configurationId: json['configurationId'] as String?, triggers: (json['triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryTrigger.fromJson(e as Map)) .toList(), ); @@ -7230,7 +7228,7 @@ class ListApprovalRuleTemplatesOutput { factory ListApprovalRuleTemplatesOutput.fromJson(Map json) { return ListApprovalRuleTemplatesOutput( approvalRuleTemplateNames: (json['approvalRuleTemplateNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -7255,7 +7253,7 @@ class ListAssociatedApprovalRuleTemplatesForRepositoryOutput { Map json) { return ListAssociatedApprovalRuleTemplatesForRepositoryOutput( approvalRuleTemplateNames: (json['approvalRuleTemplateNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -7279,7 +7277,7 @@ class ListBranchesOutput { factory ListBranchesOutput.fromJson(Map json) { return ListBranchesOutput( branches: (json['branches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -7303,7 +7301,7 @@ class ListFileCommitHistoryResponse { factory ListFileCommitHistoryResponse.fromJson(Map json) { return ListFileCommitHistoryResponse( revisionDag: (json['revisionDag'] as List) - .whereNotNull() + .nonNulls .map((e) => FileVersion.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7327,7 +7325,7 @@ class ListPullRequestsOutput { factory ListPullRequestsOutput.fromJson(Map json) { return ListPullRequestsOutput( pullRequestIds: (json['pullRequestIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -7354,7 +7352,7 @@ class ListRepositoriesForApprovalRuleTemplateOutput { return ListRepositoriesForApprovalRuleTemplateOutput( nextToken: json['nextToken'] as String?, repositoryNames: (json['repositoryNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7381,7 +7379,7 @@ class ListRepositoriesOutput { return ListRepositoriesOutput( nextToken: json['nextToken'] as String?, repositories: (json['repositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryNameIdPair.fromJson(e as Map)) .toList(), ); @@ -7989,7 +7987,7 @@ class PullRequest { factory PullRequest.fromJson(Map json) { return PullRequest( approvalRules: (json['approvalRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApprovalRule.fromJson(e as Map)) .toList(), authorArn: json['authorArn'] as String?, @@ -8001,7 +7999,7 @@ class PullRequest { pullRequestStatus: (json['pullRequestStatus'] as String?) ?.let(PullRequestStatusEnum.fromString), pullRequestTargets: (json['pullRequestTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PullRequestTarget.fromJson(e as Map)) .toList(), revisionId: json['revisionId'] as String?, @@ -8439,7 +8437,7 @@ class ReactionForComment { json['reaction'] as Map) : null, reactionUsers: (json['reactionUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), reactionsFromDeletedUsersCount: @@ -8680,12 +8678,12 @@ class RepositoryTrigger { return RepositoryTrigger( destinationArn: json['destinationArn'] as String, events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositoryTriggerEventEnum.fromString((e as String))) .toList(), name: json['name'] as String, branches: (json['branches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), customData: json['customData'] as String?, @@ -8918,12 +8916,12 @@ class TestRepositoryTriggersOutput { factory TestRepositoryTriggersOutput.fromJson(Map json) { return TestRepositoryTriggersOutput( failedExecutions: (json['failedExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryTriggerExecutionFailure.fromJson( e as Map)) .toList(), successfulExecutions: (json['successfulExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_codecommit_api/pubspec.yaml b/generated/aws_codecommit_api/pubspec.yaml index e8e5fc6e3..88ab5212b 100644 --- a/generated/aws_codecommit_api/pubspec.yaml +++ b/generated/aws_codecommit_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_codeco protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_codeguru_reviewer_api/lib/codeguru-reviewer-2019-09-19.dart b/generated/aws_codeguru_reviewer_api/lib/codeguru-reviewer-2019-09-19.dart index bbd209a13..0720c13cf 100644 --- a/generated/aws_codeguru_reviewer_api/lib/codeguru-reviewer-2019-09-19.dart +++ b/generated/aws_codeguru_reviewer_api/lib/codeguru-reviewer-2019-09-19.dart @@ -1082,7 +1082,7 @@ class CodeReview { factory CodeReview.fromJson(Map json) { return CodeReview( analysisTypes: (json['AnalysisTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisType.fromString((e as String))) .toList(), associationArn: json['AssociationArn'] as String?, @@ -1571,7 +1571,7 @@ class ListCodeReviewsResponse { factory ListCodeReviewsResponse.fromJson(Map json) { return ListCodeReviewsResponse( codeReviewSummaries: (json['CodeReviewSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeReviewSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1600,7 +1600,7 @@ class ListRecommendationFeedbackResponse { nextToken: json['NextToken'] as String?, recommendationFeedbackSummaries: (json['RecommendationFeedbackSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationFeedbackSummary.fromJson(e as Map)) .toList(), @@ -1624,7 +1624,7 @@ class ListRecommendationsResponse { return ListRecommendationsResponse( nextToken: json['NextToken'] as String?, recommendationSummaries: (json['RecommendationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationSummary.fromJson(e as Map)) .toList(), ); @@ -1653,7 +1653,7 @@ class ListRepositoryAssociationsResponse { nextToken: json['NextToken'] as String?, repositoryAssociationSummaries: (json['RepositoryAssociationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryAssociationSummary.fromJson(e as Map)) .toList(), @@ -1886,7 +1886,7 @@ class RecommendationFeedback { createdTimeStamp: timeStampFromJson(json['CreatedTimeStamp']), lastUpdatedTimeStamp: timeStampFromJson(json['LastUpdatedTimeStamp']), reactions: (json['Reactions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Reaction.fromString((e as String))) .toList(), recommendationId: json['RecommendationId'] as String?, @@ -1923,7 +1923,7 @@ class RecommendationFeedbackSummary { factory RecommendationFeedbackSummary.fromJson(Map json) { return RecommendationFeedbackSummary( reactions: (json['Reactions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Reaction.fromString((e as String))) .toList(), recommendationId: json['RecommendationId'] as String?, @@ -2452,7 +2452,7 @@ class RuleMetadata { ruleId: json['RuleId'] as String?, ruleName: json['RuleName'] as String?, ruleTags: (json['RuleTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), shortDescription: json['ShortDescription'] as String?, diff --git a/generated/aws_codeguru_reviewer_api/pubspec.yaml b/generated/aws_codeguru_reviewer_api/pubspec.yaml index 73e3c4a29..73bbf79e1 100644 --- a/generated/aws_codeguru_reviewer_api/pubspec.yaml +++ b/generated/aws_codeguru_reviewer_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_codegu protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_codeguruprofiler_api/lib/codeguruprofiler-2019-07-18.dart b/generated/aws_codeguruprofiler_api/lib/codeguruprofiler-2019-07-18.dart index 0716eecdb..fe0f3fc72 100644 --- a/generated/aws_codeguruprofiler_api/lib/codeguruprofiler-2019-07-18.dart +++ b/generated/aws_codeguruprofiler_api/lib/codeguruprofiler-2019-07-18.dart @@ -1528,7 +1528,7 @@ class Anomaly { factory Anomaly.fromJson(Map json) { return Anomaly( instances: (json['instances'] as List) - .whereNotNull() + .nonNulls .map((e) => AnomalyInstance.fromJson(e as Map)) .toList(), metric: Metric.fromJson(json['metric'] as Map), @@ -1636,11 +1636,11 @@ class BatchGetFrameMetricDataResponse { return BatchGetFrameMetricDataResponse( endTime: nonNullableTimeStampFromJson(json['endTime'] as Object), endTimes: (json['endTimes'] as List) - .whereNotNull() + .nonNulls .map((e) => TimestampStructure.fromJson(e as Map)) .toList(), frameMetricData: (json['frameMetricData'] as List) - .whereNotNull() + .nonNulls .map((e) => FrameMetricDatum.fromJson(e as Map)) .toList(), resolution: AggregationPeriod.fromString((json['resolution'] as String)), @@ -1649,7 +1649,7 @@ class BatchGetFrameMetricDataResponse { .map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => TimestampStructure.fromJson(e as Map)) .toList())), @@ -1684,7 +1684,7 @@ class Channel { factory Channel.fromJson(Map json) { return Channel( eventPublishers: (json['eventPublishers'] as List) - .whereNotNull() + .nonNulls .map((e) => EventPublisher.fromString((e as String))) .toList(), uri: json['uri'] as String, @@ -1866,7 +1866,7 @@ class FrameMetric { return FrameMetric( frameName: json['frameName'] as String, threadStates: (json['threadStates'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), type: MetricType.fromString((json['type'] as String)), @@ -1901,10 +1901,8 @@ class FrameMetricDatum { return FrameMetricDatum( frameMetric: FrameMetric.fromJson(json['frameMetric'] as Map), - values: (json['values'] as List) - .whereNotNull() - .map((e) => e as double) - .toList(), + values: + (json['values'] as List).nonNulls.map((e) => e as double).toList(), ); } } @@ -1934,7 +1932,7 @@ class GetFindingsReportAccountSummaryResponse { Map json) { return GetFindingsReportAccountSummaryResponse( reportSummaries: (json['reportSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => FindingsReportSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2034,7 +2032,7 @@ class GetRecommendationsResponse { factory GetRecommendationsResponse.fromJson(Map json) { return GetRecommendationsResponse( anomalies: (json['anomalies'] as List) - .whereNotNull() + .nonNulls .map((e) => Anomaly.fromJson(e as Map)) .toList(), profileEndTime: @@ -2043,7 +2041,7 @@ class GetRecommendationsResponse { nonNullableTimeStampFromJson(json['profileStartTime'] as Object), profilingGroupName: json['profilingGroupName'] as String, recommendations: (json['recommendations'] as List) - .whereNotNull() + .nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), ); @@ -2070,7 +2068,7 @@ class ListFindingsReportsResponse { factory ListFindingsReportsResponse.fromJson(Map json) { return ListFindingsReportsResponse( findingsReportSummaries: (json['findingsReportSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => FindingsReportSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2099,7 +2097,7 @@ class ListProfileTimesResponse { factory ListProfileTimesResponse.fromJson(Map json) { return ListProfileTimesResponse( profileTimes: (json['profileTimes'] as List) - .whereNotNull() + .nonNulls .map((e) => ProfileTime.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2141,12 +2139,12 @@ class ListProfilingGroupsResponse { factory ListProfilingGroupsResponse.fromJson(Map json) { return ListProfilingGroupsResponse( profilingGroupNames: (json['profilingGroupNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, profilingGroups: (json['profilingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfilingGroupDescription.fromJson(e as Map)) .toList(), @@ -2250,7 +2248,7 @@ class Metric { return Metric( frameName: json['frameName'] as String, threadStates: (json['threadStates'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), type: MetricType.fromString((json['type'] as String)), @@ -2286,7 +2284,7 @@ class NotificationConfiguration { factory NotificationConfiguration.fromJson(Map json) { return NotificationConfiguration( channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), ); @@ -2348,7 +2346,7 @@ class Pattern { factory Pattern.fromJson(Map json) { return Pattern( countersToAggregate: (json['countersToAggregate'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -2356,9 +2354,8 @@ class Pattern { name: json['name'] as String?, resolutionSteps: json['resolutionSteps'] as String?, targetFrames: (json['targetFrames'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), thresholdPercent: json['thresholdPercent'] as double?, ); @@ -2574,7 +2571,7 @@ class Recommendation { pattern: Pattern.fromJson(json['pattern'] as Map), startTime: nonNullableTimeStampFromJson(json['startTime'] as Object), topMatches: (json['topMatches'] as List) - .whereNotNull() + .nonNulls .map((e) => Match.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_codeguruprofiler_api/pubspec.yaml b/generated/aws_codeguruprofiler_api/pubspec.yaml index 0d5c803ff..433ec3945 100644 --- a/generated/aws_codeguruprofiler_api/pubspec.yaml +++ b/generated/aws_codeguruprofiler_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_codegu protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_codepipeline_api/lib/codepipeline-2015-07-09.dart b/generated/aws_codepipeline_api/lib/codepipeline-2015-07-09.dart index 384a57e8a..5a283a2a8 100644 --- a/generated/aws_codepipeline_api/lib/codepipeline-2015-07-09.dart +++ b/generated/aws_codepipeline_api/lib/codepipeline-2015-07-09.dart @@ -2161,12 +2161,12 @@ class ActionDeclaration { configuration: (json['configuration'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), inputArtifacts: (json['inputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputArtifact.fromJson(e as Map)) .toList(), namespace: json['namespace'] as String?, outputArtifacts: (json['outputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputArtifact.fromJson(e as Map)) .toList(), region: json['region'] as String?, @@ -2426,7 +2426,7 @@ class ActionExecutionInput { configuration: (json['configuration'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), inputArtifacts: (json['inputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ArtifactDetail.fromJson(e as Map)) .toList(), namespace: json['namespace'] as String?, @@ -2467,7 +2467,7 @@ class ActionExecutionOutput { json['executionResult'] as Map) : null, outputArtifacts: (json['outputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ArtifactDetail.fromJson(e as Map)) .toList(), outputVariables: (json['outputVariables'] as Map?) @@ -2659,7 +2659,7 @@ class ActionType { json['outputArtifactDetails'] as Map), actionConfigurationProperties: (json['actionConfigurationProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionConfigurationProperty.fromJson(e as Map)) .toList(), @@ -2765,7 +2765,7 @@ class ActionTypeDeclaration { json['permissions'] as Map) : null, properties: (json['properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionTypeProperty.fromJson(e as Map)) .toList(), urls: json['urls'] != null @@ -3013,7 +3013,7 @@ class ActionTypePermissions { factory ActionTypePermissions.fromJson(Map json) { return ActionTypePermissions( allowedAccounts: (json['allowedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -3540,7 +3540,7 @@ class CreateCustomActionTypeOutput { actionType: ActionType.fromJson(json['actionType'] as Map), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3568,7 +3568,7 @@ class CreatePipelineOutput { json['pipeline'] as Map) : null, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4047,7 +4047,7 @@ class GetPipelineStateOutput { pipelineName: json['pipelineName'] as String?, pipelineVersion: json['pipelineVersion'] as int?, stageStates: (json['stageStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StageState.fromJson(e as Map)) .toList(), updated: timeStampFromJson(json['updated']), @@ -4093,11 +4093,11 @@ class GitBranchFilterCriteria { factory GitBranchFilterCriteria.fromJson(Map json) { return GitBranchFilterCriteria( excludes: (json['excludes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includes: (json['includes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4146,11 +4146,11 @@ class GitConfiguration { return GitConfiguration( sourceActionName: json['sourceActionName'] as String, pullRequest: (json['pullRequest'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GitPullRequestFilter.fromJson(e as Map)) .toList(), push: (json['push'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GitPushFilter.fromJson(e as Map)) .toList(), ); @@ -4187,11 +4187,11 @@ class GitFilePathFilterCriteria { factory GitFilePathFilterCriteria.fromJson(Map json) { return GitFilePathFilterCriteria( excludes: (json['excludes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includes: (json['includes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4251,7 +4251,7 @@ class GitPullRequestFilter { json['branches'] as Map) : null, events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GitPullRequestEventType.fromString((e as String))) .toList(), filePaths: json['filePaths'] != null @@ -4341,11 +4341,11 @@ class GitTagFilterCriteria { factory GitTagFilterCriteria.fromJson(Map json) { return GitTagFilterCriteria( excludes: (json['excludes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includes: (json['includes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4499,11 +4499,11 @@ class JobData { json['encryptionKey'] as Map) : null, inputArtifacts: (json['inputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Artifact.fromJson(e as Map)) .toList(), outputArtifacts: (json['outputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Artifact.fromJson(e as Map)) .toList(), pipelineContext: json['pipelineContext'] != null @@ -4581,11 +4581,11 @@ class JobWorkerExecutorConfiguration { factory JobWorkerExecutorConfiguration.fromJson(Map json) { return JobWorkerExecutorConfiguration( pollingAccounts: (json['pollingAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), pollingServicePrincipals: (json['pollingServicePrincipals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4681,7 +4681,7 @@ class ListActionExecutionsOutput { factory ListActionExecutionsOutput.fromJson(Map json) { return ListActionExecutionsOutput( actionExecutionDetails: (json['actionExecutionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionExecutionDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4707,7 +4707,7 @@ class ListActionTypesOutput { factory ListActionTypesOutput.fromJson(Map json) { return ListActionTypesOutput( actionTypes: (json['actionTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => ActionType.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4734,7 +4734,7 @@ class ListPipelineExecutionsOutput { return ListPipelineExecutionsOutput( nextToken: json['nextToken'] as String?, pipelineExecutionSummaries: (json['pipelineExecutionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineExecutionSummary.fromJson(e as Map)) .toList(), @@ -4761,7 +4761,7 @@ class ListPipelinesOutput { return ListPipelinesOutput( nextToken: json['nextToken'] as String?, pipelines: (json['pipelines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineSummary.fromJson(e as Map)) .toList(), ); @@ -4787,7 +4787,7 @@ class ListTagsForResourceOutput { return ListTagsForResourceOutput( nextToken: json['nextToken'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4843,7 +4843,7 @@ class ListWebhookItem { errorMessage: json['errorMessage'] as String?, lastTriggered: timeStampFromJson(json['lastTriggered']), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4869,7 +4869,7 @@ class ListWebhooksOutput { return ListWebhooksOutput( nextToken: json['NextToken'] as String?, webhooks: (json['webhooks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListWebhookItem.fromJson(e as Map)) .toList(), ); @@ -5055,7 +5055,7 @@ class PipelineDeclaration { name: json['name'] as String, roleArn: json['roleArn'] as String, stages: (json['stages'] as List) - .whereNotNull() + .nonNulls .map((e) => StageDeclaration.fromJson(e as Map)) .toList(), artifactStore: json['artifactStore'] != null @@ -5070,12 +5070,12 @@ class PipelineDeclaration { pipelineType: (json['pipelineType'] as String?)?.let(PipelineType.fromString), triggers: (json['triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineTriggerDeclaration.fromJson(e as Map)) .toList(), variables: (json['variables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineVariableDeclaration.fromJson(e as Map)) .toList(), @@ -5197,7 +5197,7 @@ class PipelineExecution { factory PipelineExecution.fromJson(Map json) { return PipelineExecution( artifactRevisions: (json['artifactRevisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ArtifactRevision.fromJson(e as Map)) .toList(), executionMode: @@ -5218,7 +5218,7 @@ class PipelineExecution { ? ExecutionTrigger.fromJson(json['trigger'] as Map) : null, variables: (json['variables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolvedPipelineVariable.fromJson(e as Map)) .toList(), @@ -5362,7 +5362,7 @@ class PipelineExecutionSummary { json['rollbackMetadata'] as Map) : null, sourceRevisions: (json['sourceRevisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceRevision.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['startTime']), @@ -5648,7 +5648,7 @@ class PollForJobsOutput { factory PollForJobsOutput.fromJson(Map json) { return PollForJobsOutput( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), ); @@ -5667,7 +5667,7 @@ class PollForThirdPartyJobsOutput { factory PollForThirdPartyJobsOutput.fromJson(Map json) { return PollForThirdPartyJobsOutput( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThirdPartyJob.fromJson(e as Map)) .toList(), ); @@ -5977,12 +5977,12 @@ class StageDeclaration { factory StageDeclaration.fromJson(Map json) { return StageDeclaration( actions: (json['actions'] as List) - .whereNotNull() + .nonNulls .map((e) => ActionDeclaration.fromJson(e as Map)) .toList(), name: json['name'] as String, blockers: (json['blockers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BlockerDeclaration.fromJson(e as Map)) .toList(), onFailure: json['onFailure'] != null @@ -6103,7 +6103,7 @@ class StageState { factory StageState.fromJson(Map json) { return StageState( actionStates: (json['actionStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionState.fromJson(e as Map)) .toList(), inboundExecution: json['inboundExecution'] != null @@ -6111,7 +6111,7 @@ class StageState { json['inboundExecution'] as Map) : null, inboundExecutions: (json['inboundExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StageExecution.fromJson(e as Map)) .toList(), inboundTransitionState: json['inboundTransitionState'] != null @@ -6358,11 +6358,11 @@ class ThirdPartyJobData { json['encryptionKey'] as Map) : null, inputArtifacts: (json['inputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Artifact.fromJson(e as Map)) .toList(), outputArtifacts: (json['outputArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Artifact.fromJson(e as Map)) .toList(), pipelineContext: json['pipelineContext'] != null @@ -6592,7 +6592,7 @@ class WebhookDefinition { authenticationConfiguration: WebhookAuthConfiguration.fromJson( json['authenticationConfiguration'] as Map), filters: (json['filters'] as List) - .whereNotNull() + .nonNulls .map((e) => WebhookFilterRule.fromJson(e as Map)) .toList(), name: json['name'] as String, diff --git a/generated/aws_codepipeline_api/pubspec.yaml b/generated/aws_codepipeline_api/pubspec.yaml index 119c5069a..41c6ae8a9 100644 --- a/generated/aws_codepipeline_api/pubspec.yaml +++ b/generated/aws_codepipeline_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_codepi protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_codestar_api/lib/codestar-2017-04-19.dart b/generated/aws_codestar_api/lib/codestar-2017-04-19.dart index 2ac60e03d..81b48b6d3 100644 --- a/generated/aws_codestar_api/lib/codestar-2017-04-19.dart +++ b/generated/aws_codestar_api/lib/codestar-2017-04-19.dart @@ -1264,7 +1264,7 @@ class ListProjectsResult { factory ListProjectsResult.fromJson(Map json) { return ListProjectsResult( projects: (json['projects'] as List) - .whereNotNull() + .nonNulls .map((e) => ProjectSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1289,7 +1289,7 @@ class ListResourcesResult { return ListResourcesResult( nextToken: json['nextToken'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -1333,7 +1333,7 @@ class ListTeamMembersResult { factory ListTeamMembersResult.fromJson(Map json) { return ListTeamMembersResult( teamMembers: (json['teamMembers'] as List) - .whereNotNull() + .nonNulls .map((e) => TeamMember.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1357,7 +1357,7 @@ class ListUserProfilesResult { factory ListUserProfilesResult.fromJson(Map json) { return ListUserProfilesResult( userProfiles: (json['userProfiles'] as List) - .whereNotNull() + .nonNulls .map((e) => UserProfileSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/generated/aws_codestar_api/pubspec.yaml b/generated/aws_codestar_api/pubspec.yaml index 084f900a9..a7b266eaa 100644 --- a/generated/aws_codestar_api/pubspec.yaml +++ b/generated/aws_codestar_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_codest protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_codestar_connections_api/lib/codestar-connections-2019-12-01.dart b/generated/aws_codestar_connections_api/lib/codestar-connections-2019-12-01.dart index 63ea4c3b6..d6924b260 100644 --- a/generated/aws_codestar_connections_api/lib/codestar-connections-2019-12-01.dart +++ b/generated/aws_codestar_connections_api/lib/codestar-connections-2019-12-01.dart @@ -1362,7 +1362,7 @@ class CreateConnectionOutput { return CreateConnectionOutput( connectionArn: json['ConnectionArn'] as String, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1385,7 +1385,7 @@ class CreateHostOutput { return CreateHostOutput( hostArn: json['HostArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1691,7 +1691,7 @@ class ListConnectionsOutput { factory ListConnectionsOutput.fromJson(Map json) { return ListConnectionsOutput( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1717,7 +1717,7 @@ class ListHostsOutput { factory ListHostsOutput.fromJson(Map json) { return ListHostsOutput( hosts: (json['Hosts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Host.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1741,7 +1741,7 @@ class ListRepositoryLinksOutput { factory ListRepositoryLinksOutput.fromJson(Map json) { return ListRepositoryLinksOutput( repositoryLinks: (json['RepositoryLinks'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositoryLinkInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1769,7 +1769,7 @@ class ListRepositorySyncDefinitionsOutput { Map json) { return ListRepositorySyncDefinitionsOutput( repositorySyncDefinitions: (json['RepositorySyncDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositorySyncDefinition.fromJson(e as Map)) .toList(), @@ -1794,7 +1794,7 @@ class ListSyncConfigurationsOutput { factory ListSyncConfigurationsOutput.fromJson(Map json) { return ListSyncConfigurationsOutput( syncConfigurations: (json['SyncConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => SyncConfiguration.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1813,7 +1813,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1944,7 +1944,7 @@ class RepositorySyncAttempt { factory RepositorySyncAttempt.fromJson(Map json) { return RepositorySyncAttempt( events: (json['Events'] as List) - .whereNotNull() + .nonNulls .map((e) => RepositorySyncEvent.fromJson(e as Map)) .toList(), startedAt: nonNullableTimeStampFromJson(json['StartedAt'] as Object), @@ -2088,7 +2088,7 @@ class ResourceSyncAttempt { factory ResourceSyncAttempt.fromJson(Map json) { return ResourceSyncAttempt( events: (json['Events'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceSyncEvent.fromJson(e as Map)) .toList(), initialRevision: @@ -2239,7 +2239,7 @@ class SyncBlocker { status: BlockerStatus.fromString((json['Status'] as String)), type: BlockerType.fromString((json['Type'] as String)), contexts: (json['Contexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyncBlockerContext.fromJson(e as Map)) .toList(), resolvedAt: timeStampFromJson(json['ResolvedAt']), @@ -2290,7 +2290,7 @@ class SyncBlockerSummary { return SyncBlockerSummary( resourceName: json['ResourceName'] as String, latestBlockers: (json['LatestBlockers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyncBlocker.fromJson(e as Map)) .toList(), parentResourceName: json['ParentResourceName'] as String?, @@ -2546,13 +2546,11 @@ class VpcConfiguration { factory VpcConfiguration.fromJson(Map json) { return VpcConfiguration( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['SubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['SubnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String, tlsCertificate: json['TlsCertificate'] as String?, ); diff --git a/generated/aws_codestar_connections_api/pubspec.yaml b/generated/aws_codestar_connections_api/pubspec.yaml index c4636009e..4ea4be4d7 100644 --- a/generated/aws_codestar_connections_api/pubspec.yaml +++ b/generated/aws_codestar_connections_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_codest protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_codestar_notifications_api/lib/codestar-notifications-2019-10-15.dart b/generated/aws_codestar_notifications_api/lib/codestar-notifications-2019-10-15.dart index 38dfaeb0e..f19efb9df 100644 --- a/generated/aws_codestar_notifications_api/lib/codestar-notifications-2019-10-15.dart +++ b/generated/aws_codestar_notifications_api/lib/codestar-notifications-2019-10-15.dart @@ -725,7 +725,7 @@ class DescribeNotificationRuleResult { createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), detailType: (json['DetailType'] as String?)?.let(DetailType.fromString), eventTypes: (json['EventTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventTypeSummary.fromJson(e as Map)) .toList(), lastModifiedTimestamp: timeStampFromJson(json['LastModifiedTimestamp']), @@ -736,7 +736,7 @@ class DescribeNotificationRuleResult { tags: (json['Tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetSummary.fromJson(e as Map)) .toList(), ); @@ -848,7 +848,7 @@ class ListEventTypesResult { factory ListEventTypesResult.fromJson(Map json) { return ListEventTypesResult( eventTypes: (json['EventTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventTypeSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -919,7 +919,7 @@ class ListNotificationRulesResult { return ListNotificationRulesResult( nextToken: json['NextToken'] as String?, notificationRules: (json['NotificationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationRuleSummary.fromJson(e as Map)) .toList(), @@ -1006,7 +1006,7 @@ class ListTargetsResult { return ListTargetsResult( nextToken: json['NextToken'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetSummary.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_codestar_notifications_api/pubspec.yaml b/generated/aws_codestar_notifications_api/pubspec.yaml index 7bddef10f..b6be41f41 100644 --- a/generated/aws_codestar_notifications_api/pubspec.yaml +++ b/generated/aws_codestar_notifications_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_codest protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cognito_identity_api/lib/cognito-identity-2014-06-30.dart b/generated/aws_cognito_identity_api/lib/cognito-identity-2014-06-30.dart index 899e53335..b62748809 100644 --- a/generated/aws_cognito_identity_api/lib/cognito-identity-2014-06-30.dart +++ b/generated/aws_cognito_identity_api/lib/cognito-identity-2014-06-30.dart @@ -1432,7 +1432,7 @@ class DeleteIdentitiesResponse { factory DeleteIdentitiesResponse.fromJson(Map json) { return DeleteIdentitiesResponse( unprocessedIdentityIds: (json['UnprocessedIdentityIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedIdentityId.fromJson(e as Map)) .toList(), ); @@ -1634,10 +1634,8 @@ class IdentityDescription { creationDate: timeStampFromJson(json['CreationDate']), identityId: json['IdentityId'] as String?, lastModifiedDate: timeStampFromJson(json['LastModifiedDate']), - logins: (json['Logins'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + logins: + (json['Logins'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -1702,7 +1700,7 @@ class IdentityPool { identityPoolName: json['IdentityPoolName'] as String, allowClassicFlow: json['AllowClassicFlow'] as bool?, cognitoIdentityProviders: (json['CognitoIdentityProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CognitoIdentityProvider.fromJson(e as Map)) .toList(), @@ -1710,11 +1708,11 @@ class IdentityPool { identityPoolTags: (json['IdentityPoolTags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), openIdConnectProviderARNs: (json['OpenIdConnectProviderARNs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), samlProviderARNs: (json['SamlProviderARNs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedLoginProviders: @@ -1765,7 +1763,7 @@ class ListIdentitiesResponse { factory ListIdentitiesResponse.fromJson(Map json) { return ListIdentitiesResponse( identities: (json['Identities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityDescription.fromJson(e as Map)) .toList(), identityPoolId: json['IdentityPoolId'] as String?, @@ -1790,7 +1788,7 @@ class ListIdentityPoolsResponse { factory ListIdentityPoolsResponse.fromJson(Map json) { return ListIdentityPoolsResponse( identityPools: (json['IdentityPools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityPoolShortDescription.fromJson(e as Map)) .toList(), @@ -1845,7 +1843,7 @@ class LookupDeveloperIdentityResponse { return LookupDeveloperIdentityResponse( developerUserIdentifierList: (json['DeveloperUserIdentifierList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), identityId: json['IdentityId'] as String?, @@ -2018,7 +2016,7 @@ class RulesConfigurationType { factory RulesConfigurationType.fromJson(Map json) { return RulesConfigurationType( rules: (json['Rules'] as List) - .whereNotNull() + .nonNulls .map((e) => MappingRule.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_cognito_identity_api/pubspec.yaml b/generated/aws_cognito_identity_api/pubspec.yaml index dab9e8320..1d7133d7c 100644 --- a/generated/aws_cognito_identity_api/pubspec.yaml +++ b/generated/aws_cognito_identity_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_cognit protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cognito_idp_api/lib/cognito-idp-2016-04-18.dart b/generated/aws_cognito_idp_api/lib/cognito-idp-2016-04-18.dart index b0acea12b..1899d0cc9 100644 --- a/generated/aws_cognito_idp_api/lib/cognito-idp-2016-04-18.dart +++ b/generated/aws_cognito_idp_api/lib/cognito-idp-2016-04-18.dart @@ -9758,7 +9758,7 @@ class AccountRecoverySettingType { factory AccountRecoverySettingType.fromJson(Map json) { return AccountRecoverySettingType( recoveryMechanisms: (json['RecoveryMechanisms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecoveryOptionType.fromJson(e as Map)) .toList(), ); @@ -10147,18 +10147,18 @@ class AdminGetUserResponse { username: json['Username'] as String, enabled: json['Enabled'] as bool?, mFAOptions: (json['MFAOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MFAOptionType.fromJson(e as Map)) .toList(), preferredMfaSetting: json['PreferredMfaSetting'] as String?, userAttributes: (json['UserAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeType.fromJson(e as Map)) .toList(), userCreateDate: timeStampFromJson(json['UserCreateDate']), userLastModifiedDate: timeStampFromJson(json['UserLastModifiedDate']), userMFASettingList: (json['UserMFASettingList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userStatus: @@ -10327,7 +10327,7 @@ class AdminListDevicesResponse { factory AdminListDevicesResponse.fromJson(Map json) { return AdminListDevicesResponse( devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceType.fromJson(e as Map)) .toList(), paginationToken: json['PaginationToken'] as String?, @@ -10351,7 +10351,7 @@ class AdminListGroupsForUserResponse { factory AdminListGroupsForUserResponse.fromJson(Map json) { return AdminListGroupsForUserResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupType.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -10376,7 +10376,7 @@ class AdminListUserAuthEventsResponse { factory AdminListUserAuthEventsResponse.fromJson(Map json) { return AdminListUserAuthEventsResponse( authEvents: (json['AuthEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthEventType.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -10736,7 +10736,7 @@ class AuthEventType { factory AuthEventType.fromJson(Map json) { return AuthEventType( challengeResponses: (json['ChallengeResponses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChallengeResponseType.fromJson(e as Map)) .toList(), creationDate: timeStampFromJson(json['CreationDate']), @@ -11031,7 +11031,7 @@ class CompromisedCredentialsRiskConfigurationType { actions: CompromisedCredentialsActionsType.fromJson( json['Actions'] as Map), eventFilter: (json['EventFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventFilterType.fromString((e as String))) .toList(), ); @@ -11717,7 +11717,7 @@ class DeviceType { factory DeviceType.fromJson(Map json) { return DeviceType( deviceAttributes: (json['DeviceAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeType.fromJson(e as Map)) .toList(), deviceCreateDate: timeStampFromJson(json['DeviceCreateDate']), @@ -12200,7 +12200,7 @@ class GetCSVHeaderResponse { factory GetCSVHeaderResponse.fromJson(Map json) { return GetCSVHeaderResponse( cSVHeader: (json['CSVHeader'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userPoolId: json['UserPoolId'] as String?, @@ -12414,17 +12414,17 @@ class GetUserResponse { factory GetUserResponse.fromJson(Map json) { return GetUserResponse( userAttributes: (json['UserAttributes'] as List) - .whereNotNull() + .nonNulls .map((e) => AttributeType.fromJson(e as Map)) .toList(), username: json['Username'] as String, mFAOptions: (json['MFAOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MFAOptionType.fromJson(e as Map)) .toList(), preferredMfaSetting: json['PreferredMfaSetting'] as String?, userMFASettingList: (json['UserMFASettingList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12674,7 +12674,7 @@ class IdentityProviderType { ?.map((k, e) => MapEntry(k, e as String)), creationDate: timeStampFromJson(json['CreationDate']), idpIdentifiers: (json['IdpIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastModifiedDate: timeStampFromJson(json['LastModifiedDate']), @@ -12984,7 +12984,7 @@ class ListDevicesResponse { factory ListDevicesResponse.fromJson(Map json) { return ListDevicesResponse( devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceType.fromJson(e as Map)) .toList(), paginationToken: json['PaginationToken'] as String?, @@ -13008,7 +13008,7 @@ class ListGroupsResponse { factory ListGroupsResponse.fromJson(Map json) { return ListGroupsResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupType.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13031,7 +13031,7 @@ class ListIdentityProvidersResponse { factory ListIdentityProvidersResponse.fromJson(Map json) { return ListIdentityProvidersResponse( providers: (json['Providers'] as List) - .whereNotNull() + .nonNulls .map((e) => ProviderDescription.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13054,7 +13054,7 @@ class ListResourceServersResponse { factory ListResourceServersResponse.fromJson(Map json) { return ListResourceServersResponse( resourceServers: (json['ResourceServers'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceServerType.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13099,7 +13099,7 @@ class ListUserImportJobsResponse { return ListUserImportJobsResponse( paginationToken: json['PaginationToken'] as String?, userImportJobs: (json['UserImportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserImportJobType.fromJson(e as Map)) .toList(), ); @@ -13124,7 +13124,7 @@ class ListUserPoolClientsResponse { return ListUserPoolClientsResponse( nextToken: json['NextToken'] as String?, userPoolClients: (json['UserPoolClients'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserPoolClientDescription.fromJson(e as Map)) .toList(), @@ -13150,7 +13150,7 @@ class ListUserPoolsResponse { return ListUserPoolsResponse( nextToken: json['NextToken'] as String?, userPools: (json['UserPools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserPoolDescriptionType.fromJson(e as Map)) .toList(), @@ -13175,7 +13175,7 @@ class ListUsersInGroupResponse { return ListUsersInGroupResponse( nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserType.fromJson(e as Map)) .toList(), ); @@ -13212,7 +13212,7 @@ class ListUsersResponse { return ListUsersResponse( paginationToken: json['PaginationToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserType.fromJson(e as Map)) .toList(), ); @@ -13278,7 +13278,7 @@ class LogDeliveryConfigurationType { factory LogDeliveryConfigurationType.fromJson(Map json) { return LogDeliveryConfigurationType( logConfigurations: (json['LogConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => LogConfigurationType.fromJson(e as Map)) .toList(), userPoolId: json['UserPoolId'] as String, @@ -13907,7 +13907,7 @@ class ResourceServerType { identifier: json['Identifier'] as String?, name: json['Name'] as String?, scopes: (json['Scopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceServerScopeType.fromJson(e as Map)) .toList(), @@ -14062,11 +14062,11 @@ class RiskExceptionConfigurationType { factory RiskExceptionConfigurationType.fromJson(Map json) { return RiskExceptionConfigurationType( blockedIPRangeList: (json['BlockedIPRangeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), skippedIPRangeList: (json['SkippedIPRangeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -14865,7 +14865,7 @@ class UpdateUserAttributesResponse { factory UpdateUserAttributesResponse.fromJson(Map json) { return UpdateUserAttributesResponse( codeDeliveryDetailsList: (json['CodeDeliveryDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeDeliveryDetailsType.fromJson(e as Map)) .toList(), @@ -14959,7 +14959,7 @@ class UserAttributeUpdateSettingsType { return UserAttributeUpdateSettingsType( attributesRequireVerificationBeforeUpdate: (json['AttributesRequireVerificationBeforeUpdate'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VerifiedAttributeType.fromString((e as String))) .toList(), ); @@ -15573,13 +15573,13 @@ class UserPoolClientType { return UserPoolClientType( accessTokenValidity: json['AccessTokenValidity'] as int?, allowedOAuthFlows: (json['AllowedOAuthFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OAuthFlowType.fromString((e as String))) .toList(), allowedOAuthFlowsUserPoolClient: json['AllowedOAuthFlowsUserPoolClient'] as bool?, allowedOAuthScopes: (json['AllowedOAuthScopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), analyticsConfiguration: json['AnalyticsConfiguration'] != null @@ -15588,7 +15588,7 @@ class UserPoolClientType { : null, authSessionValidity: json['AuthSessionValidity'] as int?, callbackURLs: (json['CallbackURLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clientId: json['ClientId'] as String?, @@ -15600,25 +15600,25 @@ class UserPoolClientType { json['EnablePropagateAdditionalUserContextData'] as bool?, enableTokenRevocation: json['EnableTokenRevocation'] as bool?, explicitAuthFlows: (json['ExplicitAuthFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExplicitAuthFlowsType.fromString((e as String))) .toList(), idTokenValidity: json['IdTokenValidity'] as int?, lastModifiedDate: timeStampFromJson(json['LastModifiedDate']), logoutURLs: (json['LogoutURLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), preventUserExistenceErrors: (json['PreventUserExistenceErrors'] as String?) ?.let(PreventUserExistenceErrorTypes.fromString), readAttributes: (json['ReadAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), refreshTokenValidity: json['RefreshTokenValidity'] as int?, supportedIdentityProviders: (json['SupportedIdentityProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tokenValidityUnits: json['TokenValidityUnits'] != null @@ -15627,7 +15627,7 @@ class UserPoolClientType { : null, userPoolId: json['UserPoolId'] as String?, writeAttributes: (json['WriteAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15975,12 +15975,12 @@ class UserPoolType { json['AdminCreateUserConfig'] as Map) : null, aliasAttributes: (json['AliasAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AliasAttributeType.fromString((e as String))) .toList(), arn: json['Arn'] as String?, autoVerifiedAttributes: (json['AutoVerifiedAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VerifiedAttributeType.fromString((e as String))) .toList(), creationDate: timeStampFromJson(json['CreationDate']), @@ -16014,7 +16014,7 @@ class UserPoolType { json['Policies'] as Map) : null, schemaAttributes: (json['SchemaAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaAttributeType.fromJson(e as Map)) .toList(), smsAuthenticationMessage: json['SmsAuthenticationMessage'] as String?, @@ -16036,7 +16036,7 @@ class UserPoolType { userPoolTags: (json['UserPoolTags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), usernameAttributes: (json['UsernameAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsernameAttributeType.fromString((e as String))) .toList(), usernameConfiguration: json['UsernameConfiguration'] != null @@ -16134,12 +16134,12 @@ class UserType { factory UserType.fromJson(Map json) { return UserType( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeType.fromJson(e as Map)) .toList(), enabled: json['Enabled'] as bool?, mFAOptions: (json['MFAOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MFAOptionType.fromJson(e as Map)) .toList(), userCreateDate: timeStampFromJson(json['UserCreateDate']), diff --git a/generated/aws_cognito_idp_api/pubspec.yaml b/generated/aws_cognito_idp_api/pubspec.yaml index 72ccdff91..e6549d1e5 100644 --- a/generated/aws_cognito_idp_api/pubspec.yaml +++ b/generated/aws_cognito_idp_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_cognit protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cognito_sync_api/lib/cognito-sync-2014-06-30.dart b/generated/aws_cognito_sync_api/lib/cognito-sync-2014-06-30.dart index 05919fca8..291cd357a 100644 --- a/generated/aws_cognito_sync_api/lib/cognito-sync-2014-06-30.dart +++ b/generated/aws_cognito_sync_api/lib/cognito-sync-2014-06-30.dart @@ -1168,7 +1168,7 @@ class ListDatasetsResponse { return ListDatasetsResponse( count: json['Count'] as int?, datasets: (json['Datasets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Dataset.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1201,7 +1201,7 @@ class ListIdentityPoolUsageResponse { return ListIdentityPoolUsageResponse( count: json['Count'] as int?, identityPoolUsages: (json['IdentityPoolUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityPoolUsage.fromJson(e as Map)) .toList(), maxResults: json['MaxResults'] as int?, @@ -1260,12 +1260,12 @@ class ListRecordsResponse { datasetSyncCount: json['DatasetSyncCount'] as int?, lastModifiedBy: json['LastModifiedBy'] as String?, mergedDatasetNames: (json['MergedDatasetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, records: (json['Records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), syncSessionToken: json['SyncSessionToken'] as String?, @@ -1319,7 +1319,7 @@ class PushSync { factory PushSync.fromJson(Map json) { return PushSync( applicationArns: (json['ApplicationArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), roleArn: json['RoleArn'] as String?, @@ -1513,7 +1513,7 @@ class UpdateRecordsResponse { factory UpdateRecordsResponse.fromJson(Map json) { return UpdateRecordsResponse( records: (json['Records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_cognito_sync_api/pubspec.yaml b/generated/aws_cognito_sync_api/pubspec.yaml index 517363f0b..d1a2ce411 100644 --- a/generated/aws_cognito_sync_api/pubspec.yaml +++ b/generated/aws_cognito_sync_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_cognit protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_comprehend_api/lib/comprehend-2017-11-27.dart b/generated/aws_comprehend_api/lib/comprehend-2017-11-27.dart index 62a7a5119..0d406c15d 100644 --- a/generated/aws_comprehend_api/lib/comprehend-2017-11-27.dart +++ b/generated/aws_comprehend_api/lib/comprehend-2017-11-27.dart @@ -4671,7 +4671,7 @@ class AugmentedManifestsListItem { factory AugmentedManifestsListItem.fromJson(Map json) { return AugmentedManifestsListItem( attributeNames: (json['AttributeNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), s3Uri: json['S3Uri'] as String, @@ -4723,7 +4723,7 @@ class BatchDetectDominantLanguageItemResult { return BatchDetectDominantLanguageItemResult( index: json['Index'] as int?, languages: (json['Languages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantLanguage.fromJson(e as Map)) .toList(), ); @@ -4752,11 +4752,11 @@ class BatchDetectDominantLanguageResponse { Map json) { return BatchDetectDominantLanguageResponse( errorList: (json['ErrorList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchItemError.fromJson(e as Map)) .toList(), resultList: (json['ResultList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDetectDominantLanguageItemResult.fromJson( e as Map)) .toList(), @@ -4782,7 +4782,7 @@ class BatchDetectEntitiesItemResult { factory BatchDetectEntitiesItemResult.fromJson(Map json) { return BatchDetectEntitiesItemResult( entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), index: json['Index'] as int?, @@ -4811,11 +4811,11 @@ class BatchDetectEntitiesResponse { factory BatchDetectEntitiesResponse.fromJson(Map json) { return BatchDetectEntitiesResponse( errorList: (json['ErrorList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchItemError.fromJson(e as Map)) .toList(), resultList: (json['ResultList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDetectEntitiesItemResult.fromJson(e as Map)) .toList(), @@ -4842,7 +4842,7 @@ class BatchDetectKeyPhrasesItemResult { return BatchDetectKeyPhrasesItemResult( index: json['Index'] as int?, keyPhrases: (json['KeyPhrases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyPhrase.fromJson(e as Map)) .toList(), ); @@ -4870,11 +4870,11 @@ class BatchDetectKeyPhrasesResponse { factory BatchDetectKeyPhrasesResponse.fromJson(Map json) { return BatchDetectKeyPhrasesResponse( errorList: (json['ErrorList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchItemError.fromJson(e as Map)) .toList(), resultList: (json['ResultList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDetectKeyPhrasesItemResult.fromJson( e as Map)) .toList(), @@ -4934,11 +4934,11 @@ class BatchDetectSentimentResponse { factory BatchDetectSentimentResponse.fromJson(Map json) { return BatchDetectSentimentResponse( errorList: (json['ErrorList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchItemError.fromJson(e as Map)) .toList(), resultList: (json['ResultList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDetectSentimentItemResult.fromJson( e as Map)) .toList(), @@ -4964,7 +4964,7 @@ class BatchDetectSyntaxItemResult { return BatchDetectSyntaxItemResult( index: json['Index'] as int?, syntaxTokens: (json['SyntaxTokens'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyntaxToken.fromJson(e as Map)) .toList(), ); @@ -4992,11 +4992,11 @@ class BatchDetectSyntaxResponse { factory BatchDetectSyntaxResponse.fromJson(Map json) { return BatchDetectSyntaxResponse( errorList: (json['ErrorList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchItemError.fromJson(e as Map)) .toList(), resultList: (json['ResultList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDetectSyntaxItemResult.fromJson(e as Map)) .toList(), @@ -5021,7 +5021,7 @@ class BatchDetectTargetedSentimentItemResult { Map json) { return BatchDetectTargetedSentimentItemResult( entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetedSentimentEntity.fromJson(e as Map)) .toList(), @@ -5049,11 +5049,11 @@ class BatchDetectTargetedSentimentResponse { Map json) { return BatchDetectTargetedSentimentResponse( errorList: (json['ErrorList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchItemError.fromJson(e as Map)) .toList(), resultList: (json['ResultList'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDetectTargetedSentimentItemResult.fromJson( e as Map)) .toList(), @@ -5143,7 +5143,7 @@ class Block { id: json['Id'] as String?, page: json['Page'] as int?, relationships: (json['Relationships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationshipsListItem.fromJson(e as Map)) .toList(), text: json['Text'] as String?, @@ -5177,7 +5177,7 @@ class BlockReference { beginOffset: json['BeginOffset'] as int?, blockId: json['BlockId'] as String?, childBlocks: (json['ChildBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChildBlock.fromJson(e as Map)) .toList(), endOffset: json['EndOffset'] as int?, @@ -5431,7 +5431,7 @@ class ClassifyDocumentResponse { factory ClassifyDocumentResponse.fromJson(Map json) { return ClassifyDocumentResponse( classes: (json['Classes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentClass.fromJson(e as Map)) .toList(), documentMetadata: json['DocumentMetadata'] != null @@ -5439,19 +5439,19 @@ class ClassifyDocumentResponse { json['DocumentMetadata'] as Map) : null, documentType: (json['DocumentType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentTypeListItem.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorsListItem.fromJson(e as Map)) .toList(), labels: (json['Labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentLabel.fromJson(e as Map)) .toList(), warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WarningsListItem.fromJson(e as Map)) .toList(), ); @@ -5470,7 +5470,7 @@ class ContainsPiiEntitiesResponse { factory ContainsPiiEntitiesResponse.fromJson(Map json) { return ContainsPiiEntitiesResponse( labels: (json['Labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityLabel.fromJson(e as Map)) .toList(), ); @@ -6420,7 +6420,7 @@ class DetectDominantLanguageResponse { factory DetectDominantLanguageResponse.fromJson(Map json) { return DetectDominantLanguageResponse( languages: (json['Languages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantLanguage.fromJson(e as Map)) .toList(), ); @@ -6475,7 +6475,7 @@ class DetectEntitiesResponse { factory DetectEntitiesResponse.fromJson(Map json) { return DetectEntitiesResponse( blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), documentMetadata: json['DocumentMetadata'] != null @@ -6483,15 +6483,15 @@ class DetectEntitiesResponse { json['DocumentMetadata'] as Map) : null, documentType: (json['DocumentType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentTypeListItem.fromJson(e as Map)) .toList(), entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorsListItem.fromJson(e as Map)) .toList(), ); @@ -6512,7 +6512,7 @@ class DetectKeyPhrasesResponse { factory DetectKeyPhrasesResponse.fromJson(Map json) { return DetectKeyPhrasesResponse( keyPhrases: (json['KeyPhrases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyPhrase.fromJson(e as Map)) .toList(), ); @@ -6533,7 +6533,7 @@ class DetectPiiEntitiesResponse { factory DetectPiiEntitiesResponse.fromJson(Map json) { return DetectPiiEntitiesResponse( entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PiiEntity.fromJson(e as Map)) .toList(), ); @@ -6581,7 +6581,7 @@ class DetectSyntaxResponse { factory DetectSyntaxResponse.fromJson(Map json) { return DetectSyntaxResponse( syntaxTokens: (json['SyntaxTokens'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SyntaxToken.fromJson(e as Map)) .toList(), ); @@ -6600,7 +6600,7 @@ class DetectTargetedSentimentResponse { factory DetectTargetedSentimentResponse.fromJson(Map json) { return DetectTargetedSentimentResponse( entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetedSentimentEntity.fromJson(e as Map)) .toList(), @@ -6622,7 +6622,7 @@ class DetectToxicContentResponse { factory DetectToxicContentResponse.fromJson(Map json) { return DetectToxicContentResponse( resultList: (json['ResultList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ToxicLabels.fromJson(e as Map)) .toList(), ); @@ -6674,10 +6674,8 @@ class DocumentClassificationConfig { factory DocumentClassificationConfig.fromJson(Map json) { return DocumentClassificationConfig( mode: DocumentClassifierMode.fromString((json['Mode'] as String)), - labels: (json['Labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['Labels'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -7055,7 +7053,7 @@ class DocumentClassifierInputDataConfig { Map json) { return DocumentClassifierInputDataConfig( augmentedManifests: (json['AugmentedManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AugmentedManifestsListItem.fromJson(e as Map)) .toList(), @@ -7435,7 +7433,7 @@ class DocumentMetadata { factory DocumentMetadata.fromJson(Map json) { return DocumentMetadata( extractedCharacters: (json['ExtractedCharacters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtractedCharactersListItem.fromJson(e as Map)) .toList(), @@ -7577,7 +7575,7 @@ class DocumentReaderConfig { documentReadMode: (json['DocumentReadMode'] as String?) ?.let(DocumentReadMode.fromString), featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentReadFeatureTypes.fromString((e as String))) .toList(), ); @@ -8178,7 +8176,7 @@ class Entity { return Entity( beginOffset: json['BeginOffset'] as int?, blockReferences: (json['BlockReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BlockReference.fromJson(e as Map)) .toList(), endOffset: json['EndOffset'] as int?, @@ -8224,7 +8222,7 @@ class EntityRecognitionConfig { factory EntityRecognitionConfig.fromJson(Map json) { return EntityRecognitionConfig( entityTypes: (json['EntityTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => EntityTypesListItem.fromJson(e as Map)) .toList(), ); @@ -8512,7 +8510,7 @@ class EntityRecognizerInputDataConfig { factory EntityRecognizerInputDataConfig.fromJson(Map json) { return EntityRecognizerInputDataConfig( entityTypes: (json['EntityTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => EntityTypesListItem.fromJson(e as Map)) .toList(), annotations: json['Annotations'] != null @@ -8520,7 +8518,7 @@ class EntityRecognizerInputDataConfig { json['Annotations'] as Map) : null, augmentedManifests: (json['AugmentedManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AugmentedManifestsListItem.fromJson(e as Map)) .toList(), @@ -8581,7 +8579,7 @@ class EntityRecognizerMetadata { factory EntityRecognizerMetadata.fromJson(Map json) { return EntityRecognizerMetadata( entityTypes: (json['EntityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityRecognizerMetadataEntityTypesListItem.fromJson( e as Map)) .toList(), @@ -9097,7 +9095,7 @@ class EventsDetectionJobProperties { : null, submitTime: timeStampFromJson(json['SubmitTime']), targetEventTypes: (json['TargetEventTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9479,7 +9477,7 @@ class Geometry { ? BoundingBox.fromJson(json['BoundingBox'] as Map) : null, polygon: (json['Polygon'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Point.fromJson(e as Map)) .toList(), ); @@ -9829,7 +9827,7 @@ class ListDatasetsResponse { factory ListDatasetsResponse.fromJson(Map json) { return ListDatasetsResponse( datasetPropertiesList: (json['DatasetPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetProperties.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9855,7 +9853,7 @@ class ListDocumentClassificationJobsResponse { return ListDocumentClassificationJobsResponse( documentClassificationJobPropertiesList: (json['DocumentClassificationJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentClassificationJobProperties.fromJson( e as Map)) .toList(), @@ -9881,7 +9879,7 @@ class ListDocumentClassifierSummariesResponse { return ListDocumentClassifierSummariesResponse( documentClassifierSummariesList: (json['DocumentClassifierSummariesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentClassifierSummary.fromJson(e as Map)) .toList(), @@ -9906,7 +9904,7 @@ class ListDocumentClassifiersResponse { return ListDocumentClassifiersResponse( documentClassifierPropertiesList: (json['DocumentClassifierPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentClassifierProperties.fromJson( e as Map)) .toList(), @@ -9933,7 +9931,7 @@ class ListDominantLanguageDetectionJobsResponse { return ListDominantLanguageDetectionJobsResponse( dominantLanguageDetectionJobPropertiesList: (json['DominantLanguageDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantLanguageDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -9958,7 +9956,7 @@ class ListEndpointsResponse { factory ListEndpointsResponse.fromJson(Map json) { return ListEndpointsResponse( endpointPropertiesList: (json['EndpointPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointProperties.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9984,7 +9982,7 @@ class ListEntitiesDetectionJobsResponse { return ListEntitiesDetectionJobsResponse( entitiesDetectionJobPropertiesList: (json['EntitiesDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitiesDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -10010,7 +10008,7 @@ class ListEntityRecognizerSummariesResponse { return ListEntityRecognizerSummariesResponse( entityRecognizerSummariesList: (json['EntityRecognizerSummariesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityRecognizerSummary.fromJson(e as Map)) .toList(), @@ -10035,7 +10033,7 @@ class ListEntityRecognizersResponse { return ListEntityRecognizersResponse( entityRecognizerPropertiesList: (json['EntityRecognizerPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityRecognizerProperties.fromJson(e as Map)) .toList(), @@ -10060,7 +10058,7 @@ class ListEventsDetectionJobsResponse { return ListEventsDetectionJobsResponse( eventsDetectionJobPropertiesList: (json['EventsDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventsDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -10086,7 +10084,7 @@ class ListFlywheelIterationHistoryResponse { return ListFlywheelIterationHistoryResponse( flywheelIterationPropertiesList: (json['FlywheelIterationPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlywheelIterationProperties.fromJson(e as Map)) .toList(), @@ -10111,7 +10109,7 @@ class ListFlywheelsResponse { factory ListFlywheelsResponse.fromJson(Map json) { return ListFlywheelsResponse( flywheelSummaryList: (json['FlywheelSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlywheelSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -10137,7 +10135,7 @@ class ListKeyPhrasesDetectionJobsResponse { return ListKeyPhrasesDetectionJobsResponse( keyPhrasesDetectionJobPropertiesList: (json['KeyPhrasesDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyPhrasesDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -10165,7 +10163,7 @@ class ListPiiEntitiesDetectionJobsResponse { nextToken: json['NextToken'] as String?, piiEntitiesDetectionJobPropertiesList: (json['PiiEntitiesDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PiiEntitiesDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -10192,7 +10190,7 @@ class ListSentimentDetectionJobsResponse { nextToken: json['NextToken'] as String?, sentimentDetectionJobPropertiesList: (json['SentimentDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SentimentDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -10220,7 +10218,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( resourceArn: json['ResourceArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -10246,7 +10244,7 @@ class ListTargetedSentimentDetectionJobsResponse { nextToken: json['NextToken'] as String?, targetedSentimentDetectionJobPropertiesList: (json['TargetedSentimentDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetedSentimentDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -10271,7 +10269,7 @@ class ListTopicsDetectionJobsResponse { nextToken: json['NextToken'] as String?, topicsDetectionJobPropertiesList: (json['TopicsDetectionJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicsDetectionJobProperties.fromJson( e as Map)) .toList(), @@ -10858,7 +10856,7 @@ class RedactionConfig { maskMode: (json['MaskMode'] as String?) ?.let(PiiEntitiesDetectionMaskMode.fromString), piiEntityTypes: (json['PiiEntityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PiiEntityType.fromString((e as String))) .toList(), ); @@ -10906,10 +10904,7 @@ class RelationshipsListItem { factory RelationshipsListItem.fromJson(Map json) { return RelationshipsListItem( - ids: (json['Ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['Ids'] as List?)?.nonNulls.map((e) => e as String).toList(), type: (json['Type'] as String?)?.let(RelationshipType.fromString), ); } @@ -12076,11 +12071,11 @@ class TargetedSentimentEntity { factory TargetedSentimentEntity.fromJson(Map json) { return TargetedSentimentEntity( descriptiveMentionIndex: (json['DescriptiveMentionIndex'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), mentions: (json['Mentions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetedSentimentMention.fromJson(e as Map)) .toList(), @@ -12463,7 +12458,7 @@ class ToxicLabels { factory ToxicLabels.fromJson(Map json) { return ToxicLabels( labels: (json['Labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ToxicContent.fromJson(e as Map)) .toList(), toxicity: json['Toxicity'] as double?, @@ -12582,13 +12577,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), ); } diff --git a/generated/aws_comprehend_api/pubspec.yaml b/generated/aws_comprehend_api/pubspec.yaml index 17eb99087..da4c8e2e1 100644 --- a/generated/aws_comprehend_api/pubspec.yaml +++ b/generated/aws_comprehend_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_compre protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_comprehendmedical_api/lib/comprehendmedical-2018-10-30.dart b/generated/aws_comprehendmedical_api/lib/comprehendmedical-2018-10-30.dart index 240ef54ad..935675ced 100644 --- a/generated/aws_comprehendmedical_api/lib/comprehendmedical-2018-10-30.dart +++ b/generated/aws_comprehendmedical_api/lib/comprehendmedical-2018-10-30.dart @@ -1241,7 +1241,7 @@ class Attribute { score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(EntitySubType.fromString), @@ -1571,13 +1571,13 @@ class DetectEntitiesResponse { factory DetectEntitiesResponse.fromJson(Map json) { return DetectEntitiesResponse( entities: (json['Entities'] as List) - .whereNotNull() + .nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), modelVersion: json['ModelVersion'] as String, paginationToken: json['PaginationToken'] as String?, unmappedAttributes: (json['UnmappedAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnmappedAttribute.fromJson(e as Map)) .toList(), ); @@ -1615,13 +1615,13 @@ class DetectEntitiesV2Response { factory DetectEntitiesV2Response.fromJson(Map json) { return DetectEntitiesV2Response( entities: (json['Entities'] as List) - .whereNotNull() + .nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), modelVersion: json['ModelVersion'] as String, paginationToken: json['PaginationToken'] as String?, unmappedAttributes: (json['UnmappedAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnmappedAttribute.fromJson(e as Map)) .toList(), ); @@ -1654,7 +1654,7 @@ class DetectPHIResponse { factory DetectPHIResponse.fromJson(Map json) { return DetectPHIResponse( entities: (json['Entities'] as List) - .whereNotNull() + .nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), modelVersion: json['ModelVersion'] as String, @@ -1711,7 +1711,7 @@ class Entity { factory Entity.fromJson(Map json) { return Entity( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), beginOffset: json['BeginOffset'] as int?, @@ -1721,7 +1721,7 @@ class Entity { score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(EntitySubType.fromString), @@ -1880,7 +1880,7 @@ class ICD10CMAttribute { score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ICD10CMTrait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(ICD10CMAttributeType.fromString), @@ -2001,7 +2001,7 @@ class ICD10CMEntity { factory ICD10CMEntity.fromJson(Map json) { return ICD10CMEntity( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ICD10CMAttribute.fromJson(e as Map)) .toList(), beginOffset: json['BeginOffset'] as int?, @@ -2009,14 +2009,14 @@ class ICD10CMEntity { (json['Category'] as String?)?.let(ICD10CMEntityCategory.fromString), endOffset: json['EndOffset'] as int?, iCD10CMConcepts: (json['ICD10CMConcepts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ICD10CMConcept.fromJson(e as Map)) .toList(), id: json['Id'] as int?, score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ICD10CMTrait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(ICD10CMEntityType.fromString), @@ -2138,7 +2138,7 @@ class InferICD10CMResponse { factory InferICD10CMResponse.fromJson(Map json) { return InferICD10CMResponse( entities: (json['Entities'] as List) - .whereNotNull() + .nonNulls .map((e) => ICD10CMEntity.fromJson(e as Map)) .toList(), modelVersion: json['ModelVersion'] as String?, @@ -2172,7 +2172,7 @@ class InferRxNormResponse { factory InferRxNormResponse.fromJson(Map json) { return InferRxNormResponse( entities: (json['Entities'] as List) - .whereNotNull() + .nonNulls .map((e) => RxNormEntity.fromJson(e as Map)) .toList(), modelVersion: json['ModelVersion'] as String?, @@ -2216,7 +2216,7 @@ class InferSNOMEDCTResponse { factory InferSNOMEDCTResponse.fromJson(Map json) { return InferSNOMEDCTResponse( entities: (json['Entities'] as List) - .whereNotNull() + .nonNulls .map((e) => SNOMEDCTEntity.fromJson(e as Map)) .toList(), characters: json['Characters'] != null @@ -2315,7 +2315,7 @@ class ListEntitiesDetectionV2JobsResponse { return ListEntitiesDetectionV2JobsResponse( comprehendMedicalAsyncJobPropertiesList: (json['ComprehendMedicalAsyncJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComprehendMedicalAsyncJobProperties.fromJson( e as Map)) .toList(), @@ -2341,7 +2341,7 @@ class ListICD10CMInferenceJobsResponse { return ListICD10CMInferenceJobsResponse( comprehendMedicalAsyncJobPropertiesList: (json['ComprehendMedicalAsyncJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComprehendMedicalAsyncJobProperties.fromJson( e as Map)) .toList(), @@ -2367,7 +2367,7 @@ class ListPHIDetectionJobsResponse { return ListPHIDetectionJobsResponse( comprehendMedicalAsyncJobPropertiesList: (json['ComprehendMedicalAsyncJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComprehendMedicalAsyncJobProperties.fromJson( e as Map)) .toList(), @@ -2393,7 +2393,7 @@ class ListRxNormInferenceJobsResponse { return ListRxNormInferenceJobsResponse( comprehendMedicalAsyncJobPropertiesList: (json['ComprehendMedicalAsyncJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComprehendMedicalAsyncJobProperties.fromJson( e as Map)) .toList(), @@ -2420,7 +2420,7 @@ class ListSNOMEDCTInferenceJobsResponse { return ListSNOMEDCTInferenceJobsResponse( comprehendMedicalAsyncJobPropertiesList: (json['ComprehendMedicalAsyncJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComprehendMedicalAsyncJobProperties.fromJson( e as Map)) .toList(), @@ -2558,7 +2558,7 @@ class RxNormAttribute { score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RxNormTrait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(RxNormAttributeType.fromString), @@ -2676,7 +2676,7 @@ class RxNormEntity { factory RxNormEntity.fromJson(Map json) { return RxNormEntity( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RxNormAttribute.fromJson(e as Map)) .toList(), beginOffset: json['BeginOffset'] as int?, @@ -2685,13 +2685,13 @@ class RxNormEntity { endOffset: json['EndOffset'] as int?, id: json['Id'] as int?, rxNormConcepts: (json['RxNormConcepts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RxNormConcept.fromJson(e as Map)) .toList(), score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RxNormTrait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(RxNormEntityType.fromString), @@ -2841,13 +2841,13 @@ class SNOMEDCTAttribute { relationshipType: (json['RelationshipType'] as String?) ?.let(SNOMEDCTRelationshipType.fromString), sNOMEDCTConcepts: (json['SNOMEDCTConcepts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SNOMEDCTConcept.fromJson(e as Map)) .toList(), score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SNOMEDCTTrait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(SNOMEDCTAttributeType.fromString), @@ -2993,7 +2993,7 @@ class SNOMEDCTEntity { factory SNOMEDCTEntity.fromJson(Map json) { return SNOMEDCTEntity( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SNOMEDCTAttribute.fromJson(e as Map)) .toList(), beginOffset: json['BeginOffset'] as int?, @@ -3002,13 +3002,13 @@ class SNOMEDCTEntity { endOffset: json['EndOffset'] as int?, id: json['Id'] as int?, sNOMEDCTConcepts: (json['SNOMEDCTConcepts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SNOMEDCTConcept.fromJson(e as Map)) .toList(), score: json['Score'] as double?, text: json['Text'] as String?, traits: (json['Traits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SNOMEDCTTrait.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(SNOMEDCTEntityType.fromString), diff --git a/generated/aws_comprehendmedical_api/pubspec.yaml b/generated/aws_comprehendmedical_api/pubspec.yaml index e74ca38b3..2d92c2017 100644 --- a/generated/aws_comprehendmedical_api/pubspec.yaml +++ b/generated/aws_comprehendmedical_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_compre protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_compute_optimizer_api/lib/compute-optimizer-2019-11-01.dart b/generated/aws_compute_optimizer_api/lib/compute-optimizer-2019-11-01.dart index a0adcfd7e..95e41972a 100644 --- a/generated/aws_compute_optimizer_api/lib/compute-optimizer-2019-11-01.dart +++ b/generated/aws_compute_optimizer_api/lib/compute-optimizer-2019-11-01.dart @@ -2360,18 +2360,18 @@ class AutoScalingGroupRecommendation { : null, finding: (json['finding'] as String?)?.let(Finding.fromString), inferredWorkloadTypes: (json['inferredWorkloadTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferredWorkloadType.fromString((e as String))) .toList(), lastRefreshTimestamp: timeStampFromJson(json['lastRefreshTimestamp']), lookBackPeriodInDays: json['lookBackPeriodInDays'] as double?, recommendationOptions: (json['recommendationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingGroupRecommendationOption.fromJson( e as Map)) .toList(), utilizationMetrics: (json['utilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationMetric.fromJson(e as Map)) .toList(), ); @@ -2470,7 +2470,7 @@ class AutoScalingGroupRecommendationOption { performanceRisk: json['performanceRisk'] as double?, projectedUtilizationMetrics: (json['projectedUtilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationMetric.fromJson(e as Map)) .toList(), rank: json['rank'] as int?, @@ -2790,7 +2790,7 @@ class DescribeRecommendationExportJobsResponse { return DescribeRecommendationExportJobsResponse( nextToken: json['nextToken'] as String?, recommendationExportJobs: (json['recommendationExportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationExportJob.fromJson(e as Map)) .toList(), @@ -3283,16 +3283,16 @@ class ECSServiceProjectedMetric { factory ECSServiceProjectedMetric.fromJson(Map json) { return ECSServiceProjectedMetric( lowerBoundValues: (json['lowerBoundValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), name: (json['name'] as String?)?.let(ECSServiceMetricName.fromString), timestamps: (json['timestamps'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), upperBoundValues: (json['upperBoundValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -3505,7 +3505,7 @@ class ECSServiceRecommendation { finding: (json['finding'] as String?) ?.let(ECSServiceRecommendationFinding.fromString), findingReasonCodes: (json['findingReasonCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceRecommendationFindingReasonCode.fromString( (e as String))) .toList(), @@ -3516,16 +3516,16 @@ class ECSServiceRecommendation { serviceArn: json['serviceArn'] as String?, serviceRecommendationOptions: (json['serviceRecommendationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceRecommendationOption.fromJson( e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), utilizationMetrics: (json['utilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceUtilizationMetric.fromJson(e as Map)) .toList(), @@ -3682,7 +3682,7 @@ class ECSServiceRecommendationOption { factory ECSServiceRecommendationOption.fromJson(Map json) { return ECSServiceRecommendationOption( containerRecommendations: (json['containerRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerRecommendation.fromJson(e as Map)) .toList(), @@ -3690,7 +3690,7 @@ class ECSServiceRecommendationOption { memory: json['memory'] as int?, projectedUtilizationMetrics: (json['projectedUtilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceProjectedUtilizationMetric.fromJson( e as Map)) .toList(), @@ -3734,7 +3734,7 @@ class ECSServiceRecommendedOptionProjectedMetric { Map json) { return ECSServiceRecommendedOptionProjectedMetric( projectedMetrics: (json['projectedMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceProjectedMetric.fromJson(e as Map)) .toList(), @@ -3831,15 +3831,15 @@ class EffectivePreferredResource { factory EffectivePreferredResource.fromJson(Map json) { return EffectivePreferredResource( effectiveIncludeList: (json['effectiveIncludeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), excludeList: (json['excludeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includeList: (json['includeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: (json['name'] as String?)?.let(PreferredResourceName.fromString), @@ -3934,7 +3934,7 @@ class EffectiveRecommendationPreferences { Map json) { return EffectiveRecommendationPreferences( cpuVendorArchitectures: (json['cpuVendorArchitectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CpuVendorArchitecture.fromString((e as String))) .toList(), enhancedInfrastructureMetrics: @@ -3949,7 +3949,7 @@ class EffectiveRecommendationPreferences { lookBackPeriod: (json['lookBackPeriod'] as String?) ?.let(LookBackPeriodPreference.fromString), preferredResources: (json['preferredResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectivePreferredResource.fromJson(e as Map)) .toList(), @@ -3958,7 +3958,7 @@ class EffectiveRecommendationPreferences { json['savingsEstimationMode'] as Map) : null, utilizationPreferences: (json['utilizationPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationPreference.fromJson(e as Map)) .toList(), ); @@ -5045,12 +5045,12 @@ class GetAutoScalingGroupRecommendationsResponse { return GetAutoScalingGroupRecommendationsResponse( autoScalingGroupRecommendations: (json['autoScalingGroupRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingGroupRecommendation.fromJson( e as Map)) .toList(), errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GetRecommendationError.fromJson(e as Map)) .toList(), @@ -5085,13 +5085,13 @@ class GetEBSVolumeRecommendationsResponse { Map json) { return GetEBSVolumeRecommendationsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GetRecommendationError.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, volumeRecommendations: (json['volumeRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeRecommendation.fromJson(e as Map)) .toList(), ); @@ -5124,12 +5124,12 @@ class GetEC2InstanceRecommendationsResponse { Map json) { return GetEC2InstanceRecommendationsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GetRecommendationError.fromJson(e as Map)) .toList(), instanceRecommendations: (json['instanceRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => InstanceRecommendation.fromJson(e as Map)) .toList(), @@ -5152,7 +5152,7 @@ class GetEC2RecommendationProjectedMetricsResponse { return GetEC2RecommendationProjectedMetricsResponse( recommendedOptionProjectedMetrics: (json['recommendedOptionProjectedMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendedOptionProjectedMetric.fromJson( e as Map)) .toList(), @@ -5174,7 +5174,7 @@ class GetECSServiceRecommendationProjectedMetricsResponse { return GetECSServiceRecommendationProjectedMetricsResponse( recommendedOptionProjectedMetrics: (json['recommendedOptionProjectedMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceRecommendedOptionProjectedMetric.fromJson( e as Map)) .toList(), @@ -5202,12 +5202,12 @@ class GetECSServiceRecommendationsResponse { Map json) { return GetECSServiceRecommendationsResponse( ecsServiceRecommendations: (json['ecsServiceRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSServiceRecommendation.fromJson(e as Map)) .toList(), errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GetRecommendationError.fromJson(e as Map)) .toList(), @@ -5306,12 +5306,12 @@ class GetEffectiveRecommendationPreferencesResponse { lookBackPeriod: (json['lookBackPeriod'] as String?) ?.let(LookBackPeriodPreference.fromString), preferredResources: (json['preferredResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectivePreferredResource.fromJson(e as Map)) .toList(), utilizationPreferences: (json['utilizationPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationPreference.fromJson(e as Map)) .toList(), ); @@ -5381,7 +5381,7 @@ class GetEnrollmentStatusesForOrganizationResponse { Map json) { return GetEnrollmentStatusesForOrganizationResponse( accountEnrollmentStatuses: (json['accountEnrollmentStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountEnrollmentStatus.fromJson(e as Map)) .toList(), @@ -5410,7 +5410,7 @@ class GetLambdaFunctionRecommendationsResponse { return GetLambdaFunctionRecommendationsResponse( lambdaFunctionRecommendations: (json['lambdaFunctionRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LambdaFunctionRecommendation.fromJson(e as Map)) .toList(), @@ -5439,12 +5439,12 @@ class GetLicenseRecommendationsResponse { Map json) { return GetLicenseRecommendationsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GetRecommendationError.fromJson(e as Map)) .toList(), licenseRecommendations: (json['licenseRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseRecommendation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5503,7 +5503,7 @@ class GetRecommendationPreferencesResponse { nextToken: json['nextToken'] as String?, recommendationPreferencesDetails: (json['recommendationPreferencesDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationPreferencesDetail.fromJson( e as Map)) .toList(), @@ -5531,7 +5531,7 @@ class GetRecommendationSummariesResponse { return GetRecommendationSummariesResponse( nextToken: json['nextToken'] as String?, recommendationSummaries: (json['recommendationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationSummary.fromJson(e as Map)) .toList(), ); @@ -5572,7 +5572,7 @@ class GpuInfo { factory GpuInfo.fromJson(Map json) { return GpuInfo( gpus: (json['gpus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Gpu.fromJson(e as Map)) .toList(), ); @@ -5645,7 +5645,7 @@ class InferredWorkloadSaving { json['estimatedMonthlySavings'] as Map) : null, inferredWorkloadTypes: (json['inferredWorkloadTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferredWorkloadType.fromString((e as String))) .toList(), ); @@ -6046,13 +6046,13 @@ class InstanceRecommendation { : null, finding: (json['finding'] as String?)?.let(Finding.fromString), findingReasonCodes: (json['findingReasonCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceRecommendationFindingReasonCode.fromString((e as String))) .toList(), idle: (json['idle'] as String?)?.let(InstanceIdle.fromString), inferredWorkloadTypes: (json['inferredWorkloadTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferredWorkloadType.fromString((e as String))) .toList(), instanceArn: json['instanceArn'] as String?, @@ -6062,20 +6062,20 @@ class InstanceRecommendation { lastRefreshTimestamp: timeStampFromJson(json['lastRefreshTimestamp']), lookBackPeriodInDays: json['lookBackPeriodInDays'] as double?, recommendationOptions: (json['recommendationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceRecommendationOption.fromJson(e as Map)) .toList(), recommendationSources: (json['recommendationSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommendationSource.fromJson(e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), utilizationMetrics: (json['utilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationMetric.fromJson(e as Map)) .toList(), ); @@ -6312,12 +6312,12 @@ class InstanceRecommendationOption { (json['migrationEffort'] as String?)?.let(MigrationEffort.fromString), performanceRisk: json['performanceRisk'] as double?, platformDifferences: (json['platformDifferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformDifference.fromString((e as String))) .toList(), projectedUtilizationMetrics: (json['projectedUtilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationMetric.fromJson(e as Map)) .toList(), rank: json['rank'] as int?, @@ -6652,7 +6652,7 @@ class LambdaFunctionMemoryRecommendationOption { memorySize: json['memorySize'] as int?, projectedUtilizationMetrics: (json['projectedUtilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LambdaFunctionMemoryProjectedMetric.fromJson( e as Map)) .toList(), @@ -6853,7 +6853,7 @@ class LambdaFunctionRecommendation { finding: (json['finding'] as String?) ?.let(LambdaFunctionRecommendationFinding.fromString), findingReasonCodes: (json['findingReasonCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LambdaFunctionRecommendationFindingReasonCode.fromString( (e as String))) .toList(), @@ -6863,17 +6863,17 @@ class LambdaFunctionRecommendation { lookbackPeriodInDays: json['lookbackPeriodInDays'] as double?, memorySizeRecommendationOptions: (json['memorySizeRecommendationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LambdaFunctionMemoryRecommendationOption.fromJson( e as Map)) .toList(), numberOfInvocations: json['numberOfInvocations'] as int?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), utilizationMetrics: (json['utilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LambdaFunctionUtilizationMetric.fromJson( e as Map)) .toList(), @@ -7175,7 +7175,7 @@ class LicenseConfiguration { (json['licenseName'] as String?)?.let(LicenseName.fromString), licenseVersion: json['licenseVersion'] as String?, metricsSource: (json['metricsSource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricSource.fromJson(e as Map)) .toList(), numberOfCores: json['numberOfCores'] as int?, @@ -7358,20 +7358,20 @@ class LicenseRecommendation { : null, finding: (json['finding'] as String?)?.let(LicenseFinding.fromString), findingReasonCodes: (json['findingReasonCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseFindingReasonCode.fromString((e as String))) .toList(), lastRefreshTimestamp: timeStampFromJson(json['lastRefreshTimestamp']), licenseRecommendationOptions: (json['licenseRecommendationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseRecommendationOption.fromJson(e as Map)) .toList(), lookbackPeriodInDays: json['lookbackPeriodInDays'] as double?, resourceArn: json['resourceArn'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7806,13 +7806,11 @@ class ProjectedMetric { return ProjectedMetric( name: (json['name'] as String?)?.let(MetricName.fromString), timestamps: (json['timestamps'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as double) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as double).toList(), ); } } @@ -8066,7 +8064,7 @@ class RecommendationPreferencesDetail { lookBackPeriod: (json['lookBackPeriod'] as String?) ?.let(LookBackPeriodPreference.fromString), preferredResources: (json['preferredResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectivePreferredResource.fromJson(e as Map)) .toList(), @@ -8078,7 +8076,7 @@ class RecommendationPreferencesDetail { ? Scope.fromJson(json['scope'] as Map) : null, utilizationPreferences: (json['utilizationPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtilizationPreference.fromJson(e as Map)) .toList(), ); @@ -8171,7 +8169,7 @@ class RecommendationSummary { json['currentPerformanceRiskRatings'] as Map) : null, inferredWorkloadSavings: (json['inferredWorkloadSavings'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => InferredWorkloadSaving.fromJson(e as Map)) .toList(), @@ -8183,7 +8181,7 @@ class RecommendationSummary { json['savingsOpportunity'] as Map) : null, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Summary.fromJson(e as Map)) .toList(), ); @@ -8226,7 +8224,7 @@ class RecommendedOptionProjectedMetric { factory RecommendedOptionProjectedMetric.fromJson(Map json) { return RecommendedOptionProjectedMetric( projectedMetrics: (json['projectedMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectedMetric.fromJson(e as Map)) .toList(), rank: json['rank'] as int?, @@ -8539,7 +8537,7 @@ class ServiceConfiguration { autoScalingConfiguration: (json['autoScalingConfiguration'] as String?) ?.let(AutoScalingConfiguration.fromString), containerConfigurations: (json['containerConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ContainerConfiguration.fromJson(e as Map)) .toList(), @@ -8587,7 +8585,7 @@ class Summary { return Summary( name: (json['name'] as String?)?.let(Finding.fromString), reasonCodeSummaries: (json['reasonCodeSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReasonCodeSummary.fromJson(e as Map)) .toList(), value: json['value'] as double?, @@ -8985,17 +8983,17 @@ class VolumeRecommendation { lastRefreshTimestamp: timeStampFromJson(json['lastRefreshTimestamp']), lookBackPeriodInDays: json['lookBackPeriodInDays'] as double?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), utilizationMetrics: (json['utilizationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EBSUtilizationMetric.fromJson(e as Map)) .toList(), volumeArn: json['volumeArn'] as String?, volumeRecommendationOptions: (json['volumeRecommendationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeRecommendationOption.fromJson(e as Map)) .toList(), diff --git a/generated/aws_compute_optimizer_api/pubspec.yaml b/generated/aws_compute_optimizer_api/pubspec.yaml index 7cde9fb4b..25e5c5fe8 100644 --- a/generated/aws_compute_optimizer_api/pubspec.yaml +++ b/generated/aws_compute_optimizer_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_comput protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_configservice_api/lib/config-2014-11-12.dart b/generated/aws_configservice_api/lib/config-2014-11-12.dart index ee09c7b64..54dc342d5 100644 --- a/generated/aws_configservice_api/lib/config-2014-11-12.dart +++ b/generated/aws_configservice_api/lib/config-2014-11-12.dart @@ -5133,12 +5133,12 @@ class AccountAggregationSource { factory AccountAggregationSource.fromJson(Map json) { return AccountAggregationSource( accountIds: (json['AccountIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allAwsRegions: json['AllAwsRegions'] as bool?, awsRegions: (json['AwsRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5824,12 +5824,12 @@ class BatchGetAggregateResourceConfigResponse { Map json) { return BatchGetAggregateResourceConfigResponse( baseConfigurationItems: (json['BaseConfigurationItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BaseConfigurationItem.fromJson(e as Map)) .toList(), unprocessedResourceIdentifiers: (json['UnprocessedResourceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateResourceIdentifier.fromJson(e as Map)) .toList(), @@ -5856,11 +5856,11 @@ class BatchGetResourceConfigResponse { factory BatchGetResourceConfigResponse.fromJson(Map json) { return BatchGetResourceConfigResponse( baseConfigurationItems: (json['baseConfigurationItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BaseConfigurationItem.fromJson(e as Map)) .toList(), unprocessedResourceKeys: (json['unprocessedResourceKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceKey.fromJson(e as Map)) .toList(), ); @@ -6266,7 +6266,7 @@ class ConfigRule { createdBy: json['CreatedBy'] as String?, description: json['Description'] as String?, evaluationModes: (json['EvaluationModes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationModeConfiguration.fromJson(e as Map)) .toList(), @@ -6667,7 +6667,7 @@ class ConfigurationAggregator { factory ConfigurationAggregator.fromJson(Map json) { return ConfigurationAggregator( accountAggregationSources: (json['AccountAggregationSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAggregationSource.fromJson(e as Map)) .toList(), @@ -6840,11 +6840,11 @@ class ConfigurationItem { recordingFrequency: (json['recordingFrequency'] as String?) ?.let(RecordingFrequency.fromString), relatedEvents: (json['relatedEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), relationships: (json['relationships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Relationship.fromJson(e as Map)) .toList(), resourceCreationTime: timeStampFromJson(json['resourceCreationTime']), @@ -7236,7 +7236,7 @@ class ConformancePackDetail { conformancePackName: json['ConformancePackName'] as String, conformancePackInputParameters: (json['ConformancePackInputParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConformancePackInputParameter.fromJson(e as Map)) .toList(), @@ -7398,7 +7398,7 @@ class ConformancePackRuleCompliance { ?.let(ConformancePackComplianceType.fromString), configRuleName: json['ConfigRuleName'] as String?, controls: (json['Controls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7578,7 +7578,7 @@ class DeleteRemediationExceptionsResponse { Map json) { return DeleteRemediationExceptionsResponse( failedBatches: (json['FailedBatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedDeleteRemediationExceptionsBatch.fromJson( e as Map)) .toList(), @@ -7775,7 +7775,7 @@ class DescribeAggregateComplianceByConfigRulesResponse { return DescribeAggregateComplianceByConfigRulesResponse( aggregateComplianceByConfigRules: (json['AggregateComplianceByConfigRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateComplianceByConfigRule.fromJson( e as Map)) .toList(), @@ -7803,7 +7803,7 @@ class DescribeAggregateComplianceByConformancePacksResponse { return DescribeAggregateComplianceByConformancePacksResponse( aggregateComplianceByConformancePacks: (json['AggregateComplianceByConformancePacks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateComplianceByConformancePack.fromJson( e as Map)) .toList(), @@ -7830,7 +7830,7 @@ class DescribeAggregationAuthorizationsResponse { Map json) { return DescribeAggregationAuthorizationsResponse( aggregationAuthorizations: (json['AggregationAuthorizations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregationAuthorization.fromJson(e as Map)) .toList(), @@ -7857,7 +7857,7 @@ class DescribeComplianceByConfigRuleResponse { Map json) { return DescribeComplianceByConfigRuleResponse( complianceByConfigRules: (json['ComplianceByConfigRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ComplianceByConfigRule.fromJson(e as Map)) .toList(), @@ -7885,7 +7885,7 @@ class DescribeComplianceByResourceResponse { Map json) { return DescribeComplianceByResourceResponse( complianceByResources: (json['ComplianceByResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComplianceByResource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7912,7 +7912,7 @@ class DescribeConfigRuleEvaluationStatusResponse { return DescribeConfigRuleEvaluationStatusResponse( configRulesEvaluationStatus: (json['ConfigRulesEvaluationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigRuleEvaluationStatus.fromJson(e as Map)) .toList(), @@ -7959,7 +7959,7 @@ class DescribeConfigRulesResponse { factory DescribeConfigRulesResponse.fromJson(Map json) { return DescribeConfigRulesResponse( configRules: (json['ConfigRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigRule.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7984,7 +7984,7 @@ class DescribeConfigurationAggregatorSourcesStatusResponse { Map json) { return DescribeConfigurationAggregatorSourcesStatusResponse( aggregatedSourceStatusList: (json['AggregatedSourceStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AggregatedSourceStatus.fromJson(e as Map)) .toList(), @@ -8010,7 +8010,7 @@ class DescribeConfigurationAggregatorsResponse { Map json) { return DescribeConfigurationAggregatorsResponse( configurationAggregators: (json['ConfigurationAggregators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationAggregator.fromJson(e as Map)) .toList(), @@ -8034,7 +8034,7 @@ class DescribeConfigurationRecorderStatusResponse { return DescribeConfigurationRecorderStatusResponse( configurationRecordersStatus: (json['ConfigurationRecordersStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationRecorderStatus.fromJson(e as Map)) .toList(), @@ -8056,7 +8056,7 @@ class DescribeConfigurationRecordersResponse { Map json) { return DescribeConfigurationRecordersResponse( configurationRecorders: (json['ConfigurationRecorders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationRecorder.fromJson(e as Map)) .toList(), ); @@ -8086,7 +8086,7 @@ class DescribeConformancePackComplianceResponse { conformancePackName: json['ConformancePackName'] as String, conformancePackRuleComplianceList: (json['ConformancePackRuleComplianceList'] as List) - .whereNotNull() + .nonNulls .map((e) => ConformancePackRuleCompliance.fromJson( e as Map)) .toList(), @@ -8113,7 +8113,7 @@ class DescribeConformancePackStatusResponse { return DescribeConformancePackStatusResponse( conformancePackStatusDetails: (json['ConformancePackStatusDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConformancePackStatusDetail.fromJson(e as Map)) .toList(), @@ -8138,7 +8138,7 @@ class DescribeConformancePacksResponse { factory DescribeConformancePacksResponse.fromJson(Map json) { return DescribeConformancePacksResponse( conformancePackDetails: (json['ConformancePackDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConformancePackDetail.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8159,7 +8159,7 @@ class DescribeDeliveryChannelStatusResponse { Map json) { return DescribeDeliveryChannelStatusResponse( deliveryChannelsStatus: (json['DeliveryChannelsStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeliveryChannelStatus.fromJson(e as Map)) .toList(), ); @@ -8178,7 +8178,7 @@ class DescribeDeliveryChannelsResponse { factory DescribeDeliveryChannelsResponse.fromJson(Map json) { return DescribeDeliveryChannelsResponse( deliveryChannels: (json['DeliveryChannels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeliveryChannel.fromJson(e as Map)) .toList(), ); @@ -8204,7 +8204,7 @@ class DescribeOrganizationConfigRuleStatusesResponse { nextToken: json['NextToken'] as String?, organizationConfigRuleStatuses: (json['OrganizationConfigRuleStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationConfigRuleStatus.fromJson(e as Map)) .toList(), @@ -8230,7 +8230,7 @@ class DescribeOrganizationConfigRulesResponse { return DescribeOrganizationConfigRulesResponse( nextToken: json['NextToken'] as String?, organizationConfigRules: (json['OrganizationConfigRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => OrganizationConfigRule.fromJson(e as Map)) .toList(), @@ -8258,7 +8258,7 @@ class DescribeOrganizationConformancePackStatusesResponse { nextToken: json['NextToken'] as String?, organizationConformancePackStatuses: (json['OrganizationConformancePackStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationConformancePackStatus.fromJson( e as Map)) .toList(), @@ -8285,7 +8285,7 @@ class DescribeOrganizationConformancePacksResponse { nextToken: json['NextToken'] as String?, organizationConformancePacks: (json['OrganizationConformancePacks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationConformancePack.fromJson(e as Map)) .toList(), @@ -8311,7 +8311,7 @@ class DescribePendingAggregationRequestsResponse { return DescribePendingAggregationRequestsResponse( nextToken: json['NextToken'] as String?, pendingAggregationRequests: (json['PendingAggregationRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingAggregationRequest.fromJson(e as Map)) .toList(), @@ -8331,7 +8331,7 @@ class DescribeRemediationConfigurationsResponse { Map json) { return DescribeRemediationConfigurationsResponse( remediationConfigurations: (json['RemediationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationConfiguration.fromJson(e as Map)) .toList(), @@ -8357,7 +8357,7 @@ class DescribeRemediationExceptionsResponse { return DescribeRemediationExceptionsResponse( nextToken: json['NextToken'] as String?, remediationExceptions: (json['RemediationExceptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationException.fromJson(e as Map)) .toList(), ); @@ -8383,7 +8383,7 @@ class DescribeRemediationExecutionStatusResponse { nextToken: json['NextToken'] as String?, remediationExecutionStatuses: (json['RemediationExecutionStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationExecutionStatus.fromJson(e as Map)) .toList(), @@ -8409,7 +8409,7 @@ class DescribeRetentionConfigurationsResponse { return DescribeRetentionConfigurationsResponse( nextToken: json['NextToken'] as String?, retentionConfigurations: (json['RetentionConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RetentionConfiguration.fromJson(e as Map)) .toList(), @@ -8778,7 +8778,7 @@ class ExclusionByResourceTypes { factory ExclusionByResourceTypes.fromJson(Map json) { return ExclusionByResourceTypes( resourceTypes: (json['resourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceType.fromString((e as String))) .toList(), ); @@ -8883,7 +8883,7 @@ class FailedDeleteRemediationExceptionsBatch { Map json) { return FailedDeleteRemediationExceptionsBatch( failedItems: (json['FailedItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationExceptionResourceKey.fromJson( e as Map)) .toList(), @@ -8908,7 +8908,7 @@ class FailedRemediationBatch { factory FailedRemediationBatch.fromJson(Map json) { return FailedRemediationBatch( failedItems: (json['FailedItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationConfiguration.fromJson(e as Map)) .toList(), @@ -8933,7 +8933,7 @@ class FailedRemediationExceptionBatch { factory FailedRemediationExceptionBatch.fromJson(Map json) { return FailedRemediationExceptionBatch( failedItems: (json['FailedItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationException.fromJson(e as Map)) .toList(), failureMessage: json['FailureMessage'] as String?, @@ -8974,7 +8974,7 @@ class GetAggregateComplianceDetailsByConfigRuleResponse { Map json) { return GetAggregateComplianceDetailsByConfigRuleResponse( aggregateEvaluationResults: (json['AggregateEvaluationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateEvaluationResult.fromJson(e as Map)) .toList(), @@ -9004,7 +9004,7 @@ class GetAggregateConfigRuleComplianceSummaryResponse { Map json) { return GetAggregateConfigRuleComplianceSummaryResponse( aggregateComplianceCounts: (json['AggregateComplianceCounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateComplianceCount.fromJson(e as Map)) .toList(), @@ -9039,7 +9039,7 @@ class GetAggregateConformancePackComplianceSummaryResponse { return GetAggregateConformancePackComplianceSummaryResponse( aggregateConformancePackComplianceSummaries: (json['AggregateConformancePackComplianceSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateConformancePackComplianceSummary.fromJson( e as Map)) .toList(), @@ -9078,7 +9078,7 @@ class GetAggregateDiscoveredResourceCountsResponse { totalDiscoveredResources: json['TotalDiscoveredResources'] as int, groupByKey: json['GroupByKey'] as String?, groupedResourceCounts: (json['GroupedResourceCounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupedResourceCount.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9124,7 +9124,7 @@ class GetComplianceDetailsByConfigRuleResponse { Map json) { return GetComplianceDetailsByConfigRuleResponse( evaluationResults: (json['EvaluationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationResult.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9151,7 +9151,7 @@ class GetComplianceDetailsByResourceResponse { Map json) { return GetComplianceDetailsByResourceResponse( evaluationResults: (json['EvaluationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationResult.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -9198,7 +9198,7 @@ class GetComplianceSummaryByResourceTypeResponse { return GetComplianceSummaryByResourceTypeResponse( complianceSummariesByResourceType: (json['ComplianceSummariesByResourceType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComplianceSummaryByResourceType.fromJson( e as Map)) .toList(), @@ -9230,7 +9230,7 @@ class GetConformancePackComplianceDetailsResponse { conformancePackName: json['ConformancePackName'] as String, conformancePackRuleEvaluationResults: (json['ConformancePackRuleEvaluationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConformancePackEvaluationResult.fromJson( e as Map)) .toList(), @@ -9258,7 +9258,7 @@ class GetConformancePackComplianceSummaryResponse { return GetConformancePackComplianceSummaryResponse( conformancePackComplianceSummaryList: (json['ConformancePackComplianceSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConformancePackComplianceSummary.fromJson( e as Map)) .toList(), @@ -9323,7 +9323,7 @@ class GetDiscoveredResourceCountsResponse { return GetDiscoveredResourceCountsResponse( nextToken: json['nextToken'] as String?, resourceCounts: (json['resourceCounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceCount.fromJson(e as Map)) .toList(), totalDiscoveredResources: json['totalDiscoveredResources'] as int?, @@ -9350,7 +9350,7 @@ class GetOrganizationConfigRuleDetailedStatusResponse { nextToken: json['NextToken'] as String?, organizationConfigRuleDetailedStatus: (json[ 'OrganizationConfigRuleDetailedStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberAccountStatus.fromJson(e as Map)) .toList(), ); @@ -9377,7 +9377,7 @@ class GetOrganizationConformancePackDetailedStatusResponse { nextToken: json['NextToken'] as String?, organizationConformancePackDetailedStatuses: (json['OrganizationConformancePackDetailedStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationConformancePackDetailedStatus.fromJson( e as Map)) .toList(), @@ -9419,7 +9419,7 @@ class GetResourceConfigHistoryResponse { factory GetResourceConfigHistoryResponse.fromJson(Map json) { return GetResourceConfigHistoryResponse( configurationItems: (json['configurationItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9546,7 +9546,7 @@ class ListAggregateDiscoveredResourcesResponse { return ListAggregateDiscoveredResourcesResponse( nextToken: json['NextToken'] as String?, resourceIdentifiers: (json['ResourceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregateResourceIdentifier.fromJson(e as Map)) .toList(), @@ -9572,7 +9572,7 @@ class ListConformancePackComplianceScoresResponse { return ListConformancePackComplianceScoresResponse( conformancePackComplianceScores: (json['ConformancePackComplianceScores'] as List) - .whereNotNull() + .nonNulls .map((e) => ConformancePackComplianceScore.fromJson( e as Map)) .toList(), @@ -9600,7 +9600,7 @@ class ListDiscoveredResourcesResponse { return ListDiscoveredResourcesResponse( nextToken: json['nextToken'] as String?, resourceIdentifiers: (json['resourceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceIdentifier.fromJson(e as Map)) .toList(), ); @@ -9624,7 +9624,7 @@ class ListResourceEvaluationsResponse { return ListResourceEvaluationsResponse( nextToken: json['NextToken'] as String?, resourceEvaluations: (json['ResourceEvaluations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceEvaluation.fromJson(e as Map)) .toList(), ); @@ -9652,7 +9652,7 @@ class ListStoredQueriesResponse { return ListStoredQueriesResponse( nextToken: json['NextToken'] as String?, storedQueryMetadata: (json['StoredQueryMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StoredQueryMetadata.fromJson(e as Map)) .toList(), ); @@ -9676,7 +9676,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -9859,7 +9859,7 @@ class OrganizationAggregationSource { roleArn: json['RoleArn'] as String, allAwsRegions: json['AllAwsRegions'] as bool?, awsRegions: (json['AwsRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9922,7 +9922,7 @@ class OrganizationConfigRule { organizationConfigRuleArn: json['OrganizationConfigRuleArn'] as String, organizationConfigRuleName: json['OrganizationConfigRuleName'] as String, excludedAccounts: (json['ExcludedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdateTime: timeStampFromJson(json['LastUpdateTime']), @@ -10120,14 +10120,14 @@ class OrganizationConformancePack { json['OrganizationConformancePackName'] as String, conformancePackInputParameters: (json['ConformancePackInputParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConformancePackInputParameter.fromJson(e as Map)) .toList(), deliveryS3Bucket: json['DeliveryS3Bucket'] as String?, deliveryS3KeyPrefix: json['DeliveryS3KeyPrefix'] as String?, excludedAccounts: (json['ExcludedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -10522,7 +10522,7 @@ class OrganizationCustomPolicyRuleMetadataNoPolicy { Map json) { return OrganizationCustomPolicyRuleMetadataNoPolicy( debugLogDeliveryAccounts: (json['DebugLogDeliveryAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['Description'] as String?, @@ -10531,14 +10531,14 @@ class OrganizationCustomPolicyRuleMetadataNoPolicy { ?.let(MaximumExecutionFrequency.fromString), organizationConfigRuleTriggerTypes: (json['OrganizationConfigRuleTriggerTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationConfigRuleTriggerTypeNoSN.fromString( (e as String))) .toList(), policyRuntime: json['PolicyRuntime'] as String?, resourceIdScope: json['ResourceIdScope'] as String?, resourceTypesScope: (json['ResourceTypesScope'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tagKeyScope: json['TagKeyScope'] as String?, @@ -10627,7 +10627,7 @@ class OrganizationCustomRuleMetadata { lambdaFunctionArn: json['LambdaFunctionArn'] as String, organizationConfigRuleTriggerTypes: (json['OrganizationConfigRuleTriggerTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => OrganizationConfigRuleTriggerType.fromString((e as String))) .toList(), @@ -10637,7 +10637,7 @@ class OrganizationCustomRuleMetadata { ?.let(MaximumExecutionFrequency.fromString), resourceIdScope: json['ResourceIdScope'] as String?, resourceTypesScope: (json['ResourceTypesScope'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tagKeyScope: json['TagKeyScope'] as String?, @@ -10734,7 +10734,7 @@ class OrganizationManagedRuleMetadata { ?.let(MaximumExecutionFrequency.fromString), resourceIdScope: json['ResourceIdScope'] as String?, resourceTypesScope: (json['ResourceTypesScope'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tagKeyScope: json['TagKeyScope'] as String?, @@ -11006,7 +11006,7 @@ class PutEvaluationsResponse { factory PutEvaluationsResponse.fromJson(Map json) { return PutEvaluationsResponse( failedEvaluations: (json['FailedEvaluations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Evaluation.fromJson(e as Map)) .toList(), ); @@ -11066,7 +11066,7 @@ class PutRemediationConfigurationsResponse { Map json) { return PutRemediationConfigurationsResponse( failedBatches: (json['FailedBatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FailedRemediationBatch.fromJson(e as Map)) .toList(), @@ -11086,7 +11086,7 @@ class PutRemediationExceptionsResponse { factory PutRemediationExceptionsResponse.fromJson(Map json) { return PutRemediationExceptionsResponse( failedBatches: (json['FailedBatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedRemediationExceptionBatch.fromJson( e as Map)) .toList(), @@ -11141,7 +11141,7 @@ class QueryInfo { factory QueryInfo.fromJson(Map json) { return QueryInfo( selectFields: (json['SelectFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldInfo.fromJson(e as Map)) .toList(), ); @@ -11515,7 +11515,7 @@ class RecordingGroup { json['recordingStrategy'] as Map) : null, resourceTypes: (json['resourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceType.fromString((e as String))) .toList(), ); @@ -11601,7 +11601,7 @@ class RecordingMode { recordingFrequency: RecordingFrequency.fromString((json['recordingFrequency'] as String)), recordingModeOverrides: (json['recordingModeOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecordingModeOverride.fromJson(e as Map)) .toList(), ); @@ -11672,7 +11672,7 @@ class RecordingModeOverride { recordingFrequency: RecordingFrequency.fromString((json['recordingFrequency'] as String)), resourceTypes: (json['resourceTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceType.fromString((e as String))) .toList(), description: json['description'] as String?, @@ -12112,7 +12112,7 @@ class RemediationExecutionStatus { state: (json['State'] as String?)?.let(RemediationExecutionState.fromString), stepDetails: (json['StepDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemediationExecutionStep.fromJson(e as Map)) .toList(), @@ -13101,7 +13101,7 @@ class Scope { return Scope( complianceResourceId: json['ComplianceResourceId'] as String?, complianceResourceTypes: (json['ComplianceResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tagKey: json['TagKey'] as String?, @@ -13147,10 +13147,8 @@ class SelectAggregateResourceConfigResponse { queryInfo: json['QueryInfo'] != null ? QueryInfo.fromJson(json['QueryInfo'] as Map) : null, - results: (json['Results'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + results: + (json['Results'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -13178,10 +13176,8 @@ class SelectResourceConfigResponse { queryInfo: json['QueryInfo'] != null ? QueryInfo.fromJson(json['QueryInfo'] as Map) : null, - results: (json['Results'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + results: + (json['Results'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -13277,7 +13273,7 @@ class Source { json['CustomPolicyDetails'] as Map) : null, sourceDetails: (json['SourceDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceDetail.fromJson(e as Map)) .toList(), sourceIdentifier: json['SourceIdentifier'] as String?, @@ -13450,7 +13446,7 @@ class StartRemediationExecutionResponse { Map json) { return StartRemediationExecutionResponse( failedItems: (json['FailedItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceKey.fromJson(e as Map)) .toList(), failureMessage: json['FailureMessage'] as String?, @@ -13484,10 +13480,8 @@ class StaticValue { factory StaticValue.fromJson(Map json) { return StaticValue( - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } diff --git a/generated/aws_configservice_api/pubspec.yaml b/generated/aws_configservice_api/pubspec.yaml index 0b1936ca2..179e99c21 100644 --- a/generated/aws_configservice_api/pubspec.yaml +++ b/generated/aws_configservice_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_config protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_connect_api/lib/connect-2017-08-08.dart b/generated/aws_connect_api/lib/connect-2017-08-08.dart index a44dc7cca..3aa0cc8aa 100644 --- a/generated/aws_connect_api/lib/connect-2017-08-08.dart +++ b/generated/aws_connect_api/lib/connect-2017-08-08.dart @@ -14075,7 +14075,7 @@ class AgentConfig { factory AgentConfig.fromJson(Map json) { return AgentConfig( distributions: (json['Distributions'] as List) - .whereNotNull() + .nonNulls .map((e) => Distribution.fromJson(e as Map)) .toList(), ); @@ -14567,7 +14567,7 @@ class Application { factory Application.fromJson(Map json) { return Application( applicationPermissions: (json['ApplicationPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), namespace: json['Namespace'] as String?, @@ -14975,7 +14975,7 @@ class AudioQualityMetricsInfo { factory AudioQualityMetricsInfo.fromJson(Map json) { return AudioQualityMetricsInfo( potentialQualityIssues: (json['PotentialQualityIssues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), qualityScore: json['QualityScore'] as double?, @@ -15031,12 +15031,12 @@ class BatchAssociateAnalyticsDataSetResponse { Map json) { return BatchAssociateAnalyticsDataSetResponse( created: (json['Created'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsDataAssociationResult.fromJson( e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorResult.fromJson(e as Map)) .toList(), ); @@ -15058,12 +15058,10 @@ class BatchDisassociateAnalyticsDataSetResponse { factory BatchDisassociateAnalyticsDataSetResponse.fromJson( Map json) { return BatchDisassociateAnalyticsDataSetResponse( - deleted: (json['Deleted'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + deleted: + (json['Deleted'] as List?)?.nonNulls.map((e) => e as String).toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorResult.fromJson(e as Map)) .toList(), ); @@ -15086,11 +15084,11 @@ class BatchGetAttachedFileMetadataResponse { Map json) { return BatchGetAttachedFileMetadataResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachedFileError.fromJson(e as Map)) .toList(), files: (json['Files'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachedFile.fromJson(e as Map)) .toList(), ); @@ -15108,7 +15106,7 @@ class BatchGetFlowAssociationResponse { factory BatchGetFlowAssociationResponse.fromJson(Map json) { return BatchGetFlowAssociationResponse( flowAssociationSummaryList: (json['FlowAssociationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FlowAssociationSummary.fromJson(e as Map)) .toList(), @@ -15131,11 +15129,11 @@ class BatchPutContactResponse { factory BatchPutContactResponse.fromJson(Map json) { return BatchPutContactResponse( failedRequestList: (json['FailedRequestList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedRequest.fromJson(e as Map)) .toList(), successfulRequestList: (json['SuccessfulRequestList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuccessfulRequest.fromJson(e as Map)) .toList(), ); @@ -16558,7 +16556,7 @@ class CreateCaseActionDefinition { factory CreateCaseActionDefinition.fromJson(Map json) { return CreateCaseActionDefinition( fields: (json['Fields'] as List) - .whereNotNull() + .nonNulls .map((e) => FieldValue.fromJson(e as Map)) .toList(), templateId: json['TemplateId'] as String, @@ -17213,7 +17211,7 @@ class CurrentMetricResult { factory CurrentMetricResult.fromJson(Map json) { return CurrentMetricResult( collections: (json['Collections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CurrentMetricData.fromJson(e as Map)) .toList(), dimensions: json['Dimensions'] != null @@ -18484,7 +18482,7 @@ class EvaluationForm { evaluationFormId: json['EvaluationFormId'] as String, evaluationFormVersion: json['EvaluationFormVersion'] as int, items: (json['Items'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormItem.fromJson(e as Map)) .toList(), lastModifiedBy: json['LastModifiedBy'] as String, @@ -18546,7 +18544,7 @@ class EvaluationFormContent { evaluationFormId: json['EvaluationFormId'] as String, evaluationFormVersion: json['EvaluationFormVersion'] as int, items: (json['Items'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormItem.fromJson(e as Map)) .toList(), title: json['Title'] as String, @@ -18700,7 +18698,7 @@ class EvaluationFormNumericQuestionProperties { json['Automation'] as Map) : null, options: (json['Options'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationFormNumericQuestionOption.fromJson( e as Map)) .toList(), @@ -18941,7 +18939,7 @@ class EvaluationFormSection { factory EvaluationFormSection.fromJson(Map json) { return EvaluationFormSection( items: (json['Items'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormItem.fromJson(e as Map)) .toList(), refId: json['RefId'] as String, @@ -18988,7 +18986,7 @@ class EvaluationFormSingleSelectQuestionAutomation { Map json) { return EvaluationFormSingleSelectQuestionAutomation( options: (json['Options'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormSingleSelectQuestionAutomationOption.fromJson( e as Map)) @@ -19119,7 +19117,7 @@ class EvaluationFormSingleSelectQuestionProperties { Map json) { return EvaluationFormSingleSelectQuestionProperties( options: (json['Options'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormSingleSelectQuestionOption.fromJson( e as Map)) .toList(), @@ -19538,7 +19536,7 @@ class Expression { factory Expression.fromJson(Map json) { return Expression( andExpression: (json['AndExpression'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Expression.fromJson(e as Map)) .toList(), attributeCondition: json['AttributeCondition'] != null @@ -19546,7 +19544,7 @@ class Expression { json['AttributeCondition'] as Map) : null, orExpression: (json['OrExpression'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Expression.fromJson(e as Map)) .toList(), ); @@ -19951,7 +19949,7 @@ class GetCurrentMetricDataResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, dataSnapshotTime: timeStampFromJson(json['DataSnapshotTime']), metricResults: (json['MetricResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CurrentMetricResult.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -19981,7 +19979,7 @@ class GetCurrentUserDataResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, userDataList: (json['UserDataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserData.fromJson(e as Map)) .toList(), ); @@ -20068,7 +20066,7 @@ class GetMetricDataResponse { factory GetMetricDataResponse.fromJson(Map json) { return GetMetricDataResponse( metricResults: (json['MetricResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => HistoricalMetricResult.fromJson(e as Map)) .toList(), @@ -20094,7 +20092,7 @@ class GetMetricDataV2Response { factory GetMetricDataV2Response.fromJson(Map json) { return GetMetricDataV2Response( metricResults: (json['MetricResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricResultV2.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -20209,7 +20207,7 @@ class GetTaskTemplateResponse { : null, description: json['Description'] as String?, fields: (json['Fields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskTemplateField.fromJson(e as Map)) .toList(), instanceId: json['InstanceId'] as String?, @@ -20852,7 +20850,7 @@ class HistoricalMetricResult { factory HistoricalMetricResult.fromJson(Map json) { return HistoricalMetricResult( collections: (json['Collections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HistoricalMetricData.fromJson(e as Map)) .toList(), dimensions: json['Dimensions'] != null @@ -20907,7 +20905,7 @@ class HoursOfOperation { factory HoursOfOperation.fromJson(Map json) { return HoursOfOperation( config: (json['Config'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => HoursOfOperationConfig.fromJson(e as Map)) .toList(), @@ -21796,7 +21794,7 @@ class ListAgentStatusResponse { factory ListAgentStatusResponse.fromJson(Map json) { return ListAgentStatusResponse( agentStatusSummaryList: (json['AgentStatusSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentStatusSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21825,7 +21823,7 @@ class ListAnalyticsDataAssociationsResponse { return ListAnalyticsDataAssociationsResponse( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalyticsDataAssociationResult.fromJson( e as Map)) .toList(), @@ -21849,10 +21847,8 @@ class ListApprovedOriginsResponse { factory ListApprovedOriginsResponse.fromJson(Map json) { return ListApprovedOriginsResponse( nextToken: json['NextToken'] as String?, - origins: (json['Origins'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + origins: + (json['Origins'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -21874,7 +21870,7 @@ class ListBotsResponse { factory ListBotsResponse.fromJson(Map json) { return ListBotsResponse( lexBots: (json['LexBots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LexBotConfig.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21902,7 +21898,7 @@ class ListContactEvaluationsResponse { factory ListContactEvaluationsResponse.fromJson(Map json) { return ListContactEvaluationsResponse( evaluationSummaryList: (json['EvaluationSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21927,7 +21923,7 @@ class ListContactFlowModulesResponse { return ListContactFlowModulesResponse( contactFlowModulesSummaryList: (json['ContactFlowModulesSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactFlowModuleSummary.fromJson(e as Map)) .toList(), @@ -21952,7 +21948,7 @@ class ListContactFlowsResponse { factory ListContactFlowsResponse.fromJson(Map json) { return ListContactFlowsResponse( contactFlowSummaryList: (json['ContactFlowSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactFlowSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21980,7 +21976,7 @@ class ListContactReferencesResponse { return ListContactReferencesResponse( nextToken: json['NextToken'] as String?, referenceSummaryList: (json['ReferenceSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceSummary.fromJson(e as Map)) .toList(), ); @@ -22003,7 +21999,7 @@ class ListDefaultVocabulariesResponse { factory ListDefaultVocabulariesResponse.fromJson(Map json) { return ListDefaultVocabulariesResponse( defaultVocabularyList: (json['DefaultVocabularyList'] as List) - .whereNotNull() + .nonNulls .map((e) => DefaultVocabulary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22029,7 +22025,7 @@ class ListEvaluationFormVersionsResponse { return ListEvaluationFormVersionsResponse( evaluationFormVersionSummaryList: (json['EvaluationFormVersionSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormVersionSummary.fromJson( e as Map)) .toList(), @@ -22054,7 +22050,7 @@ class ListEvaluationFormsResponse { factory ListEvaluationFormsResponse.fromJson(Map json) { return ListEvaluationFormsResponse( evaluationFormSummaryList: (json['EvaluationFormSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => EvaluationFormSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22092,7 +22088,7 @@ class ListFlowAssociationsResponse { factory ListFlowAssociationsResponse.fromJson(Map json) { return ListFlowAssociationsResponse( flowAssociationSummaryList: (json['FlowAssociationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FlowAssociationSummary.fromJson(e as Map)) .toList(), @@ -22118,7 +22114,7 @@ class ListHoursOfOperationsResponse { return ListHoursOfOperationsResponse( hoursOfOperationSummaryList: (json['HoursOfOperationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HoursOfOperationSummary.fromJson(e as Map)) .toList(), @@ -22143,7 +22139,7 @@ class ListInstanceAttributesResponse { factory ListInstanceAttributesResponse.fromJson(Map json) { return ListInstanceAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22169,7 +22165,7 @@ class ListInstanceStorageConfigsResponse { return ListInstanceStorageConfigsResponse( nextToken: json['NextToken'] as String?, storageConfigs: (json['StorageConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceStorageConfig.fromJson(e as Map)) .toList(), ); @@ -22192,7 +22188,7 @@ class ListInstancesResponse { factory ListInstancesResponse.fromJson(Map json) { return ListInstancesResponse( instanceSummaryList: (json['InstanceSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22218,7 +22214,7 @@ class ListIntegrationAssociationsResponse { return ListIntegrationAssociationsResponse( integrationAssociationSummaryList: (json['IntegrationAssociationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegrationAssociationSummary.fromJson( e as Map)) .toList(), @@ -22243,7 +22239,7 @@ class ListLambdaFunctionsResponse { factory ListLambdaFunctionsResponse.fromJson(Map json) { return ListLambdaFunctionsResponse( lambdaFunctions: (json['LambdaFunctions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -22268,7 +22264,7 @@ class ListLexBotsResponse { factory ListLexBotsResponse.fromJson(Map json) { return ListLexBotsResponse( lexBots: (json['LexBots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LexBot.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22293,7 +22289,7 @@ class ListPhoneNumbersResponse { return ListPhoneNumbersResponse( nextToken: json['NextToken'] as String?, phoneNumberSummaryList: (json['PhoneNumberSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberSummary.fromJson(e as Map)) .toList(), ); @@ -22384,7 +22380,7 @@ class ListPhoneNumbersV2Response { return ListPhoneNumbersV2Response( listPhoneNumbersSummaryList: (json['ListPhoneNumbersSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListPhoneNumbersSummary.fromJson(e as Map)) .toList(), @@ -22411,7 +22407,7 @@ class ListPredefinedAttributesResponse { nextToken: json['NextToken'] as String?, predefinedAttributeSummaryList: (json['PredefinedAttributeSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredefinedAttributeSummary.fromJson(e as Map)) .toList(), @@ -22436,7 +22432,7 @@ class ListPromptsResponse { return ListPromptsResponse( nextToken: json['NextToken'] as String?, promptSummaryList: (json['PromptSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PromptSummary.fromJson(e as Map)) .toList(), ); @@ -22470,7 +22466,7 @@ class ListQueueQuickConnectsResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), nextToken: json['NextToken'] as String?, quickConnectSummaryList: (json['QuickConnectSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QuickConnectSummary.fromJson(e as Map)) .toList(), ); @@ -22494,7 +22490,7 @@ class ListQueuesResponse { return ListQueuesResponse( nextToken: json['NextToken'] as String?, queueSummaryList: (json['QueueSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueueSummary.fromJson(e as Map)) .toList(), ); @@ -22518,7 +22514,7 @@ class ListQuickConnectsResponse { return ListQuickConnectsResponse( nextToken: json['NextToken'] as String?, quickConnectSummaryList: (json['QuickConnectSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QuickConnectSummary.fromJson(e as Map)) .toList(), ); @@ -22552,7 +22548,7 @@ class ListRealtimeContactAnalysisSegmentsV2Response { channel: RealTimeContactAnalysisSupportedChannel.fromString( (json['Channel'] as String)), segments: (json['Segments'] as List) - .whereNotNull() + .nonNulls .map((e) => RealtimeContactAnalysisSegment.fromJson( e as Map)) .toList(), @@ -22592,7 +22588,7 @@ class ListRoutingProfileQueuesResponse { nextToken: json['NextToken'] as String?, routingProfileQueueConfigSummaryList: (json['RoutingProfileQueueConfigSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoutingProfileQueueConfigSummary.fromJson( e as Map)) .toList(), @@ -22617,7 +22613,7 @@ class ListRoutingProfilesResponse { return ListRoutingProfilesResponse( nextToken: json['NextToken'] as String?, routingProfileSummaryList: (json['RoutingProfileSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoutingProfileSummary.fromJson(e as Map)) .toList(), ); @@ -22640,7 +22636,7 @@ class ListRulesResponse { factory ListRulesResponse.fromJson(Map json) { return ListRulesResponse( ruleSummaryList: (json['RuleSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22665,7 +22661,7 @@ class ListSecurityKeysResponse { return ListSecurityKeysResponse( nextToken: json['NextToken'] as String?, securityKeys: (json['SecurityKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityKey.fromJson(e as Map)) .toList(), ); @@ -22697,7 +22693,7 @@ class ListSecurityProfileApplicationsResponse { Map json) { return ListSecurityProfileApplicationsResponse( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), lastModifiedRegion: json['LastModifiedRegion'] as String?, @@ -22738,7 +22734,7 @@ class ListSecurityProfilePermissionsResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), nextToken: json['NextToken'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -22762,7 +22758,7 @@ class ListSecurityProfilesResponse { return ListSecurityProfilesResponse( nextToken: json['NextToken'] as String?, securityProfileSummaryList: (json['SecurityProfileSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SecurityProfileSummary.fromJson(e as Map)) .toList(), @@ -22806,7 +22802,7 @@ class ListTaskTemplatesResponse { return ListTaskTemplatesResponse( nextToken: json['NextToken'] as String?, taskTemplates: (json['TaskTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskTemplateMetadata.fromJson(e as Map)) .toList(), ); @@ -22833,7 +22829,7 @@ class ListTrafficDistributionGroupUsersResponse { nextToken: json['NextToken'] as String?, trafficDistributionGroupUserSummaryList: (json['TrafficDistributionGroupUserSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrafficDistributionGroupUserSummary.fromJson( e as Map)) .toList(), @@ -22861,7 +22857,7 @@ class ListTrafficDistributionGroupsResponse { nextToken: json['NextToken'] as String?, trafficDistributionGroupSummaryList: (json['TrafficDistributionGroupSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrafficDistributionGroupSummary.fromJson( e as Map)) .toList(), @@ -22886,7 +22882,7 @@ class ListUseCasesResponse { return ListUseCasesResponse( nextToken: json['NextToken'] as String?, useCaseSummaryList: (json['UseCaseSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UseCase.fromJson(e as Map)) .toList(), ); @@ -22911,7 +22907,7 @@ class ListUserHierarchyGroupsResponse { nextToken: json['NextToken'] as String?, userHierarchyGroupSummaryList: (json['UserHierarchyGroupSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HierarchyGroupSummary.fromJson(e as Map)) .toList(), ); @@ -22945,7 +22941,7 @@ class ListUserProficienciesResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), nextToken: json['NextToken'] as String?, userProficiencyList: (json['UserProficiencyList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserProficiency.fromJson(e as Map)) .toList(), ); @@ -22969,7 +22965,7 @@ class ListUsersResponse { return ListUsersResponse( nextToken: json['NextToken'] as String?, userSummaryList: (json['UserSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserSummary.fromJson(e as Map)) .toList(), ); @@ -22993,7 +22989,7 @@ class ListViewVersionsResponse { return ListViewVersionsResponse( nextToken: json['NextToken'] as String?, viewVersionSummaryList: (json['ViewVersionSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ViewVersionSummary.fromJson(e as Map)) .toList(), ); @@ -23017,7 +23013,7 @@ class ListViewsResponse { return ListViewsResponse( nextToken: json['NextToken'] as String?, viewsSummaryList: (json['ViewsSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ViewSummary.fromJson(e as Map)) .toList(), ); @@ -23249,7 +23245,7 @@ class MetricFilterV2 { return MetricFilterV2( metricFilterKey: json['MetricFilterKey'] as String?, metricFilterValues: (json['MetricFilterValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), negate: json['Negate'] as bool?, @@ -23320,7 +23316,7 @@ class MetricResultV2 { factory MetricResultV2.fromJson(Map json) { return MetricResultV2( collections: (json['Collections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDataV2.fromJson(e as Map)) .toList(), dimensions: (json['Dimensions'] as Map?) @@ -23356,12 +23352,12 @@ class MetricV2 { factory MetricV2.fromJson(Map json) { return MetricV2( metricFilters: (json['MetricFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricFilterV2.fromJson(e as Map)) .toList(), name: json['Name'] as String?, threshold: (json['Threshold'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThresholdV2.fromJson(e as Map)) .toList(), ); @@ -23509,10 +23505,8 @@ class NotificationRecipientType { factory NotificationRecipientType.fromJson(Map json) { return NotificationRecipientType( - userIds: (json['UserIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + userIds: + (json['UserIds'] as List?)?.nonNulls.map((e) => e as String).toList(), userTags: (json['UserTags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), ); @@ -24434,7 +24428,7 @@ class PredefinedAttributeValues { factory PredefinedAttributeValues.fromJson(Map json) { return PredefinedAttributeValues( stringList: (json['StringList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -25187,7 +25181,7 @@ class RealTimeContactAnalysisCategoryDetails { Map json) { return RealTimeContactAnalysisCategoryDetails( pointsOfInterest: (json['PointsOfInterest'] as List) - .whereNotNull() + .nonNulls .map((e) => RealTimeContactAnalysisPointOfInterest.fromJson( e as Map)) .toList(), @@ -25232,7 +25226,7 @@ class RealTimeContactAnalysisIssueDetected { Map json) { return RealTimeContactAnalysisIssueDetected( transcriptItems: (json['TranscriptItems'] as List) - .whereNotNull() + .nonNulls .map((e) => RealTimeContactAnalysisTranscriptItemWithContent.fromJson( e as Map)) .toList(), @@ -25271,7 +25265,7 @@ class RealTimeContactAnalysisPointOfInterest { Map json) { return RealTimeContactAnalysisPointOfInterest( transcriptItems: (json['TranscriptItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RealTimeContactAnalysisTranscriptItemWithCharacterOffsets .fromJson(e as Map)) .toList(), @@ -25314,7 +25308,7 @@ class RealTimeContactAnalysisSegmentAttachments { Map json) { return RealTimeContactAnalysisSegmentAttachments( attachments: (json['Attachments'] as List) - .whereNotNull() + .nonNulls .map((e) => RealTimeContactAnalysisAttachment.fromJson( e as Map)) .toList(), @@ -25411,7 +25405,7 @@ class RealTimeContactAnalysisSegmentIssues { Map json) { return RealTimeContactAnalysisSegmentIssues( issuesDetected: (json['IssuesDetected'] as List) - .whereNotNull() + .nonNulls .map((e) => RealTimeContactAnalysisIssueDetected.fromJson( e as Map)) .toList(), @@ -25584,7 +25578,7 @@ class RealTimeContactAnalysisTranscriptItemRedaction { Map json) { return RealTimeContactAnalysisTranscriptItemRedaction( characterOffsets: (json['CharacterOffsets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RealTimeContactAnalysisCharacterInterval.fromJson( e as Map)) .toList(), @@ -25954,7 +25948,7 @@ class RoutingCriteria { activationTimestamp: timeStampFromJson(json['ActivationTimestamp']), index: json['Index'] as int?, steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Step.fromJson(e as Map)) .toList(), ); @@ -26054,7 +26048,7 @@ class RoutingProfile { agentAvailabilityTimer: (json['AgentAvailabilityTimer'] as String?) ?.let(AgentAvailabilityTimer.fromString), associatedQueueIds: (json['AssociatedQueueIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultOutboundQueueId: json['DefaultOutboundQueueId'] as String?, @@ -26064,7 +26058,7 @@ class RoutingProfile { lastModifiedRegion: json['LastModifiedRegion'] as String?, lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), mediaConcurrencies: (json['MediaConcurrencies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaConcurrency.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -26351,7 +26345,7 @@ class Rule { factory Rule.fromJson(Map json) { return Rule( actions: (json['Actions'] as List) - .whereNotNull() + .nonNulls .map((e) => RuleAction.fromJson(e as Map)) .toList(), createdTime: nonNullableTimeStampFromJson(json['CreatedTime'] as Object), @@ -26571,7 +26565,7 @@ class RuleSummary { factory RuleSummary.fromJson(Map json) { return RuleSummary( actionSummaries: (json['ActionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ActionSummary.fromJson(e as Map)) .toList(), createdTime: nonNullableTimeStampFromJson(json['CreatedTime'] as Object), @@ -26684,7 +26678,7 @@ class SearchAvailablePhoneNumbersResponse { Map json) { return SearchAvailablePhoneNumbersResponse( availableNumbersList: (json['AvailableNumbersList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AvailableNumberSummary.fromJson(e as Map)) .toList(), @@ -26714,7 +26708,7 @@ class SearchContactFlowModulesResponse { return SearchContactFlowModulesResponse( approximateTotalCount: json['ApproximateTotalCount'] as int?, contactFlowModules: (json['ContactFlowModules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactFlowModule.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -26743,7 +26737,7 @@ class SearchContactFlowsResponse { return SearchContactFlowsResponse( approximateTotalCount: json['ApproximateTotalCount'] as int?, contactFlows: (json['ContactFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactFlow.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -26786,7 +26780,7 @@ class SearchContactsResponse { factory SearchContactsResponse.fromJson(Map json) { return SearchContactsResponse( contacts: (json['Contacts'] as List) - .whereNotNull() + .nonNulls .map((e) => ContactSearchSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -26929,7 +26923,7 @@ class SearchHoursOfOperationsResponse { return SearchHoursOfOperationsResponse( approximateTotalCount: json['ApproximateTotalCount'] as int?, hoursOfOperations: (json['HoursOfOperations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HoursOfOperation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -26961,7 +26955,7 @@ class SearchPredefinedAttributesResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, predefinedAttributes: (json['PredefinedAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredefinedAttribute.fromJson(e as Map)) .toList(), ); @@ -26990,7 +26984,7 @@ class SearchPromptsResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, prompts: (json['Prompts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Prompt.fromJson(e as Map)) .toList(), ); @@ -27019,7 +27013,7 @@ class SearchQueuesResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, queues: (json['Queues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Queue.fromJson(e as Map)) .toList(), ); @@ -27048,7 +27042,7 @@ class SearchQuickConnectsResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, quickConnects: (json['QuickConnects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QuickConnect.fromJson(e as Map)) .toList(), ); @@ -27072,7 +27066,7 @@ class SearchResourceTagsResponse { return SearchResourceTagsResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagSet.fromJson(e as Map)) .toList(), ); @@ -27101,7 +27095,7 @@ class SearchRoutingProfilesResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, routingProfiles: (json['RoutingProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoutingProfile.fromJson(e as Map)) .toList(), ); @@ -27130,7 +27124,7 @@ class SearchSecurityProfilesResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, securityProfiles: (json['SecurityProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityProfileSearchSummary.fromJson(e as Map)) .toList(), @@ -27160,7 +27154,7 @@ class SearchUsersResponse { approximateTotalCount: json['ApproximateTotalCount'] as int?, nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserSearchSummary.fromJson(e as Map)) .toList(), ); @@ -27184,7 +27178,7 @@ class SearchVocabulariesResponse { return SearchVocabulariesResponse( nextToken: json['NextToken'] as String?, vocabularySummaryList: (json['VocabularySummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VocabularySummary.fromJson(e as Map)) .toList(), ); @@ -27352,7 +27346,7 @@ class SecurityProfile { description: json['Description'] as String?, hierarchyRestrictedResources: (json['HierarchyRestrictedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), id: json['Id'] as String?, @@ -27361,7 +27355,7 @@ class SecurityProfile { organizationResourceId: json['OrganizationResourceId'] as String?, securityProfileName: json['SecurityProfileName'] as String?, tagRestrictedResources: (json['TagRestrictedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as Map?) @@ -27617,7 +27611,7 @@ class SignInConfig { factory SignInConfig.fromJson(Map json) { return SignInConfig( distributions: (json['Distributions'] as List) - .whereNotNull() + .nonNulls .map((e) => SignInDistribution.fromJson(e as Map)) .toList(), ); @@ -28381,15 +28375,15 @@ class TaskTemplateConstraints { factory TaskTemplateConstraints.fromJson(Map json) { return TaskTemplateConstraints( invisibleFields: (json['InvisibleFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InvisibleFieldInfo.fromJson(e as Map)) .toList(), readOnlyFields: (json['ReadOnlyFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReadOnlyFieldInfo.fromJson(e as Map)) .toList(), requiredFields: (json['RequiredFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RequiredFieldInfo.fromJson(e as Map)) .toList(), ); @@ -28452,7 +28446,7 @@ class TaskTemplateDefaults { factory TaskTemplateDefaults.fromJson(Map json) { return TaskTemplateDefaults( defaultFieldValues: (json['DefaultFieldValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskTemplateDefaultFieldValue.fromJson(e as Map)) .toList(), @@ -28494,7 +28488,7 @@ class TaskTemplateField { json['Id'] as Map), description: json['Description'] as String?, singleSelectOptions: (json['SingleSelectOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['Type'] as String?)?.let(TaskTemplateFieldType.fromString), @@ -28640,7 +28634,7 @@ class TelephonyConfig { factory TelephonyConfig.fromJson(Map json) { return TelephonyConfig( distributions: (json['Distributions'] as List) - .whereNotNull() + .nonNulls .map((e) => Distribution.fromJson(e as Map)) .toList(), ); @@ -29077,7 +29071,7 @@ class UpdateCaseActionDefinition { factory UpdateCaseActionDefinition.fromJson(Map json) { return UpdateCaseActionDefinition( fields: (json['Fields'] as List) - .whereNotNull() + .nonNulls .map((e) => FieldValue.fromJson(e as Map)) .toList(), ); @@ -29349,7 +29343,7 @@ class UpdateTaskTemplateResponse { : null, description: json['Description'] as String?, fields: (json['Fields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskTemplateField.fromJson(e as Map)) .toList(), id: json['Id'] as String?, @@ -29559,7 +29553,7 @@ class User { : null, routingProfileId: json['RoutingProfileId'] as String?, securityProfileIds: (json['SecurityProfileIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as Map?) @@ -29628,7 +29622,7 @@ class UserData { (json['AvailableSlotsByChannel'] as Map?) ?.map((k, e) => MapEntry(Channel.fromString(k), e as int)), contacts: (json['Contacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentContactReference.fromJson(e as Map)) .toList(), hierarchyPath: json['HierarchyPath'] != null @@ -30103,7 +30097,7 @@ class UserSearchSummary { : null, routingProfileId: json['RoutingProfileId'] as String?, securityProfileIds: (json['SecurityProfileIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as Map?) @@ -30268,10 +30262,8 @@ class ViewContent { factory ViewContent.fromJson(Map json) { return ViewContent( - actions: (json['Actions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List?)?.nonNulls.map((e) => e as String).toList(), inputSchema: json['InputSchema'] as String?, template: json['Template'] as String?, ); diff --git a/generated/aws_connect_api/pubspec.yaml b/generated/aws_connect_api/pubspec.yaml index 021daa269..ccb0eead7 100644 --- a/generated/aws_connect_api/pubspec.yaml +++ b/generated/aws_connect_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_connec protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_connectparticipant_api/lib/connectparticipant-2018-09-07.dart b/generated/aws_connectparticipant_api/lib/connectparticipant-2018-09-07.dart index 4df4d6481..c29ae3e43 100644 --- a/generated/aws_connectparticipant_api/lib/connectparticipant-2018-09-07.dart +++ b/generated/aws_connectparticipant_api/lib/connectparticipant-2018-09-07.dart @@ -855,7 +855,7 @@ class GetTranscriptResponse { initialContactId: json['InitialContactId'] as String?, nextToken: json['NextToken'] as String?, transcript: (json['Transcript'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Item.fromJson(e as Map)) .toList(), ); @@ -928,7 +928,7 @@ class Item { return Item( absoluteTime: json['AbsoluteTime'] as String?, attachments: (json['Attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachmentItem.fromJson(e as Map)) .toList(), contactId: json['ContactId'] as String?, @@ -966,7 +966,7 @@ class MessageMetadata { return MessageMetadata( messageId: json['MessageId'] as String?, receipts: (json['Receipts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Receipt.fromJson(e as Map)) .toList(), ); @@ -1239,10 +1239,8 @@ class ViewContent { factory ViewContent.fromJson(Map json) { return ViewContent( - actions: (json['Actions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List?)?.nonNulls.map((e) => e as String).toList(), inputSchema: json['InputSchema'] as String?, template: json['Template'] as String?, ); diff --git a/generated/aws_connectparticipant_api/pubspec.yaml b/generated/aws_connectparticipant_api/pubspec.yaml index c172aa56d..82c1d5d95 100644 --- a/generated/aws_connectparticipant_api/pubspec.yaml +++ b/generated/aws_connectparticipant_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_connec protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_cur_api/lib/cur-2017-01-06.dart b/generated/aws_cur_api/lib/cur-2017-01-06.dart index 38b9ac85f..ed04d79d8 100644 --- a/generated/aws_cur_api/lib/cur-2017-01-06.dart +++ b/generated/aws_cur_api/lib/cur-2017-01-06.dart @@ -399,7 +399,7 @@ class DescribeReportDefinitionsResponse { return DescribeReportDefinitionsResponse( nextToken: json['NextToken'] as String?, reportDefinitions: (json['ReportDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportDefinition.fromJson(e as Map)) .toList(), ); @@ -432,7 +432,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -515,7 +515,7 @@ class ReportDefinition { factory ReportDefinition.fromJson(Map json) { return ReportDefinition( additionalSchemaElements: (json['AdditionalSchemaElements'] as List) - .whereNotNull() + .nonNulls .map((e) => SchemaElement.fromString((e as String))) .toList(), compression: @@ -527,7 +527,7 @@ class ReportDefinition { s3Region: AWSRegion.fromString((json['S3Region'] as String)), timeUnit: TimeUnit.fromString((json['TimeUnit'] as String)), additionalArtifacts: (json['AdditionalArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalArtifact.fromString((e as String))) .toList(), billingViewArn: json['BillingViewArn'] as String?, diff --git a/generated/aws_cur_api/pubspec.yaml b/generated/aws_cur_api/pubspec.yaml index b4502cfa5..b6e1fd703 100644 --- a/generated/aws_cur_api/pubspec.yaml +++ b/generated/aws_cur_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_cur_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_dataexchange_api/lib/dataexchange-2017-07-25.dart b/generated/aws_dataexchange_api/lib/dataexchange-2017-07-25.dart index 9e4377737..93e6014f5 100644 --- a/generated/aws_dataexchange_api/lib/dataexchange-2017-07-25.dart +++ b/generated/aws_dataexchange_api/lib/dataexchange-2017-07-25.dart @@ -1634,7 +1634,7 @@ class CreateJobResponse { ? ResponseDetails.fromJson(json['Details'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobError.fromJson(e as Map)) .toList(), id: json['Id'] as String?, @@ -1885,7 +1885,7 @@ class DatabaseLFTagPolicy { factory DatabaseLFTagPolicy.fromJson(Map json) { return DatabaseLFTagPolicy( expression: (json['Expression'] as List) - .whereNotNull() + .nonNulls .map((e) => LFTag.fromJson(e as Map)) .toList(), ); @@ -1909,11 +1909,11 @@ class DatabaseLFTagPolicyAndPermissions { Map json) { return DatabaseLFTagPolicyAndPermissions( expression: (json['Expression'] as List) - .whereNotNull() + .nonNulls .map((e) => LFTag.fromJson(e as Map)) .toList(), permissions: (json['Permissions'] as List) - .whereNotNull() + .nonNulls .map((e) => DatabaseLFTagPolicyPermission.fromString((e as String))) .toList(), ); @@ -1984,7 +1984,7 @@ class Details { : null, importAssetsFromS3JobErrorDetails: (json['ImportAssetsFromS3JobErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetSourceEntry.fromJson(e as Map)) .toList(), ); @@ -2186,7 +2186,7 @@ class ExportAssetsToS3ResponseDetails { factory ExportAssetsToS3ResponseDetails.fromJson(Map json) { return ExportAssetsToS3ResponseDetails( assetDestinations: (json['AssetDestinations'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetDestinationEntry.fromJson(e as Map)) .toList(), dataSetId: json['DataSetId'] as String, @@ -2254,7 +2254,7 @@ class ExportRevisionsToS3ResponseDetails { return ExportRevisionsToS3ResponseDetails( dataSetId: json['DataSetId'] as String, revisionDestinations: (json['RevisionDestinations'] as List) - .whereNotNull() + .nonNulls .map((e) => RevisionDestinationEntry.fromJson(e as Map)) .toList(), @@ -2535,7 +2535,7 @@ class GetJobResponse { ? ResponseDetails.fromJson(json['Details'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobError.fromJson(e as Map)) .toList(), id: json['Id'] as String?, @@ -3010,7 +3010,7 @@ class ImportAssetsFromRedshiftDataSharesResponseDetails { Map json) { return ImportAssetsFromRedshiftDataSharesResponseDetails( assetSources: (json['AssetSources'] as List) - .whereNotNull() + .nonNulls .map((e) => RedshiftDataShareAssetSourceEntry.fromJson( e as Map)) .toList(), @@ -3070,7 +3070,7 @@ class ImportAssetsFromS3ResponseDetails { Map json) { return ImportAssetsFromS3ResponseDetails( assetSources: (json['AssetSources'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetSourceEntry.fromJson(e as Map)) .toList(), dataSetId: json['DataSetId'] as String, @@ -3131,7 +3131,7 @@ class JobEntry { type: Type.fromString((json['Type'] as String)), updatedAt: nonNullableTimeStampFromJson(json['UpdatedAt'] as Object), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobError.fromJson(e as Map)) .toList(), ); @@ -3328,10 +3328,8 @@ class LFTag { factory LFTag.fromJson(Map json) { return LFTag( tagKey: json['TagKey'] as String, - tagValues: (json['TagValues'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tagValues: + (json['TagValues'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -3404,7 +3402,7 @@ class LakeFormationDataPermissionAsset { LakeFormationDataPermissionType.fromString( (json['LakeFormationDataPermissionType'] as String)), permissions: (json['Permissions'] as List) - .whereNotNull() + .nonNulls .map((e) => LFPermission.fromString((e as String))) .toList(), roleArn: json['RoleArn'] as String?, @@ -3486,7 +3484,7 @@ class ListDataSetRevisionsResponse { return ListDataSetRevisionsResponse( nextToken: json['NextToken'] as String?, revisions: (json['Revisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RevisionEntry.fromJson(e as Map)) .toList(), ); @@ -3509,7 +3507,7 @@ class ListDataSetsResponse { factory ListDataSetsResponse.fromJson(Map json) { return ListDataSetsResponse( dataSets: (json['DataSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSetEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3533,7 +3531,7 @@ class ListEventActionsResponse { factory ListEventActionsResponse.fromJson(Map json) { return ListEventActionsResponse( eventActions: (json['EventActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventActionEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3557,7 +3555,7 @@ class ListJobsResponse { factory ListJobsResponse.fromJson(Map json) { return ListJobsResponse( jobs: (json['Jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3581,7 +3579,7 @@ class ListRevisionAssetsResponse { factory ListRevisionAssetsResponse.fromJson(Map json) { return ListRevisionAssetsResponse( assets: (json['Assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4215,15 +4213,12 @@ class S3DataAccessAsset { return S3DataAccessAsset( bucket: json['Bucket'] as String, keyPrefixes: (json['KeyPrefixes'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - keys: (json['Keys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + keys: (json['Keys'] as List?)?.nonNulls.map((e) => e as String).toList(), kmsKeysToGrant: (json['KmsKeysToGrant'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KmsKeyToGrant.fromJson(e as Map)) .toList(), s3AccessPointAlias: json['S3AccessPointAlias'] as String?, @@ -4259,15 +4254,12 @@ class S3DataAccessAssetSourceEntry { return S3DataAccessAssetSourceEntry( bucket: json['Bucket'] as String, keyPrefixes: (json['KeyPrefixes'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - keys: (json['Keys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + keys: (json['Keys'] as List?)?.nonNulls.map((e) => e as String).toList(), kmsKeysToGrant: (json['KmsKeysToGrant'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KmsKeyToGrant.fromJson(e as Map)) .toList(), ); @@ -4504,7 +4496,7 @@ class TableLFTagPolicy { factory TableLFTagPolicy.fromJson(Map json) { return TableLFTagPolicy( expression: (json['Expression'] as List) - .whereNotNull() + .nonNulls .map((e) => LFTag.fromJson(e as Map)) .toList(), ); @@ -4527,11 +4519,11 @@ class TableLFTagPolicyAndPermissions { factory TableLFTagPolicyAndPermissions.fromJson(Map json) { return TableLFTagPolicyAndPermissions( expression: (json['Expression'] as List) - .whereNotNull() + .nonNulls .map((e) => LFTag.fromJson(e as Map)) .toList(), permissions: (json['Permissions'] as List) - .whereNotNull() + .nonNulls .map((e) => TableTagPolicyLFPermission.fromString((e as String))) .toList(), ); diff --git a/generated/aws_dataexchange_api/pubspec.yaml b/generated/aws_dataexchange_api/pubspec.yaml index 78db2e02d..26cbced09 100644 --- a/generated/aws_dataexchange_api/pubspec.yaml +++ b/generated/aws_dataexchange_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_dataex protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_datapipeline_api/lib/datapipeline-2012-10-29.dart b/generated/aws_datapipeline_api/lib/datapipeline-2012-10-29.dart index 23dbf0953..72c97404d 100644 --- a/generated/aws_datapipeline_api/lib/datapipeline-2012-10-29.dart +++ b/generated/aws_datapipeline_api/lib/datapipeline-2012-10-29.dart @@ -1044,7 +1044,7 @@ class DescribeObjectsOutput { factory DescribeObjectsOutput.fromJson(Map json) { return DescribeObjectsOutput( pipelineObjects: (json['pipelineObjects'] as List) - .whereNotNull() + .nonNulls .map((e) => PipelineObject.fromJson(e as Map)) .toList(), hasMoreResults: json['hasMoreResults'] as bool?, @@ -1065,7 +1065,7 @@ class DescribePipelinesOutput { factory DescribePipelinesOutput.fromJson(Map json) { return DescribePipelinesOutput( pipelineDescriptionList: (json['pipelineDescriptionList'] as List) - .whereNotNull() + .nonNulls .map((e) => PipelineDescription.fromJson(e as Map)) .toList(), ); @@ -1147,15 +1147,15 @@ class GetPipelineDefinitionOutput { factory GetPipelineDefinitionOutput.fromJson(Map json) { return GetPipelineDefinitionOutput( parameterObjects: (json['parameterObjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterObject.fromJson(e as Map)) .toList(), parameterValues: (json['parameterValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterValue.fromJson(e as Map)) .toList(), pipelineObjects: (json['pipelineObjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineObject.fromJson(e as Map)) .toList(), ); @@ -1222,7 +1222,7 @@ class ListPipelinesOutput { factory ListPipelinesOutput.fromJson(Map json) { return ListPipelinesOutput( pipelineIdList: (json['pipelineIdList'] as List) - .whereNotNull() + .nonNulls .map((e) => PipelineIdName.fromJson(e as Map)) .toList(), hasMoreResults: json['hasMoreResults'] as bool?, @@ -1354,7 +1354,7 @@ class ParameterObject { factory ParameterObject.fromJson(Map json) { return ParameterObject( attributes: (json['attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => ParameterAttribute.fromJson(e as Map)) .toList(), id: json['id'] as String, @@ -1435,14 +1435,14 @@ class PipelineDescription { factory PipelineDescription.fromJson(Map json) { return PipelineDescription( fields: (json['fields'] as List) - .whereNotNull() + .nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), name: json['name'] as String, pipelineId: json['pipelineId'] as String, description: json['description'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1493,7 +1493,7 @@ class PipelineObject { factory PipelineObject.fromJson(Map json) { return PipelineObject( fields: (json['fields'] as List) - .whereNotNull() + .nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), id: json['id'] as String, @@ -1560,11 +1560,11 @@ class PutPipelineDefinitionOutput { return PutPipelineDefinitionOutput( errored: json['errored'] as bool, validationErrors: (json['validationErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationError.fromJson(e as Map)) .toList(), validationWarnings: (json['validationWarnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationWarning.fromJson(e as Map)) .toList(), ); @@ -1612,10 +1612,7 @@ class QueryObjectsOutput { factory QueryObjectsOutput.fromJson(Map json) { return QueryObjectsOutput( hasMoreResults: json['hasMoreResults'] as bool?, - ids: (json['ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['ids'] as List?)?.nonNulls.map((e) => e as String).toList(), marker: json['marker'] as String?, ); } @@ -1811,11 +1808,11 @@ class ValidatePipelineDefinitionOutput { return ValidatePipelineDefinitionOutput( errored: json['errored'] as bool, validationErrors: (json['validationErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationError.fromJson(e as Map)) .toList(), validationWarnings: (json['validationWarnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationWarning.fromJson(e as Map)) .toList(), ); @@ -1839,10 +1836,8 @@ class ValidationError { factory ValidationError.fromJson(Map json) { return ValidationError( - errors: (json['errors'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + errors: + (json['errors'] as List?)?.nonNulls.map((e) => e as String).toList(), id: json['id'] as String?, ); } @@ -1867,7 +1862,7 @@ class ValidationWarning { return ValidationWarning( id: json['id'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_datapipeline_api/pubspec.yaml b/generated/aws_datapipeline_api/pubspec.yaml index 188afda0d..6c57e2ade 100644 --- a/generated/aws_datapipeline_api/pubspec.yaml +++ b/generated/aws_datapipeline_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_datapi protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_datasync_api/lib/datasync-2018-11-09.dart b/generated/aws_datasync_api/lib/datasync-2018-11-09.dart index 9489f5def..94e5efea6 100644 --- a/generated/aws_datasync_api/lib/datasync-2018-11-09.dart +++ b/generated/aws_datasync_api/lib/datasync-2018-11-09.dart @@ -4171,7 +4171,7 @@ class DescribeLocationAzureBlobResponse { accessTier: (json['AccessTier'] as String?)?.let(AzureAccessTier.fromString), agentArns: (json['AgentArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authenticationType: (json['AuthenticationType'] as String?) @@ -4263,7 +4263,7 @@ class DescribeLocationFsxLustreResponse { locationArn: json['LocationArn'] as String?, locationUri: json['LocationUri'] as String?, securityGroupArns: (json['SecurityGroupArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4313,7 +4313,7 @@ class DescribeLocationFsxOntapResponse { ? FsxProtocol.fromJson(json['Protocol'] as Map) : null, securityGroupArns: (json['SecurityGroupArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), storageVirtualMachineArn: json['StorageVirtualMachineArn'] as String?, @@ -4360,7 +4360,7 @@ class DescribeLocationFsxOpenZfsResponse { ? FsxProtocol.fromJson(json['Protocol'] as Map) : null, securityGroupArns: (json['SecurityGroupArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4407,7 +4407,7 @@ class DescribeLocationFsxWindowsResponse { locationArn: json['LocationArn'] as String?, locationUri: json['LocationUri'] as String?, securityGroupArns: (json['SecurityGroupArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), user: json['User'] as String?, @@ -4477,7 +4477,7 @@ class DescribeLocationHdfsResponse { factory DescribeLocationHdfsResponse.fromJson(Map json) { return DescribeLocationHdfsResponse( agentArns: (json['AgentArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), authenticationType: (json['AuthenticationType'] as String?) @@ -4489,7 +4489,7 @@ class DescribeLocationHdfsResponse { locationArn: json['LocationArn'] as String?, locationUri: json['LocationUri'] as String?, nameNodes: (json['NameNodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HdfsNameNode.fromJson(e as Map)) .toList(), qopConfiguration: json['QopConfiguration'] != null @@ -4588,7 +4588,7 @@ class DescribeLocationObjectStorageResponse { return DescribeLocationObjectStorageResponse( accessKey: json['AccessKey'] as String?, agentArns: (json['AgentArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -4644,7 +4644,7 @@ class DescribeLocationS3Response { factory DescribeLocationS3Response.fromJson(Map json) { return DescribeLocationS3Response( agentArns: (json['AgentArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -4697,7 +4697,7 @@ class DescribeLocationSmbResponse { factory DescribeLocationSmbResponse.fromJson(Map json) { return DescribeLocationSmbResponse( agentArns: (json['AgentArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -4731,7 +4731,7 @@ class DescribeStorageSystemResourceMetricsResponse { Map json) { return DescribeStorageSystemResourceMetricsResponse( metrics: (json['Metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceMetrics.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4832,7 +4832,7 @@ class DescribeStorageSystemResponse { factory DescribeStorageSystemResponse.fromJson(Map json) { return DescribeStorageSystemResponse( agentArns: (json['AgentArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cloudWatchLogGroupArn: json['CloudWatchLogGroupArn'] as String?, @@ -4999,7 +4999,7 @@ class DescribeTaskExecutionResponse { estimatedFilesToDelete: json['EstimatedFilesToDelete'] as int?, estimatedFilesToTransfer: json['EstimatedFilesToTransfer'] as int?, excludes: (json['Excludes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterRule.fromJson(e as Map)) .toList(), filesDeleted: json['FilesDeleted'] as int?, @@ -5007,7 +5007,7 @@ class DescribeTaskExecutionResponse { filesTransferred: json['FilesTransferred'] as int?, filesVerified: json['FilesVerified'] as int?, includes: (json['Includes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterRule.fromJson(e as Map)) .toList(), manifestConfig: json['ManifestConfig'] != null @@ -5163,17 +5163,17 @@ class DescribeTaskResponse { destinationLocationArn: json['DestinationLocationArn'] as String?, destinationNetworkInterfaceArns: (json['DestinationNetworkInterfaceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), errorCode: json['ErrorCode'] as String?, errorDetail: json['ErrorDetail'] as String?, excludes: (json['Excludes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterRule.fromJson(e as Map)) .toList(), includes: (json['Includes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterRule.fromJson(e as Map)) .toList(), manifestConfig: json['ManifestConfig'] != null @@ -5193,7 +5193,7 @@ class DescribeTaskResponse { : null, sourceLocationArn: json['SourceLocationArn'] as String?, sourceNetworkInterfaceArns: (json['SourceNetworkInterfaceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['Status'] as String?)?.let(TaskStatus.fromString), @@ -5358,7 +5358,7 @@ class Ec2Config { factory Ec2Config.fromJson(Map json) { return Ec2Config( securityGroupArns: (json['SecurityGroupArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), subnetArn: json['SubnetArn'] as String, @@ -5766,7 +5766,7 @@ class ListAgentsResponse { factory ListAgentsResponse.fromJson(Map json) { return ListAgentsResponse( agents: (json['Agents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentListEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5790,7 +5790,7 @@ class ListDiscoveryJobsResponse { factory ListDiscoveryJobsResponse.fromJson(Map json) { return ListDiscoveryJobsResponse( discoveryJobs: (json['DiscoveryJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DiscoveryJobListEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5815,7 +5815,7 @@ class ListLocationsResponse { factory ListLocationsResponse.fromJson(Map json) { return ListLocationsResponse( locations: (json['Locations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocationListEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5841,7 +5841,7 @@ class ListStorageSystemsResponse { return ListStorageSystemsResponse( nextToken: json['NextToken'] as String?, storageSystems: (json['StorageSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => StorageSystemListEntry.fromJson(e as Map)) .toList(), @@ -5867,7 +5867,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagListEntry.fromJson(e as Map)) .toList(), ); @@ -5892,7 +5892,7 @@ class ListTaskExecutionsResponse { return ListTaskExecutionsResponse( nextToken: json['NextToken'] as String?, taskExecutions: (json['TaskExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TaskExecutionListEntry.fromJson(e as Map)) .toList(), @@ -5918,7 +5918,7 @@ class ListTasksResponse { return ListTasksResponse( nextToken: json['NextToken'] as String?, tasks: (json['Tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskListEntry.fromJson(e as Map)) .toList(), ); @@ -6292,7 +6292,7 @@ class NetAppONTAPCluster { recommendationStatus: (json['RecommendationStatus'] as String?) ?.let(RecommendationStatus.fromString), recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), resourceId: json['ResourceId'] as String?, @@ -6377,7 +6377,7 @@ class NetAppONTAPSVM { cifsShareCount: json['CifsShareCount'] as int?, clusterUuid: json['ClusterUuid'] as String?, enabledProtocols: (json['EnabledProtocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lunCount: json['LunCount'] as int?, @@ -6389,7 +6389,7 @@ class NetAppONTAPSVM { recommendationStatus: (json['RecommendationStatus'] as String?) ?.let(RecommendationStatus.fromString), recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), resourceId: json['ResourceId'] as String?, @@ -6492,7 +6492,7 @@ class NetAppONTAPVolume { recommendationStatus: (json['RecommendationStatus'] as String?) ?.let(RecommendationStatus.fromString), recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), resourceId: json['ResourceId'] as String?, @@ -6627,10 +6627,8 @@ class OnPremConfig { factory OnPremConfig.fromJson(Map json) { return OnPremConfig( - agentArns: (json['AgentArns'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + agentArns: + (json['AgentArns'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -7238,11 +7236,11 @@ class PrivateLinkConfig { return PrivateLinkConfig( privateLinkEndpoint: json['PrivateLinkEndpoint'] as String?, securityGroupArns: (json['SecurityGroupArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetArns: (json['SubnetArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcEndpointId: json['VpcEndpointId'] as String?, @@ -7601,15 +7599,15 @@ class ResourceDetails { factory ResourceDetails.fromJson(Map json) { return ResourceDetails( netAppONTAPClusters: (json['NetAppONTAPClusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetAppONTAPCluster.fromJson(e as Map)) .toList(), netAppONTAPSVMs: (json['NetAppONTAPSVMs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetAppONTAPSVM.fromJson(e as Map)) .toList(), netAppONTAPVolumes: (json['NetAppONTAPVolumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetAppONTAPVolume.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_datasync_api/pubspec.yaml b/generated/aws_datasync_api/pubspec.yaml index 6dbe8a1f6..c28a67d2b 100644 --- a/generated/aws_datasync_api/pubspec.yaml +++ b/generated/aws_datasync_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_datasy protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_dax_api/lib/dax-2017-04-19.dart b/generated/aws_dax_api/lib/dax-2017-04-19.dart index dc735a6bb..c754ae6e3 100644 --- a/generated/aws_dax_api/lib/dax-2017-04-19.dart +++ b/generated/aws_dax_api/lib/dax-2017-04-19.dart @@ -1308,12 +1308,12 @@ class Cluster { description: json['Description'] as String?, iamRoleArn: json['IamRoleArn'] as String?, nodeIdsToRemove: (json['NodeIdsToRemove'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nodeType: json['NodeType'] as String?, nodes: (json['Nodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Node.fromJson(e as Map)) .toList(), notificationConfiguration: json['NotificationConfiguration'] != null @@ -1330,7 +1330,7 @@ class Cluster { json['SSEDescription'] as Map) : null, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityGroupMembership.fromJson(e as Map)) .toList(), @@ -1492,7 +1492,7 @@ class DescribeClustersResponse { factory DescribeClustersResponse.fromJson(Map json) { return DescribeClustersResponse( clusters: (json['Clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cluster.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1517,7 +1517,7 @@ class DescribeDefaultParametersResponse { return DescribeDefaultParametersResponse( nextToken: json['NextToken'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), ); @@ -1539,7 +1539,7 @@ class DescribeEventsResponse { factory DescribeEventsResponse.fromJson(Map json) { return DescribeEventsResponse( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1564,7 +1564,7 @@ class DescribeParameterGroupsResponse { return DescribeParameterGroupsResponse( nextToken: json['NextToken'] as String?, parameterGroups: (json['ParameterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterGroup.fromJson(e as Map)) .toList(), ); @@ -1588,7 +1588,7 @@ class DescribeParametersResponse { return DescribeParametersResponse( nextToken: json['NextToken'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), ); @@ -1612,7 +1612,7 @@ class DescribeSubnetGroupsResponse { return DescribeSubnetGroupsResponse( nextToken: json['NextToken'] as String?, subnetGroups: (json['SubnetGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubnetGroup.fromJson(e as Map)) .toList(), ); @@ -1734,7 +1734,7 @@ class ListTagsResponse { return ListTagsResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1892,7 +1892,7 @@ class Parameter { isModifiable: (json['IsModifiable'] as String?)?.let(IsModifiable.fromString), nodeTypeSpecificValues: (json['NodeTypeSpecificValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NodeTypeSpecificValue.fromJson(e as Map)) .toList(), parameterName: json['ParameterName'] as String?, @@ -1946,7 +1946,7 @@ class ParameterGroupStatus { factory ParameterGroupStatus.fromJson(Map json) { return ParameterGroupStatus( nodeIdsToReboot: (json['NodeIdsToReboot'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), parameterApplyStatus: json['ParameterApplyStatus'] as String?, @@ -2170,7 +2170,7 @@ class SubnetGroup { description: json['Description'] as String?, subnetGroupName: json['SubnetGroupName'] as String?, subnets: (json['Subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subnet.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -2229,7 +2229,7 @@ class TagResourceResponse { factory TagResourceResponse.fromJson(Map json) { return TagResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2247,7 +2247,7 @@ class UntagResourceResponse { factory UntagResourceResponse.fromJson(Map json) { return UntagResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_dax_api/pubspec.yaml b/generated/aws_dax_api/pubspec.yaml index 2914e7839..a95de3285 100644 --- a/generated/aws_dax_api/pubspec.yaml +++ b/generated/aws_dax_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_dax_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_deploy_api/lib/codedeploy-2014-10-06.dart b/generated/aws_deploy_api/lib/codedeploy-2014-10-06.dart index fc9bcfdb9..462cb9a51 100644 --- a/generated/aws_deploy_api/lib/codedeploy-2014-10-06.dart +++ b/generated/aws_deploy_api/lib/codedeploy-2014-10-06.dart @@ -2792,7 +2792,7 @@ class AlarmConfiguration { factory AlarmConfiguration.fromJson(Map json) { return AlarmConfiguration( alarms: (json['alarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alarm.fromJson(e as Map)) .toList(), enabled: json['enabled'] as bool?, @@ -2939,7 +2939,7 @@ class AutoRollbackConfiguration { return AutoRollbackConfiguration( enabled: json['enabled'] as bool?, events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoRollbackEvent.fromString((e as String))) .toList(), ); @@ -3033,7 +3033,7 @@ class BatchGetApplicationRevisionsOutput { applicationName: json['applicationName'] as String?, errorMessage: json['errorMessage'] as String?, revisions: (json['revisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RevisionInfo.fromJson(e as Map)) .toList(), ); @@ -3052,7 +3052,7 @@ class BatchGetApplicationsOutput { factory BatchGetApplicationsOutput.fromJson(Map json) { return BatchGetApplicationsOutput( applicationsInfo: (json['applicationsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationInfo.fromJson(e as Map)) .toList(), ); @@ -3075,7 +3075,7 @@ class BatchGetDeploymentGroupsOutput { factory BatchGetDeploymentGroupsOutput.fromJson(Map json) { return BatchGetDeploymentGroupsOutput( deploymentGroupsInfo: (json['deploymentGroupsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentGroupInfo.fromJson(e as Map)) .toList(), errorMessage: json['errorMessage'] as String?, @@ -3102,7 +3102,7 @@ class BatchGetDeploymentInstancesOutput { return BatchGetDeploymentInstancesOutput( errorMessage: json['errorMessage'] as String?, instancesSummary: (json['instancesSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceSummary.fromJson(e as Map)) .toList(), ); @@ -3140,7 +3140,7 @@ class BatchGetDeploymentTargetsOutput { factory BatchGetDeploymentTargetsOutput.fromJson(Map json) { return BatchGetDeploymentTargetsOutput( deploymentTargets: (json['deploymentTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentTarget.fromJson(e as Map)) .toList(), ); @@ -3159,7 +3159,7 @@ class BatchGetDeploymentsOutput { factory BatchGetDeploymentsOutput.fromJson(Map json) { return BatchGetDeploymentsOutput( deploymentsInfo: (json['deploymentsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentInfo.fromJson(e as Map)) .toList(), ); @@ -3180,7 +3180,7 @@ class BatchGetOnPremisesInstancesOutput { Map json) { return BatchGetOnPremisesInstancesOutput( instanceInfos: (json['instanceInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceInfo.fromJson(e as Map)) .toList(), ); @@ -3360,7 +3360,7 @@ class CloudFormationTarget { deploymentId: json['deploymentId'] as String?, lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), lifecycleEvents: (json['lifecycleEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleEvent.fromJson(e as Map)) .toList(), resourceType: json['resourceType'] as String?, @@ -3468,7 +3468,7 @@ class DeleteDeploymentGroupOutput { factory DeleteDeploymentGroupOutput.fromJson(Map json) { return DeleteDeploymentGroupOutput( hooksNotCleanedUp: (json['hooksNotCleanedUp'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingGroup.fromJson(e as Map)) .toList(), ); @@ -3720,7 +3720,7 @@ class DeploymentGroupInfo { json['autoRollbackConfiguration'] as Map) : null, autoScalingGroups: (json['autoScalingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingGroup.fromJson(e as Map)) .toList(), blueGreenDeploymentConfiguration: @@ -3739,14 +3739,14 @@ class DeploymentGroupInfo { json['deploymentStyle'] as Map) : null, ec2TagFilters: (json['ec2TagFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EC2TagFilter.fromJson(e as Map)) .toList(), ec2TagSet: json['ec2TagSet'] != null ? EC2TagSet.fromJson(json['ec2TagSet'] as Map) : null, ecsServices: (json['ecsServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSService.fromJson(e as Map)) .toList(), lastAttemptedDeployment: json['lastAttemptedDeployment'] != null @@ -3763,7 +3763,7 @@ class DeploymentGroupInfo { : null, onPremisesInstanceTagFilters: (json['onPremisesInstanceTagFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagFilter.fromJson(e as Map)) .toList(), onPremisesTagSet: json['onPremisesTagSet'] != null @@ -3779,7 +3779,7 @@ class DeploymentGroupInfo { : null, terminationHookEnabled: json['terminationHookEnabled'] as bool?, triggerConfigurations: (json['triggerConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TriggerConfig.fromJson(e as Map)) .toList(), ); @@ -4013,7 +4013,7 @@ class DeploymentInfo { json['deploymentOverview'] as Map) : null, deploymentStatusMessages: (json['deploymentStatusMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deploymentStyle: json['deploymentStyle'] != null @@ -4475,9 +4475,9 @@ class EC2TagSet { factory EC2TagSet.fromJson(Map json) { return EC2TagSet( ec2TagSetList: (json['ec2TagSetList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => EC2TagFilter.fromJson(e as Map)) .toList()) .toList(), @@ -4564,14 +4564,14 @@ class ECSTarget { deploymentId: json['deploymentId'] as String?, lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), lifecycleEvents: (json['lifecycleEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleEvent.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(TargetStatus.fromString), targetArn: json['targetArn'] as String?, targetId: json['targetId'] as String?, taskSetsInfo: (json['taskSetsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ECSTaskSet.fromJson(e as Map)) .toList(), ); @@ -4863,7 +4863,7 @@ class GenericRevisionInfo { factory GenericRevisionInfo.fromJson(Map json) { return GenericRevisionInfo( deploymentGroups: (json['deploymentGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -5183,7 +5183,7 @@ class InstanceInfo { instanceName: json['instanceName'] as String?, registerTime: timeStampFromJson(json['registerTime']), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5280,7 +5280,7 @@ class InstanceSummary { (json['instanceType'] as String?)?.let(InstanceType.fromString), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), lifecycleEvents: (json['lifecycleEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleEvent.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(InstanceStatus.fromString), @@ -5331,7 +5331,7 @@ class InstanceTarget { (json['instanceLabel'] as String?)?.let(TargetLabel.fromString), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), lifecycleEvents: (json['lifecycleEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleEvent.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(TargetStatus.fromString), @@ -5441,7 +5441,7 @@ class LambdaTarget { : null, lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), lifecycleEvents: (json['lifecycleEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleEvent.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(TargetStatus.fromString), @@ -5603,7 +5603,7 @@ class ListApplicationRevisionsOutput { return ListApplicationRevisionsOutput( nextToken: json['nextToken'] as String?, revisions: (json['revisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RevisionLocation.fromJson(e as Map)) .toList(), ); @@ -5628,7 +5628,7 @@ class ListApplicationsOutput { factory ListApplicationsOutput.fromJson(Map json) { return ListApplicationsOutput( applications: (json['applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -5655,7 +5655,7 @@ class ListDeploymentConfigsOutput { factory ListDeploymentConfigsOutput.fromJson(Map json) { return ListDeploymentConfigsOutput( deploymentConfigsList: (json['deploymentConfigsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -5686,7 +5686,7 @@ class ListDeploymentGroupsOutput { return ListDeploymentGroupsOutput( applicationName: json['applicationName'] as String?, deploymentGroups: (json['deploymentGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -5712,7 +5712,7 @@ class ListDeploymentInstancesOutput { factory ListDeploymentInstancesOutput.fromJson(Map json) { return ListDeploymentInstancesOutput( instancesList: (json['instancesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -5738,7 +5738,7 @@ class ListDeploymentTargetsOutput { return ListDeploymentTargetsOutput( nextToken: json['nextToken'] as String?, targetIds: (json['targetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5763,7 +5763,7 @@ class ListDeploymentsOutput { factory ListDeploymentsOutput.fromJson(Map json) { return ListDeploymentsOutput( deployments: (json['deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -5793,7 +5793,7 @@ class ListGitHubAccountTokenNamesOutput { return ListGitHubAccountTokenNamesOutput( nextToken: json['nextToken'] as String?, tokenNameList: (json['tokenNameList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5818,7 +5818,7 @@ class ListOnPremisesInstancesOutput { factory ListOnPremisesInstancesOutput.fromJson(Map json) { return ListOnPremisesInstancesOutput( instanceNames: (json['instanceNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -5862,7 +5862,7 @@ class ListTagsForResourceOutput { return ListTagsForResourceOutput( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5914,15 +5914,15 @@ class LoadBalancerInfo { factory LoadBalancerInfo.fromJson(Map json) { return LoadBalancerInfo( elbInfoList: (json['elbInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ELBInfo.fromJson(e as Map)) .toList(), targetGroupInfoList: (json['targetGroupInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetGroupInfo.fromJson(e as Map)) .toList(), targetGroupPairInfoList: (json['targetGroupPairInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetGroupPairInfo.fromJson(e as Map)) .toList(), ); @@ -6082,9 +6082,9 @@ class OnPremisesTagSet { factory OnPremisesTagSet.fromJson(Map json) { return OnPremisesTagSet( onPremisesTagSetList: (json['onPremisesTagSetList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => TagFilter.fromJson(e as Map)) .toList()) .toList(), @@ -6202,7 +6202,7 @@ class RelatedDeployments { return RelatedDeployments( autoUpdateOutdatedInstancesDeploymentIds: (json['autoUpdateOutdatedInstancesDeploymentIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), autoUpdateOutdatedInstancesRootDeploymentId: @@ -6682,7 +6682,7 @@ class TargetGroupPairInfo { json['prodTrafficRoute'] as Map) : null, targetGroups: (json['targetGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetGroupInfo.fromJson(e as Map)) .toList(), testTrafficRoute: json['testTrafficRoute'] != null @@ -6731,14 +6731,14 @@ class TargetInstances { factory TargetInstances.fromJson(Map json) { return TargetInstances( autoScalingGroups: (json['autoScalingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ec2TagSet: json['ec2TagSet'] != null ? EC2TagSet.fromJson(json['ec2TagSet'] as Map) : null, tagFilters: (json['tagFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EC2TagFilter.fromJson(e as Map)) .toList(), ); @@ -6904,7 +6904,7 @@ class TrafficRoute { factory TrafficRoute.fromJson(Map json) { return TrafficRoute( listenerArns: (json['listenerArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7009,7 +7009,7 @@ class TriggerConfig { factory TriggerConfig.fromJson(Map json) { return TriggerConfig( triggerEvents: (json['triggerEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TriggerEventType.fromString((e as String))) .toList(), triggerName: json['triggerName'] as String?, @@ -7078,7 +7078,7 @@ class UpdateDeploymentGroupOutput { factory UpdateDeploymentGroupOutput.fromJson(Map json) { return UpdateDeploymentGroupOutput( hooksNotCleanedUp: (json['hooksNotCleanedUp'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingGroup.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_deploy_api/pubspec.yaml b/generated/aws_deploy_api/pubspec.yaml index f44bb1745..2e442504b 100644 --- a/generated/aws_deploy_api/pubspec.yaml +++ b/generated/aws_deploy_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_deploy protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_detective_api/lib/detective-2018-10-26.dart b/generated/aws_detective_api/lib/detective-2018-10-26.dart index de7b2f08e..6d005eefc 100644 --- a/generated/aws_detective_api/lib/detective-2018-10-26.dart +++ b/generated/aws_detective_api/lib/detective-2018-10-26.dart @@ -1355,11 +1355,11 @@ class BatchGetGraphMemberDatasourcesResponse { Map json) { return BatchGetGraphMemberDatasourcesResponse( memberDatasources: (json['MemberDatasources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MembershipDatasources.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -1383,11 +1383,11 @@ class BatchGetMembershipDatasourcesResponse { Map json) { return BatchGetMembershipDatasourcesResponse( membershipDatasources: (json['MembershipDatasources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MembershipDatasources.fromJson(e as Map)) .toList(), unprocessedGraphs: (json['UnprocessedGraphs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedGraph.fromJson(e as Map)) .toList(), ); @@ -1430,11 +1430,11 @@ class CreateMembersResponse { factory CreateMembersResponse.fromJson(Map json) { return CreateMembersResponse( members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberDetail.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -1567,11 +1567,11 @@ class DeleteMembersResponse { factory DeleteMembersResponse.fromJson(Map json) { return DeleteMembersResponse( accountIds: (json['AccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -1777,11 +1777,11 @@ class GetMembersResponse { factory GetMembersResponse.fromJson(Map json) { return GetMembersResponse( memberDetails: (json['MemberDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberDetail.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -2095,7 +2095,7 @@ class ListGraphsResponse { factory ListGraphsResponse.fromJson(Map json) { return ListGraphsResponse( graphList: (json['GraphList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Graph.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2132,7 +2132,7 @@ class ListIndicatorsResponse { return ListIndicatorsResponse( graphArn: json['GraphArn'] as String?, indicators: (json['Indicators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Indicator.fromJson(e as Map)) .toList(), investigationId: json['InvestigationId'] as String?, @@ -2161,7 +2161,7 @@ class ListInvestigationsResponse { factory ListInvestigationsResponse.fromJson(Map json) { return ListInvestigationsResponse( investigationDetails: (json['InvestigationDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InvestigationDetail.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2186,7 +2186,7 @@ class ListInvitationsResponse { factory ListInvitationsResponse.fromJson(Map json) { return ListInvitationsResponse( invitations: (json['Invitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberDetail.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2219,7 +2219,7 @@ class ListMembersResponse { factory ListMembersResponse.fromJson(Map json) { return ListMembersResponse( memberDetails: (json['MemberDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberDetail.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2244,7 +2244,7 @@ class ListOrganizationAdminAccountsResponse { Map json) { return ListOrganizationAdminAccountsResponse( administrators: (json['Administrators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Administrator.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/generated/aws_detective_api/pubspec.yaml b/generated/aws_detective_api/pubspec.yaml index 59daa7b85..f02c8edd7 100644 --- a/generated/aws_detective_api/pubspec.yaml +++ b/generated/aws_detective_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_detect protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_devicefarm_api/lib/devicefarm-2015-06-23.dart b/generated/aws_devicefarm_api/lib/devicefarm-2015-06-23.dart index 7c6d87b1c..1ba80d4a6 100644 --- a/generated/aws_devicefarm_api/lib/devicefarm-2015-06-23.dart +++ b/generated/aws_devicefarm_api/lib/devicefarm-2015-06-23.dart @@ -4319,15 +4319,15 @@ class CustomerArtifactPaths { factory CustomerArtifactPaths.fromJson(Map json) { return CustomerArtifactPaths( androidPaths: (json['androidPaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deviceHostPaths: (json['deviceHostPaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), iosPaths: (json['iosPaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4557,7 +4557,7 @@ class Device { heapSize: json['heapSize'] as int?, image: json['image'] as String?, instances: (json['instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceInstance.fromJson(e as Map)) .toList(), manufacturer: json['manufacturer'] as String?, @@ -4746,10 +4746,8 @@ class DeviceFilter { attribute: DeviceFilterAttribute.fromString((json['attribute'] as String)), operator: RuleOperator.fromString((json['operator'] as String)), - values: (json['values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -4842,10 +4840,8 @@ class DeviceInstance { ? InstanceProfile.fromJson( json['instanceProfile'] as Map) : null, - labels: (json['labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['labels'] as List?)?.nonNulls.map((e) => e as String).toList(), status: (json['status'] as String?)?.let(InstanceStatus.fromString), udid: json['udid'] as String?, ); @@ -4952,7 +4948,7 @@ class DevicePool { maxDevices: json['maxDevices'] as int?, name: json['name'] as String?, rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), type: (json['type'] as String?)?.let(DevicePoolType.fromString), @@ -4984,7 +4980,7 @@ class DevicePoolCompatibilityResult { ? Device.fromJson(json['device'] as Map) : null, incompatibilityMessages: (json['incompatibilityMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => IncompatibilityMessage.fromJson(e as Map)) .toList(), @@ -5165,7 +5161,7 @@ class DeviceSelectionResult { factory DeviceSelectionResult.fromJson(Map json) { return DeviceSelectionResult( filters: (json['filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceFilter.fromJson(e as Map)) .toList(), matchedDevicesCount: json['matchedDevicesCount'] as int?, @@ -5336,12 +5332,12 @@ class GetDevicePoolCompatibilityResult { factory GetDevicePoolCompatibilityResult.fromJson(Map json) { return GetDevicePoolCompatibilityResult( compatibleDevices: (json['compatibleDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DevicePoolCompatibilityResult.fromJson(e as Map)) .toList(), incompatibleDevices: (json['incompatibleDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DevicePoolCompatibilityResult.fromJson(e as Map)) .toList(), @@ -5737,7 +5733,7 @@ class InstanceProfile { description: json['description'] as String?, excludeAppPackagesFromCleanup: (json['excludeAppPackagesFromCleanup'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -6010,7 +6006,7 @@ class ListArtifactsResult { factory ListArtifactsResult.fromJson(Map json) { return ListArtifactsResult( artifacts: (json['artifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Artifact.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6034,7 +6030,7 @@ class ListDeviceInstancesResult { factory ListDeviceInstancesResult.fromJson(Map json) { return ListDeviceInstancesResult( deviceInstances: (json['deviceInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceInstance.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6060,7 +6056,7 @@ class ListDevicePoolsResult { factory ListDevicePoolsResult.fromJson(Map json) { return ListDevicePoolsResult( devicePools: (json['devicePools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DevicePool.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6086,7 +6082,7 @@ class ListDevicesResult { factory ListDevicesResult.fromJson(Map json) { return ListDevicesResult( devices: (json['devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Device.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6110,7 +6106,7 @@ class ListInstanceProfilesResult { factory ListInstanceProfilesResult.fromJson(Map json) { return ListInstanceProfilesResult( instanceProfiles: (json['instanceProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceProfile.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6136,7 +6132,7 @@ class ListJobsResult { factory ListJobsResult.fromJson(Map json) { return ListJobsResult( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6160,7 +6156,7 @@ class ListNetworkProfilesResult { factory ListNetworkProfilesResult.fromJson(Map json) { return ListNetworkProfilesResult( networkProfiles: (json['networkProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkProfile.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6185,7 +6181,7 @@ class ListOfferingPromotionsResult { return ListOfferingPromotionsResult( nextToken: json['nextToken'] as String?, offeringPromotions: (json['offeringPromotions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OfferingPromotion.fromJson(e as Map)) .toList(), ); @@ -6211,7 +6207,7 @@ class ListOfferingTransactionsResult { return ListOfferingTransactionsResult( nextToken: json['nextToken'] as String?, offeringTransactions: (json['offeringTransactions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OfferingTransaction.fromJson(e as Map)) .toList(), ); @@ -6236,7 +6232,7 @@ class ListOfferingsResult { return ListOfferingsResult( nextToken: json['nextToken'] as String?, offerings: (json['offerings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Offering.fromJson(e as Map)) .toList(), ); @@ -6262,7 +6258,7 @@ class ListProjectsResult { return ListProjectsResult( nextToken: json['nextToken'] as String?, projects: (json['projects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Project.fromJson(e as Map)) .toList(), ); @@ -6289,7 +6285,7 @@ class ListRemoteAccessSessionsResult { return ListRemoteAccessSessionsResult( nextToken: json['nextToken'] as String?, remoteAccessSessions: (json['remoteAccessSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemoteAccessSession.fromJson(e as Map)) .toList(), ); @@ -6315,7 +6311,7 @@ class ListRunsResult { return ListRunsResult( nextToken: json['nextToken'] as String?, runs: (json['runs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Run.fromJson(e as Map)) .toList(), ); @@ -6341,7 +6337,7 @@ class ListSamplesResult { return ListSamplesResult( nextToken: json['nextToken'] as String?, samples: (json['samples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Sample.fromJson(e as Map)) .toList(), ); @@ -6367,7 +6363,7 @@ class ListSuitesResult { return ListSuitesResult( nextToken: json['nextToken'] as String?, suites: (json['suites'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Suite.fromJson(e as Map)) .toList(), ); @@ -6387,7 +6383,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6411,7 +6407,7 @@ class ListTestGridProjectsResult { return ListTestGridProjectsResult( nextToken: json['nextToken'] as String?, testGridProjects: (json['testGridProjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestGridProject.fromJson(e as Map)) .toList(), ); @@ -6433,7 +6429,7 @@ class ListTestGridSessionActionsResult { factory ListTestGridSessionActionsResult.fromJson(Map json) { return ListTestGridSessionActionsResult( actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestGridSessionAction.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6457,7 +6453,7 @@ class ListTestGridSessionArtifactsResult { Map json) { return ListTestGridSessionArtifactsResult( artifacts: (json['artifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestGridSessionArtifact.fromJson(e as Map)) .toList(), @@ -6483,7 +6479,7 @@ class ListTestGridSessionsResult { return ListTestGridSessionsResult( nextToken: json['nextToken'] as String?, testGridSessions: (json['testGridSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestGridSession.fromJson(e as Map)) .toList(), ); @@ -6509,7 +6505,7 @@ class ListTestsResult { return ListTestsResult( nextToken: json['nextToken'] as String?, tests: (json['tests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Test.fromJson(e as Map)) .toList(), ); @@ -6564,7 +6560,7 @@ class ListUniqueProblemsResult { (k, e) => MapEntry( ExecutionResult.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => UniqueProblem.fromJson(e as Map)) .toList())), ); @@ -6590,7 +6586,7 @@ class ListUploadsResult { return ListUploadsResult( nextToken: json['nextToken'] as String?, uploads: (json['uploads'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Upload.fromJson(e as Map)) .toList(), ); @@ -6615,7 +6611,7 @@ class ListVPCEConfigurationsResult { return ListVPCEConfigurationsResult( nextToken: json['nextToken'] as String?, vpceConfigurations: (json['vpceConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VPCEConfiguration.fromJson(e as Map)) .toList(), ); @@ -6802,7 +6798,7 @@ class Offering { id: json['id'] as String?, platform: (json['platform'] as String?)?.let(DevicePlatform.fromString), recurringCharges: (json['recurringCharges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecurringCharge.fromJson(e as Map)) .toList(), type: (json['type'] as String?)?.let(OfferingType.fromString), @@ -9079,13 +9075,11 @@ class TestGridVpcConfig { factory TestGridVpcConfig.fromJson(Map json) { return TestGridVpcConfig( securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['vpcId'] as String, ); } @@ -9173,7 +9167,7 @@ class UniqueProblem { return UniqueProblem( message: json['message'] as String?, problems: (json['problems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Problem.fromJson(e as Map)) .toList(), ); @@ -9661,13 +9655,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['vpcId'] as String, ); } diff --git a/generated/aws_devicefarm_api/pubspec.yaml b/generated/aws_devicefarm_api/pubspec.yaml index 4ae3e809e..0712a9907 100644 --- a/generated/aws_devicefarm_api/pubspec.yaml +++ b/generated/aws_devicefarm_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_device protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_directconnect_api/lib/directconnect-2012-10-25.dart b/generated/aws_directconnect_api/lib/directconnect-2012-10-25.dart index d2a5c6ccc..4ffcc5e91 100644 --- a/generated/aws_directconnect_api/lib/directconnect-2012-10-25.dart +++ b/generated/aws_directconnect_api/lib/directconnect-2012-10-25.dart @@ -3076,7 +3076,7 @@ class AssociateMacSecKeyResponse { return AssociateMacSecKeyResponse( connectionId: json['connectionId'] as String?, macSecKeys: (json['macSecKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MacSecKey.fromJson(e as Map)) .toList(), ); @@ -3657,7 +3657,7 @@ class Connection { location: json['location'] as String?, macSecCapable: json['macSecCapable'] as bool?, macSecKeys: (json['macSecKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MacSecKey.fromJson(e as Map)) .toList(), ownerAccount: json['ownerAccount'] as String?, @@ -3666,7 +3666,7 @@ class Connection { providerName: json['providerName'] as String?, region: json['region'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vlan: json['vlan'] as int?, @@ -3707,7 +3707,7 @@ class Connections { factory Connections.fromJson(Map json) { return Connections( connections: (json['connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), ); @@ -4061,7 +4061,7 @@ class DescribeCustomerMetadataResponse { factory DescribeCustomerMetadataResponse.fromJson(Map json) { return DescribeCustomerMetadataResponse( agreements: (json['agreements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomerAgreement.fromJson(e as Map)) .toList(), nniPartnerType: @@ -4089,7 +4089,7 @@ class DescribeDirectConnectGatewayAssociationProposalsResult { return DescribeDirectConnectGatewayAssociationProposalsResult( directConnectGatewayAssociationProposals: (json['directConnectGatewayAssociationProposals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectConnectGatewayAssociationProposal.fromJson( e as Map)) .toList(), @@ -4115,7 +4115,7 @@ class DescribeDirectConnectGatewayAssociationsResult { return DescribeDirectConnectGatewayAssociationsResult( directConnectGatewayAssociations: (json['directConnectGatewayAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectConnectGatewayAssociation.fromJson( e as Map)) .toList(), @@ -4141,7 +4141,7 @@ class DescribeDirectConnectGatewayAttachmentsResult { return DescribeDirectConnectGatewayAttachmentsResult( directConnectGatewayAttachments: (json['directConnectGatewayAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectConnectGatewayAttachment.fromJson( e as Map)) .toList(), @@ -4166,7 +4166,7 @@ class DescribeDirectConnectGatewaysResult { Map json) { return DescribeDirectConnectGatewaysResult( directConnectGateways: (json['directConnectGateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectConnectGateway.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4235,7 +4235,7 @@ class DescribeTagsResponse { factory DescribeTagsResponse.fromJson(Map json) { return DescribeTagsResponse( resourceTags: (json['resourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), ); @@ -4384,7 +4384,7 @@ class DirectConnectGatewayAssociation { return DirectConnectGatewayAssociation( allowedPrefixesToDirectConnectGateway: (json['allowedPrefixesToDirectConnectGateway'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteFilterPrefix.fromJson(e as Map)) .toList(), associatedGateway: json['associatedGateway'] != null @@ -4468,7 +4468,7 @@ class DirectConnectGatewayAssociationProposal { json['directConnectGatewayOwnerAccount'] as String?, existingAllowedPrefixesToDirectConnectGateway: (json['existingAllowedPrefixesToDirectConnectGateway'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteFilterPrefix.fromJson(e as Map)) .toList(), proposalId: json['proposalId'] as String?, @@ -4476,7 +4476,7 @@ class DirectConnectGatewayAssociationProposal { ?.let(DirectConnectGatewayAssociationProposalState.fromString), requestedAllowedPrefixesToDirectConnectGateway: (json['requestedAllowedPrefixesToDirectConnectGateway'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteFilterPrefix.fromJson(e as Map)) .toList(), ); @@ -4655,7 +4655,7 @@ class DisassociateMacSecKeyResponse { return DisassociateMacSecKeyResponse( connectionId: json['connectionId'] as String?, macSecKeys: (json['macSecKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MacSecKey.fromJson(e as Map)) .toList(), ); @@ -4807,7 +4807,7 @@ class Interconnect { providerName: json['providerName'] as String?, region: json['region'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4845,7 +4845,7 @@ class Interconnects { factory Interconnects.fromJson(Map json) { return Interconnects( interconnects: (json['interconnects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Interconnect.fromJson(e as Map)) .toList(), ); @@ -4983,7 +4983,7 @@ class Lag { awsDeviceV2: json['awsDeviceV2'] as String?, awsLogicalDeviceId: json['awsLogicalDeviceId'] as String?, connections: (json['connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), connectionsBandwidth: json['connectionsBandwidth'] as String?, @@ -4997,7 +4997,7 @@ class Lag { location: json['location'] as String?, macSecCapable: json['macSecCapable'] as bool?, macSecKeys: (json['macSecKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MacSecKey.fromJson(e as Map)) .toList(), minimumLinks: json['minimumLinks'] as int?, @@ -5006,7 +5006,7 @@ class Lag { providerName: json['providerName'] as String?, region: json['region'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5043,7 +5043,7 @@ class Lags { factory Lags.fromJson(Map json) { return Lags( lags: (json['lags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Lag.fromJson(e as Map)) .toList(), ); @@ -5069,7 +5069,7 @@ class ListVirtualInterfaceTestHistoryResponse { nextToken: json['nextToken'] as String?, virtualInterfaceTestHistory: (json['virtualInterfaceTestHistory'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VirtualInterfaceTestHistory.fromJson(e as Map)) .toList(), @@ -5148,15 +5148,15 @@ class Location { factory Location.fromJson(Map json) { return Location( availableMacSecPortSpeeds: (json['availableMacSecPortSpeeds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), availablePortSpeeds: (json['availablePortSpeeds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), availableProviders: (json['availableProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), locationCode: json['locationCode'] as String?, @@ -5177,7 +5177,7 @@ class Locations { factory Locations.fromJson(Map json) { return Locations( locations: (json['locations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Location.fromJson(e as Map)) .toList(), ); @@ -5784,7 +5784,7 @@ class ResourceTag { return ResourceTag( resourceArn: json['resourceArn'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6029,7 +6029,7 @@ class VirtualGateways { factory VirtualGateways.fromJson(Map json) { return VirtualGateways( virtualGateways: (json['virtualGateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VirtualGateway.fromJson(e as Map)) .toList(), ); @@ -6210,7 +6210,7 @@ class VirtualInterface { awsDeviceV2: json['awsDeviceV2'] as String?, awsLogicalDeviceId: json['awsLogicalDeviceId'] as String?, bgpPeers: (json['bgpPeers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BGPPeer.fromJson(e as Map)) .toList(), connectionId: json['connectionId'] as String?, @@ -6223,12 +6223,12 @@ class VirtualInterface { ownerAccount: json['ownerAccount'] as String?, region: json['region'] as String?, routeFilterPrefixes: (json['routeFilterPrefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteFilterPrefix.fromJson(e as Map)) .toList(), siteLinkEnabled: json['siteLinkEnabled'] as bool?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), virtualGatewayId: json['virtualGatewayId'] as String?, @@ -6305,7 +6305,7 @@ class VirtualInterfaceTestHistory { factory VirtualInterfaceTestHistory.fromJson(Map json) { return VirtualInterfaceTestHistory( bgpPeers: (json['bgpPeers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), endTime: timeStampFromJson(json['endTime']), @@ -6330,7 +6330,7 @@ class VirtualInterfaces { factory VirtualInterfaces.fromJson(Map json) { return VirtualInterfaces( virtualInterfaces: (json['virtualInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VirtualInterface.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_directconnect_api/pubspec.yaml b/generated/aws_directconnect_api/pubspec.yaml index a8c192135..3805ebb82 100644 --- a/generated/aws_directconnect_api/pubspec.yaml +++ b/generated/aws_directconnect_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_direct protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_discovery_api/lib/discovery-2015-11-01.dart b/generated/aws_discovery_api/lib/discovery-2015-11-01.dart index 9ca04e820..d4f9a049d 100644 --- a/generated/aws_discovery_api/lib/discovery-2015-11-01.dart +++ b/generated/aws_discovery_api/lib/discovery-2015-11-01.dart @@ -1462,7 +1462,7 @@ class AgentInfo { return AgentInfo( agentId: json['agentId'] as String?, agentNetworkInfoList: (json['agentNetworkInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentNetworkInfo.fromJson(e as Map)) .toList(), agentType: json['agentType'] as String?, @@ -1565,7 +1565,7 @@ class BatchDeleteAgentsResponse { factory BatchDeleteAgentsResponse.fromJson(Map json) { return BatchDeleteAgentsResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchDeleteAgentError.fromJson(e as Map)) .toList(), ); @@ -1624,20 +1624,20 @@ class BatchDeleteConfigurationTask { configurationType: (json['configurationType'] as String?) ?.let(DeletionConfigurationItemType.fromString), deletedConfigurations: (json['deletedConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deletionWarnings: (json['deletionWarnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeletionWarning.fromJson(e as Map)) .toList(), endTime: timeStampFromJson(json['endTime']), failedConfigurations: (json['failedConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedConfiguration.fromJson(e as Map)) .toList(), requestedConfigurations: (json['requestedConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), startTime: timeStampFromJson(json['startTime']), @@ -1722,7 +1722,7 @@ class BatchDeleteImportDataResponse { factory BatchDeleteImportDataResponse.fromJson(Map json) { return BatchDeleteImportDataResponse( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchDeleteImportDataError.fromJson(e as Map)) .toList(), @@ -2337,7 +2337,7 @@ class DescribeAgentsResponse { factory DescribeAgentsResponse.fromJson(Map json) { return DescribeAgentsResponse( agentsInfo: (json['agentsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2376,7 +2376,7 @@ class DescribeConfigurationsResponse { factory DescribeConfigurationsResponse.fromJson(Map json) { return DescribeConfigurationsResponse( configurations: (json['configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -2400,7 +2400,7 @@ class DescribeContinuousExportsResponse { Map json) { return DescribeContinuousExportsResponse( descriptions: (json['descriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContinuousExportDescription.fromJson(e as Map)) .toList(), @@ -2425,7 +2425,7 @@ class DescribeExportConfigurationsResponse { Map json) { return DescribeExportConfigurationsResponse( exportsInfo: (json['exportsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2454,7 +2454,7 @@ class DescribeExportTasksResponse { factory DescribeExportTasksResponse.fromJson(Map json) { return DescribeExportTasksResponse( exportsInfo: (json['exportsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2479,7 +2479,7 @@ class DescribeImportTasksResponse { return DescribeImportTasksResponse( nextToken: json['nextToken'] as String?, tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportTask.fromJson(e as Map)) .toList(), ); @@ -2503,7 +2503,7 @@ class DescribeTagsResponse { return DescribeTagsResponse( nextToken: json['nextToken'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationTag.fromJson(e as Map)) .toList(), ); @@ -3082,7 +3082,7 @@ class ListConfigurationsResponse { factory ListConfigurationsResponse.fromJson(Map json) { return ListConfigurationsResponse( configurations: (json['configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -3114,7 +3114,7 @@ class ListServerNeighborsResponse { factory ListServerNeighborsResponse.fromJson(Map json) { return ListServerNeighborsResponse( neighbors: (json['neighbors'] as List) - .whereNotNull() + .nonNulls .map((e) => NeighborConnectionDetail.fromJson(e as Map)) .toList(), @@ -3319,7 +3319,7 @@ class StartDataCollectionByAgentIdsResponse { Map json) { return StartDataCollectionByAgentIdsResponse( agentsConfigurationStatus: (json['agentsConfigurationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentConfigurationStatus.fromJson(e as Map)) .toList(), @@ -3396,7 +3396,7 @@ class StopDataCollectionByAgentIdsResponse { Map json) { return StopDataCollectionByAgentIdsResponse( agentsConfigurationStatus: (json['agentsConfigurationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentConfigurationStatus.fromJson(e as Map)) .toList(), diff --git a/generated/aws_discovery_api/pubspec.yaml b/generated/aws_discovery_api/pubspec.yaml index 0cd93e6c2..e78d018cb 100644 --- a/generated/aws_discovery_api/pubspec.yaml +++ b/generated/aws_discovery_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_discov protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_dlm_api/lib/dlm-2018-01-12.dart b/generated/aws_dlm_api/lib/dlm-2018-01-12.dart index fd8fa9adc..da56bf33f 100644 --- a/generated/aws_dlm_api/lib/dlm-2018-01-12.dart +++ b/generated/aws_dlm_api/lib/dlm-2018-01-12.dart @@ -575,7 +575,7 @@ class Action { factory Action.fromJson(Map json) { return Action( crossRegionCopy: (json['CrossRegionCopy'] as List) - .whereNotNull() + .nonNulls .map((e) => CrossRegionCopyAction.fromJson(e as Map)) .toList(), name: json['Name'] as String, @@ -736,13 +736,11 @@ class CreateRule { (json['IntervalUnit'] as String?)?.let(IntervalUnitValues.fromString), location: (json['Location'] as String?)?.let(LocationValues.fromString), scripts: (json['Scripts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Script.fromJson(e as Map)) .toList(), - times: (json['Times'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + times: + (json['Times'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -1160,7 +1158,7 @@ class EventParameters { descriptionRegex: json['DescriptionRegex'] as String, eventType: EventTypeValues.fromString((json['EventType'] as String)), snapshotOwner: (json['SnapshotOwner'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -1271,11 +1269,11 @@ class Exclusions { return Exclusions( excludeBootVolumes: json['ExcludeBootVolumes'] as bool?, excludeTags: (json['ExcludeTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), excludeVolumeTypes: (json['ExcludeVolumeTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1334,7 +1332,7 @@ class FastRestoreRule { factory FastRestoreRule.fromJson(Map json) { return FastRestoreRule( availabilityZones: (json['AvailabilityZones'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), count: json['Count'] as int?, @@ -1369,7 +1367,7 @@ class GetLifecyclePoliciesResponse { factory GetLifecyclePoliciesResponse.fromJson(Map json) { return GetLifecyclePoliciesResponse( policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => LifecyclePolicySummary.fromJson(e as Map)) .toList(), @@ -1641,7 +1639,7 @@ class Parameters { return Parameters( excludeBootVolume: json['ExcludeBootVolume'] as bool?, excludeDataVolumeTags: (json['ExcludeDataVolumeTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), noReboot: json['NoReboot'] as bool?, @@ -1831,13 +1829,13 @@ class PolicyDetails { factory PolicyDetails.fromJson(Map json) { return PolicyDetails( actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), copyTags: json['CopyTags'] as bool?, createInterval: json['CreateInterval'] as int?, crossRegionCopyTargets: (json['CrossRegionCopyTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CrossRegionCopyTarget.fromJson(e as Map)) .toList(), eventSource: json['EventSource'] != null @@ -1855,22 +1853,22 @@ class PolicyDetails { policyType: (json['PolicyType'] as String?)?.let(PolicyTypeValues.fromString), resourceLocations: (json['ResourceLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceLocationValues.fromString((e as String))) .toList(), resourceType: (json['ResourceType'] as String?)?.let(ResourceTypeValues.fromString), resourceTypes: (json['ResourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTypeValues.fromString((e as String))) .toList(), retainInterval: json['RetainInterval'] as int?, schedules: (json['Schedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Schedule.fromJson(e as Map)) .toList(), targetTags: (json['TargetTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2229,7 +2227,7 @@ class Schedule { ? CreateRule.fromJson(json['CreateRule'] as Map) : null, crossRegionCopyRules: (json['CrossRegionCopyRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CrossRegionCopyRule.fromJson(e as Map)) .toList(), deprecateRule: json['DeprecateRule'] != null @@ -2245,15 +2243,15 @@ class Schedule { ? RetainRule.fromJson(json['RetainRule'] as Map) : null, shareRules: (json['ShareRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ShareRule.fromJson(e as Map)) .toList(), tagsToAdd: (json['TagsToAdd'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), variableTags: (json['VariableTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2427,7 +2425,7 @@ class Script { executionTimeout: json['ExecutionTimeout'] as int?, maximumRetryCount: json['MaximumRetryCount'] as int?, stages: (json['Stages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StageValues.fromString((e as String))) .toList(), ); @@ -2492,7 +2490,7 @@ class ShareRule { factory ShareRule.fromJson(Map json) { return ShareRule( targetAccounts: (json['TargetAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), unshareInterval: json['UnshareInterval'] as int?, diff --git a/generated/aws_dlm_api/pubspec.yaml b/generated/aws_dlm_api/pubspec.yaml index ffc18b414..fa5cc4fef 100644 --- a/generated/aws_dlm_api/pubspec.yaml +++ b/generated/aws_dlm_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_dlm_ap protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_dms_api/lib/dms-2016-01-01.dart b/generated/aws_dms_api/lib/dms-2016-01-01.dart index 94003ba6d..9193a5e85 100644 --- a/generated/aws_dms_api/lib/dms-2016-01-01.dart +++ b/generated/aws_dms_api/lib/dms-2016-01-01.dart @@ -6695,7 +6695,7 @@ class BatchStartRecommendationsResponse { Map json) { return BatchStartRecommendationsResponse( errorEntries: (json['ErrorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchStartRecommendationsErrorEntry.fromJson( e as Map)) .toList(), @@ -7099,7 +7099,7 @@ class ComputeConfig { preferredMaintenanceWindow: json['PreferredMaintenanceWindow'] as String?, replicationSubnetGroupId: json['ReplicationSubnetGroupId'] as String?, vpcSecurityGroupIds: (json['VpcSecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7725,7 +7725,7 @@ class DatabaseResponse { factory DatabaseResponse.fromJson(Map json) { return DatabaseResponse( collectors: (json['Collectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CollectorShortInfoResponse.fromJson(e as Map)) .toList(), @@ -7929,7 +7929,7 @@ class DeleteFleetAdvisorDatabasesResponse { Map json) { return DeleteFleetAdvisorDatabasesResponse( databaseIds: (json['DatabaseIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8091,7 +8091,7 @@ class DescribeAccountAttributesResponse { Map json) { return DescribeAccountAttributesResponse( accountQuotas: (json['AccountQuotas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountQuota.fromJson(e as Map)) .toList(), uniqueAccountIdentifier: json['UniqueAccountIdentifier'] as String?, @@ -8125,7 +8125,7 @@ class DescribeApplicableIndividualAssessmentsResponse { Map json) { return DescribeApplicableIndividualAssessmentsResponse( individualAssessmentNames: (json['IndividualAssessmentNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), marker: json['Marker'] as String?, @@ -8149,7 +8149,7 @@ class DescribeCertificatesResponse { factory DescribeCertificatesResponse.fromJson(Map json) { return DescribeCertificatesResponse( certificates: (json['Certificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Certificate.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8175,7 +8175,7 @@ class DescribeConnectionsResponse { factory DescribeConnectionsResponse.fromJson(Map json) { return DescribeConnectionsResponse( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8227,7 +8227,7 @@ class DescribeDataProvidersResponse { factory DescribeDataProvidersResponse.fromJson(Map json) { return DescribeDataProvidersResponse( dataProviders: (json['DataProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataProvider.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8253,7 +8253,7 @@ class DescribeEndpointSettingsResponse { factory DescribeEndpointSettingsResponse.fromJson(Map json) { return DescribeEndpointSettingsResponse( endpointSettings: (json['EndpointSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointSetting.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8280,7 +8280,7 @@ class DescribeEndpointTypesResponse { return DescribeEndpointTypesResponse( marker: json['Marker'] as String?, supportedEndpointTypes: (json['SupportedEndpointTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedEndpointType.fromJson(e as Map)) .toList(), ); @@ -8305,7 +8305,7 @@ class DescribeEndpointsResponse { factory DescribeEndpointsResponse.fromJson(Map json) { return DescribeEndpointsResponse( endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8331,7 +8331,7 @@ class DescribeEngineVersionsResponse { factory DescribeEngineVersionsResponse.fromJson(Map json) { return DescribeEngineVersionsResponse( engineVersions: (json['EngineVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngineVersion.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8351,7 +8351,7 @@ class DescribeEventCategoriesResponse { factory DescribeEventCategoriesResponse.fromJson(Map json) { return DescribeEventCategoriesResponse( eventCategoryGroupList: (json['EventCategoryGroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventCategoryGroup.fromJson(e as Map)) .toList(), ); @@ -8377,7 +8377,7 @@ class DescribeEventSubscriptionsResponse { Map json) { return DescribeEventSubscriptionsResponse( eventSubscriptionsList: (json['EventSubscriptionsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSubscription.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8403,7 +8403,7 @@ class DescribeEventsResponse { factory DescribeEventsResponse.fromJson(Map json) { return DescribeEventsResponse( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8437,7 +8437,7 @@ class DescribeExtensionPackAssociationsResponse { return DescribeExtensionPackAssociationsResponse( marker: json['Marker'] as String?, requests: (json['Requests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConversionRequest.fromJson(e as Map)) .toList(), @@ -8465,7 +8465,7 @@ class DescribeFleetAdvisorCollectorsResponse { Map json) { return DescribeFleetAdvisorCollectorsResponse( collectors: (json['Collectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CollectorResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8493,7 +8493,7 @@ class DescribeFleetAdvisorDatabasesResponse { Map json) { return DescribeFleetAdvisorDatabasesResponse( databases: (json['Databases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatabaseResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8520,7 +8520,7 @@ class DescribeFleetAdvisorLsaAnalysisResponse { Map json) { return DescribeFleetAdvisorLsaAnalysisResponse( analysis: (json['Analysis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAdvisorLsaAnalysisResponse.fromJson( e as Map)) .toList(), @@ -8548,7 +8548,7 @@ class DescribeFleetAdvisorSchemaObjectSummaryResponse { Map json) { return DescribeFleetAdvisorSchemaObjectSummaryResponse( fleetAdvisorSchemaObjects: (json['FleetAdvisorSchemaObjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAdvisorSchemaObjectResponse.fromJson( e as Map)) .toList(), @@ -8576,7 +8576,7 @@ class DescribeFleetAdvisorSchemasResponse { Map json) { return DescribeFleetAdvisorSchemasResponse( fleetAdvisorSchemas: (json['FleetAdvisorSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8607,7 +8607,7 @@ class DescribeInstanceProfilesResponse { factory DescribeInstanceProfilesResponse.fromJson(Map json) { return DescribeInstanceProfilesResponse( instanceProfiles: (json['InstanceProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceProfile.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -8641,7 +8641,7 @@ class DescribeMetadataModelAssessmentsResponse { return DescribeMetadataModelAssessmentsResponse( marker: json['Marker'] as String?, requests: (json['Requests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConversionRequest.fromJson(e as Map)) .toList(), @@ -8674,7 +8674,7 @@ class DescribeMetadataModelConversionsResponse { return DescribeMetadataModelConversionsResponse( marker: json['Marker'] as String?, requests: (json['Requests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConversionRequest.fromJson(e as Map)) .toList(), @@ -8707,7 +8707,7 @@ class DescribeMetadataModelExportsAsScriptResponse { return DescribeMetadataModelExportsAsScriptResponse( marker: json['Marker'] as String?, requests: (json['Requests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConversionRequest.fromJson(e as Map)) .toList(), @@ -8740,7 +8740,7 @@ class DescribeMetadataModelExportsToTargetResponse { return DescribeMetadataModelExportsToTargetResponse( marker: json['Marker'] as String?, requests: (json['Requests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConversionRequest.fromJson(e as Map)) .toList(), @@ -8773,7 +8773,7 @@ class DescribeMetadataModelImportsResponse { return DescribeMetadataModelImportsResponse( marker: json['Marker'] as String?, requests: (json['Requests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaConversionRequest.fromJson(e as Map)) .toList(), @@ -8806,7 +8806,7 @@ class DescribeMigrationProjectsResponse { return DescribeMigrationProjectsResponse( marker: json['Marker'] as String?, migrationProjects: (json['MigrationProjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MigrationProject.fromJson(e as Map)) .toList(), ); @@ -8834,7 +8834,7 @@ class DescribeOrderableReplicationInstancesResponse { marker: json['Marker'] as String?, orderableReplicationInstances: (json['OrderableReplicationInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrderableReplicationInstance.fromJson(e as Map)) .toList(), @@ -8862,7 +8862,7 @@ class DescribePendingMaintenanceActionsResponse { return DescribePendingMaintenanceActionsResponse( marker: json['Marker'] as String?, pendingMaintenanceActions: (json['PendingMaintenanceActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePendingMaintenanceActions.fromJson( e as Map)) .toList(), @@ -8891,7 +8891,7 @@ class DescribeRecommendationLimitationsResponse { Map json) { return DescribeRecommendationLimitationsResponse( limitations: (json['Limitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Limitation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8920,7 +8920,7 @@ class DescribeRecommendationsResponse { return DescribeRecommendationsResponse( nextToken: json['NextToken'] as String?, recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), ); @@ -8968,7 +8968,7 @@ class DescribeReplicationConfigsResponse { return DescribeReplicationConfigsResponse( marker: json['Marker'] as String?, replicationConfigs: (json['ReplicationConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationConfig.fromJson(e as Map)) .toList(), ); @@ -9001,7 +9001,7 @@ class DescribeReplicationInstanceTaskLogsResponse { replicationInstanceArn: json['ReplicationInstanceArn'] as String?, replicationInstanceTaskLogs: (json['ReplicationInstanceTaskLogs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationInstanceTaskLog.fromJson(e as Map)) .toList(), @@ -9029,7 +9029,7 @@ class DescribeReplicationInstancesResponse { return DescribeReplicationInstancesResponse( marker: json['Marker'] as String?, replicationInstances: (json['ReplicationInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationInstance.fromJson(e as Map)) .toList(), ); @@ -9056,7 +9056,7 @@ class DescribeReplicationSubnetGroupsResponse { return DescribeReplicationSubnetGroupsResponse( marker: json['Marker'] as String?, replicationSubnetGroups: (json['ReplicationSubnetGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ReplicationSubnetGroup.fromJson(e as Map)) .toList(), @@ -9090,7 +9090,7 @@ class DescribeReplicationTableStatisticsResponse { marker: json['Marker'] as String?, replicationConfigArn: json['ReplicationConfigArn'] as String?, replicationTableStatistics: (json['ReplicationTableStatistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableStatistics.fromJson(e as Map)) .toList(), ); @@ -9123,7 +9123,7 @@ class DescribeReplicationTaskAssessmentResultsResponse { marker: json['Marker'] as String?, replicationTaskAssessmentResults: (json['ReplicationTaskAssessmentResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationTaskAssessmentResult.fromJson( e as Map)) .toList(), @@ -9154,7 +9154,7 @@ class DescribeReplicationTaskAssessmentRunsResponse { marker: json['Marker'] as String?, replicationTaskAssessmentRuns: (json['ReplicationTaskAssessmentRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationTaskAssessmentRun.fromJson(e as Map)) .toList(), @@ -9185,7 +9185,7 @@ class DescribeReplicationTaskIndividualAssessmentsResponse { marker: json['Marker'] as String?, replicationTaskIndividualAssessments: (json['ReplicationTaskIndividualAssessments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationTaskIndividualAssessment.fromJson( e as Map)) .toList(), @@ -9212,7 +9212,7 @@ class DescribeReplicationTasksResponse { return DescribeReplicationTasksResponse( marker: json['Marker'] as String?, replicationTasks: (json['ReplicationTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationTask.fromJson(e as Map)) .toList(), ); @@ -9238,7 +9238,7 @@ class DescribeReplicationsResponse { return DescribeReplicationsResponse( marker: json['Marker'] as String?, replications: (json['Replications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Replication.fromJson(e as Map)) .toList(), ); @@ -9263,10 +9263,8 @@ class DescribeSchemasResponse { factory DescribeSchemasResponse.fromJson(Map json) { return DescribeSchemasResponse( marker: json['Marker'] as String?, - schemas: (json['Schemas'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + schemas: + (json['Schemas'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -9295,7 +9293,7 @@ class DescribeTableStatisticsResponse { marker: json['Marker'] as String?, replicationTaskArn: json['ReplicationTaskArn'] as String?, tableStatistics: (json['TableStatistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableStatistics.fromJson(e as Map)) .toList(), ); @@ -10037,7 +10035,7 @@ class EndpointSetting { applicability: json['Applicability'] as String?, defaultValue: json['DefaultValue'] as String?, enumValues: (json['EnumValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), intValueMax: json['IntValueMax'] as int?, @@ -10113,7 +10111,7 @@ class EngineVersion { return EngineVersion( autoUpgradeDate: timeStampFromJson(json['AutoUpgradeDate']), availableUpgrades: (json['AvailableUpgrades'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deprecationDate: timeStampFromJson(json['DeprecationDate']), @@ -10179,7 +10177,7 @@ class Event { return Event( date: timeStampFromJson(json['Date']), eventCategories: (json['EventCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), message: json['Message'] as String?, @@ -10211,7 +10209,7 @@ class EventCategoryGroup { factory EventCategoryGroup.fromJson(Map json) { return EventCategoryGroup( eventCategories: (json['EventCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceType: json['SourceType'] as String?, @@ -10280,12 +10278,12 @@ class EventSubscription { customerAwsId: json['CustomerAwsId'] as String?, enabled: json['Enabled'] as bool?, eventCategoriesList: (json['EventCategoriesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), snsTopicArn: json['SnsTopicArn'] as String?, sourceIdsList: (json['SourceIdsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceType: json['SourceType'] as String?, @@ -10892,7 +10890,7 @@ class InstanceProfile { publiclyAccessible: json['PubliclyAccessible'] as bool?, subnetGroupIdentifier: json['SubnetGroupIdentifier'] as String?, vpcSecurityGroups: (json['VpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11385,7 +11383,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11790,13 +11788,13 @@ class MigrationProject { : null, sourceDataProviderDescriptors: (json['SourceDataProviderDescriptors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DataProviderDescriptor.fromJson(e as Map)) .toList(), targetDataProviderDescriptors: (json['TargetDataProviderDescriptors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DataProviderDescriptor.fromJson(e as Map)) .toList(), @@ -13170,7 +13168,7 @@ class OracleSettings { directPathParallelLoad: json['DirectPathParallelLoad'] as bool?, enableHomogenousTablespace: json['EnableHomogenousTablespace'] as bool?, extraArchivedLogDestIds: (json['ExtraArchivedLogDestIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), failTasksOnLobTruncation: json['FailTasksOnLobTruncation'] as bool?, @@ -13391,7 +13389,7 @@ class OrderableReplicationInstance { factory OrderableReplicationInstance.fromJson(Map json) { return OrderableReplicationInstance( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultAllocatedStorage: json['DefaultAllocatedStorage'] as int?, @@ -14970,7 +14968,7 @@ class Replication { cdcStartTime: timeStampFromJson(json['CdcStartTime']), cdcStopPosition: json['CdcStopPosition'] as String?, failureMessages: (json['FailureMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), provisionData: json['ProvisionData'] != null @@ -15316,21 +15314,21 @@ class ReplicationInstance { json['ReplicationInstanceIdentifier'] as String?, replicationInstanceIpv6Addresses: (json['ReplicationInstanceIpv6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), replicationInstancePrivateIpAddress: json['ReplicationInstancePrivateIpAddress'] as String?, replicationInstancePrivateIpAddresses: (json['ReplicationInstancePrivateIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), replicationInstancePublicIpAddress: json['ReplicationInstancePublicIpAddress'] as String?, replicationInstancePublicIpAddresses: (json['ReplicationInstancePublicIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), replicationInstanceStatus: json['ReplicationInstanceStatus'] as String?, @@ -15340,7 +15338,7 @@ class ReplicationInstance { : null, secondaryAvailabilityZone: json['SecondaryAvailabilityZone'] as String?, vpcSecurityGroups: (json['VpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcSecurityGroupMembership.fromJson(e as Map)) .toList(), @@ -15533,11 +15531,11 @@ class ReplicationSubnetGroup { json['ReplicationSubnetGroupIdentifier'] as String?, subnetGroupStatus: json['SubnetGroupStatus'] as String?, subnets: (json['Subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subnet.fromJson(e as Map)) .toList(), supportedNetworkTypes: (json['SupportedNetworkTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -16216,7 +16214,7 @@ class ResourcePendingMaintenanceActions { return ResourcePendingMaintenanceActions( pendingMaintenanceActionDetails: (json['PendingMaintenanceActionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingMaintenanceAction.fromJson(e as Map)) .toList(), diff --git a/generated/aws_dms_api/pubspec.yaml b/generated/aws_dms_api/pubspec.yaml index 54547240e..19e24d30f 100644 --- a/generated/aws_dms_api/pubspec.yaml +++ b/generated/aws_dms_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_dms_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_docdb_api/pubspec.yaml b/generated/aws_docdb_api/pubspec.yaml index 8a0098e6b..75674576e 100644 --- a/generated/aws_docdb_api/pubspec.yaml +++ b/generated/aws_docdb_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_docdb_ protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_ds_api/lib/ds-2015-04-16.dart b/generated/aws_ds_api/lib/ds-2015-04-16.dart index ece9831d9..4ee64459d 100644 --- a/generated/aws_ds_api/lib/ds-2015-04-16.dart +++ b/generated/aws_ds_api/lib/ds-2015-04-16.dart @@ -3577,7 +3577,7 @@ class Computer { factory Computer.fromJson(Map json) { return Computer( computerAttributes: (json['ComputerAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), computerId: json['ComputerId'] as String?, @@ -3613,7 +3613,7 @@ class ConditionalForwarder { factory ConditionalForwarder.fromJson(Map json) { return ConditionalForwarder( dnsIpAddrs: (json['DnsIpAddrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), remoteDomainName: json['RemoteDomainName'] as String?, @@ -3882,7 +3882,7 @@ class DescribeClientAuthenticationSettingsResult { return DescribeClientAuthenticationSettingsResult( clientAuthenticationSettingsInfo: (json['ClientAuthenticationSettingsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClientAuthenticationSettingInfo.fromJson( e as Map)) .toList(), @@ -3904,7 +3904,7 @@ class DescribeConditionalForwardersResult { Map json) { return DescribeConditionalForwardersResult( conditionalForwarders: (json['ConditionalForwarders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConditionalForwarder.fromJson(e as Map)) .toList(), ); @@ -3934,7 +3934,7 @@ class DescribeDirectoriesResult { factory DescribeDirectoriesResult.fromJson(Map json) { return DescribeDirectoriesResult( directoryDescriptions: (json['DirectoryDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DirectoryDescription.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3959,7 +3959,7 @@ class DescribeDomainControllersResult { factory DescribeDomainControllersResult.fromJson(Map json) { return DescribeDomainControllersResult( domainControllers: (json['DomainControllers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainController.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3980,7 +3980,7 @@ class DescribeEventTopicsResult { factory DescribeEventTopicsResult.fromJson(Map json) { return DescribeEventTopicsResult( eventTopics: (json['EventTopics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventTopic.fromJson(e as Map)) .toList(), ); @@ -4005,7 +4005,7 @@ class DescribeLDAPSSettingsResult { factory DescribeLDAPSSettingsResult.fromJson(Map json) { return DescribeLDAPSSettingsResult( lDAPSSettingsInfo: (json['LDAPSSettingsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LDAPSSettingInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4032,7 +4032,7 @@ class DescribeRegionsResult { return DescribeRegionsResult( nextToken: json['NextToken'] as String?, regionsDescription: (json['RegionsDescription'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegionDescription.fromJson(e as Map)) .toList(), ); @@ -4067,7 +4067,7 @@ class DescribeSettingsResult { directoryId: json['DirectoryId'] as String?, nextToken: json['NextToken'] as String?, settingEntries: (json['SettingEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SettingEntry.fromJson(e as Map)) .toList(), ); @@ -4092,7 +4092,7 @@ class DescribeSharedDirectoriesResult { return DescribeSharedDirectoriesResult( nextToken: json['NextToken'] as String?, sharedDirectories: (json['SharedDirectories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SharedDirectory.fromJson(e as Map)) .toList(), ); @@ -4122,7 +4122,7 @@ class DescribeSnapshotsResult { return DescribeSnapshotsResult( nextToken: json['NextToken'] as String?, snapshots: (json['Snapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Snapshot.fromJson(e as Map)) .toList(), ); @@ -4153,7 +4153,7 @@ class DescribeTrustsResult { return DescribeTrustsResult( nextToken: json['NextToken'] as String?, trusts: (json['Trusts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trust.fromJson(e as Map)) .toList(), ); @@ -4177,7 +4177,7 @@ class DescribeUpdateDirectoryResult { return DescribeUpdateDirectoryResult( nextToken: json['NextToken'] as String?, updateActivities: (json['UpdateActivities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateInfoEntry.fromJson(e as Map)) .toList(), ); @@ -4286,17 +4286,17 @@ class DirectoryConnectSettingsDescription { Map json) { return DirectoryConnectSettingsDescription( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), connectIps: (json['ConnectIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), customerUserName: json['CustomerUserName'] as String?, securityGroupId: json['SecurityGroupId'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -4447,7 +4447,7 @@ class DirectoryDescription { json['DesiredNumberOfDomainControllers'] as int?, directoryId: json['DirectoryId'] as String?, dnsIpAddrs: (json['DnsIpAddrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), edition: (json['Edition'] as String?)?.let(DirectoryEdition.fromString), @@ -4640,10 +4640,8 @@ class DirectoryVpcSettings { factory DirectoryVpcSettings.fromJson(Map json) { return DirectoryVpcSettings( - subnetIds: (json['SubnetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnetIds: + (json['SubnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String, ); } @@ -4682,12 +4680,12 @@ class DirectoryVpcSettingsDescription { factory DirectoryVpcSettingsDescription.fromJson(Map json) { return DirectoryVpcSettingsDescription( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupId: json['SecurityGroupId'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -5087,7 +5085,7 @@ class ListCertificatesResult { factory ListCertificatesResult.fromJson(Map json) { return ListCertificatesResult( certificatesInfo: (json['CertificatesInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5112,7 +5110,7 @@ class ListIpRoutesResult { factory ListIpRoutesResult.fromJson(Map json) { return ListIpRoutesResult( ipRoutesInfo: (json['IpRoutesInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpRouteInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5136,7 +5134,7 @@ class ListLogSubscriptionsResult { factory ListLogSubscriptionsResult.fromJson(Map json) { return ListLogSubscriptionsResult( logSubscriptions: (json['LogSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogSubscription.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5162,7 +5160,7 @@ class ListSchemaExtensionsResult { return ListSchemaExtensionsResult( nextToken: json['NextToken'] as String?, schemaExtensionsInfo: (json['SchemaExtensionsInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaExtensionInfo.fromJson(e as Map)) .toList(), ); @@ -5185,7 +5183,7 @@ class ListTagsForResourceResult { return ListTagsForResourceResult( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5295,7 +5293,7 @@ class OwnerDirectoryDescription { accountId: json['AccountId'] as String?, directoryId: json['DirectoryId'] as String?, dnsIpAddrs: (json['DnsIpAddrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), radiusSettings: json['RadiusSettings'] != null @@ -5380,7 +5378,7 @@ class RadiusSettings { radiusPort: json['RadiusPort'] as int?, radiusRetries: json['RadiusRetries'] as int?, radiusServers: (json['RadiusServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), radiusTimeout: json['RadiusTimeout'] as int?, @@ -5520,7 +5518,7 @@ class RegionsInfo { factory RegionsInfo.fromJson(Map json) { return RegionsInfo( additionalRegions: (json['AdditionalRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), primaryRegion: json['PrimaryRegion'] as String?, diff --git a/generated/aws_ds_api/pubspec.yaml b/generated/aws_ds_api/pubspec.yaml index eb49d69c6..f652fb872 100644 --- a/generated/aws_ds_api/pubspec.yaml +++ b/generated/aws_ds_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_ds_api protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_dynamodb_api/lib/dynamodb-2011-12-05.dart b/generated/aws_dynamodb_api/lib/dynamodb-2011-12-05.dart index 09c4a3965..7f57fa235 100644 --- a/generated/aws_dynamodb_api/lib/dynamodb-2011-12-05.dart +++ b/generated/aws_dynamodb_api/lib/dynamodb-2011-12-05.dart @@ -744,19 +744,13 @@ class AttributeValue { return AttributeValue( b: _s.decodeNullableUint8List(json['B'] as String?), bs: (json['BS'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => _s.decodeUint8List(e as String)) .toList(), n: json['N'] as String?, - ns: (json['NS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ns: (json['NS'] as List?)?.nonNulls.map((e) => e as String).toList(), s: json['S'] as String?, - ss: (json['SS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ss: (json['SS'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -841,7 +835,7 @@ class BatchResponse { return BatchResponse( consumedCapacityUnits: json['ConsumedCapacityUnits'] as double?, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), @@ -873,7 +867,7 @@ class BatchWriteItemOutput { ?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => WriteRequest.fromJson(e as Map)) .toList())), ); @@ -1236,11 +1230,11 @@ class KeysAndAttributes { factory KeysAndAttributes.fromJson(Map json) { return KeysAndAttributes( keys: (json['Keys'] as List) - .whereNotNull() + .nonNulls .map((e) => Key.fromJson(e as Map)) .toList(), attributesToGet: (json['AttributesToGet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), consistentRead: json['ConsistentRead'] as bool?, @@ -1276,7 +1270,7 @@ class ListTablesOutput { return ListTablesOutput( lastEvaluatedTableName: json['LastEvaluatedTableName'] as String?, tableNames: (json['TableNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1415,7 +1409,7 @@ class QueryOutput { consumedCapacityUnits: json['ConsumedCapacityUnits'] as double?, count: json['Count'] as int?, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), @@ -1508,7 +1502,7 @@ class ScanOutput { consumedCapacityUnits: json['ConsumedCapacityUnits'] as double?, count: json['Count'] as int?, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), diff --git a/generated/aws_dynamodb_api/lib/dynamodb-2012-08-10.dart b/generated/aws_dynamodb_api/lib/dynamodb-2012-08-10.dart index 5000c6dae..a94d7369b 100644 --- a/generated/aws_dynamodb_api/lib/dynamodb-2012-08-10.dart +++ b/generated/aws_dynamodb_api/lib/dynamodb-2012-08-10.dart @@ -5907,26 +5907,20 @@ class AttributeValue { b: _s.decodeNullableUint8List(json['B'] as String?), boolValue: json['BOOL'] as bool?, bs: (json['BS'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => _s.decodeUint8List(e as String)) .toList(), l: (json['L'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeValue.fromJson(e as Map)) .toList(), m: (json['M'] as Map?)?.map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map))), n: json['N'] as String?, - ns: (json['NS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ns: (json['NS'] as List?)?.nonNulls.map((e) => e as String).toList(), nullValue: json['NULL'] as bool?, s: json['S'] as String?, - ss: (json['SS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ss: (json['SS'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6168,7 +6162,7 @@ class AutoScalingSettingsDescription { maximumUnits: json['MaximumUnits'] as int?, minimumUnits: json['MinimumUnits'] as int?, scalingPolicies: (json['ScalingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingPolicyDescription.fromJson(e as Map)) .toList(), @@ -6575,11 +6569,11 @@ class BatchExecuteStatementOutput { factory BatchExecuteStatementOutput.fromJson(Map json) { return BatchExecuteStatementOutput( consumedCapacity: (json['ConsumedCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsumedCapacity.fromJson(e as Map)) .toList(), responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BatchStatementResponse.fromJson(e as Map)) .toList(), @@ -6646,14 +6640,14 @@ class BatchGetItemOutput { factory BatchGetItemOutput.fromJson(Map json) { return BatchGetItemOutput( consumedCapacity: (json['ConsumedCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsumedCapacity.fromJson(e as Map)) .toList(), responses: (json['Responses'] as Map?)?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) @@ -6889,7 +6883,7 @@ class BatchWriteItemOutput { factory BatchWriteItemOutput.fromJson(Map json) { return BatchWriteItemOutput( consumedCapacity: (json['ConsumedCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsumedCapacity.fromJson(e as Map)) .toList(), itemCollectionMetrics: (json['ItemCollectionMetrics'] @@ -6897,7 +6891,7 @@ class BatchWriteItemOutput { ?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ItemCollectionMetrics.fromJson(e as Map)) .toList())), @@ -6905,7 +6899,7 @@ class BatchWriteItemOutput { ?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => WriteRequest.fromJson(e as Map)) .toList())), ); @@ -7703,7 +7697,7 @@ class CsvOptions { return CsvOptions( delimiter: json['Delimiter'] as String?, headerList: (json['HeaderList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8073,7 +8067,7 @@ class DescribeContributorInsightsOutput { return DescribeContributorInsightsOutput( contributorInsightsRuleList: (json['ContributorInsightsRuleList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), contributorInsightsStatus: (json['ContributorInsightsStatus'] as String?) @@ -8100,7 +8094,7 @@ class DescribeEndpointsResponse { factory DescribeEndpointsResponse.fromJson(Map json) { return DescribeEndpointsResponse( endpoints: (json['Endpoints'] as List) - .whereNotNull() + .nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), ); @@ -8160,7 +8154,7 @@ class DescribeGlobalTableSettingsOutput { return DescribeGlobalTableSettingsOutput( globalTableName: json['GlobalTableName'] as String?, replicaSettings: (json['ReplicaSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaSettingsDescription.fromJson(e as Map)) .toList(), @@ -8203,7 +8197,7 @@ class DescribeKinesisStreamingDestinationOutput { return DescribeKinesisStreamingDestinationOutput( kinesisDataStreamDestinations: (json['KinesisDataStreamDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KinesisDataStreamDestination.fromJson(e as Map)) .toList(), @@ -8413,7 +8407,7 @@ class ExecuteStatementOutput { json['ConsumedCapacity'] as Map) : null, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), @@ -8441,11 +8435,11 @@ class ExecuteTransactionOutput { factory ExecuteTransactionOutput.fromJson(Map json) { return ExecuteTransactionOutput( consumedCapacity: (json['ConsumedCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsumedCapacity.fromJson(e as Map)) .toList(), responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ItemResponse.fromJson(e as Map)) .toList(), ); @@ -9169,7 +9163,7 @@ class GlobalSecondaryIndex { return GlobalSecondaryIndex( indexName: json['IndexName'] as String, keySchema: (json['KeySchema'] as List) - .whereNotNull() + .nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), projection: @@ -9347,7 +9341,7 @@ class GlobalSecondaryIndexDescription { (json['IndexStatus'] as String?)?.let(IndexStatus.fromString), itemCount: json['ItemCount'] as int?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), onDemandThroughput: json['OnDemandThroughput'] != null @@ -9416,7 +9410,7 @@ class GlobalSecondaryIndexInfo { return GlobalSecondaryIndexInfo( indexName: json['IndexName'] as String?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), onDemandThroughput: json['OnDemandThroughput'] != null @@ -9513,7 +9507,7 @@ class GlobalTable { return GlobalTable( globalTableName: json['GlobalTableName'] as String?, replicationGroup: (json['ReplicationGroup'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Replica.fromJson(e as Map)) .toList(), ); @@ -9568,7 +9562,7 @@ class GlobalTableDescription { globalTableStatus: (json['GlobalTableStatus'] as String?) ?.let(GlobalTableStatus.fromString), replicationGroup: (json['ReplicationGroup'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaDescription.fromJson(e as Map)) .toList(), ); @@ -10009,7 +10003,7 @@ class ItemCollectionMetrics { ?.map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map))), sizeEstimateRangeGB: (json['SizeEstimateRangeGB'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -10209,12 +10203,12 @@ class KeysAndAttributes { factory KeysAndAttributes.fromJson(Map json) { return KeysAndAttributes( keys: (json['Keys'] as List) - .whereNotNull() + .nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), attributesToGet: (json['AttributesToGet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), consistentRead: json['ConsistentRead'] as bool?, @@ -10345,7 +10339,7 @@ class ListBackupsOutput { factory ListBackupsOutput.fromJson(Map json) { return ListBackupsOutput( backupSummaries: (json['BackupSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackupSummary.fromJson(e as Map)) .toList(), lastEvaluatedBackupArn: json['LastEvaluatedBackupArn'] as String?, @@ -10369,7 +10363,7 @@ class ListContributorInsightsOutput { return ListContributorInsightsOutput( contributorInsightsSummaries: (json['ContributorInsightsSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContributorInsightsSummary.fromJson(e as Map)) .toList(), @@ -10395,7 +10389,7 @@ class ListExportsOutput { factory ListExportsOutput.fromJson(Map json) { return ListExportsOutput( exportSummaries: (json['ExportSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -10418,7 +10412,7 @@ class ListGlobalTablesOutput { factory ListGlobalTablesOutput.fromJson(Map json) { return ListGlobalTablesOutput( globalTables: (json['GlobalTables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlobalTable.fromJson(e as Map)) .toList(), lastEvaluatedGlobalTableName: @@ -10444,7 +10438,7 @@ class ListImportsOutput { factory ListImportsOutput.fromJson(Map json) { return ListImportsOutput( importSummaryList: (json['ImportSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -10480,7 +10474,7 @@ class ListTablesOutput { return ListTablesOutput( lastEvaluatedTableName: json['LastEvaluatedTableName'] as String?, tableNames: (json['TableNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -10505,7 +10499,7 @@ class ListTagsOfResourceOutput { return ListTagsOfResourceOutput( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -10626,7 +10620,7 @@ class LocalSecondaryIndexDescription { indexSizeBytes: json['IndexSizeBytes'] as int?, itemCount: json['ItemCount'] as int?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), projection: json['Projection'] != null @@ -10680,7 +10674,7 @@ class LocalSecondaryIndexInfo { return LocalSecondaryIndexInfo( indexName: json['IndexName'] as String?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), projection: json['Projection'] != null @@ -10913,7 +10907,7 @@ class Projection { factory Projection.fromJson(Map json) { return Projection( nonKeyAttributes: (json['NonKeyAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), projectionType: @@ -11317,7 +11311,7 @@ class QueryOutput { : null, count: json['Count'] as int?, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), @@ -11394,7 +11388,7 @@ class ReplicaAutoScalingDescription { factory ReplicaAutoScalingDescription.fromJson(Map json) { return ReplicaAutoScalingDescription( globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaGlobalSecondaryIndexAutoScalingDescription.fromJson( e as Map)) @@ -11537,7 +11531,7 @@ class ReplicaDescription { factory ReplicaDescription.fromJson(Map json) { return ReplicaDescription( globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaGlobalSecondaryIndexDescription.fromJson( e as Map)) .toList(), @@ -11908,7 +11902,7 @@ class ReplicaSettingsDescription { : null, replicaGlobalSecondaryIndexSettings: (json['ReplicaGlobalSecondaryIndexSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaGlobalSecondaryIndexSettingsDescription.fromJson( e as Map)) @@ -12534,7 +12528,7 @@ class ScanOutput { : null, count: json['Count'] as int?, items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map)))) .toList(), @@ -12622,7 +12616,7 @@ class SourceTableDetails { factory SourceTableDetails.fromJson(Map json) { return SourceTableDetails( keySchema: (json['KeySchema'] as List) - .whereNotNull() + .nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), provisionedThroughput: ProvisionedThroughput.fromJson( @@ -12678,12 +12672,12 @@ class SourceTableFeatureDetails { factory SourceTableFeatureDetails.fromJson(Map json) { return SourceTableFeatureDetails( globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlobalSecondaryIndexInfo.fromJson(e as Map)) .toList(), localSecondaryIndexes: (json['LocalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocalSecondaryIndexInfo.fromJson(e as Map)) .toList(), @@ -12808,7 +12802,7 @@ class TableAutoScalingDescription { factory TableAutoScalingDescription.fromJson(Map json) { return TableAutoScalingDescription( replicas: (json['Replicas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaAutoScalingDescription.fromJson(e as Map)) .toList(), @@ -12892,18 +12886,18 @@ class TableCreationParameters { factory TableCreationParameters.fromJson(Map json) { return TableCreationParameters( attributeDefinitions: (json['AttributeDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => AttributeDefinition.fromJson(e as Map)) .toList(), keySchema: (json['KeySchema'] as List) - .whereNotNull() + .nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), tableName: json['TableName'] as String, billingMode: (json['BillingMode'] as String?)?.let(BillingMode.fromString), globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlobalSecondaryIndex.fromJson(e as Map)) .toList(), onDemandThroughput: json['OnDemandThroughput'] != null @@ -13313,7 +13307,7 @@ class TableDescription { json['ArchivalSummary'] as Map) : null, attributeDefinitions: (json['AttributeDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeDefinition.fromJson(e as Map)) .toList(), billingModeSummary: json['BillingModeSummary'] != null @@ -13323,20 +13317,20 @@ class TableDescription { creationDateTime: timeStampFromJson(json['CreationDateTime']), deletionProtectionEnabled: json['DeletionProtectionEnabled'] as bool?, globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlobalSecondaryIndexDescription.fromJson( e as Map)) .toList(), globalTableVersion: json['GlobalTableVersion'] as String?, itemCount: json['ItemCount'] as int?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), latestStreamArn: json['LatestStreamArn'] as String?, latestStreamLabel: json['LatestStreamLabel'] as String?, localSecondaryIndexes: (json['LocalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocalSecondaryIndexDescription.fromJson( e as Map)) .toList(), @@ -13349,7 +13343,7 @@ class TableDescription { json['ProvisionedThroughput'] as Map) : null, replicas: (json['Replicas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaDescription.fromJson(e as Map)) .toList(), restoreSummary: json['RestoreSummary'] != null @@ -13560,11 +13554,11 @@ class TransactGetItemsOutput { factory TransactGetItemsOutput.fromJson(Map json) { return TransactGetItemsOutput( consumedCapacity: (json['ConsumedCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsumedCapacity.fromJson(e as Map)) .toList(), responses: (json['Responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ItemResponse.fromJson(e as Map)) .toList(), ); @@ -13627,7 +13621,7 @@ class TransactWriteItemsOutput { factory TransactWriteItemsOutput.fromJson(Map json) { return TransactWriteItemsOutput( consumedCapacity: (json['ConsumedCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConsumedCapacity.fromJson(e as Map)) .toList(), itemCollectionMetrics: (json['ItemCollectionMetrics'] @@ -13635,7 +13629,7 @@ class TransactWriteItemsOutput { ?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ItemCollectionMetrics.fromJson(e as Map)) .toList())), @@ -13828,7 +13822,7 @@ class UpdateGlobalTableSettingsOutput { return UpdateGlobalTableSettingsOutput( globalTableName: json['GlobalTableName'] as String?, replicaSettings: (json['ReplicaSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicaSettingsDescription.fromJson(e as Map)) .toList(), diff --git a/generated/aws_dynamodb_api/pubspec.yaml b/generated/aws_dynamodb_api/pubspec.yaml index 3259f3d05..3ac93b97a 100644 --- a/generated/aws_dynamodb_api/pubspec.yaml +++ b/generated/aws_dynamodb_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_dynamo protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_dynamodbstreams_api/lib/streams-dynamodb-2012-08-10.dart b/generated/aws_dynamodbstreams_api/lib/streams-dynamodb-2012-08-10.dart index f07159945..1343cd5bd 100644 --- a/generated/aws_dynamodbstreams_api/lib/streams-dynamodb-2012-08-10.dart +++ b/generated/aws_dynamodbstreams_api/lib/streams-dynamodb-2012-08-10.dart @@ -386,26 +386,20 @@ class AttributeValue { b: _s.decodeNullableUint8List(json['B'] as String?), boolValue: json['BOOL'] as bool?, bs: (json['BS'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => _s.decodeUint8List(e as String)) .toList(), l: (json['L'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeValue.fromJson(e as Map)) .toList(), m: (json['M'] as Map?)?.map((k, e) => MapEntry(k, AttributeValue.fromJson(e as Map))), n: json['N'] as String?, - ns: (json['NS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ns: (json['NS'] as List?)?.nonNulls.map((e) => e as String).toList(), nullValue: json['NULL'] as bool?, s: json['S'] as String?, - ss: (json['SS'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ss: (json['SS'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -452,7 +446,7 @@ class GetRecordsOutput { return GetRecordsOutput( nextShardIterator: json['NextShardIterator'] as String?, records: (json['Records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), ); @@ -593,7 +587,7 @@ class ListStreamsOutput { return ListStreamsOutput( lastEvaluatedStreamArn: json['LastEvaluatedStreamArn'] as String?, streams: (json['Streams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Stream.fromJson(e as Map)) .toList(), ); @@ -925,12 +919,12 @@ class StreamDescription { creationRequestDateTime: timeStampFromJson(json['CreationRequestDateTime']), keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), lastEvaluatedShardId: json['LastEvaluatedShardId'] as String?, shards: (json['Shards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Shard.fromJson(e as Map)) .toList(), streamArn: json['StreamArn'] as String?, diff --git a/generated/aws_dynamodbstreams_api/pubspec.yaml b/generated/aws_dynamodbstreams_api/pubspec.yaml index a4101da9f..424d2f7ee 100644 --- a/generated/aws_dynamodbstreams_api/pubspec.yaml +++ b/generated/aws_dynamodbstreams_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_dynamo protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_ebs_api/lib/ebs-2019-11-02.dart b/generated/aws_ebs_api/lib/ebs-2019-11-02.dart index 3d01cd00f..4198c4466 100644 --- a/generated/aws_ebs_api/lib/ebs-2019-11-02.dart +++ b/generated/aws_ebs_api/lib/ebs-2019-11-02.dart @@ -835,7 +835,7 @@ class ListChangedBlocksResponse { return ListChangedBlocksResponse( blockSize: json['BlockSize'] as int?, changedBlocks: (json['ChangedBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangedBlock.fromJson(e as Map)) .toList(), expiryTime: timeStampFromJson(json['ExpiryTime']), @@ -874,7 +874,7 @@ class ListSnapshotBlocksResponse { return ListSnapshotBlocksResponse( blockSize: json['BlockSize'] as int?, blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), expiryTime: timeStampFromJson(json['ExpiryTime']), @@ -977,7 +977,7 @@ class StartSnapshotResponse { startTime: timeStampFromJson(json['StartTime']), status: (json['Status'] as String?)?.let(Status.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), volumeSize: json['VolumeSize'] as int?, diff --git a/generated/aws_ebs_api/pubspec.yaml b/generated/aws_ebs_api/pubspec.yaml index 8ec36a5ea..9a3f5d253 100644 --- a/generated/aws_ebs_api/pubspec.yaml +++ b/generated/aws_ebs_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_ebs_ap protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_ec2_api/pubspec.yaml b/generated/aws_ec2_api/pubspec.yaml index c3b6cf289..ad1d8197f 100644 --- a/generated/aws_ec2_api/pubspec.yaml +++ b/generated/aws_ec2_api/pubspec.yaml @@ -7,7 +7,7 @@ publish_to: none protocol: ec2 environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^1.0.0 diff --git a/generated/aws_ec2_instance_connect_api/pubspec.yaml b/generated/aws_ec2_instance_connect_api/pubspec.yaml index 11e0ac9ef..152416fd0 100644 --- a/generated/aws_ec2_instance_connect_api/pubspec.yaml +++ b/generated/aws_ec2_instance_connect_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_ec2_in protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_ecr_api/lib/ecr-2015-09-21.dart b/generated/aws_ecr_api/lib/ecr-2015-09-21.dart index ddb4cc22d..68d95aab1 100644 --- a/generated/aws_ecr_api/lib/ecr-2015-09-21.dart +++ b/generated/aws_ecr_api/lib/ecr-2015-09-21.dart @@ -2377,7 +2377,7 @@ class AwsEcrContainerImageDetails { author: json['author'] as String?, imageHash: json['imageHash'] as String?, imageTags: (json['imageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), platform: json['platform'] as String?, @@ -2405,11 +2405,11 @@ class BatchCheckLayerAvailabilityResponse { Map json) { return BatchCheckLayerAvailabilityResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LayerFailure.fromJson(e as Map)) .toList(), layers: (json['layers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Layer.fromJson(e as Map)) .toList(), ); @@ -2431,11 +2431,11 @@ class BatchDeleteImageResponse { factory BatchDeleteImageResponse.fromJson(Map json) { return BatchDeleteImageResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageFailure.fromJson(e as Map)) .toList(), imageIds: (json['imageIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageIdentifier.fromJson(e as Map)) .toList(), ); @@ -2458,11 +2458,11 @@ class BatchGetImageResponse { factory BatchGetImageResponse.fromJson(Map json) { return BatchGetImageResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageFailure.fromJson(e as Map)) .toList(), images: (json['images'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Image.fromJson(e as Map)) .toList(), ); @@ -2485,12 +2485,12 @@ class BatchGetRepositoryScanningConfigurationResponse { Map json) { return BatchGetRepositoryScanningConfigurationResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryScanningConfigurationFailure.fromJson( e as Map)) .toList(), scanningConfigurations: (json['scanningConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryScanningConfiguration.fromJson( e as Map)) .toList(), @@ -2673,7 +2673,7 @@ class CvssScoreDetails { factory CvssScoreDetails.fromJson(Map json) { return CvssScoreDetails( adjustments: (json['adjustments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CvssScoreAdjustment.fromJson(e as Map)) .toList(), score: json['score'] as double?, @@ -2835,7 +2835,7 @@ class DescribeImageReplicationStatusResponse { ? ImageIdentifier.fromJson(json['imageId'] as Map) : null, replicationStatuses: (json['replicationStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ImageReplicationStatus.fromJson(e as Map)) .toList(), @@ -2934,7 +2934,7 @@ class DescribeImagesResponse { factory DescribeImagesResponse.fromJson(Map json) { return DescribeImagesResponse( imageDetails: (json['imageDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2963,7 +2963,7 @@ class DescribePullThroughCacheRulesResponse { return DescribePullThroughCacheRulesResponse( nextToken: json['nextToken'] as String?, pullThroughCacheRules: (json['pullThroughCacheRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PullThroughCacheRule.fromJson(e as Map)) .toList(), ); @@ -3013,7 +3013,7 @@ class DescribeRepositoriesResponse { return DescribeRepositoriesResponse( nextToken: json['nextToken'] as String?, repositories: (json['repositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Repository.fromJson(e as Map)) .toList(), ); @@ -3186,7 +3186,7 @@ class EnhancedImageScanFinding { ? Remediation.fromJson(json['remediation'] as Map) : null, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), score: json['score'] as double?, @@ -3233,7 +3233,7 @@ class GetAuthorizationTokenResponse { factory GetAuthorizationTokenResponse.fromJson(Map json) { return GetAuthorizationTokenResponse( authorizationData: (json['authorizationData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorizationData.fromJson(e as Map)) .toList(), ); @@ -3303,7 +3303,7 @@ class GetLifecyclePolicyPreviewResponse { lifecyclePolicyText: json['lifecyclePolicyText'] as String?, nextToken: json['nextToken'] as String?, previewResults: (json['previewResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecyclePolicyPreviewResult.fromJson(e as Map)) .toList(), @@ -3559,7 +3559,7 @@ class ImageDetail { : null, imageSizeInBytes: json['imageSizeInBytes'] as int?, imageTags: (json['imageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastRecordedPullTime: timeStampFromJson(json['lastRecordedPullTime']), @@ -3712,7 +3712,7 @@ class ImageScanFinding { factory ImageScanFinding.fromJson(Map json) { return ImageScanFinding( attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), description: json['description'] as String?, @@ -3751,7 +3751,7 @@ class ImageScanFindings { factory ImageScanFindings.fromJson(Map json) { return ImageScanFindings( enhancedFindings: (json['enhancedFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnhancedImageScanFinding.fromJson(e as Map)) .toList(), @@ -3759,7 +3759,7 @@ class ImageScanFindings { as Map?) ?.map((k, e) => MapEntry(FindingSeverity.fromString(k), e as int)), findings: (json['findings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageScanFinding.fromJson(e as Map)) .toList(), imageScanCompletedAt: timeStampFromJson(json['imageScanCompletedAt']), @@ -4028,7 +4028,7 @@ class LifecyclePolicyPreviewResult { imageDigest: json['imageDigest'] as String?, imagePushedAt: timeStampFromJson(json['imagePushedAt']), imageTags: (json['imageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4122,7 +4122,7 @@ class ListImagesResponse { factory ListImagesResponse.fromJson(Map json) { return ListImagesResponse( imageIds: (json['imageIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageIdentifier.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4141,7 +4141,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4198,15 +4198,15 @@ class PackageVulnerabilityDetails { factory PackageVulnerabilityDetails.fromJson(Map json) { return PackageVulnerabilityDetails( cvss: (json['cvss'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CvssScore.fromJson(e as Map)) .toList(), referenceUrls: (json['referenceUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), relatedVulnerabilities: (json['relatedVulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), source: json['source'] as String?, @@ -4216,7 +4216,7 @@ class PackageVulnerabilityDetails { vendorUpdatedAt: timeStampFromJson(json['vendorUpdatedAt']), vulnerabilityId: json['vulnerabilityId'] as String?, vulnerablePackages: (json['vulnerablePackages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VulnerablePackage.fromJson(e as Map)) .toList(), ); @@ -4468,7 +4468,7 @@ class RegistryScanningConfiguration { factory RegistryScanningConfiguration.fromJson(Map json) { return RegistryScanningConfiguration( rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegistryScanningRule.fromJson(e as Map)) .toList(), scanType: (json['scanType'] as String?)?.let(ScanType.fromString), @@ -4498,7 +4498,7 @@ class RegistryScanningRule { factory RegistryScanningRule.fromJson(Map json) { return RegistryScanningRule( repositoryFilters: (json['repositoryFilters'] as List) - .whereNotNull() + .nonNulls .map((e) => ScanningRepositoryFilter.fromJson(e as Map)) .toList(), @@ -4550,7 +4550,7 @@ class ReplicationConfiguration { factory ReplicationConfiguration.fromJson(Map json) { return ReplicationConfiguration( rules: (json['rules'] as List) - .whereNotNull() + .nonNulls .map((e) => ReplicationRule.fromJson(e as Map)) .toList(), ); @@ -4615,12 +4615,12 @@ class ReplicationRule { factory ReplicationRule.fromJson(Map json) { return ReplicationRule( destinations: (json['destinations'] as List) - .whereNotNull() + .nonNulls .map( (e) => ReplicationDestination.fromJson(e as Map)) .toList(), repositoryFilters: (json['repositoryFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RepositoryFilter.fromJson(e as Map)) .toList(), ); @@ -4796,7 +4796,7 @@ class RepositoryScanningConfiguration { factory RepositoryScanningConfiguration.fromJson(Map json) { return RepositoryScanningConfiguration( appliedScanFilters: (json['appliedScanFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScanningRepositoryFilter.fromJson(e as Map)) .toList(), diff --git a/generated/aws_ecr_api/pubspec.yaml b/generated/aws_ecr_api/pubspec.yaml index fddc1a863..9e03991a0 100644 --- a/generated/aws_ecr_api/pubspec.yaml +++ b/generated/aws_ecr_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_ecr_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_ecs_api/lib/ecs-2014-11-13.dart b/generated/aws_ecs_api/lib/ecs-2014-11-13.dart index 9f6373a0e..8066e023f 100644 --- a/generated/aws_ecs_api/lib/ecs-2014-11-13.dart +++ b/generated/aws_ecs_api/lib/ecs-2014-11-13.dart @@ -5891,7 +5891,7 @@ class Attachment { factory Attachment.fromJson(Map json) { return Attachment( details: (json['details'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), id: json['id'] as String?, @@ -6132,14 +6132,12 @@ class AwsVpcConfiguration { factory AwsVpcConfiguration.fromJson(Map json) { return AwsVpcConfiguration( - subnets: (json['subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['subnets'] as List).nonNulls.map((e) => e as String).toList(), assignPublicIp: (json['assignPublicIp'] as String?)?.let(AssignPublicIp.fromString), securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6265,7 +6263,7 @@ class CapacityProvider { status: (json['status'] as String?)?.let(CapacityProviderStatus.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), updateStatus: (json['updateStatus'] as String?) @@ -6601,12 +6599,12 @@ class Cluster { return Cluster( activeServicesCount: json['activeServicesCount'] as int?, attachments: (json['attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attachment.fromJson(e as Map)) .toList(), attachmentsStatus: json['attachmentsStatus'] as String?, capacityProviders: (json['capacityProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clusterArn: json['clusterArn'] as String?, @@ -6617,7 +6615,7 @@ class Cluster { : null, defaultCapacityProviderStrategy: (json['defaultCapacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -6630,16 +6628,16 @@ class Cluster { json['serviceConnectDefaults'] as Map) : null, settings: (json['settings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterSetting.fromJson(e as Map)) .toList(), statistics: (json['statistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), status: json['status'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6952,28 +6950,26 @@ class Container { containerArn: json['containerArn'] as String?, cpu: json['cpu'] as String?, exitCode: json['exitCode'] as int?, - gpuIds: (json['gpuIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + gpuIds: + (json['gpuIds'] as List?)?.nonNulls.map((e) => e as String).toList(), healthStatus: (json['healthStatus'] as String?)?.let(HealthStatus.fromString), image: json['image'] as String?, imageDigest: json['imageDigest'] as String?, lastStatus: json['lastStatus'] as String?, managedAgents: (json['managedAgents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedAgent.fromJson(e as Map)) .toList(), memory: json['memory'] as String?, memoryReservation: json['memoryReservation'] as String?, name: json['name'] as String?, networkBindings: (json['networkBindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkBinding.fromJson(e as Map)) .toList(), networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), reason: json['reason'] as String?, @@ -7901,49 +7897,47 @@ class ContainerDefinition { factory ContainerDefinition.fromJson(Map json) { return ContainerDefinition( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), cpu: json['cpu'] as int?, credentialSpecs: (json['credentialSpecs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dependsOn: (json['dependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerDependency.fromJson(e as Map)) .toList(), disableNetworking: json['disableNetworking'] as bool?, dnsSearchDomains: (json['dnsSearchDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dnsServers: (json['dnsServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dockerLabels: (json['dockerLabels'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), dockerSecurityOptions: (json['dockerSecurityOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), entryPoint: (json['entryPoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), environment: (json['environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), environmentFiles: (json['environmentFiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentFile.fromJson(e as Map)) .toList(), essential: json['essential'] as bool?, extraHosts: (json['extraHosts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HostEntry.fromJson(e as Map)) .toList(), firelensConfiguration: json['firelensConfiguration'] != null @@ -7956,10 +7950,8 @@ class ContainerDefinition { hostname: json['hostname'] as String?, image: json['image'] as String?, interactive: json['interactive'] as bool?, - links: (json['links'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + links: + (json['links'] as List?)?.nonNulls.map((e) => e as String).toList(), linuxParameters: json['linuxParameters'] != null ? LinuxParameters.fromJson( json['linuxParameters'] as Map) @@ -7971,12 +7963,12 @@ class ContainerDefinition { memory: json['memory'] as int?, memoryReservation: json['memoryReservation'] as int?, mountPoints: (json['mountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MountPoint.fromJson(e as Map)) .toList(), name: json['name'] as String?, portMappings: (json['portMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortMapping.fromJson(e as Map)) .toList(), privileged: json['privileged'] as bool?, @@ -7987,26 +7979,26 @@ class ContainerDefinition { json['repositoryCredentials'] as Map) : null, resourceRequirements: (json['resourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceRequirement.fromJson(e as Map)) .toList(), secrets: (json['secrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), startTimeout: json['startTimeout'] as int?, stopTimeout: json['stopTimeout'] as int?, systemControls: (json['systemControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SystemControl.fromJson(e as Map)) .toList(), ulimits: (json['ulimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ulimit.fromJson(e as Map)) .toList(), user: json['user'] as String?, volumesFrom: (json['volumesFrom'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeFrom.fromJson(e as Map)) .toList(), workingDirectory: json['workingDirectory'] as String?, @@ -8370,11 +8362,11 @@ class ContainerInstance { agentUpdateStatus: (json['agentUpdateStatus'] as String?) ?.let(AgentUpdateStatus.fromString), attachments: (json['attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attachment.fromJson(e as Map)) .toList(), attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), capacityProviderName: json['capacityProviderName'] as String?, @@ -8387,18 +8379,18 @@ class ContainerInstance { pendingTasksCount: json['pendingTasksCount'] as int?, registeredAt: timeStampFromJson(json['registeredAt']), registeredResources: (json['registeredResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), remainingResources: (json['remainingResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), runningTasksCount: json['runningTasksCount'] as int?, status: json['status'] as String?, statusReason: json['statusReason'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), version: json['version'] as int?, @@ -8442,7 +8434,7 @@ class ContainerInstanceHealthStatus { factory ContainerInstanceHealthStatus.fromJson(Map json) { return ContainerInstanceHealthStatus( details: (json['details'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceHealthCheckResult.fromJson(e as Map)) .toList(), @@ -8533,24 +8525,22 @@ class ContainerOverride { factory ContainerOverride.fromJson(Map json) { return ContainerOverride( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), cpu: json['cpu'] as int?, environment: (json['environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), environmentFiles: (json['environmentFiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentFile.fromJson(e as Map)) .toList(), memory: json['memory'] as int?, memoryReservation: json['memoryReservation'] as int?, name: json['name'] as String?, resourceRequirements: (json['resourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceRequirement.fromJson(e as Map)) .toList(), ); @@ -8747,7 +8737,7 @@ class DeleteAttributesResponse { factory DeleteAttributesResponse.fromJson(Map json) { return DeleteAttributesResponse( attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), ); @@ -8821,11 +8811,11 @@ class DeleteTaskDefinitionsResponse { factory DeleteTaskDefinitionsResponse.fromJson(Map json) { return DeleteTaskDefinitionsResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), taskDefinitions: (json['taskDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskDefinition.fromJson(e as Map)) .toList(), ); @@ -9004,7 +8994,7 @@ class Deployment { factory Deployment.fromJson(Map json) { return Deployment( capacityProviderStrategy: (json['capacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -9029,7 +9019,7 @@ class Deployment { json['serviceConnectConfiguration'] as Map) : null, serviceConnectResources: (json['serviceConnectResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceConnectServiceResource.fromJson(e as Map)) .toList(), @@ -9037,7 +9027,7 @@ class Deployment { taskDefinition: json['taskDefinition'] as String?, updatedAt: timeStampFromJson(json['updatedAt']), volumeConfigurations: (json['volumeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceVolumeConfiguration.fromJson(e as Map)) .toList(), @@ -9084,7 +9074,7 @@ class DeploymentAlarms { factory DeploymentAlarms.fromJson(Map json) { return DeploymentAlarms( alarmNames: (json['alarmNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), enable: json['enable'] as bool, @@ -9449,11 +9439,11 @@ class DescribeCapacityProvidersResponse { Map json) { return DescribeCapacityProvidersResponse( capacityProviders: (json['capacityProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProvider.fromJson(e as Map)) .toList(), failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9476,11 +9466,11 @@ class DescribeClustersResponse { factory DescribeClustersResponse.fromJson(Map json) { return DescribeClustersResponse( clusters: (json['clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cluster.fromJson(e as Map)) .toList(), failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), ); @@ -9503,11 +9493,11 @@ class DescribeContainerInstancesResponse { Map json) { return DescribeContainerInstancesResponse( containerInstances: (json['containerInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerInstance.fromJson(e as Map)) .toList(), failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), ); @@ -9529,11 +9519,11 @@ class DescribeServicesResponse { factory DescribeServicesResponse.fromJson(Map json) { return DescribeServicesResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), services: (json['services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Service.fromJson(e as Map)) .toList(), ); @@ -9591,7 +9581,7 @@ class DescribeTaskDefinitionResponse { factory DescribeTaskDefinitionResponse.fromJson(Map json) { return DescribeTaskDefinitionResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskDefinition: json['taskDefinition'] != null @@ -9617,11 +9607,11 @@ class DescribeTaskSetsResponse { factory DescribeTaskSetsResponse.fromJson(Map json) { return DescribeTaskSetsResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), taskSets: (json['taskSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskSet.fromJson(e as Map)) .toList(), ); @@ -9643,11 +9633,11 @@ class DescribeTasksResponse { factory DescribeTasksResponse.fromJson(Map json) { return DescribeTasksResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Task.fromJson(e as Map)) .toList(), ); @@ -9694,7 +9684,7 @@ class Device { hostPath: json['hostPath'] as String, containerPath: json['containerPath'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceCgroupPermission.fromString((e as String))) .toList(), ); @@ -9890,7 +9880,7 @@ class EBSTagSpecification { propagateTags: (json['propagateTags'] as String?)?.let(PropagateTags.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -10594,11 +10584,11 @@ class GetTaskProtectionResponse { factory GetTaskProtectionResponse.fromJson(Map json) { return GetTaskProtectionResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), protectedTasks: (json['protectedTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectedTask.fromJson(e as Map)) .toList(), ); @@ -10811,10 +10801,8 @@ class HealthCheck { factory HealthCheck.fromJson(Map json) { return HealthCheck( - command: (json['command'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List).nonNulls.map((e) => e as String).toList(), interval: json['interval'] as int?, retries: json['retries'] as int?, startPeriod: json['startPeriod'] as int?, @@ -11133,14 +11121,8 @@ class KernelCapabilities { factory KernelCapabilities.fromJson(Map json) { return KernelCapabilities( - add: (json['add'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - drop: (json['drop'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + add: (json['add'] as List?)?.nonNulls.map((e) => e as String).toList(), + drop: (json['drop'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -11317,7 +11299,7 @@ class LinuxParameters { json['capabilities'] as Map) : null, devices: (json['devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Device.fromJson(e as Map)) .toList(), initProcessEnabled: json['initProcessEnabled'] as bool?, @@ -11325,7 +11307,7 @@ class LinuxParameters { sharedMemorySize: json['sharedMemorySize'] as int?, swappiness: json['swappiness'] as int?, tmpfs: (json['tmpfs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tmpfs.fromJson(e as Map)) .toList(), ); @@ -11371,7 +11353,7 @@ class ListAccountSettingsResponse { return ListAccountSettingsResponse( nextToken: json['nextToken'] as String?, settings: (json['settings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Setting.fromJson(e as Map)) .toList(), ); @@ -11397,7 +11379,7 @@ class ListAttributesResponse { factory ListAttributesResponse.fromJson(Map json) { return ListAttributesResponse( attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -11425,7 +11407,7 @@ class ListClustersResponse { factory ListClustersResponse.fromJson(Map json) { return ListClustersResponse( clusterArns: (json['clusterArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -11453,7 +11435,7 @@ class ListContainerInstancesResponse { factory ListContainerInstancesResponse.fromJson(Map json) { return ListContainerInstancesResponse( containerInstanceArns: (json['containerInstanceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -11482,7 +11464,7 @@ class ListServicesByNamespaceResponse { return ListServicesByNamespaceResponse( nextToken: json['nextToken'] as String?, serviceArns: (json['serviceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11510,7 +11492,7 @@ class ListServicesResponse { return ListServicesResponse( nextToken: json['nextToken'] as String?, serviceArns: (json['serviceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11528,7 +11510,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11557,7 +11539,7 @@ class ListTaskDefinitionFamiliesResponse { Map json) { return ListTaskDefinitionFamiliesResponse( families: (json['families'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -11586,7 +11568,7 @@ class ListTaskDefinitionsResponse { return ListTaskDefinitionsResponse( nextToken: json['nextToken'] as String?, taskDefinitionArns: (json['taskDefinitionArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11613,7 +11595,7 @@ class ListTasksResponse { return ListTasksResponse( nextToken: json['nextToken'] as String?, taskArns: (json['taskArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11828,7 +11810,7 @@ class LogConfiguration { options: (json['options'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), secretOptions: (json['secretOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Secret.fromJson(e as Map)) .toList(), ); @@ -12884,7 +12866,7 @@ class ProxyConfiguration { return ProxyConfiguration( containerName: json['containerName'] as String, properties: (json['properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), type: (json['type'] as String?)?.let(ProxyConfigurationType.fromString), @@ -12962,7 +12944,7 @@ class PutAttributesResponse { factory PutAttributesResponse.fromJson(Map json) { return PutAttributesResponse( attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), ); @@ -13021,7 +13003,7 @@ class RegisterTaskDefinitionResponse { factory RegisterTaskDefinitionResponse.fromJson(Map json) { return RegisterTaskDefinitionResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskDefinition: json['taskDefinition'] != null @@ -13105,7 +13087,7 @@ class Resource { longValue: json['longValue'] as int?, name: json['name'] as String?, stringSetValue: (json['stringSetValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: json['type'] as String?, @@ -13218,11 +13200,11 @@ class RunTaskResponse { factory RunTaskResponse.fromJson(Map json) { return RunTaskResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Task.fromJson(e as Map)) .toList(), ); @@ -13647,7 +13629,7 @@ class Service { factory Service.fromJson(Map json) { return Service( capacityProviderStrategy: (json['capacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -13663,21 +13645,21 @@ class Service { json['deploymentController'] as Map) : null, deployments: (json['deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Deployment.fromJson(e as Map)) .toList(), desiredCount: json['desiredCount'] as int?, enableECSManagedTags: json['enableECSManagedTags'] as bool?, enableExecuteCommand: json['enableExecuteCommand'] as bool?, events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceEvent.fromJson(e as Map)) .toList(), healthCheckGracePeriodSeconds: json['healthCheckGracePeriodSeconds'] as int?, launchType: (json['launchType'] as String?)?.let(LaunchType.fromString), loadBalancers: (json['loadBalancers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancer.fromJson(e as Map)) .toList(), networkConfiguration: json['networkConfiguration'] != null @@ -13686,11 +13668,11 @@ class Service { : null, pendingCount: json['pendingCount'] as int?, placementConstraints: (json['placementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementConstraint.fromJson(e as Map)) .toList(), placementStrategy: (json['placementStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementStrategy.fromJson(e as Map)) .toList(), platformFamily: json['platformFamily'] as String?, @@ -13704,17 +13686,17 @@ class Service { serviceArn: json['serviceArn'] as String?, serviceName: json['serviceName'] as String?, serviceRegistries: (json['serviceRegistries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceRegistry.fromJson(e as Map)) .toList(), status: json['status'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskDefinition: json['taskDefinition'] as String?, taskSets: (json['taskSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskSet.fromJson(e as Map)) .toList(), ); @@ -13844,7 +13826,7 @@ class ServiceConnectConfiguration { : null, namespace: json['namespace'] as String?, services: (json['services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceConnectService.fromJson(e as Map)) .toList(), ); @@ -13931,7 +13913,7 @@ class ServiceConnectService { return ServiceConnectService( portName: json['portName'] as String, clientAliases: (json['clientAliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceConnectClientAlias.fromJson(e as Map)) .toList(), @@ -14297,7 +14279,7 @@ class ServiceManagedEBSVolumeConfiguration { sizeInGiB: json['sizeInGiB'] as int?, snapshotId: json['snapshotId'] as String?, tagSpecifications: (json['tagSpecifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EBSTagSpecification.fromJson(e as Map)) .toList(), throughput: json['throughput'] as int?, @@ -14589,11 +14571,11 @@ class StartTaskResponse { factory StartTaskResponse.fromJson(Map json) { return StartTaskResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Task.fromJson(e as Map)) .toList(), ); @@ -15183,11 +15165,11 @@ class Task { factory Task.fromJson(Map json) { return Task( attachments: (json['attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attachment.fromJson(e as Map)) .toList(), attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), availabilityZone: json['availabilityZone'] as String?, @@ -15198,7 +15180,7 @@ class Task { connectivityAt: timeStampFromJson(json['connectivityAt']), containerInstanceArn: json['containerInstanceArn'] as String?, containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Container.fromJson(e as Map)) .toList(), cpu: json['cpu'] as String?, @@ -15214,7 +15196,7 @@ class Task { healthStatus: (json['healthStatus'] as String?)?.let(HealthStatus.fromString), inferenceAccelerators: (json['inferenceAccelerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceAccelerator.fromJson(e as Map)) .toList(), lastStatus: json['lastStatus'] as String?, @@ -15234,7 +15216,7 @@ class Task { stoppedReason: json['stoppedReason'] as String?, stoppingAt: timeStampFromJson(json['stoppingAt']), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskArn: json['taskArn'] as String?, @@ -15627,11 +15609,11 @@ class TaskDefinition { factory TaskDefinition.fromJson(Map json) { return TaskDefinition( compatibilities: (json['compatibilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Compatibility.fromString((e as String))) .toList(), containerDefinitions: (json['containerDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerDefinition.fromJson(e as Map)) .toList(), cpu: json['cpu'] as String?, @@ -15643,7 +15625,7 @@ class TaskDefinition { executionRoleArn: json['executionRoleArn'] as String?, family: json['family'] as String?, inferenceAccelerators: (json['inferenceAccelerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceAccelerator.fromJson(e as Map)) .toList(), ipcMode: (json['ipcMode'] as String?)?.let(IpcMode.fromString), @@ -15652,7 +15634,7 @@ class TaskDefinition { (json['networkMode'] as String?)?.let(NetworkMode.fromString), pidMode: (json['pidMode'] as String?)?.let(PidMode.fromString), placementConstraints: (json['placementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskDefinitionPlacementConstraint.fromJson( e as Map)) .toList(), @@ -15663,11 +15645,11 @@ class TaskDefinition { registeredAt: timeStampFromJson(json['registeredAt']), registeredBy: json['registeredBy'] as String?, requiresAttributes: (json['requiresAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), requiresCompatibilities: (json['requiresCompatibilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Compatibility.fromString((e as String))) .toList(), revision: json['revision'] as int?, @@ -15679,7 +15661,7 @@ class TaskDefinition { taskDefinitionArn: json['taskDefinitionArn'] as String?, taskRoleArn: json['taskRoleArn'] as String?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -16102,7 +16084,7 @@ class TaskOverride { factory TaskOverride.fromJson(Map json) { return TaskOverride( containerOverrides: (json['containerOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerOverride.fromJson(e as Map)) .toList(), cpu: json['cpu'] as String?, @@ -16113,7 +16095,7 @@ class TaskOverride { executionRoleArn: json['executionRoleArn'] as String?, inferenceAcceleratorOverrides: (json['inferenceAcceleratorOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceAcceleratorOverride.fromJson(e as Map)) .toList(), @@ -16353,7 +16335,7 @@ class TaskSet { factory TaskSet.fromJson(Map json) { return TaskSet( capacityProviderStrategy: (json['capacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -16364,7 +16346,7 @@ class TaskSet { id: json['id'] as String?, launchType: (json['launchType'] as String?)?.let(LaunchType.fromString), loadBalancers: (json['loadBalancers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancer.fromJson(e as Map)) .toList(), networkConfiguration: json['networkConfiguration'] != null @@ -16380,7 +16362,7 @@ class TaskSet { : null, serviceArn: json['serviceArn'] as String?, serviceRegistries: (json['serviceRegistries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceRegistry.fromJson(e as Map)) .toList(), stabilityStatus: @@ -16389,7 +16371,7 @@ class TaskSet { startedBy: json['startedBy'] as String?, status: json['status'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskDefinition: json['taskDefinition'] as String?, @@ -16539,7 +16521,7 @@ class Tmpfs { containerPath: json['containerPath'] as String, size: json['size'] as int, mountOptions: (json['mountOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -16740,11 +16722,11 @@ class UpdateContainerInstancesStateResponse { Map json) { return UpdateContainerInstancesStateResponse( containerInstances: (json['containerInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerInstance.fromJson(e as Map)) .toList(), failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), ); @@ -16816,11 +16798,11 @@ class UpdateTaskProtectionResponse { factory UpdateTaskProtectionResponse.fromJson(Map json) { return UpdateTaskProtectionResponse( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Failure.fromJson(e as Map)) .toList(), protectedTasks: (json['protectedTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectedTask.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_ecs_api/pubspec.yaml b/generated/aws_ecs_api/pubspec.yaml index a20cb960d..5468ce6a1 100644 --- a/generated/aws_ecs_api/pubspec.yaml +++ b/generated/aws_ecs_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_ecs_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_efs_api/lib/elasticfilesystem-2015-02-01.dart b/generated/aws_efs_api/lib/elasticfilesystem-2015-02-01.dart index 3d186ecbc..f7c4eeaf5 100644 --- a/generated/aws_efs_api/lib/elasticfilesystem-2015-02-01.dart +++ b/generated/aws_efs_api/lib/elasticfilesystem-2015-02-01.dart @@ -2084,7 +2084,7 @@ class AccessPointDescription { json['RootDirectory'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2228,7 +2228,7 @@ class DescribeAccessPointsResponse { factory DescribeAccessPointsResponse.fromJson(Map json) { return DescribeAccessPointsResponse( accessPoints: (json['AccessPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AccessPointDescription.fromJson(e as Map)) .toList(), @@ -2286,7 +2286,7 @@ class DescribeFileSystemsResponse { factory DescribeFileSystemsResponse.fromJson(Map json) { return DescribeFileSystemsResponse( fileSystems: (json['FileSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemDescription.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -2307,7 +2307,7 @@ class DescribeMountTargetSecurityGroupsResponse { Map json) { return DescribeMountTargetSecurityGroupsResponse( securityGroups: (json['SecurityGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -2339,7 +2339,7 @@ class DescribeMountTargetsResponse { return DescribeMountTargetsResponse( marker: json['Marker'] as String?, mountTargets: (json['MountTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MountTargetDescription.fromJson(e as Map)) .toList(), @@ -2366,7 +2366,7 @@ class DescribeReplicationConfigurationsResponse { return DescribeReplicationConfigurationsResponse( nextToken: json['NextToken'] as String?, replications: (json['Replications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationConfigurationDescription.fromJson( e as Map)) .toList(), @@ -2399,7 +2399,7 @@ class DescribeTagsResponse { factory DescribeTagsResponse.fromJson(Map json) { return DescribeTagsResponse( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -2652,7 +2652,7 @@ class FileSystemDescription { sizeInBytes: FileSystemSize.fromJson(json['SizeInBytes'] as Map), tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), availabilityZoneId: json['AvailabilityZoneId'] as String?, @@ -2812,7 +2812,7 @@ class LifecycleConfigurationDescription { Map json) { return LifecycleConfigurationDescription( lifecyclePolicies: (json['LifecyclePolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecyclePolicy.fromJson(e as Map)) .toList(), ); @@ -2903,7 +2903,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3022,7 +3022,7 @@ class PosixUser { gid: json['Gid'] as int, uid: json['Uid'] as int, secondaryGids: (json['SecondaryGids'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -3095,7 +3095,7 @@ class ReplicationConfigurationDescription { creationTime: nonNullableTimeStampFromJson(json['CreationTime'] as Object), destinations: (json['Destinations'] as List) - .whereNotNull() + .nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), originalSourceFileSystemArn: @@ -3178,7 +3178,7 @@ class ResourceIdPreference { resourceIdType: (json['ResourceIdType'] as String?)?.let(ResourceIdType.fromString), resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromString((e as String))) .toList(), ); diff --git a/generated/aws_efs_api/pubspec.yaml b/generated/aws_efs_api/pubspec.yaml index 0a996d45f..3ae8bea62 100644 --- a/generated/aws_efs_api/pubspec.yaml +++ b/generated/aws_efs_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_efs_ap protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_eks_api/lib/eks-2017-11-01.dart b/generated/aws_eks_api/lib/eks-2017-11-01.dart index f950fa2f5..67e61adf7 100644 --- a/generated/aws_eks_api/lib/eks-2017-11-01.dart +++ b/generated/aws_eks_api/lib/eks-2017-11-01.dart @@ -3459,7 +3459,7 @@ class AccessEntry { clusterName: json['clusterName'] as String?, createdAt: timeStampFromJson(json['createdAt']), kubernetesGroups: (json['kubernetesGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), modifiedAt: timeStampFromJson(json['modifiedAt']), @@ -3523,7 +3523,7 @@ class AccessScope { factory AccessScope.fromJson(Map json) { return AccessScope( namespaces: (json['namespaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(AccessScopeType.fromString), @@ -3651,7 +3651,7 @@ class Addon { modifiedAt: timeStampFromJson(json['modifiedAt']), owner: json['owner'] as String?, podIdentityAssociations: (json['podIdentityAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), publisher: json['publisher'] as String?, @@ -3675,7 +3675,7 @@ class AddonHealth { factory AddonHealth.fromJson(Map json) { return AddonHealth( issues: (json['issues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddonIssue.fromJson(e as Map)) .toList(), ); @@ -3716,7 +3716,7 @@ class AddonInfo { return AddonInfo( addonName: json['addonName'] as String?, addonVersions: (json['addonVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddonVersionInfo.fromJson(e as Map)) .toList(), marketplaceInformation: json['marketplaceInformation'] != null @@ -3752,7 +3752,7 @@ class AddonIssue { code: (json['code'] as String?)?.let(AddonIssueCode.fromString), message: json['message'] as String?, resourceIds: (json['resourceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3829,7 +3829,7 @@ class AddonPodIdentityConfiguration { factory AddonPodIdentityConfiguration.fromJson(Map json) { return AddonPodIdentityConfiguration( recommendedManagedPolicies: (json['recommendedManagedPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serviceAccount: json['serviceAccount'] as String?, @@ -3887,11 +3887,11 @@ class AddonVersionInfo { return AddonVersionInfo( addonVersion: json['addonVersion'] as String?, architecture: (json['architecture'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), compatibilities: (json['compatibilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Compatibility.fromJson(e as Map)) .toList(), requiresConfiguration: json['requiresConfiguration'] as bool?, @@ -4239,7 +4239,7 @@ class Cluster { : null, createdAt: timeStampFromJson(json['createdAt']), encryptionConfig: (json['encryptionConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EncryptionConfig.fromJson(e as Map)) .toList(), endpoint: json['endpoint'] as String?, @@ -4288,7 +4288,7 @@ class ClusterHealth { factory ClusterHealth.fromJson(Map json) { return ClusterHealth( issues: (json['issues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterIssue.fromJson(e as Map)) .toList(), ); @@ -4317,7 +4317,7 @@ class ClusterIssue { code: (json['code'] as String?)?.let(ClusterIssueCode.fromString), message: json['message'] as String?, resourceIds: (json['resourceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4397,7 +4397,7 @@ class Compatibility { clusterVersion: json['clusterVersion'] as String?, defaultVersion: json['defaultVersion'] as bool?, platformVersions: (json['platformVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4833,7 +4833,7 @@ class DeprecationDetail { factory DeprecationDetail.fromJson(Map json) { return DeprecationDetail( clientStats: (json['clientStats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClientStat.fromJson(e as Map)) .toList(), replacedWith: json['replacedWith'] as String?, @@ -4910,7 +4910,7 @@ class DescribeAddonConfigurationResponse { addonVersion: json['addonVersion'] as String?, configurationSchema: json['configurationSchema'] as String?, podIdentityConfiguration: (json['podIdentityConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddonPodIdentityConfiguration.fromJson(e as Map)) .toList(), @@ -4958,7 +4958,7 @@ class DescribeAddonVersionsResponse { factory DescribeAddonVersionsResponse.fromJson(Map json) { return DescribeAddonVersionsResponse( addons: (json['addons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddonInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5206,7 +5206,7 @@ class EksAnywhereSubscription { expirationDate: timeStampFromJson(json['expirationDate']), id: json['id'] as String?, licenseArns: (json['licenseArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), licenseQuantity: json['licenseQuantity'] as int?, @@ -5325,7 +5325,7 @@ class EncryptionConfig { ? Provider.fromJson(json['provider'] as Map) : null, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5422,7 +5422,7 @@ class ErrorDetail { errorCode: (json['errorCode'] as String?)?.let(ErrorCode.fromString), errorMessage: json['errorMessage'] as String?, resourceIds: (json['resourceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5484,15 +5484,13 @@ class FargateProfile { fargateProfileName: json['fargateProfileName'] as String?, podExecutionRoleArn: json['podExecutionRoleArn'] as String?, selectors: (json['selectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FargateProfileSelector.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(FargateProfileStatus.fromString), - subnets: (json['subnets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), ); @@ -5699,7 +5697,7 @@ class Insight { name: json['name'] as String?, recommendation: json['recommendation'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightResourceDetail.fromJson(e as Map)) .toList(), ); @@ -5721,7 +5719,7 @@ class InsightCategorySpecificSummary { factory InsightCategorySpecificSummary.fromJson(Map json) { return InsightCategorySpecificSummary( deprecationDetails: (json['deprecationDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeprecationDetail.fromJson(e as Map)) .toList(), ); @@ -6001,7 +5999,7 @@ class Issue { code: (json['code'] as String?)?.let(NodegroupIssueCode.fromString), message: json['message'] as String?, resourceIds: (json['resourceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6202,7 +6200,7 @@ class ListAccessEntriesResponse { factory ListAccessEntriesResponse.fromJson(Map json) { return ListAccessEntriesResponse( accessEntries: (json['accessEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -6236,7 +6234,7 @@ class ListAccessPoliciesResponse { factory ListAccessPoliciesResponse.fromJson(Map json) { return ListAccessPoliciesResponse( accessPolicies: (json['accessPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessPolicy.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6266,10 +6264,8 @@ class ListAddonsResponse { factory ListAddonsResponse.fromJson(Map json) { return ListAddonsResponse( - addons: (json['addons'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + addons: + (json['addons'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -6307,7 +6303,7 @@ class ListAssociatedAccessPoliciesResponse { Map json) { return ListAssociatedAccessPoliciesResponse( associatedAccessPolicies: (json['associatedAccessPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AssociatedAccessPolicy.fromJson(e as Map)) .toList(), @@ -6342,7 +6338,7 @@ class ListClustersResponse { factory ListClustersResponse.fromJson(Map json) { return ListClustersResponse( clusters: (json['clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -6371,7 +6367,7 @@ class ListEksAnywhereSubscriptionsResponse { return ListEksAnywhereSubscriptionsResponse( nextToken: json['nextToken'] as String?, subscriptions: (json['subscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EksAnywhereSubscription.fromJson(e as Map)) .toList(), @@ -6402,7 +6398,7 @@ class ListFargateProfilesResponse { factory ListFargateProfilesResponse.fromJson(Map json) { return ListFargateProfilesResponse( fargateProfileNames: (json['fargateProfileNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -6435,7 +6431,7 @@ class ListIdentityProviderConfigsResponse { Map json) { return ListIdentityProviderConfigsResponse( identityProviderConfigs: (json['identityProviderConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => IdentityProviderConfig.fromJson(e as Map)) .toList(), @@ -6463,7 +6459,7 @@ class ListInsightsResponse { factory ListInsightsResponse.fromJson(Map json) { return ListInsightsResponse( insights: (json['insights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6495,7 +6491,7 @@ class ListNodegroupsResponse { return ListNodegroupsResponse( nextToken: json['nextToken'] as String?, nodegroups: (json['nodegroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6547,7 +6543,7 @@ class ListPodIdentityAssociationsResponse { Map json) { return ListPodIdentityAssociationsResponse( associations: (json['associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PodIdentityAssociationSummary.fromJson(e as Map)) .toList(), @@ -6596,7 +6592,7 @@ class ListUpdatesResponse { return ListUpdatesResponse( nextToken: json['nextToken'] as String?, updateIds: (json['updateIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6624,7 +6620,7 @@ class LogSetup { return LogSetup( enabled: json['enabled'] as bool?, types: (json['types'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogType.fromString((e as String))) .toList(), ); @@ -6670,7 +6666,7 @@ class Logging { factory Logging.fromJson(Map json) { return Logging( clusterLogging: (json['clusterLogging'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogSetup.fromJson(e as Map)) .toList(), ); @@ -6849,7 +6845,7 @@ class Nodegroup { ? NodegroupHealth.fromJson(json['health'] as Map) : null, instanceTypes: (json['instanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), labels: (json['labels'] as Map?) @@ -6876,14 +6872,12 @@ class Nodegroup { json['scalingConfig'] as Map) : null, status: (json['status'] as String?)?.let(NodegroupStatus.fromString), - subnets: (json['subnets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), taints: (json['taints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Taint.fromJson(e as Map)) .toList(), updateConfig: json['updateConfig'] != null @@ -6907,7 +6901,7 @@ class NodegroupHealth { factory NodegroupHealth.fromJson(Map json) { return NodegroupHealth( issues: (json['issues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Issue.fromJson(e as Map)) .toList(), ); @@ -6983,7 +6977,7 @@ class NodegroupResources { factory NodegroupResources.fromJson(Map json) { return NodegroupResources( autoScalingGroups: (json['autoScalingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoScalingGroup.fromJson(e as Map)) .toList(), remoteAccessSecurityGroup: json['remoteAccessSecurityGroup'] as String?, @@ -7382,7 +7376,7 @@ class OutpostConfigResponse { return OutpostConfigResponse( controlPlaneInstanceType: json['controlPlaneInstanceType'] as String, outpostArns: (json['outpostArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), controlPlanePlacement: json['controlPlanePlacement'] != null @@ -7641,7 +7635,7 @@ class RemoteAccessConfig { return RemoteAccessConfig( ec2SshKey: json['ec2SshKey'] as String?, sourceSecurityGroups: (json['sourceSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7778,12 +7772,12 @@ class Update { return Update( createdAt: timeStampFromJson(json['createdAt']), errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetail.fromJson(e as Map)) .toList(), id: json['id'] as String?, params: (json['params'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateParam.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(UpdateStatus.fromString), @@ -8231,15 +8225,15 @@ class VpcConfigResponse { endpointPrivateAccess: json['endpointPrivateAccess'] as bool?, endpointPublicAccess: json['endpointPublicAccess'] as bool?, publicAccessCidrs: (json['publicAccessCidrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, diff --git a/generated/aws_eks_api/pubspec.yaml b/generated/aws_eks_api/pubspec.yaml index 686c7aa68..586019a1a 100644 --- a/generated/aws_eks_api/pubspec.yaml +++ b/generated/aws_eks_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_eks_ap protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_elastic_inference_api/lib/elastic-inference-2017-07-25.dart b/generated/aws_elastic_inference_api/lib/elastic-inference-2017-07-25.dart index 630b947a8..cb87fbcfb 100644 --- a/generated/aws_elastic_inference_api/lib/elastic-inference-2017-07-25.dart +++ b/generated/aws_elastic_inference_api/lib/elastic-inference-2017-07-25.dart @@ -311,7 +311,7 @@ class AcceleratorType { ? MemoryInfo.fromJson(json['memoryInfo'] as Map) : null, throughputInfo: (json['throughputInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), ); @@ -363,7 +363,7 @@ class DescribeAcceleratorOfferingsResponse { Map json) { return DescribeAcceleratorOfferingsResponse( acceleratorTypeOfferings: (json['acceleratorTypeOfferings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AcceleratorTypeOffering.fromJson(e as Map)) .toList(), @@ -382,7 +382,7 @@ class DescribeAcceleratorTypesResponse { factory DescribeAcceleratorTypesResponse.fromJson(Map json) { return DescribeAcceleratorTypesResponse( acceleratorTypes: (json['acceleratorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AcceleratorType.fromJson(e as Map)) .toList(), ); @@ -405,7 +405,7 @@ class DescribeAcceleratorsResponse { factory DescribeAcceleratorsResponse.fromJson(Map json) { return DescribeAcceleratorsResponse( acceleratorSet: (json['acceleratorSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ElasticInferenceAccelerator.fromJson(e as Map)) .toList(), diff --git a/generated/aws_elastic_inference_api/pubspec.yaml b/generated/aws_elastic_inference_api/pubspec.yaml index cbcaa7b3c..d58e85b75 100644 --- a/generated/aws_elastic_inference_api/pubspec.yaml +++ b/generated/aws_elastic_inference_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_elasti protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_elasticache_api/pubspec.yaml b/generated/aws_elasticache_api/pubspec.yaml index ad0879142..4f37ed9a5 100644 --- a/generated/aws_elasticache_api/pubspec.yaml +++ b/generated/aws_elasticache_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_elasti protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_elasticbeanstalk_api/pubspec.yaml b/generated/aws_elasticbeanstalk_api/pubspec.yaml index e307591b5..3b0ceeb21 100644 --- a/generated/aws_elasticbeanstalk_api/pubspec.yaml +++ b/generated/aws_elasticbeanstalk_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_elasti protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_elastictranscoder_api/lib/elastictranscoder-2012-09-25.dart b/generated/aws_elastictranscoder_api/lib/elastictranscoder-2012-09-25.dart index c17d89ac5..1f75b06ca 100644 --- a/generated/aws_elastictranscoder_api/lib/elastictranscoder-2012-09-25.dart +++ b/generated/aws_elastictranscoder_api/lib/elastictranscoder-2012-09-25.dart @@ -2001,11 +2001,11 @@ class Captions { factory Captions.fromJson(Map json) { return Captions( captionFormats: (json['CaptionFormats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionFormat.fromJson(e as Map)) .toList(), captionSources: (json['CaptionSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionSource.fromJson(e as Map)) .toList(), mergePolicy: json['MergePolicy'] as String?, @@ -2404,7 +2404,7 @@ class CreatePipelineResponse { ? Pipeline.fromJson(json['Pipeline'] as Map) : null, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -2749,7 +2749,7 @@ class InputCaptions { factory InputCaptions.fromJson(Map json) { return InputCaptions( captionSources: (json['CaptionSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionSource.fromJson(e as Map)) .toList(), mergePolicy: json['MergePolicy'] as String?, @@ -2884,7 +2884,7 @@ class Job { ? JobInput.fromJson(json['Input'] as Map) : null, inputs: (json['Inputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobInput.fromJson(e as Map)) .toList(), output: json['Output'] != null @@ -2892,12 +2892,12 @@ class Job { : null, outputKeyPrefix: json['OutputKeyPrefix'] as String?, outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobOutput.fromJson(e as Map)) .toList(), pipelineId: json['PipelineId'] as String?, playlists: (json['Playlists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Playlist.fromJson(e as Map)) .toList(), status: json['Status'] as String?, @@ -2949,7 +2949,7 @@ class JobAlbumArt { factory JobAlbumArt.fromJson(Map json) { return JobAlbumArt( artwork: (json['Artwork'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Artwork.fromJson(e as Map)) .toList(), mergePolicy: json['MergePolicy'] as String?, @@ -3437,7 +3437,7 @@ class JobOutput { ? Captions.fromJson(json['Captions'] as Map) : null, composition: (json['Composition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Clip.fromJson(e as Map)) .toList(), duration: json['Duration'] as int?, @@ -3461,7 +3461,7 @@ class JobOutput { : null, thumbnailPattern: json['ThumbnailPattern'] as String?, watermarks: (json['Watermarks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobWatermark.fromJson(e as Map)) .toList(), width: json['Width'] as int?, @@ -3539,7 +3539,7 @@ class ListJobsByPipelineResponse { factory ListJobsByPipelineResponse.fromJson(Map json) { return ListJobsByPipelineResponse( jobs: (json['Jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -3566,7 +3566,7 @@ class ListJobsByStatusResponse { factory ListJobsByStatusResponse.fromJson(Map json) { return ListJobsByStatusResponse( jobs: (json['Jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -3594,7 +3594,7 @@ class ListPipelinesResponse { return ListPipelinesResponse( nextPageToken: json['NextPageToken'] as String?, pipelines: (json['Pipelines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Pipeline.fromJson(e as Map)) .toList(), ); @@ -3621,7 +3621,7 @@ class ListPresetsResponse { return ListPresetsResponse( nextPageToken: json['NextPageToken'] as String?, presets: (json['Presets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Preset.fromJson(e as Map)) .toList(), ); @@ -3742,10 +3742,8 @@ class Permission { factory Permission.fromJson(Map json) { return Permission( - access: (json['Access'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + access: + (json['Access'] as List?)?.nonNulls.map((e) => e as String).toList(), grantee: json['Grantee'] as String?, granteeType: json['GranteeType'] as String?, ); @@ -4086,7 +4084,7 @@ class PipelineOutputConfig { return PipelineOutputConfig( bucket: json['Bucket'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromJson(e as Map)) .toList(), storageClass: json['StorageClass'] as String?, @@ -4303,7 +4301,7 @@ class Playlist { : null, name: json['Name'] as String?, outputKeys: (json['OutputKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), playReadyDrm: json['PlayReadyDrm'] != null @@ -4700,7 +4698,7 @@ class ReadPipelineResponse { ? Pipeline.fromJson(json['Pipeline'] as Map) : null, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -4745,7 +4743,7 @@ class TestRoleResponse { factory TestRoleResponse.fromJson(Map json) { return TestRoleResponse( messages: (json['Messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), success: json['Success'] as String?, @@ -5012,7 +5010,7 @@ class UpdatePipelineResponse { ? Pipeline.fromJson(json['Pipeline'] as Map) : null, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -5637,7 +5635,7 @@ class VideoParameters { resolution: json['Resolution'] as String?, sizingPolicy: json['SizingPolicy'] as String?, watermarks: (json['Watermarks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PresetWatermark.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_elastictranscoder_api/pubspec.yaml b/generated/aws_elastictranscoder_api/pubspec.yaml index 9de7f8e93..be00b2d56 100644 --- a/generated/aws_elastictranscoder_api/pubspec.yaml +++ b/generated/aws_elastictranscoder_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_elasti protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_elb_api/pubspec.yaml b/generated/aws_elb_api/pubspec.yaml index c397a27f6..c823108c0 100644 --- a/generated/aws_elb_api/pubspec.yaml +++ b/generated/aws_elb_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_elb_ap protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_elbv2_api/pubspec.yaml b/generated/aws_elbv2_api/pubspec.yaml index 8a8fad63b..4e3381847 100644 --- a/generated/aws_elbv2_api/pubspec.yaml +++ b/generated/aws_elbv2_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_elbv2_ protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_emr_api/lib/elasticmapreduce-2009-03-31.dart b/generated/aws_emr_api/lib/elasticmapreduce-2009-03-31.dart index 8126bc838..9d2475c08 100644 --- a/generated/aws_emr_api/lib/elasticmapreduce-2009-03-31.dart +++ b/generated/aws_emr_api/lib/elasticmapreduce-2009-03-31.dart @@ -2966,7 +2966,7 @@ class AddInstanceGroupsOutput { return AddInstanceGroupsOutput( clusterArn: json['ClusterArn'] as String?, instanceGroupIds: (json['InstanceGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), jobFlowId: json['JobFlowId'] as String?, @@ -2985,10 +2985,8 @@ class AddJobFlowStepsOutput { factory AddJobFlowStepsOutput.fromJson(Map json) { return AddJobFlowStepsOutput( - stepIds: (json['StepIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + stepIds: + (json['StepIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -3056,10 +3054,7 @@ class Application { return Application( additionalInfo: (json['AdditionalInfo'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), - args: (json['Args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['Args'] as List?)?.nonNulls.map((e) => e as String).toList(), name: json['Name'] as String?, version: json['Version'] as String?, ); @@ -3152,7 +3147,7 @@ class AutoScalingPolicyDescription { json['Constraints'] as Map) : null, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingRule.fromJson(e as Map)) .toList(), status: json['Status'] != null @@ -3318,7 +3313,7 @@ class BlockPublicAccessConfiguration { json['BlockPublicSecurityGroupRules'] as bool, permittedPublicSecurityGroupRuleRanges: (json['PermittedPublicSecurityGroupRuleRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRange.fromJson(e as Map)) .toList(), ); @@ -3455,7 +3450,7 @@ class CancelStepsOutput { factory CancelStepsOutput.fromJson(Map json) { return CancelStepsOutput( cancelStepsInfoList: (json['CancelStepsInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CancelStepsInfo.fromJson(e as Map)) .toList(), ); @@ -3538,7 +3533,7 @@ class CloudWatchAlarmDefinition { period: json['Period'] as int, threshold: json['Threshold'] as double, dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDimension.fromJson(e as Map)) .toList(), evaluationPeriods: json['EvaluationPeriods'] as int?, @@ -3786,14 +3781,14 @@ class Cluster { factory Cluster.fromJson(Map json) { return Cluster( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), autoScalingRole: json['AutoScalingRole'] as String?, autoTerminate: json['AutoTerminate'] as bool?, clusterArn: json['ClusterArn'] as String?, configurations: (json['Configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), customAmiId: json['CustomAmiId'] as String?, @@ -3819,7 +3814,7 @@ class Cluster { oSReleaseLabel: json['OSReleaseLabel'] as String?, outpostArn: json['OutpostArn'] as String?, placementGroups: (json['PlacementGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementGroupConfig.fromJson(e as Map)) .toList(), releaseLabel: json['ReleaseLabel'] as String?, @@ -3836,7 +3831,7 @@ class Cluster { : null, stepConcurrencyLevel: json['StepConcurrencyLevel'] as int?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), terminationProtected: json['TerminationProtected'] as bool?, @@ -3936,7 +3931,7 @@ class ClusterStatus { factory ClusterStatus.fromJson(Map json) { return ClusterStatus( errorDetails: (json['ErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetail.fromJson(e as Map)) .toList(), state: (json['State'] as String?)?.let(ClusterState.fromString), @@ -4044,10 +4039,7 @@ class Command { factory Command.fromJson(Map json) { return Command( - args: (json['Args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['Args'] as List?)?.nonNulls.map((e) => e as String).toList(), name: json['Name'] as String?, scriptPath: json['ScriptPath'] as String?, ); @@ -4191,7 +4183,7 @@ class Configuration { return Configuration( classification: json['Classification'] as String?, configurations: (json['Configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), properties: (json['Properties'] as Map?) @@ -4311,7 +4303,7 @@ class DescribeJobFlowsOutput { factory DescribeJobFlowsOutput.fromJson(Map json) { return DescribeJobFlowsOutput( jobFlows: (json['JobFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobFlowDetail.fromJson(e as Map)) .toList(), ); @@ -4365,11 +4357,11 @@ class DescribeReleaseLabelOutput { factory DescribeReleaseLabelOutput.fromJson(Map json) { return DescribeReleaseLabelOutput( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimplifiedApplication.fromJson(e as Map)) .toList(), availableOSReleases: (json['AvailableOSReleases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OSRelease.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4617,12 +4609,12 @@ class Ec2InstanceAttributes { return Ec2InstanceAttributes( additionalMasterSecurityGroups: (json['AdditionalMasterSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), additionalSlaveSecurityGroups: (json['AdditionalSlaveSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ec2AvailabilityZone: json['Ec2AvailabilityZone'] as String?, @@ -4635,11 +4627,11 @@ class Ec2InstanceAttributes { iamInstanceProfile: json['IamInstanceProfile'] as String?, requestedEc2AvailabilityZones: (json['RequestedEc2AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), requestedEc2SubnetIds: (json['RequestedEc2SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serviceAccessSecurityGroup: json['ServiceAccessSecurityGroup'] as String?, @@ -4670,7 +4662,7 @@ class ErrorDetail { return ErrorDetail( errorCode: json['ErrorCode'] as String?, errorData: (json['ErrorData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -4936,13 +4928,10 @@ class HadoopJarStepConfig { factory HadoopJarStepConfig.fromJson(Map json) { return HadoopJarStepConfig( jar: json['Jar'] as String, - args: (json['Args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['Args'] as List?)?.nonNulls.map((e) => e as String).toList(), mainClass: json['MainClass'] as String?, properties: (json['Properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValue.fromJson(e as Map)) .toList(), ); @@ -4990,10 +4979,7 @@ class HadoopStepConfig { factory HadoopStepConfig.fromJson(Map json) { return HadoopStepConfig( - args: (json['Args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['Args'] as List?)?.nonNulls.map((e) => e as String).toList(), jar: json['Jar'] as String?, mainClass: json['MainClass'] as String?, properties: (json['Properties'] as Map?) @@ -5090,7 +5076,7 @@ class Instance { factory Instance.fromJson(Map json) { return Instance( ebsVolumes: (json['EbsVolumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EbsVolume.fromJson(e as Map)) .toList(), ec2InstanceId: json['Ec2InstanceId'] as String?, @@ -5235,7 +5221,7 @@ class InstanceFleet { instanceFleetType: (json['InstanceFleetType'] as String?) ?.let(InstanceFleetType.fromString), instanceTypeSpecifications: (json['InstanceTypeSpecifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceTypeSpecification.fromJson(e as Map)) .toList(), @@ -5777,13 +5763,13 @@ class InstanceGroup { : null, bidPrice: json['BidPrice'] as String?, configurations: (json['Configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), configurationsVersion: json['ConfigurationsVersion'] as int?, customAmiId: json['CustomAmiId'] as String?, ebsBlockDevices: (json['EbsBlockDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EbsBlockDevice.fromJson(e as Map)) .toList(), ebsOptimized: json['EbsOptimized'] as bool?, @@ -5793,7 +5779,7 @@ class InstanceGroup { instanceType: json['InstanceType'] as String?, lastSuccessfullyAppliedConfigurations: (json['LastSuccessfullyAppliedConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), lastSuccessfullyAppliedConfigurationsVersion: @@ -6199,11 +6185,11 @@ class InstanceResizePolicy { return InstanceResizePolicy( instanceTerminationTimeout: json['InstanceTerminationTimeout'] as int?, instancesToProtect: (json['InstancesToProtect'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), instancesToTerminate: (json['InstancesToTerminate'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6492,12 +6478,12 @@ class InstanceTypeSpecification { bidPriceAsPercentageOfOnDemandPrice: json['BidPriceAsPercentageOfOnDemandPrice'] as double?, configurations: (json['Configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), customAmiId: json['CustomAmiId'] as String?, ebsBlockDevices: (json['EbsBlockDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EbsBlockDevice.fromJson(e as Map)) .toList(), ebsOptimized: json['EbsOptimized'] as bool?, @@ -6618,7 +6604,7 @@ class JobFlowDetail { amiVersion: json['AmiVersion'] as String?, autoScalingRole: json['AutoScalingRole'] as String?, bootstrapActions: (json['BootstrapActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BootstrapActionDetail.fromJson(e as Map)) .toList(), jobFlowRole: json['JobFlowRole'] as String?, @@ -6628,11 +6614,11 @@ class JobFlowDetail { ?.let(ScaleDownBehavior.fromString), serviceRole: json['ServiceRole'] as String?, steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StepDetail.fromJson(e as Map)) .toList(), supportedProducts: (json['SupportedProducts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), visibleToAllUsers: json['VisibleToAllUsers'] as bool?, @@ -6957,7 +6943,7 @@ class JobFlowInstancesDetail { ec2SubnetId: json['Ec2SubnetId'] as String?, hadoopVersion: json['HadoopVersion'] as String?, instanceGroups: (json['InstanceGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceGroupDetail.fromJson(e as Map)) .toList(), keepJobFlowAliveWhenNoSteps: json['KeepJobFlowAliveWhenNoSteps'] as bool?, @@ -7083,7 +7069,7 @@ class ListBootstrapActionsOutput { factory ListBootstrapActionsOutput.fromJson(Map json) { return ListBootstrapActionsOutput( bootstrapActions: (json['BootstrapActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Command.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -7108,7 +7094,7 @@ class ListClustersOutput { factory ListClustersOutput.fromJson(Map json) { return ListClustersOutput( clusters: (json['Clusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterSummary.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -7131,7 +7117,7 @@ class ListInstanceFleetsOutput { factory ListInstanceFleetsOutput.fromJson(Map json) { return ListInstanceFleetsOutput( instanceFleets: (json['InstanceFleets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceFleet.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -7155,7 +7141,7 @@ class ListInstanceGroupsOutput { factory ListInstanceGroupsOutput.fromJson(Map json) { return ListInstanceGroupsOutput( instanceGroups: (json['InstanceGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceGroup.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -7179,7 +7165,7 @@ class ListInstancesOutput { factory ListInstancesOutput.fromJson(Map json) { return ListInstancesOutput( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Instance.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -7204,7 +7190,7 @@ class ListNotebookExecutionsOutput { return ListNotebookExecutionsOutput( marker: json['Marker'] as String?, notebookExecutions: (json['NotebookExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookExecutionSummary.fromJson(e as Map)) .toList(), @@ -7229,7 +7215,7 @@ class ListReleaseLabelsOutput { return ListReleaseLabelsOutput( nextToken: json['NextToken'] as String?, releaseLabels: (json['ReleaseLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7254,7 +7240,7 @@ class ListSecurityConfigurationsOutput { return ListSecurityConfigurationsOutput( marker: json['Marker'] as String?, securityConfigurations: (json['SecurityConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityConfigurationSummary.fromJson(e as Map)) .toList(), @@ -7284,7 +7270,7 @@ class ListStepsOutput { return ListStepsOutput( marker: json['Marker'] as String?, steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StepSummary.fromJson(e as Map)) .toList(), ); @@ -7309,7 +7295,7 @@ class ListStudioSessionMappingsOutput { return ListStudioSessionMappingsOutput( marker: json['Marker'] as String?, sessionMappings: (json['SessionMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SessionMappingSummary.fromJson(e as Map)) .toList(), ); @@ -7332,7 +7318,7 @@ class ListStudiosOutput { return ListStudiosOutput( marker: json['Marker'] as String?, studios: (json['Studios'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StudioSummary.fromJson(e as Map)) .toList(), ); @@ -7357,7 +7343,7 @@ class ListSupportedInstanceTypesOutput { return ListSupportedInstanceTypesOutput( marker: json['Marker'] as String?, supportedInstanceTypes: (json['SupportedInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedInstanceType.fromJson(e as Map)) .toList(), ); @@ -7619,7 +7605,7 @@ class NotebookExecution { status: (json['Status'] as String?)?.let(NotebookExecutionStatus.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8150,7 +8136,7 @@ class PlacementType { return PlacementType( availabilityZone: json['AvailabilityZone'] as String?, availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8546,10 +8532,7 @@ class ScriptBootstrapActionConfig { factory ScriptBootstrapActionConfig.fromJson(Map json) { return ScriptBootstrapActionConfig( path: json['Path'] as String, - args: (json['Args'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + args: (json['Args'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -9525,11 +9508,11 @@ class Studio { studioArn: json['StudioArn'] as String?, studioId: json['StudioId'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trustedIdentityPropagationEnabled: diff --git a/generated/aws_emr_api/pubspec.yaml b/generated/aws_emr_api/pubspec.yaml index ff9249a1b..8bfe47448 100644 --- a/generated/aws_emr_api/pubspec.yaml +++ b/generated/aws_emr_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_emr_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_es_api/lib/es-2015-01-01.dart b/generated/aws_es_api/lib/es-2015-01-01.dart index b4e980473..1eff05e56 100644 --- a/generated/aws_es_api/lib/es-2015-01-01.dart +++ b/generated/aws_es_api/lib/es-2015-01-01.dart @@ -1996,7 +1996,7 @@ class AdditionalLimit { return AdditionalLimit( limitName: json['LimitName'] as String?, limitValues: (json['LimitValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2358,7 +2358,7 @@ class AutoTuneOptions { desiredState: (json['DesiredState'] as String?) ?.let(AutoTuneDesiredState.fromString), maintenanceSchedules: (json['MaintenanceSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoTuneMaintenanceSchedule.fromJson(e as Map)) .toList(), @@ -2562,11 +2562,11 @@ class CancelDomainConfigChangeResponse { factory CancelDomainConfigChangeResponse.fromJson(Map json) { return CancelDomainConfigChangeResponse( cancelledChangeIds: (json['CancelledChangeIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cancelledChangeProperties: (json['CancelledChangeProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CancelledChangeProperty.fromJson(e as Map)) .toList(), @@ -2756,11 +2756,11 @@ class ChangeProgressStatusDetails { return ChangeProgressStatusDetails( changeId: json['ChangeId'] as String?, changeProgressStages: (json['ChangeProgressStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeProgressStage.fromJson(e as Map)) .toList(), completedProperties: (json['CompletedProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), configChangeStatus: (json['ConfigChangeStatus'] as String?) @@ -2769,7 +2769,7 @@ class ChangeProgressStatusDetails { (json['InitiatedBy'] as String?)?.let(InitiatedBy.fromString), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), pendingProperties: (json['PendingProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -2889,7 +2889,7 @@ class CompatibleVersionsMap { return CompatibleVersionsMap( sourceVersion: json['SourceVersion'] as String?, targetVersions: (json['TargetVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3178,7 +3178,7 @@ class DescribeDomainAutoTunesResponse { factory DescribeDomainAutoTunesResponse.fromJson(Map json) { return DescribeDomainAutoTunesResponse( autoTunes: (json['AutoTunes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoTune.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3262,7 +3262,7 @@ class DescribeElasticsearchDomainsResponse { Map json) { return DescribeElasticsearchDomainsResponse( domainStatusList: (json['DomainStatusList'] as List) - .whereNotNull() + .nonNulls .map((e) => ElasticsearchDomainStatus.fromJson(e as Map)) .toList(), @@ -3312,7 +3312,7 @@ class DescribeInboundCrossClusterSearchConnectionsResponse { return DescribeInboundCrossClusterSearchConnectionsResponse( crossClusterSearchConnections: (json['CrossClusterSearchConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InboundCrossClusterSearchConnection.fromJson( e as Map)) .toList(), @@ -3345,7 +3345,7 @@ class DescribeOutboundCrossClusterSearchConnectionsResponse { return DescribeOutboundCrossClusterSearchConnectionsResponse( crossClusterSearchConnections: (json['CrossClusterSearchConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutboundCrossClusterSearchConnection.fromJson( e as Map)) .toList(), @@ -3410,7 +3410,7 @@ class DescribePackagesResponse { return DescribePackagesResponse( nextToken: json['NextToken'] as String?, packageDetailsList: (json['PackageDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageDetails.fromJson(e as Map)) .toList(), ); @@ -3438,7 +3438,7 @@ class DescribeReservedElasticsearchInstanceOfferingsResponse { nextToken: json['NextToken'] as String?, reservedElasticsearchInstanceOfferings: (json['ReservedElasticsearchInstanceOfferings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservedElasticsearchInstanceOffering.fromJson( e as Map)) .toList(), @@ -3466,7 +3466,7 @@ class DescribeReservedElasticsearchInstancesResponse { nextToken: json['NextToken'] as String?, reservedElasticsearchInstances: (json['ReservedElasticsearchInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservedElasticsearchInstance.fromJson(e as Map)) .toList(), @@ -3494,11 +3494,11 @@ class DescribeVpcEndpointsResponse { factory DescribeVpcEndpointsResponse.fromJson(Map json) { return DescribeVpcEndpointsResponse( vpcEndpointErrors: (json['VpcEndpointErrors'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpointError.fromJson(e as Map)) .toList(), vpcEndpoints: (json['VpcEndpoints'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpoint.fromJson(e as Map)) .toList(), ); @@ -4264,7 +4264,7 @@ class ElasticsearchDomainConfig { json['LogPublishingOptions'] as Map) : null, modifyingProperties: (json['ModifyingProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModifyingProperties.fromJson(e as Map)) .toList(), nodeToNodeEncryptionOptions: json['NodeToNodeEncryptionOptions'] != null @@ -4470,7 +4470,7 @@ class ElasticsearchDomainStatus { MapEntry(LogType.fromString(k), LogPublishingOption.fromJson(e as Map))), modifyingProperties: (json['ModifyingProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModifyingProperties.fromJson(e as Map)) .toList(), nodeToNodeEncryptionOptions: json['NodeToNodeEncryptionOptions'] != null @@ -4645,7 +4645,7 @@ class GetCompatibleElasticsearchVersionsResponse { return GetCompatibleElasticsearchVersionsResponse( compatibleElasticsearchVersions: (json['CompatibleElasticsearchVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CompatibleVersionsMap.fromJson(e as Map)) .toList(), ); @@ -4672,7 +4672,7 @@ class GetPackageVersionHistoryResponse { nextToken: json['NextToken'] as String?, packageID: json['PackageID'] as String?, packageVersionHistoryList: (json['PackageVersionHistoryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageVersionHistory.fromJson(e as Map)) .toList(), ); @@ -4700,7 +4700,7 @@ class GetUpgradeHistoryResponse { return GetUpgradeHistoryResponse( nextToken: json['NextToken'] as String?, upgradeHistories: (json['UpgradeHistories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpgradeHistory.fromJson(e as Map)) .toList(), ); @@ -4924,7 +4924,7 @@ class Limits { factory Limits.fromJson(Map json) { return Limits( additionalLimits: (json['AdditionalLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalLimit.fromJson(e as Map)) .toList(), instanceLimits: json['InstanceLimits'] != null @@ -4932,7 +4932,7 @@ class Limits { json['InstanceLimits'] as Map) : null, storageTypes: (json['StorageTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageType.fromJson(e as Map)) .toList(), ); @@ -4952,7 +4952,7 @@ class ListDomainNamesResponse { factory ListDomainNamesResponse.fromJson(Map json) { return ListDomainNamesResponse( domainNames: (json['DomainNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainInfo.fromJson(e as Map)) .toList(), ); @@ -4974,7 +4974,7 @@ class ListDomainsForPackageResponse { factory ListDomainsForPackageResponse.fromJson(Map json) { return ListDomainsForPackageResponse( domainPackageDetailsList: (json['DomainPackageDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainPackageDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5003,7 +5003,7 @@ class ListElasticsearchInstanceTypesResponse { Map json) { return ListElasticsearchInstanceTypesResponse( elasticsearchInstanceTypes: (json['ElasticsearchInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ESPartitionInstanceType.fromString((e as String))) .toList(), nextToken: json['NextToken'] as String?, @@ -5026,7 +5026,7 @@ class ListElasticsearchVersionsResponse { Map json) { return ListElasticsearchVersionsResponse( elasticsearchVersions: (json['ElasticsearchVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -5052,7 +5052,7 @@ class ListPackagesForDomainResponse { factory ListPackagesForDomainResponse.fromJson(Map json) { return ListPackagesForDomainResponse( domainPackageDetailsList: (json['DomainPackageDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainPackageDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5073,7 +5073,7 @@ class ListTagsResponse { factory ListTagsResponse.fromJson(Map json) { return ListTagsResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5099,7 +5099,7 @@ class ListVpcEndpointAccessResponse { factory ListVpcEndpointAccessResponse.fromJson(Map json) { return ListVpcEndpointAccessResponse( authorizedPrincipalList: (json['AuthorizedPrincipalList'] as List) - .whereNotNull() + .nonNulls .map((e) => AuthorizedPrincipal.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String, @@ -5128,7 +5128,7 @@ class ListVpcEndpointsForDomainResponse { return ListVpcEndpointsForDomainResponse( nextToken: json['NextToken'] as String, vpcEndpointSummaryList: (json['VpcEndpointSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpointSummary.fromJson(e as Map)) .toList(), ); @@ -5154,7 +5154,7 @@ class ListVpcEndpointsResponse { return ListVpcEndpointsResponse( nextToken: json['NextToken'] as String, vpcEndpointSummaryList: (json['VpcEndpointSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpointSummary.fromJson(e as Map)) .toList(), ); @@ -5881,7 +5881,7 @@ class ReservedElasticsearchInstance { paymentOption: (json['PaymentOption'] as String?) ?.let(ReservedElasticsearchInstancePaymentOption.fromString), recurringCharges: (json['RecurringCharges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecurringCharge.fromJson(e as Map)) .toList(), reservationName: json['ReservationName'] as String?, @@ -5948,7 +5948,7 @@ class ReservedElasticsearchInstanceOffering { paymentOption: (json['PaymentOption'] as String?) ?.let(ReservedElasticsearchInstancePaymentOption.fromString), recurringCharges: (json['RecurringCharges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecurringCharge.fromJson(e as Map)) .toList(), reservedElasticsearchInstanceOfferingId: @@ -6349,7 +6349,7 @@ class StorageType { return StorageType( storageSubTypeName: json['StorageSubTypeName'] as String?, storageTypeLimits: (json['StorageTypeLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageTypeLimit.fromJson(e as Map)) .toList(), storageTypeName: json['StorageTypeName'] as String?, @@ -6388,7 +6388,7 @@ class StorageTypeLimit { return StorageTypeLimit( limitName: json['LimitName'] as String?, limitValues: (json['LimitValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6595,7 +6595,7 @@ class UpgradeHistory { return UpgradeHistory( startTimestamp: timeStampFromJson(json['StartTimestamp']), stepsList: (json['StepsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpgradeStepItem.fromJson(e as Map)) .toList(), upgradeName: json['UpgradeName'] as String?, @@ -6676,10 +6676,8 @@ class UpgradeStepItem { factory UpgradeStepItem.fromJson(Map json) { return UpgradeStepItem( - issues: (json['Issues'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + issues: + (json['Issues'] as List?)?.nonNulls.map((e) => e as String).toList(), progressPercent: json['ProgressPercent'] as double?, upgradeStep: (json['UpgradeStep'] as String?)?.let(UpgradeStep.fromString), @@ -6718,15 +6716,15 @@ class VPCDerivedInfo { factory VPCDerivedInfo.fromJson(Map json) { return VPCDerivedInfo( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vPCId: json['VPCId'] as String?, diff --git a/generated/aws_es_api/lib/opensearch-2021-01-01.dart b/generated/aws_es_api/lib/opensearch-2021-01-01.dart index 0a46a498a..9be5fa6a6 100644 --- a/generated/aws_es_api/lib/opensearch-2021-01-01.dart +++ b/generated/aws_es_api/lib/opensearch-2021-01-01.dart @@ -2869,7 +2869,7 @@ class AdditionalLimit { return AdditionalLimit( limitName: json['LimitName'] as String?, limitValues: (json['LimitValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3271,7 +3271,7 @@ class AutoTuneOptions { desiredState: (json['DesiredState'] as String?) ?.let(AutoTuneDesiredState.fromString), maintenanceSchedules: (json['MaintenanceSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoTuneMaintenanceSchedule.fromJson(e as Map)) .toList(), @@ -3546,11 +3546,11 @@ class CancelDomainConfigChangeResponse { factory CancelDomainConfigChangeResponse.fromJson(Map json) { return CancelDomainConfigChangeResponse( cancelledChangeIds: (json['CancelledChangeIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cancelledChangeProperties: (json['CancelledChangeProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CancelledChangeProperty.fromJson(e as Map)) .toList(), @@ -3738,11 +3738,11 @@ class ChangeProgressStatusDetails { return ChangeProgressStatusDetails( changeId: json['ChangeId'] as String?, changeProgressStages: (json['ChangeProgressStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeProgressStage.fromJson(e as Map)) .toList(), completedProperties: (json['CompletedProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), configChangeStatus: (json['ConfigChangeStatus'] as String?) @@ -3751,7 +3751,7 @@ class ChangeProgressStatusDetails { (json['InitiatedBy'] as String?)?.let(InitiatedBy.fromString), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), pendingProperties: (json['PendingProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -4029,7 +4029,7 @@ class CompatibleVersionsMap { return CompatibleVersionsMap( sourceVersion: json['SourceVersion'] as String?, targetVersions: (json['TargetVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4488,7 +4488,7 @@ class DescribeDomainAutoTunesResponse { factory DescribeDomainAutoTunesResponse.fromJson(Map json) { return DescribeDomainAutoTunesResponse( autoTunes: (json['AutoTunes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoTune.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4654,7 +4654,7 @@ class DescribeDomainHealthResponse { domainState: (json['DomainState'] as String?)?.let(DomainState.fromString), environmentInformation: (json['EnvironmentInformation'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentInfo.fromJson(e as Map)) .toList(), masterEligibleNodeCount: json['MasterEligibleNodeCount'] as String?, @@ -4683,7 +4683,7 @@ class DescribeDomainNodesResponse { factory DescribeDomainNodesResponse.fromJson(Map json) { return DescribeDomainNodesResponse( domainNodesStatusList: (json['DomainNodesStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainNodesStatus.fromJson(e as Map)) .toList(), ); @@ -4720,7 +4720,7 @@ class DescribeDomainsResponse { factory DescribeDomainsResponse.fromJson(Map json) { return DescribeDomainsResponse( domainStatusList: (json['DomainStatusList'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainStatus.fromJson(e as Map)) .toList(), ); @@ -4780,7 +4780,7 @@ class DescribeInboundConnectionsResponse { Map json) { return DescribeInboundConnectionsResponse( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InboundConnection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4828,7 +4828,7 @@ class DescribeOutboundConnectionsResponse { Map json) { return DescribeOutboundConnectionsResponse( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutboundConnection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4898,7 +4898,7 @@ class DescribePackagesResponse { return DescribePackagesResponse( nextToken: json['NextToken'] as String?, packageDetailsList: (json['PackageDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageDetails.fromJson(e as Map)) .toList(), ); @@ -4927,7 +4927,7 @@ class DescribeReservedInstanceOfferingsResponse { return DescribeReservedInstanceOfferingsResponse( nextToken: json['NextToken'] as String?, reservedInstanceOfferings: (json['ReservedInstanceOfferings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservedInstanceOffering.fromJson(e as Map)) .toList(), @@ -4956,7 +4956,7 @@ class DescribeReservedInstancesResponse { return DescribeReservedInstancesResponse( nextToken: json['NextToken'] as String?, reservedInstances: (json['ReservedInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReservedInstance.fromJson(e as Map)) .toList(), ); @@ -4978,11 +4978,11 @@ class DescribeVpcEndpointsResponse { factory DescribeVpcEndpointsResponse.fromJson(Map json) { return DescribeVpcEndpointsResponse( vpcEndpointErrors: (json['VpcEndpointErrors'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpointError.fromJson(e as Map)) .toList(), vpcEndpoints: (json['VpcEndpoints'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpoint.fromJson(e as Map)) .toList(), ); @@ -5155,7 +5155,7 @@ class DomainConfig { json['LogPublishingOptions'] as Map) : null, modifyingProperties: (json['ModifyingProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModifyingProperties.fromJson(e as Map)) .toList(), nodeToNodeEncryptionOptions: json['NodeToNodeEncryptionOptions'] != null @@ -5786,7 +5786,7 @@ class DomainStatus { MapEntry(LogType.fromString(k), LogPublishingOption.fromJson(e as Map))), modifyingProperties: (json['ModifyingProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModifyingProperties.fromJson(e as Map)) .toList(), nodeToNodeEncryptionOptions: json['NodeToNodeEncryptionOptions'] != null @@ -5864,7 +5864,7 @@ class DryRunProgressStatus { dryRunStatus: json['DryRunStatus'] as String, updateDate: json['UpdateDate'] as String, validationFailures: (json['ValidationFailures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationFailure.fromJson(e as Map)) .toList(), ); @@ -6102,7 +6102,7 @@ class EnvironmentInfo { return EnvironmentInfo( availabilityZoneInformation: (json['AvailabilityZoneInformation'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailabilityZoneInfo.fromJson(e as Map)) .toList(), ); @@ -6170,7 +6170,7 @@ class GetCompatibleVersionsResponse { factory GetCompatibleVersionsResponse.fromJson(Map json) { return GetCompatibleVersionsResponse( compatibleVersions: (json['CompatibleVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CompatibleVersionsMap.fromJson(e as Map)) .toList(), ); @@ -6281,7 +6281,7 @@ class GetPackageVersionHistoryResponse { nextToken: json['NextToken'] as String?, packageID: json['PackageID'] as String?, packageVersionHistoryList: (json['PackageVersionHistoryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageVersionHistory.fromJson(e as Map)) .toList(), ); @@ -6310,7 +6310,7 @@ class GetUpgradeHistoryResponse { return GetUpgradeHistoryResponse( nextToken: json['NextToken'] as String?, upgradeHistories: (json['UpgradeHistories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpgradeHistory.fromJson(e as Map)) .toList(), ); @@ -6603,13 +6603,13 @@ class InstanceTypeDetails { advancedSecurityEnabled: json['AdvancedSecurityEnabled'] as bool?, appLogsEnabled: json['AppLogsEnabled'] as bool?, availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cognitoEnabled: json['CognitoEnabled'] as bool?, encryptionEnabled: json['EncryptionEnabled'] as bool?, instanceRole: (json['InstanceRole'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), instanceType: (json['InstanceType'] as String?) @@ -6640,7 +6640,7 @@ class Limits { factory Limits.fromJson(Map json) { return Limits( additionalLimits: (json['AdditionalLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalLimit.fromJson(e as Map)) .toList(), instanceLimits: json['InstanceLimits'] != null @@ -6648,7 +6648,7 @@ class Limits { json['InstanceLimits'] as Map) : null, storageTypes: (json['StorageTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageType.fromJson(e as Map)) .toList(), ); @@ -6667,7 +6667,7 @@ class ListDataSourcesResponse { factory ListDataSourcesResponse.fromJson(Map json) { return ListDataSourcesResponse( dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceDetails.fromJson(e as Map)) .toList(), ); @@ -6694,7 +6694,7 @@ class ListDomainMaintenancesResponse { factory ListDomainMaintenancesResponse.fromJson(Map json) { return ListDomainMaintenancesResponse( domainMaintenances: (json['DomainMaintenances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainMaintenanceDetails.fromJson(e as Map)) .toList(), @@ -6717,7 +6717,7 @@ class ListDomainNamesResponse { factory ListDomainNamesResponse.fromJson(Map json) { return ListDomainNamesResponse( domainNames: (json['DomainNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainInfo.fromJson(e as Map)) .toList(), ); @@ -6744,7 +6744,7 @@ class ListDomainsForPackageResponse { factory ListDomainsForPackageResponse.fromJson(Map json) { return ListDomainsForPackageResponse( domainPackageDetailsList: (json['DomainPackageDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainPackageDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6771,7 +6771,7 @@ class ListInstanceTypeDetailsResponse { factory ListInstanceTypeDetailsResponse.fromJson(Map json) { return ListInstanceTypeDetailsResponse( instanceTypeDetails: (json['InstanceTypeDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceTypeDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6799,7 +6799,7 @@ class ListPackagesForDomainResponse { factory ListPackagesForDomainResponse.fromJson(Map json) { return ListPackagesForDomainResponse( domainPackageDetailsList: (json['DomainPackageDetailsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainPackageDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6826,7 +6826,7 @@ class ListScheduledActionsResponse { return ListScheduledActionsResponse( nextToken: json['NextToken'] as String?, scheduledActions: (json['ScheduledActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduledAction.fromJson(e as Map)) .toList(), ); @@ -6845,7 +6845,7 @@ class ListTagsResponse { factory ListTagsResponse.fromJson(Map json) { return ListTagsResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6874,7 +6874,7 @@ class ListVersionsResponse { return ListVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6901,7 +6901,7 @@ class ListVpcEndpointAccessResponse { factory ListVpcEndpointAccessResponse.fromJson(Map json) { return ListVpcEndpointAccessResponse( authorizedPrincipalList: (json['AuthorizedPrincipalList'] as List) - .whereNotNull() + .nonNulls .map((e) => AuthorizedPrincipal.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String, @@ -6929,7 +6929,7 @@ class ListVpcEndpointsForDomainResponse { return ListVpcEndpointsForDomainResponse( nextToken: json['NextToken'] as String, vpcEndpointSummaryList: (json['VpcEndpointSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpointSummary.fromJson(e as Map)) .toList(), ); @@ -6955,7 +6955,7 @@ class ListVpcEndpointsResponse { return ListVpcEndpointsResponse( nextToken: json['NextToken'] as String, vpcEndpointSummaryList: (json['VpcEndpointSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcEndpointSummary.fromJson(e as Map)) .toList(), ); @@ -8110,7 +8110,7 @@ class ReservedInstance { paymentOption: (json['PaymentOption'] as String?) ?.let(ReservedInstancePaymentOption.fromString), recurringCharges: (json['RecurringCharges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecurringCharge.fromJson(e as Map)) .toList(), reservationName: json['ReservationName'] as String?, @@ -8174,7 +8174,7 @@ class ReservedInstanceOffering { paymentOption: (json['PaymentOption'] as String?) ?.let(ReservedInstancePaymentOption.fromString), recurringCharges: (json['RecurringCharges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecurringCharge.fromJson(e as Map)) .toList(), reservedInstanceOfferingId: json['ReservedInstanceOfferingId'] as String?, @@ -8783,7 +8783,7 @@ class StorageType { return StorageType( storageSubTypeName: json['StorageSubTypeName'] as String?, storageTypeLimits: (json['StorageTypeLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageTypeLimit.fromJson(e as Map)) .toList(), storageTypeName: json['StorageTypeName'] as String?, @@ -8838,7 +8838,7 @@ class StorageTypeLimit { return StorageTypeLimit( limitName: json['LimitName'] as String?, limitValues: (json['LimitValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9104,7 +9104,7 @@ class UpgradeHistory { return UpgradeHistory( startTimestamp: timeStampFromJson(json['StartTimestamp']), stepsList: (json['StepsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpgradeStepItem.fromJson(e as Map)) .toList(), upgradeName: json['UpgradeName'] as String?, @@ -9201,10 +9201,8 @@ class UpgradeStepItem { factory UpgradeStepItem.fromJson(Map json) { return UpgradeStepItem( - issues: (json['Issues'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + issues: + (json['Issues'] as List?)?.nonNulls.map((e) => e as String).toList(), progressPercent: json['ProgressPercent'] as double?, upgradeStep: (json['UpgradeStep'] as String?)?.let(UpgradeStep.fromString), @@ -9244,15 +9242,15 @@ class VPCDerivedInfo { factory VPCDerivedInfo.fromJson(Map json) { return VPCDerivedInfo( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vPCId: json['VPCId'] as String?, diff --git a/generated/aws_es_api/pubspec.yaml b/generated/aws_es_api/pubspec.yaml index c2f78a3e5..f78e9eec5 100644 --- a/generated/aws_es_api/pubspec.yaml +++ b/generated/aws_es_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_es_api protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_events_api/lib/eventbridge-2015-10-07.dart b/generated/aws_events_api/lib/eventbridge-2015-10-07.dart index e938c3f59..f6e90c14f 100644 --- a/generated/aws_events_api/lib/eventbridge-2015-10-07.dart +++ b/generated/aws_events_api/lib/eventbridge-2015-10-07.dart @@ -3368,14 +3368,12 @@ class AwsVpcConfiguration { factory AwsVpcConfiguration.fromJson(Map json) { return AwsVpcConfiguration( - subnets: (json['Subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), assignPublicIp: (json['AssignPublicIp'] as String?)?.let(AssignPublicIp.fromString), securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3866,17 +3864,17 @@ class ConnectionHttpParameters { factory ConnectionHttpParameters.fromJson(Map json) { return ConnectionHttpParameters( bodyParameters: (json['BodyParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionBodyParameter.fromJson(e as Map)) .toList(), headerParameters: (json['HeaderParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionHeaderParameter.fromJson(e as Map)) .toList(), queryStringParameters: (json['QueryStringParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionQueryStringParameter.fromJson( e as Map)) .toList(), @@ -4313,7 +4311,7 @@ class CreateEndpointResponse { return CreateEndpointResponse( arn: json['Arn'] as String?, eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointEventBus.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -4780,7 +4778,7 @@ class DescribeEndpointResponse { endpointId: json['EndpointId'] as String?, endpointUrl: json['EndpointUrl'] as String?, eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointEventBus.fromJson(e as Map)) .toList(), lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), @@ -5178,7 +5176,7 @@ class EcsParameters { return EcsParameters( taskDefinitionArn: json['TaskDefinitionArn'] as String, capacityProviderStrategy: (json['CapacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -5191,11 +5189,11 @@ class EcsParameters { json['NetworkConfiguration'] as Map) : null, placementConstraints: (json['PlacementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementConstraint.fromJson(e as Map)) .toList(), placementStrategy: (json['PlacementStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementStrategy.fromJson(e as Map)) .toList(), platformVersion: json['PlatformVersion'] as String?, @@ -5203,7 +5201,7 @@ class EcsParameters { (json['PropagateTags'] as String?)?.let(PropagateTags.fromString), referenceId: json['ReferenceId'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskCount: json['TaskCount'] as int?, @@ -5324,7 +5322,7 @@ class Endpoint { endpointId: json['EndpointId'] as String?, endpointUrl: json['EndpointUrl'] as String?, eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointEventBus.fromJson(e as Map)) .toList(), lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), @@ -5559,7 +5557,7 @@ class HttpParameters { headerParameters: (json['HeaderParameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), pathParameterValues: (json['PathParameterValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), queryStringParameters: @@ -5740,7 +5738,7 @@ class ListApiDestinationsResponse { factory ListApiDestinationsResponse.fromJson(Map json) { return ListApiDestinationsResponse( apiDestinations: (json['ApiDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiDestination.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5764,7 +5762,7 @@ class ListArchivesResponse { factory ListArchivesResponse.fromJson(Map json) { return ListArchivesResponse( archives: (json['Archives'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Archive.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5788,7 +5786,7 @@ class ListConnectionsResponse { factory ListConnectionsResponse.fromJson(Map json) { return ListConnectionsResponse( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5816,7 +5814,7 @@ class ListEndpointsResponse { factory ListEndpointsResponse.fromJson(Map json) { return ListEndpointsResponse( endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5840,7 +5838,7 @@ class ListEventBusesResponse { factory ListEventBusesResponse.fromJson(Map json) { return ListEventBusesResponse( eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBus.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5864,7 +5862,7 @@ class ListEventSourcesResponse { factory ListEventSourcesResponse.fromJson(Map json) { return ListEventSourcesResponse( eventSources: (json['EventSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5890,7 +5888,7 @@ class ListPartnerEventSourceAccountsResponse { return ListPartnerEventSourceAccountsResponse( nextToken: json['NextToken'] as String?, partnerEventSourceAccounts: (json['PartnerEventSourceAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartnerEventSourceAccount.fromJson(e as Map)) .toList(), @@ -5915,7 +5913,7 @@ class ListPartnerEventSourcesResponse { return ListPartnerEventSourcesResponse( nextToken: json['NextToken'] as String?, partnerEventSources: (json['PartnerEventSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartnerEventSource.fromJson(e as Map)) .toList(), ); @@ -5939,7 +5937,7 @@ class ListReplaysResponse { return ListReplaysResponse( nextToken: json['NextToken'] as String?, replays: (json['Replays'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Replay.fromJson(e as Map)) .toList(), ); @@ -5963,7 +5961,7 @@ class ListRuleNamesByTargetResponse { return ListRuleNamesByTargetResponse( nextToken: json['NextToken'] as String?, ruleNames: (json['RuleNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5987,7 +5985,7 @@ class ListRulesResponse { return ListRulesResponse( nextToken: json['NextToken'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), ); @@ -6005,7 +6003,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6029,7 +6027,7 @@ class ListTargetsByRuleResponse { return ListTargetsByRuleResponse( nextToken: json['NextToken'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); @@ -6399,7 +6397,7 @@ class PutEventsResponse { factory PutEventsResponse.fromJson(Map json) { return PutEventsResponse( entries: (json['Entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutEventsResultEntry.fromJson(e as Map)) .toList(), failedEntryCount: json['FailedEntryCount'] as int?, @@ -6595,7 +6593,7 @@ class PutPartnerEventsResponse { factory PutPartnerEventsResponse.fromJson(Map json) { return PutPartnerEventsResponse( entries: (json['Entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutPartnerEventsResultEntry.fromJson(e as Map)) .toList(), @@ -6663,7 +6661,7 @@ class PutTargetsResponse { factory PutTargetsResponse.fromJson(Map json) { return PutTargetsResponse( failedEntries: (json['FailedEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutTargetsResultEntry.fromJson(e as Map)) .toList(), failedEntryCount: json['FailedEntryCount'] as int?, @@ -6749,10 +6747,7 @@ class RedshiftDataParameters { dbUser: json['DbUser'] as String?, secretManagerArn: json['SecretManagerArn'] as String?, sql: json['Sql'] as String?, - sqls: (json['Sqls'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + sqls: (json['Sqls'] as List?)?.nonNulls.map((e) => e as String).toList(), statementName: json['StatementName'] as String?, withEvent: json['WithEvent'] as bool?, ); @@ -6793,7 +6788,7 @@ class RemoveTargetsResponse { factory RemoveTargetsResponse.fromJson(Map json) { return RemoveTargetsResponse( failedEntries: (json['FailedEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemoveTargetsResultEntry.fromJson(e as Map)) .toList(), @@ -6908,7 +6903,7 @@ class ReplayDestination { return ReplayDestination( arn: json['Arn'] as String, filterArns: (json['FilterArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7177,7 +7172,7 @@ class RunCommandParameters { factory RunCommandParameters.fromJson(Map json) { return RunCommandParameters( runCommandTargets: (json['RunCommandTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => RunCommandTarget.fromJson(e as Map)) .toList(), ); @@ -7211,10 +7206,8 @@ class RunCommandTarget { factory RunCommandTarget.fromJson(Map json) { return RunCommandTarget( key: json['Key'] as String, - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -7274,7 +7267,7 @@ class SageMakerPipelineParameters { factory SageMakerPipelineParameters.fromJson(Map json) { return SageMakerPipelineParameters( pipelineParameterList: (json['PipelineParameterList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SageMakerPipelineParameter.fromJson(e as Map)) .toList(), @@ -7960,7 +7953,7 @@ class UpdateEndpointResponse { endpointId: json['EndpointId'] as String?, endpointUrl: json['EndpointUrl'] as String?, eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointEventBus.fromJson(e as Map)) .toList(), name: json['Name'] as String?, diff --git a/generated/aws_events_api/lib/events-2015-10-07.dart b/generated/aws_events_api/lib/events-2015-10-07.dart index 7901f63ed..3e40fb6f1 100644 --- a/generated/aws_events_api/lib/events-2015-10-07.dart +++ b/generated/aws_events_api/lib/events-2015-10-07.dart @@ -2868,14 +2868,12 @@ class AwsVpcConfiguration { factory AwsVpcConfiguration.fromJson(Map json) { return AwsVpcConfiguration( - subnets: (json['Subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), assignPublicIp: (json['AssignPublicIp'] as String?)?.let(AssignPublicIp.fromString), securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3363,17 +3361,17 @@ class ConnectionHttpParameters { factory ConnectionHttpParameters.fromJson(Map json) { return ConnectionHttpParameters( bodyParameters: (json['BodyParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionBodyParameter.fromJson(e as Map)) .toList(), headerParameters: (json['HeaderParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionHeaderParameter.fromJson(e as Map)) .toList(), queryStringParameters: (json['QueryStringParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionQueryStringParameter.fromJson( e as Map)) .toList(), @@ -4470,7 +4468,7 @@ class EcsParameters { return EcsParameters( taskDefinitionArn: json['TaskDefinitionArn'] as String, capacityProviderStrategy: (json['CapacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityProviderStrategyItem.fromJson(e as Map)) .toList(), @@ -4483,11 +4481,11 @@ class EcsParameters { json['NetworkConfiguration'] as Map) : null, placementConstraints: (json['PlacementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementConstraint.fromJson(e as Map)) .toList(), placementStrategy: (json['PlacementStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacementStrategy.fromJson(e as Map)) .toList(), platformVersion: json['PlatformVersion'] as String?, @@ -4495,7 +4493,7 @@ class EcsParameters { (json['PropagateTags'] as String?)?.let(PropagateTags.fromString), referenceId: json['ReferenceId'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskCount: json['TaskCount'] as int?, @@ -4665,7 +4663,7 @@ class HttpParameters { headerParameters: (json['HeaderParameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), pathParameterValues: (json['PathParameterValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), queryStringParameters: @@ -4846,7 +4844,7 @@ class ListApiDestinationsResponse { factory ListApiDestinationsResponse.fromJson(Map json) { return ListApiDestinationsResponse( apiDestinations: (json['ApiDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApiDestination.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4870,7 +4868,7 @@ class ListArchivesResponse { factory ListArchivesResponse.fromJson(Map json) { return ListArchivesResponse( archives: (json['Archives'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Archive.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4894,7 +4892,7 @@ class ListConnectionsResponse { factory ListConnectionsResponse.fromJson(Map json) { return ListConnectionsResponse( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4918,7 +4916,7 @@ class ListEventBusesResponse { factory ListEventBusesResponse.fromJson(Map json) { return ListEventBusesResponse( eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBus.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4942,7 +4940,7 @@ class ListEventSourcesResponse { factory ListEventSourcesResponse.fromJson(Map json) { return ListEventSourcesResponse( eventSources: (json['EventSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4968,7 +4966,7 @@ class ListPartnerEventSourceAccountsResponse { return ListPartnerEventSourceAccountsResponse( nextToken: json['NextToken'] as String?, partnerEventSourceAccounts: (json['PartnerEventSourceAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartnerEventSourceAccount.fromJson(e as Map)) .toList(), @@ -4993,7 +4991,7 @@ class ListPartnerEventSourcesResponse { return ListPartnerEventSourcesResponse( nextToken: json['NextToken'] as String?, partnerEventSources: (json['PartnerEventSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartnerEventSource.fromJson(e as Map)) .toList(), ); @@ -5017,7 +5015,7 @@ class ListReplaysResponse { return ListReplaysResponse( nextToken: json['NextToken'] as String?, replays: (json['Replays'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Replay.fromJson(e as Map)) .toList(), ); @@ -5041,7 +5039,7 @@ class ListRuleNamesByTargetResponse { return ListRuleNamesByTargetResponse( nextToken: json['NextToken'] as String?, ruleNames: (json['RuleNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5065,7 +5063,7 @@ class ListRulesResponse { return ListRulesResponse( nextToken: json['NextToken'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), ); @@ -5083,7 +5081,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5107,7 +5105,7 @@ class ListTargetsByRuleResponse { return ListTargetsByRuleResponse( nextToken: json['NextToken'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); @@ -5418,7 +5416,7 @@ class PutEventsResponse { factory PutEventsResponse.fromJson(Map json) { return PutEventsResponse( entries: (json['Entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutEventsResultEntry.fromJson(e as Map)) .toList(), failedEntryCount: json['FailedEntryCount'] as int?, @@ -5513,7 +5511,7 @@ class PutPartnerEventsResponse { factory PutPartnerEventsResponse.fromJson(Map json) { return PutPartnerEventsResponse( entries: (json['Entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutPartnerEventsResultEntry.fromJson(e as Map)) .toList(), @@ -5578,7 +5576,7 @@ class PutTargetsResponse { factory PutTargetsResponse.fromJson(Map json) { return PutTargetsResponse( failedEntries: (json['FailedEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PutTargetsResultEntry.fromJson(e as Map)) .toList(), failedEntryCount: json['FailedEntryCount'] as int?, @@ -5694,7 +5692,7 @@ class RemoveTargetsResponse { factory RemoveTargetsResponse.fromJson(Map json) { return RemoveTargetsResponse( failedEntries: (json['FailedEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemoveTargetsResultEntry.fromJson(e as Map)) .toList(), @@ -5809,7 +5807,7 @@ class ReplayDestination { return ReplayDestination( arn: json['Arn'] as String, filterArns: (json['FilterArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5977,7 +5975,7 @@ class RunCommandParameters { factory RunCommandParameters.fromJson(Map json) { return RunCommandParameters( runCommandTargets: (json['RunCommandTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => RunCommandTarget.fromJson(e as Map)) .toList(), ); @@ -6011,10 +6009,8 @@ class RunCommandTarget { factory RunCommandTarget.fromJson(Map json) { return RunCommandTarget( key: json['Key'] as String, - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -6074,7 +6070,7 @@ class SageMakerPipelineParameters { factory SageMakerPipelineParameters.fromJson(Map json) { return SageMakerPipelineParameters( pipelineParameterList: (json['PipelineParameterList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SageMakerPipelineParameter.fromJson(e as Map)) .toList(), diff --git a/generated/aws_events_api/pubspec.yaml b/generated/aws_events_api/pubspec.yaml index 150485f62..5855e1032 100644 --- a/generated/aws_events_api/pubspec.yaml +++ b/generated/aws_events_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_events protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_firehose_api/lib/firehose-2015-08-04.dart b/generated/aws_firehose_api/lib/firehose-2015-08-04.dart index 7ea85d7ef..4e5d6b3c2 100644 --- a/generated/aws_firehose_api/lib/firehose-2015-08-04.dart +++ b/generated/aws_firehose_api/lib/firehose-2015-08-04.dart @@ -2245,7 +2245,7 @@ class DeliveryStreamDescription { deliveryStreamType: DeliveryStreamType.fromString((json['DeliveryStreamType'] as String)), destinations: (json['Destinations'] as List) - .whereNotNull() + .nonNulls .map( (e) => DestinationDescription.fromJson(e as Map)) .toList(), @@ -3660,7 +3660,7 @@ class HiveJsonSerDe { factory HiveJsonSerDe.fromJson(Map json) { return HiveJsonSerDe( timestampFormats: (json['TimestampFormats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4058,7 +4058,7 @@ class HttpEndpointRequestConfiguration { factory HttpEndpointRequestConfiguration.fromJson(Map json) { return HttpEndpointRequestConfiguration( commonAttributes: (json['CommonAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpEndpointCommonAttribute.fromJson(e as Map)) .toList(), @@ -4268,7 +4268,7 @@ class ListDeliveryStreamsOutput { factory ListDeliveryStreamsOutput.fromJson(Map json) { return ListDeliveryStreamsOutput( deliveryStreamNames: (json['DeliveryStreamNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), hasMoreDeliveryStreams: json['HasMoreDeliveryStreams'] as bool, @@ -4296,7 +4296,7 @@ class ListTagsForDeliveryStreamOutput { return ListTagsForDeliveryStreamOutput( hasMoreTags: json['HasMoreTags'] as bool, tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4551,7 +4551,7 @@ class OrcSerDe { return OrcSerDe( blockSizeBytes: json['BlockSizeBytes'] as int?, bloomFilterColumns: (json['BloomFilterColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), bloomFilterFalsePositiveProbability: @@ -4748,7 +4748,7 @@ class ProcessingConfiguration { return ProcessingConfiguration( enabled: json['Enabled'] as bool?, processors: (json['Processors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Processor.fromJson(e as Map)) .toList(), ); @@ -4787,7 +4787,7 @@ class Processor { return Processor( type: ProcessorType.fromString((json['Type'] as String)), parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProcessorParameter.fromJson(e as Map)) .toList(), ); @@ -4907,7 +4907,7 @@ class PutRecordBatchOutput { return PutRecordBatchOutput( failedPutCount: json['FailedPutCount'] as int, requestResponses: (json['RequestResponses'] as List) - .whereNotNull() + .nonNulls .map((e) => PutRecordBatchResponseEntry.fromJson(e as Map)) .toList(), @@ -6842,13 +6842,11 @@ class VpcConfigurationDescription { return VpcConfigurationDescription( roleARN: json['RoleARN'] as String, securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['SubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['SubnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String, ); } diff --git a/generated/aws_firehose_api/pubspec.yaml b/generated/aws_firehose_api/pubspec.yaml index c2e2750df..fde03b2c0 100644 --- a/generated/aws_firehose_api/pubspec.yaml +++ b/generated/aws_firehose_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_fireho protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_fms_api/lib/fms-2018-01-01.dart b/generated/aws_fms_api/lib/fms-2018-01-01.dart index 3fd131c87..4178da56d 100644 --- a/generated/aws_fms_api/lib/fms-2018-01-01.dart +++ b/generated/aws_fms_api/lib/fms-2018-01-01.dart @@ -1990,7 +1990,7 @@ class AccountScope { factory AccountScope.fromJson(Map json) { return AccountScope( accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allAccountsEnabled: json['AllAccountsEnabled'] as bool?, @@ -2235,7 +2235,7 @@ class AppsListData { factory AppsListData.fromJson(Map json) { return AppsListData( appsList: (json['AppsList'] as List) - .whereNotNull() + .nonNulls .map((e) => App.fromJson(e as Map)) .toList(), listName: json['ListName'] as String, @@ -2247,7 +2247,7 @@ class AppsListData { ?.map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => App.fromJson(e as Map)) .toList())), ); @@ -2299,7 +2299,7 @@ class AppsListDataSummary { factory AppsListDataSummary.fromJson(Map json) { return AppsListDataSummary( appsList: (json['AppsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => App.fromJson(e as Map)) .toList(), listArn: json['ListArn'] as String?, @@ -2367,7 +2367,7 @@ class AwsEc2InstanceViolation { return AwsEc2InstanceViolation( awsEc2NetworkInterfaceViolations: (json['AwsEc2NetworkInterfaceViolations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2NetworkInterfaceViolation.fromJson( e as Map)) .toList(), @@ -2393,7 +2393,7 @@ class AwsEc2NetworkInterfaceViolation { factory AwsEc2NetworkInterfaceViolation.fromJson(Map json) { return AwsEc2NetworkInterfaceViolation( violatingSecurityGroups: (json['ViolatingSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), violationTarget: json['ViolationTarget'] as String?, @@ -2429,12 +2429,12 @@ class AwsVPCSecurityGroupViolation { factory AwsVPCSecurityGroupViolation.fromJson(Map json) { return AwsVPCSecurityGroupViolation( partialMatches: (json['PartialMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartialMatch.fromJson(e as Map)) .toList(), possibleSecurityGroupRemediationActions: (json['PossibleSecurityGroupRemediationActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityGroupRemediationAction.fromJson( e as Map)) .toList(), @@ -2460,7 +2460,7 @@ class BatchAssociateResourceResponse { factory BatchAssociateResourceResponse.fromJson(Map json) { return BatchAssociateResourceResponse( failedItems: (json['FailedItems'] as List) - .whereNotNull() + .nonNulls .map((e) => FailedItem.fromJson(e as Map)) .toList(), resourceSetIdentifier: json['ResourceSetIdentifier'] as String, @@ -2485,7 +2485,7 @@ class BatchDisassociateResourceResponse { Map json) { return BatchDisassociateResourceResponse( failedItems: (json['FailedItems'] as List) - .whereNotNull() + .nonNulls .map((e) => FailedItem.fromJson(e as Map)) .toList(), resourceSetIdentifier: json['ResourceSetIdentifier'] as String, @@ -2594,7 +2594,7 @@ class CreateNetworkAclEntriesAction { fMSCanRemediate: json['FMSCanRemediate'] as bool?, networkAclEntriesToBeCreated: (json['NetworkAclEntriesToBeCreated'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntryDescription.fromJson(e as Map)) .toList(), networkAclId: json['NetworkAclId'] != null @@ -2665,7 +2665,7 @@ class DeleteNetworkAclEntriesAction { fMSCanRemediate: json['FMSCanRemediate'] as bool?, networkAclEntriesToBeDeleted: (json['NetworkAclEntriesToBeDeleted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntryDescription.fromJson(e as Map)) .toList(), networkAclId: json['NetworkAclId'] != null @@ -2847,7 +2847,7 @@ class DnsRuleGroupPriorityConflictViolation { conflictingPolicyId: json['ConflictingPolicyId'] as String?, conflictingPriority: json['ConflictingPriority'] as int?, unavailablePriorities: (json['UnavailablePriorities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), violationTarget: json['ViolationTarget'] as String?, @@ -3222,7 +3222,7 @@ class EntryViolation { return EntryViolation( actualEvaluationOrder: json['ActualEvaluationOrder'] as String?, entriesWithConflicts: (json['EntriesWithConflicts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntryDescription.fromJson(e as Map)) .toList(), entryAtExpectedEvaluationOrder: json['EntryAtExpectedEvaluationOrder'] != @@ -3231,7 +3231,7 @@ class EntryViolation { json['EntryAtExpectedEvaluationOrder'] as Map) : null, entryViolationReasons: (json['EntryViolationReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntryViolationReason.fromString((e as String))) .toList(), expectedEntry: json['ExpectedEntry'] != null @@ -3326,11 +3326,11 @@ class ExpectedRoute { factory ExpectedRoute.fromJson(Map json) { return ExpectedRoute( allowedTargets: (json['AllowedTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), contributingSubnets: (json['ContributingSubnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ipV4Cidr: json['IpV4Cidr'] as String?, @@ -3867,7 +3867,7 @@ class InvalidNetworkAclEntriesViolation { currentAssociatedNetworkAcl: json['CurrentAssociatedNetworkAcl'] as String?, entryViolations: (json['EntryViolations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntryViolation.fromJson(e as Map)) .toList(), subnet: json['Subnet'] as String?, @@ -3899,7 +3899,7 @@ class ListAdminAccountsForOrganizationResponse { Map json) { return ListAdminAccountsForOrganizationResponse( adminAccounts: (json['AdminAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdminAccountSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3928,7 +3928,7 @@ class ListAdminsManagingAccountResponse { Map json) { return ListAdminsManagingAccountResponse( adminAccounts: (json['AdminAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -3954,7 +3954,7 @@ class ListAppsListsResponse { factory ListAppsListsResponse.fromJson(Map json) { return ListAppsListsResponse( appsLists: (json['AppsLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppsListDataSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3984,7 +3984,7 @@ class ListComplianceStatusResponse { return ListComplianceStatusResponse( nextToken: json['NextToken'] as String?, policyComplianceStatusList: (json['PolicyComplianceStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => PolicyComplianceStatus.fromJson(e as Map)) .toList(), @@ -4011,7 +4011,7 @@ class ListDiscoveredResourcesResponse { factory ListDiscoveredResourcesResponse.fromJson(Map json) { return ListDiscoveredResourcesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DiscoveredResource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4039,7 +4039,7 @@ class ListMemberAccountsResponse { factory ListMemberAccountsResponse.fromJson(Map json) { return ListMemberAccountsResponse( memberAccounts: (json['MemberAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -4068,7 +4068,7 @@ class ListPoliciesResponse { return ListPoliciesResponse( nextToken: json['NextToken'] as String?, policyList: (json['PolicyList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicySummary.fromJson(e as Map)) .toList(), ); @@ -4094,7 +4094,7 @@ class ListProtocolsListsResponse { return ListProtocolsListsResponse( nextToken: json['NextToken'] as String?, protocolsLists: (json['ProtocolsLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtocolsListDataSummary.fromJson(e as Map)) .toList(), @@ -4121,7 +4121,7 @@ class ListResourceSetResourcesResponse { factory ListResourceSetResourcesResponse.fromJson(Map json) { return ListResourceSetResourcesResponse( items: (json['Items'] as List) - .whereNotNull() + .nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4149,7 +4149,7 @@ class ListResourceSetsResponse { return ListResourceSetsResponse( nextToken: json['NextToken'] as String?, resourceSets: (json['ResourceSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceSetSummary.fromJson(e as Map)) .toList(), ); @@ -4167,7 +4167,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4198,7 +4198,7 @@ class ListThirdPartyFirewallFirewallPoliciesResponse { nextToken: json['NextToken'] as String?, thirdPartyFirewallFirewallPolicies: (json['ThirdPartyFirewallFirewallPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThirdPartyFirewallFirewallPolicy.fromJson( e as Map)) .toList(), @@ -4402,11 +4402,11 @@ class NetworkAclEntrySet { forceRemediateForLastEntries: json['ForceRemediateForLastEntries'] as bool, firstEntries: (json['FirstEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkAclEntry.fromJson(e as Map)) .toList(), lastEntries: (json['LastEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkAclEntry.fromJson(e as Map)) .toList(), ); @@ -4528,7 +4528,7 @@ class NetworkFirewallBlackHoleRouteDetectedViolation { return NetworkFirewallBlackHoleRouteDetectedViolation( routeTableId: json['RouteTableId'] as String?, violatingRoutes: (json['ViolatingRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), violationTarget: json['ViolationTarget'] as String?, @@ -4608,12 +4608,12 @@ class NetworkFirewallInternetTrafficNotInspectedViolation { Map json) { return NetworkFirewallInternetTrafficNotInspectedViolation( actualFirewallSubnetRoutes: (json['ActualFirewallSubnetRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), actualInternetGatewayRoutes: (json['ActualInternetGatewayRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), currentFirewallSubnetRouteTable: @@ -4623,12 +4623,12 @@ class NetworkFirewallInternetTrafficNotInspectedViolation { expectedFirewallEndpoint: json['ExpectedFirewallEndpoint'] as String?, expectedFirewallSubnetRoutes: (json['ExpectedFirewallSubnetRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpectedRoute.fromJson(e as Map)) .toList(), expectedInternetGatewayRoutes: (json['ExpectedInternetGatewayRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpectedRoute.fromJson(e as Map)) .toList(), firewallSubnetId: json['FirewallSubnetId'] as String?, @@ -4639,7 +4639,7 @@ class NetworkFirewallInternetTrafficNotInspectedViolation { subnetAvailabilityZone: json['SubnetAvailabilityZone'] as String?, subnetId: json['SubnetId'] as String?, violatingRoutes: (json['ViolatingRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -4725,16 +4725,16 @@ class NetworkFirewallInvalidRouteConfigurationViolation { actualFirewallEndpoint: json['ActualFirewallEndpoint'] as String?, actualFirewallSubnetId: json['ActualFirewallSubnetId'] as String?, actualFirewallSubnetRoutes: (json['ActualFirewallSubnetRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), actualInternetGatewayRoutes: (json['ActualInternetGatewayRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), affectedSubnets: (json['AffectedSubnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), currentFirewallSubnetRouteTable: @@ -4745,12 +4745,12 @@ class NetworkFirewallInvalidRouteConfigurationViolation { expectedFirewallSubnetId: json['ExpectedFirewallSubnetId'] as String?, expectedFirewallSubnetRoutes: (json['ExpectedFirewallSubnetRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpectedRoute.fromJson(e as Map)) .toList(), expectedInternetGatewayRoutes: (json['ExpectedInternetGatewayRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpectedRoute.fromJson(e as Map)) .toList(), internetGatewayId: json['InternetGatewayId'] as String?, @@ -4826,7 +4826,7 @@ class NetworkFirewallMissingExpectedRoutesViolation { Map json) { return NetworkFirewallMissingExpectedRoutesViolation( expectedRoutes: (json['ExpectedRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpectedRoute.fromJson(e as Map)) .toList(), violationTarget: json['ViolationTarget'] as String?, @@ -5009,7 +5009,7 @@ class NetworkFirewallPolicyDescription { factory NetworkFirewallPolicyDescription.fromJson(Map json) { return NetworkFirewallPolicyDescription( statefulDefaultActions: (json['StatefulDefaultActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statefulEngineOptions: json['StatefulEngineOptions'] != null @@ -5017,24 +5017,24 @@ class NetworkFirewallPolicyDescription { json['StatefulEngineOptions'] as Map) : null, statefulRuleGroups: (json['StatefulRuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StatefulRuleGroup.fromJson(e as Map)) .toList(), statelessCustomActions: (json['StatelessCustomActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statelessDefaultActions: (json['StatelessDefaultActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statelessFragmentDefaultActions: (json['StatelessFragmentDefaultActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statelessRuleGroups: (json['StatelessRuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StatelessRuleGroup.fromJson(e as Map)) .toList(), ); @@ -5129,7 +5129,7 @@ class NetworkFirewallUnexpectedFirewallRoutesViolation { firewallSubnetId: json['FirewallSubnetId'] as String?, routeTableId: json['RouteTableId'] as String?, violatingRoutes: (json['ViolatingRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -5165,7 +5165,7 @@ class NetworkFirewallUnexpectedGatewayRoutesViolation { gatewayId: json['GatewayId'] as String?, routeTableId: json['RouteTableId'] as String?, violatingRoutes: (json['ViolatingRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -5240,7 +5240,7 @@ class OrganizationalUnitScope { excludeSpecifiedOrganizationalUnits: json['ExcludeSpecifiedOrganizationalUnits'] as bool?, organizationalUnits: (json['OrganizationalUnits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5282,7 +5282,7 @@ class PartialMatch { return PartialMatch( reference: json['Reference'] as String?, targetViolationReasons: (json['TargetViolationReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5500,25 +5500,25 @@ class Policy { json['DeleteUnusedFMManagedResources'] as bool?, excludeMap: (json['ExcludeMap'] as Map?)?.map((k, e) => MapEntry(CustomerPolicyScopeIdType.fromString(k), - (e as List).whereNotNull().map((e) => e as String).toList())), + (e as List).nonNulls.map((e) => e as String).toList())), includeMap: (json['IncludeMap'] as Map?)?.map((k, e) => MapEntry(CustomerPolicyScopeIdType.fromString(k), - (e as List).whereNotNull().map((e) => e as String).toList())), + (e as List).nonNulls.map((e) => e as String).toList())), policyDescription: json['PolicyDescription'] as String?, policyId: json['PolicyId'] as String?, policyStatus: (json['PolicyStatus'] as String?) ?.let(CustomerPolicyStatus.fromString), policyUpdateToken: json['PolicyUpdateToken'] as String?, resourceSetIds: (json['ResourceSetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), resourceTypeList: (json['ResourceTypeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5613,7 +5613,7 @@ class PolicyComplianceDetail { policyId: json['PolicyId'] as String?, policyOwner: json['PolicyOwner'] as String?, violators: (json['Violators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComplianceViolator.fromJson(e as Map)) .toList(), ); @@ -5660,7 +5660,7 @@ class PolicyComplianceStatus { factory PolicyComplianceStatus.fromJson(Map json) { return PolicyComplianceStatus( evaluationResults: (json['EvaluationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationResult.fromJson(e as Map)) .toList(), issueInfoMap: (json['IssueInfoMap'] as Map?)?.map( @@ -5843,7 +5843,7 @@ class PolicyTypeScope { return PolicyTypeScope( allPolicyTypesEnabled: json['AllPolicyTypesEnabled'] as bool?, policyTypes: (json['PolicyTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityServiceType.fromString((e as String))) .toList(), ); @@ -5881,7 +5881,7 @@ class PossibleRemediationAction { factory PossibleRemediationAction.fromJson(Map json) { return PossibleRemediationAction( orderedRemediationActions: (json['OrderedRemediationActions'] as List) - .whereNotNull() + .nonNulls .map((e) => RemediationActionWithOrder.fromJson(e as Map)) .toList(), @@ -5908,7 +5908,7 @@ class PossibleRemediationActions { factory PossibleRemediationActions.fromJson(Map json) { return PossibleRemediationActions( actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PossibleRemediationAction.fromJson(e as Map)) .toList(), @@ -5956,17 +5956,17 @@ class ProtocolsListData { return ProtocolsListData( listName: json['ListName'] as String, protocolsList: (json['ProtocolsList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), createTime: timeStampFromJson(json['CreateTime']), lastUpdateTime: timeStampFromJson(json['LastUpdateTime']), listId: json['ListId'] as String?, listUpdateToken: json['ListUpdateToken'] as String?, - previousProtocolsList: (json['PreviousProtocolsList'] - as Map?) - ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + previousProtocolsList: + (json['PreviousProtocolsList'] as Map?)?.map( + (k, e) => MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -6019,7 +6019,7 @@ class ProtocolsListDataSummary { listId: json['ListId'] as String?, listName: json['ListName'] as String?, protocolsList: (json['ProtocolsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6133,10 +6133,8 @@ class RegionScope { factory RegionScope.fromJson(Map json) { return RegionScope( allRegionsEnabled: json['AllRegionsEnabled'] as bool?, - regions: (json['Regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['Regions'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6449,7 +6447,7 @@ class ResourceSet { return ResourceSet( name: json['Name'] as String, resourceTypeList: (json['ResourceTypeList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), description: json['Description'] as String?, @@ -6971,12 +6969,12 @@ class RouteHasOutOfScopeEndpointViolation { json['CurrentInternetGatewayRouteTable'] as String?, firewallSubnetId: json['FirewallSubnetId'] as String?, firewallSubnetRoutes: (json['FirewallSubnetRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), internetGatewayId: json['InternetGatewayId'] as String?, internetGatewayRoutes: (json['InternetGatewayRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), routeTableId: json['RouteTableId'] as String?, @@ -6984,7 +6982,7 @@ class RouteHasOutOfScopeEndpointViolation { subnetAvailabilityZoneId: json['SubnetAvailabilityZoneId'] as String?, subnetId: json['SubnetId'] as String?, violatingRoutes: (json['ViolatingRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Route.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -7971,12 +7969,12 @@ class ViolationDetail { resourceId: json['ResourceId'] as String, resourceType: json['ResourceType'] as String, resourceViolations: (json['ResourceViolations'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceViolation.fromJson(e as Map)) .toList(), resourceDescription: json['ResourceDescription'] as String?, resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_fms_api/pubspec.yaml b/generated/aws_fms_api/pubspec.yaml index 51b8e9f81..f093cc62f 100644 --- a/generated/aws_fms_api/pubspec.yaml +++ b/generated/aws_fms_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_fms_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_forecast_api/lib/forecast-2018-06-26.dart b/generated/aws_forecast_api/lib/forecast-2018-06-26.dart index 8842db929..22b3296ce 100644 --- a/generated/aws_forecast_api/lib/forecast-2018-06-26.dart +++ b/generated/aws_forecast_api/lib/forecast-2018-06-26.dart @@ -4869,9 +4869,9 @@ class AdditionalDataset { factory AdditionalDataset.fromJson(Map json) { return AdditionalDataset( name: json['Name'] as String, - configuration: (json['Configuration'] as Map?)?.map( - (k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + configuration: (json['Configuration'] as Map?)?.map((k, + e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -5073,10 +5073,8 @@ class CategoricalParameterRange { factory CategoricalParameterRange.fromJson(Map json) { return CategoricalParameterRange( name: json['Name'] as String, - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -5410,11 +5408,11 @@ class DataConfig { return DataConfig( datasetGroupArn: json['DatasetGroupArn'] as String, additionalDatasets: (json['AdditionalDatasets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalDataset.fromJson(e as Map)) .toList(), attributeConfigs: (json['AttributeConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeConfig.fromJson(e as Map)) .toList(), ); @@ -5842,7 +5840,7 @@ class DescribeAutoPredictorResponse { ? DataConfig.fromJson(json['DataConfig'] as Map) : null, datasetImportJobArns: (json['DatasetImportJobArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), encryptionConfig: json['EncryptionConfig'] != null @@ -5856,13 +5854,13 @@ class DescribeAutoPredictorResponse { json['ExplainabilityInfo'] as Map) : null, forecastDimensions: (json['ForecastDimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), forecastFrequency: json['ForecastFrequency'] as String?, forecastHorizon: json['ForecastHorizon'] as int?, forecastTypes: (json['ForecastTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastModificationTime: timeStampFromJson(json['LastModificationTime']), @@ -5953,7 +5951,7 @@ class DescribeDatasetGroupResponse { return DescribeDatasetGroupResponse( creationTime: timeStampFromJson(json['CreationTime']), datasetArns: (json['DatasetArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), datasetGroupArn: json['DatasetGroupArn'] as String?, @@ -6652,7 +6650,7 @@ class DescribeForecastResponse { forecastArn: json['ForecastArn'] as String?, forecastName: json['ForecastName'] as String?, forecastTypes: (json['ForecastTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastModificationTime: timeStampFromJson(json['LastModificationTime']), @@ -7002,14 +7000,14 @@ class DescribePredictorResponse { return DescribePredictorResponse( algorithmArn: json['AlgorithmArn'] as String?, autoMLAlgorithmArns: (json['AutoMLAlgorithmArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), autoMLOverrideStrategy: (json['AutoMLOverrideStrategy'] as String?) ?.let(AutoMLOverrideStrategy.fromString), creationTime: timeStampFromJson(json['CreationTime']), datasetImportJobArns: (json['DatasetImportJobArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), encryptionConfig: json['EncryptionConfig'] != null @@ -7028,7 +7026,7 @@ class DescribePredictorResponse { : null, forecastHorizon: json['ForecastHorizon'] as int?, forecastTypes: (json['ForecastTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), hPOConfig: json['HPOConfig'] != null @@ -7255,7 +7253,7 @@ class DescribeWhatIfForecastExportResponse { message: json['Message'] as String?, status: json['Status'] as String?, whatIfForecastArns: (json['WhatIfForecastArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), whatIfForecastExportArn: json['WhatIfForecastExportArn'] as String?, @@ -7365,7 +7363,7 @@ class DescribeWhatIfForecastResponse { estimatedTimeRemainingInMinutes: json['EstimatedTimeRemainingInMinutes'] as int?, forecastTypes: (json['ForecastTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastModificationTime: timeStampFromJson(json['LastModificationTime']), @@ -7378,7 +7376,7 @@ class DescribeWhatIfForecastResponse { as Map) : null, timeSeriesTransformations: (json['TimeSeriesTransformations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesTransformation.fromJson(e as Map)) .toList(), @@ -7548,7 +7546,7 @@ class EvaluationResult { return EvaluationResult( algorithmArn: json['AlgorithmArn'] as String?, testWindows: (json['TestWindows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WindowSummary.fromJson(e as Map)) .toList(), ); @@ -7892,7 +7890,7 @@ class Featurization { return Featurization( attributeName: json['AttributeName'] as String, featurizationPipeline: (json['FeaturizationPipeline'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeaturizationMethod.fromJson(e as Map)) .toList(), ); @@ -7997,11 +7995,11 @@ class FeaturizationConfig { return FeaturizationConfig( forecastFrequency: json['ForecastFrequency'] as String, featurizations: (json['Featurizations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Featurization.fromJson(e as Map)) .toList(), forecastDimensions: (json['ForecastDimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8408,7 +8406,7 @@ class GetAccuracyMetricsResponse { optimizationMetric: (json['OptimizationMetric'] as String?) ?.let(OptimizationMetric.fromString), predictorEvaluationResults: (json['PredictorEvaluationResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluationResult.fromJson(e as Map)) .toList(), ); @@ -8491,7 +8489,7 @@ class InputDataConfig { return InputDataConfig( datasetGroupArn: json['DatasetGroupArn'] as String, supplementaryFeatures: (json['SupplementaryFeatures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupplementaryFeature.fromJson(e as Map)) .toList(), ); @@ -8591,7 +8589,7 @@ class ListDatasetGroupsResponse { factory ListDatasetGroupsResponse.fromJson(Map json) { return ListDatasetGroupsResponse( datasetGroups: (json['DatasetGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8615,7 +8613,7 @@ class ListDatasetImportJobsResponse { factory ListDatasetImportJobsResponse.fromJson(Map json) { return ListDatasetImportJobsResponse( datasetImportJobs: (json['DatasetImportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetImportJobSummary.fromJson(e as Map)) .toList(), @@ -8640,7 +8638,7 @@ class ListDatasetsResponse { factory ListDatasetsResponse.fromJson(Map json) { return ListDatasetsResponse( datasets: (json['Datasets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8665,7 +8663,7 @@ class ListExplainabilitiesResponse { factory ListExplainabilitiesResponse.fromJson(Map json) { return ListExplainabilitiesResponse( explainabilities: (json['Explainabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExplainabilitySummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8691,7 +8689,7 @@ class ListExplainabilityExportsResponse { Map json) { return ListExplainabilityExportsResponse( explainabilityExports: (json['ExplainabilityExports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExplainabilityExportSummary.fromJson(e as Map)) .toList(), @@ -8716,7 +8714,7 @@ class ListForecastExportJobsResponse { factory ListForecastExportJobsResponse.fromJson(Map json) { return ListForecastExportJobsResponse( forecastExportJobs: (json['ForecastExportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ForecastExportJobSummary.fromJson(e as Map)) .toList(), @@ -8741,7 +8739,7 @@ class ListForecastsResponse { factory ListForecastsResponse.fromJson(Map json) { return ListForecastsResponse( forecasts: (json['Forecasts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ForecastSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8776,7 +8774,7 @@ class ListMonitorEvaluationsResponse { nextToken: json['NextToken'] as String?, predictorMonitorEvaluations: (json['PredictorMonitorEvaluations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictorMonitorEvaluation.fromJson(e as Map)) .toList(), @@ -8800,7 +8798,7 @@ class ListMonitorsResponse { factory ListMonitorsResponse.fromJson(Map json) { return ListMonitorsResponse( monitors: (json['Monitors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MonitorSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8828,7 +8826,7 @@ class ListPredictorBacktestExportJobsResponse { nextToken: json['NextToken'] as String?, predictorBacktestExportJobs: (json['PredictorBacktestExportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictorBacktestExportJobSummary.fromJson( e as Map)) .toList(), @@ -8853,7 +8851,7 @@ class ListPredictorsResponse { return ListPredictorsResponse( nextToken: json['NextToken'] as String?, predictors: (json['Predictors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictorSummary.fromJson(e as Map)) .toList(), ); @@ -8871,7 +8869,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8896,7 +8894,7 @@ class ListWhatIfAnalysesResponse { return ListWhatIfAnalysesResponse( nextToken: json['NextToken'] as String?, whatIfAnalyses: (json['WhatIfAnalyses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WhatIfAnalysisSummary.fromJson(e as Map)) .toList(), ); @@ -8922,7 +8920,7 @@ class ListWhatIfForecastExportsResponse { return ListWhatIfForecastExportsResponse( nextToken: json['NextToken'] as String?, whatIfForecastExports: (json['WhatIfForecastExports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WhatIfForecastExportSummary.fromJson(e as Map)) .toList(), @@ -8949,7 +8947,7 @@ class ListWhatIfForecastsResponse { return ListWhatIfForecastsResponse( nextToken: json['NextToken'] as String?, whatIfForecasts: (json['WhatIfForecasts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WhatIfForecastSummary.fromJson(e as Map)) .toList(), ); @@ -9014,12 +9012,12 @@ class Metrics { averageWeightedQuantileLoss: json['AverageWeightedQuantileLoss'] as double?, errorMetrics: (json['ErrorMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorMetric.fromJson(e as Map)) .toList(), rmse: json['RMSE'] as double?, weightedQuantileLosses: (json['WeightedQuantileLosses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WeightedQuantileLoss.fromJson(e as Map)) .toList(), ); @@ -9275,17 +9273,17 @@ class ParameterRanges { factory ParameterRanges.fromJson(Map json) { return ParameterRanges( categoricalParameterRanges: (json['CategoricalParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CategoricalParameterRange.fromJson(e as Map)) .toList(), continuousParameterRanges: (json['ContinuousParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContinuousParameterRange.fromJson(e as Map)) .toList(), integerParameterRanges: (json['IntegerParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegerParameterRange.fromJson(e as Map)) .toList(), ); @@ -9413,7 +9411,7 @@ class PredictorBaseline { factory PredictorBaseline.fromJson(Map json) { return PredictorBaseline( baselineMetrics: (json['BaselineMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BaselineMetric.fromJson(e as Map)) .toList(), ); @@ -9463,7 +9461,7 @@ class PredictorExecution { return PredictorExecution( algorithmArn: json['AlgorithmArn'] as String?, testWindows: (json['TestWindows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TestWindowSummary.fromJson(e as Map)) .toList(), ); @@ -9488,7 +9486,7 @@ class PredictorExecutionDetails { factory PredictorExecutionDetails.fromJson(Map json) { return PredictorExecutionDetails( predictorExecutions: (json['PredictorExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictorExecution.fromJson(e as Map)) .toList(), ); @@ -9556,7 +9554,7 @@ class PredictorMonitorEvaluation { evaluationTime: timeStampFromJson(json['EvaluationTime']), message: json['Message'] as String?, metricResults: (json['MetricResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricResult.fromJson(e as Map)) .toList(), monitorArn: json['MonitorArn'] as String?, @@ -9782,7 +9780,7 @@ class Schema { factory Schema.fromJson(Map json) { return Schema( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaAttribute.fromJson(e as Map)) .toList(), ); @@ -10612,7 +10610,7 @@ class TimeSeriesTransformation { ? Action.fromJson(json['Action'] as Map) : null, timeSeriesConditions: (json['TimeSeriesConditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesCondition.fromJson(e as Map)) .toList(), ); @@ -10854,7 +10852,7 @@ class WhatIfForecastExportSummary { message: json['Message'] as String?, status: json['Status'] as String?, whatIfForecastArns: (json['WhatIfForecastArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), whatIfForecastExportArn: json['WhatIfForecastExportArn'] as String?, diff --git a/generated/aws_forecast_api/pubspec.yaml b/generated/aws_forecast_api/pubspec.yaml index f37f585f1..e25e81892 100644 --- a/generated/aws_forecast_api/pubspec.yaml +++ b/generated/aws_forecast_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_foreca protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_forecastquery_api/lib/forecastquery-2018-06-26.dart b/generated/aws_forecastquery_api/lib/forecastquery-2018-06-26.dart index cd9adbb27..67d4cdba1 100644 --- a/generated/aws_forecastquery_api/lib/forecastquery-2018-06-26.dart +++ b/generated/aws_forecastquery_api/lib/forecastquery-2018-06-26.dart @@ -249,7 +249,7 @@ class Forecast { MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => DataPoint.fromJson(e as Map)) .toList())), ); diff --git a/generated/aws_forecastquery_api/pubspec.yaml b/generated/aws_forecastquery_api/pubspec.yaml index a3f8ca459..36c2c17b6 100644 --- a/generated/aws_forecastquery_api/pubspec.yaml +++ b/generated/aws_forecastquery_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_foreca protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_frauddetector_api/lib/frauddetector-2019-11-15.dart b/generated/aws_frauddetector_api/lib/frauddetector-2019-11-15.dart index 377aa11ef..a1573c62f 100644 --- a/generated/aws_frauddetector_api/lib/frauddetector-2019-11-15.dart +++ b/generated/aws_frauddetector_api/lib/frauddetector-2019-11-15.dart @@ -3676,7 +3676,7 @@ class ATITrainingMetricsValue { factory ATITrainingMetricsValue.fromJson(Map json) { return ATITrainingMetricsValue( metricDataPoints: (json['metricDataPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ATIMetricDataPoint.fromJson(e as Map)) .toList(), modelPerformance: json['modelPerformance'] != null @@ -3713,7 +3713,7 @@ class AggregatedLogOddsMetric { aggregatedVariablesImportance: json['aggregatedVariablesImportance'] as double, variableNames: (json['variableNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -3761,7 +3761,7 @@ class AggregatedVariablesImpactExplanation { Map json) { return AggregatedVariablesImpactExplanation( eventVariableNames: (json['eventVariableNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), logOddsImpact: json['logOddsImpact'] as double?, @@ -3790,7 +3790,7 @@ class AggregatedVariablesImportanceMetrics { Map json) { return AggregatedVariablesImportanceMetrics( logOddsMetrics: (json['logOddsMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregatedLogOddsMetric.fromJson(e as Map)) .toList(), @@ -3895,7 +3895,7 @@ class BatchCreateVariableResult { factory BatchCreateVariableResult.fromJson(Map json) { return BatchCreateVariableResult( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchCreateVariableError.fromJson(e as Map)) .toList(), @@ -3944,11 +3944,11 @@ class BatchGetVariableResult { factory BatchGetVariableResult.fromJson(Map json) { return BatchGetVariableResult( errors: (json['errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchGetVariableError.fromJson(e as Map)) .toList(), variables: (json['variables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Variable.fromJson(e as Map)) .toList(), ); @@ -4295,12 +4295,12 @@ class DataValidationMetrics { factory DataValidationMetrics.fromJson(Map json) { return DataValidationMetrics( fieldLevelMessages: (json['fieldLevelMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => FieldValidationMessage.fromJson(e as Map)) .toList(), fileLevelMessages: (json['fileLevelMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileValidationMessage.fromJson(e as Map)) .toList(), ); @@ -4472,7 +4472,7 @@ class DescribeDetectorResult { arn: json['arn'] as String?, detectorId: json['detectorId'] as String?, detectorVersionSummaries: (json['detectorVersionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DetectorVersionSummary.fromJson(e as Map)) .toList(), @@ -4496,7 +4496,7 @@ class DescribeModelVersionsResult { factory DescribeModelVersionsResult.fromJson(Map json) { return DescribeModelVersionsResult( modelVersionDetails: (json['modelVersionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelVersionDetail.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4721,7 +4721,7 @@ class EvaluatedModelVersion { factory EvaluatedModelVersion.fromJson(Map json) { return EvaluatedModelVersion( evaluations: (json['evaluations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ModelVersionEvaluation.fromJson(e as Map)) .toList(), @@ -4772,7 +4772,7 @@ class EvaluatedRule { expressionWithValues: json['expressionWithValues'] as String?, matched: json['matched'] as bool?, outcomes: (json['outcomes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ruleId: json['ruleId'] as String?, @@ -4822,7 +4822,7 @@ class Event { return Event( currentLabel: json['currentLabel'] as String?, entities: (json['entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), eventId: json['eventId'] as String?, @@ -4973,7 +4973,7 @@ class EventType { createdTime: json['createdTime'] as String?, description: json['description'] as String?, entityTypes: (json['entityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), eventIngestion: @@ -4983,17 +4983,15 @@ class EventType { json['eventOrchestration'] as Map) : null, eventVariables: (json['eventVariables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ingestedEventStatistics: json['ingestedEventStatistics'] != null ? IngestedEventStatistics.fromJson( json['ingestedEventStatistics'] as Map) : null, - labels: (json['labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['labels'] as List?)?.nonNulls.map((e) => e as String).toList(), lastUpdatedTime: json['lastUpdatedTime'] as String?, name: json['name'] as String?, ); @@ -5264,7 +5262,7 @@ class GetBatchImportJobsResult { factory GetBatchImportJobsResult.fromJson(Map json) { return GetBatchImportJobsResult( batchImports: (json['batchImports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchImport.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5287,7 +5285,7 @@ class GetBatchPredictionJobsResult { factory GetBatchPredictionJobsResult.fromJson(Map json) { return GetBatchPredictionJobsResult( batchPredictions: (json['batchPredictions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPrediction.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5382,18 +5380,18 @@ class GetDetectorVersionResult { detectorId: json['detectorId'] as String?, detectorVersionId: json['detectorVersionId'] as String?, externalModelEndpoints: (json['externalModelEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedTime: json['lastUpdatedTime'] as String?, modelVersions: (json['modelVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelVersion.fromJson(e as Map)) .toList(), ruleExecutionMode: (json['ruleExecutionMode'] as String?) ?.let(RuleExecutionMode.fromString), rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), status: @@ -5417,7 +5415,7 @@ class GetDetectorsResult { factory GetDetectorsResult.fromJson(Map json) { return GetDetectorsResult( detectors: (json['detectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Detector.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5440,7 +5438,7 @@ class GetEntityTypesResult { factory GetEntityTypesResult.fromJson(Map json) { return GetEntityTypesResult( entityTypes: (json['entityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityType.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5523,30 +5521,30 @@ class GetEventPredictionMetadataResult { entityId: json['entityId'] as String?, entityType: json['entityType'] as String?, evaluatedExternalModels: (json['evaluatedExternalModels'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => EvaluatedExternalModel.fromJson(e as Map)) .toList(), evaluatedModelVersions: (json['evaluatedModelVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluatedModelVersion.fromJson(e as Map)) .toList(), eventId: json['eventId'] as String?, eventTimestamp: json['eventTimestamp'] as String?, eventTypeName: json['eventTypeName'] as String?, eventVariables: (json['eventVariables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventVariableSummary.fromJson(e as Map)) .toList(), outcomes: (json['outcomes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), predictionTimestamp: json['predictionTimestamp'] as String?, ruleExecutionMode: (json['ruleExecutionMode'] as String?) ?.let(RuleExecutionMode.fromString), rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EvaluatedRule.fromJson(e as Map)) .toList(), ); @@ -5576,15 +5574,15 @@ class GetEventPredictionResult { factory GetEventPredictionResult.fromJson(Map json) { return GetEventPredictionResult( externalModelOutputs: (json['externalModelOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExternalModelOutputs.fromJson(e as Map)) .toList(), modelScores: (json['modelScores'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelScores.fromJson(e as Map)) .toList(), ruleResults: (json['ruleResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleResult.fromJson(e as Map)) .toList(), ); @@ -5623,7 +5621,7 @@ class GetEventTypesResult { factory GetEventTypesResult.fromJson(Map json) { return GetEventTypesResult( eventTypes: (json['eventTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventType.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5646,7 +5644,7 @@ class GetExternalModelsResult { factory GetExternalModelsResult.fromJson(Map json) { return GetExternalModelsResult( externalModels: (json['externalModels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExternalModel.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5686,7 +5684,7 @@ class GetLabelsResult { factory GetLabelsResult.fromJson(Map json) { return GetLabelsResult( labels: (json['labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Label.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5709,7 +5707,7 @@ class GetListElementsResult { factory GetListElementsResult.fromJson(Map json) { return GetListElementsResult( elements: (json['elements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -5732,7 +5730,7 @@ class GetListsMetadataResult { factory GetListsMetadataResult.fromJson(Map json) { return GetListsMetadataResult( lists: (json['lists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AllowDenyList.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5856,7 +5854,7 @@ class GetModelsResult { factory GetModelsResult.fromJson(Map json) { return GetModelsResult( models: (json['models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Model.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5880,7 +5878,7 @@ class GetOutcomesResult { return GetOutcomesResult( nextToken: json['nextToken'] as String?, outcomes: (json['outcomes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Outcome.fromJson(e as Map)) .toList(), ); @@ -5903,7 +5901,7 @@ class GetRulesResult { return GetRulesResult( nextToken: json['nextToken'] as String?, ruleDetails: (json['ruleDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleDetail.fromJson(e as Map)) .toList(), ); @@ -5926,7 +5924,7 @@ class GetVariablesResult { return GetVariablesResult( nextToken: json['nextToken'] as String?, variables: (json['variables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Variable.fromJson(e as Map)) .toList(), ); @@ -6123,8 +6121,7 @@ class LabelSchema { factory LabelSchema.fromJson(Map json) { return LabelSchema( labelMapper: (json['labelMapper'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), unlabeledEventsTreatment: (json['unlabeledEventsTreatment'] as String?) ?.let(UnlabeledEventsTreatment.fromString), ); @@ -6171,7 +6168,7 @@ class ListEventPredictionsResult { factory ListEventPredictionsResult.fromJson(Map json) { return ListEventPredictionsResult( eventPredictionSummaries: (json['eventPredictionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => EventPredictionSummary.fromJson(e as Map)) .toList(), @@ -6196,7 +6193,7 @@ class ListTagsForResourceResult { return ListTagsForResourceResult( nextToken: json['nextToken'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6819,7 +6816,7 @@ class OFITrainingMetricsValue { factory OFITrainingMetricsValue.fromJson(Map json) { return OFITrainingMetricsValue( metricDataPoints: (json['metricDataPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OFIMetricDataPoint.fromJson(e as Map)) .toList(), modelPerformance: json['modelPerformance'] != null @@ -6892,12 +6889,12 @@ class PredictionExplanations { return PredictionExplanations( aggregatedVariablesImpactExplanations: (json['aggregatedVariablesImpactExplanations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AggregatedVariablesImpactExplanation.fromJson( e as Map)) .toList(), variableImpactExplanations: (json['variableImpactExplanations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VariableImpactExplanation.fromJson(e as Map)) .toList(), @@ -7076,7 +7073,7 @@ class RuleDetail { language: (json['language'] as String?)?.let(Language.fromString), lastUpdatedTime: json['lastUpdatedTime'] as String?, outcomes: (json['outcomes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ruleId: json['ruleId'] as String?, @@ -7116,7 +7113,7 @@ class RuleResult { factory RuleResult.fromJson(Map json) { return RuleResult( outcomes: (json['outcomes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ruleId: json['ruleId'] as String?, @@ -7212,7 +7209,7 @@ class TFITrainingMetricsValue { factory TFITrainingMetricsValue.fromJson(Map json) { return TFITrainingMetricsValue( metricDataPoints: (json['metricDataPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TFIMetricDataPoint.fromJson(e as Map)) .toList(), modelPerformance: json['modelPerformance'] != null @@ -7275,7 +7272,7 @@ class TrainingDataSchema { factory TrainingDataSchema.fromJson(Map json) { return TrainingDataSchema( modelVariables: (json['modelVariables'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), labelSchema: json['labelSchema'] != null @@ -7329,7 +7326,7 @@ class TrainingMetrics { return TrainingMetrics( auc: json['auc'] as double?, metricDataPoints: (json['metricDataPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDataPoint.fromJson(e as Map)) .toList(), ); @@ -7799,7 +7796,7 @@ class VariableImportanceMetrics { factory VariableImportanceMetrics.fromJson(Map json) { return VariableImportanceMetrics( logOddsMetrics: (json['logOddsMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogOddsMetric.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_frauddetector_api/pubspec.yaml b/generated/aws_frauddetector_api/pubspec.yaml index fa0b7b2f3..5699d4c1d 100644 --- a/generated/aws_frauddetector_api/pubspec.yaml +++ b/generated/aws_frauddetector_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_fraudd protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_fsx_api/lib/fsx-2018-03-01.dart b/generated/aws_fsx_api/lib/fsx-2018-03-01.dart index ea2f9c44f..aae8fdb9b 100644 --- a/generated/aws_fsx_api/lib/fsx-2018-03-01.dart +++ b/generated/aws_fsx_api/lib/fsx-2018-03-01.dart @@ -3870,7 +3870,7 @@ class AggregateConfiguration { factory AggregateConfiguration.fromJson(Map json) { return AggregateConfiguration( aggregates: (json['Aggregates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), totalConstituents: json['TotalConstituents'] as int?, @@ -3983,7 +3983,7 @@ class AssociateFileSystemAliasesResponse { Map json) { return AssociateFileSystemAliasesResponse( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), ); @@ -4027,7 +4027,7 @@ class AutoExportPolicy { factory AutoExportPolicy.fromJson(Map json) { return AutoExportPolicy( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventType.fromString((e as String))) .toList(), ); @@ -4077,7 +4077,7 @@ class AutoImportPolicy { factory AutoImportPolicy.fromJson(Map json) { return AutoImportPolicy( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventType.fromString((e as String))) .toList(), ); @@ -4303,7 +4303,7 @@ class Backup { sourceBackupId: json['SourceBackupId'] as String?, sourceBackupRegion: json['SourceBackupRegion'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), volume: json['Volume'] != null @@ -4550,7 +4550,7 @@ class CopySnapshotAndUpdateVolumeResponse { Map json) { return CopySnapshotAndUpdateVolumeResponse( administrativeActions: (json['AdministrativeActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdministrativeAction.fromJson(e as Map)) .toList(), lifecycle: @@ -6335,7 +6335,7 @@ class DataRepositoryAssociation { dataRepositoryPath: json['DataRepositoryPath'] as String?, dataRepositorySubdirectories: (json['DataRepositorySubdirectories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failureDetails: json['FailureDetails'] != null @@ -6359,7 +6359,7 @@ class DataRepositoryAssociation { json['S3'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6678,10 +6678,8 @@ class DataRepositoryTask { : null, fileCacheId: json['FileCacheId'] as String?, fileSystemId: json['FileSystemId'] as String?, - paths: (json['Paths'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + paths: + (json['Paths'] as List?)?.nonNulls.map((e) => e as String).toList(), releaseConfiguration: json['ReleaseConfiguration'] != null ? ReleaseConfiguration.fromJson( json['ReleaseConfiguration'] as Map) @@ -6696,7 +6694,7 @@ class DataRepositoryTask { json['Status'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6986,7 +6984,7 @@ class DeleteFileSystemLustreResponse { return DeleteFileSystemLustreResponse( finalBackupId: json['FinalBackupId'] as String?, finalBackupTags: (json['FinalBackupTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7059,7 +7057,7 @@ class DeleteFileSystemOpenZFSResponse { return DeleteFileSystemOpenZFSResponse( finalBackupId: json['FinalBackupId'] as String?, finalBackupTags: (json['FinalBackupTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7156,7 +7154,7 @@ class DeleteFileSystemWindowsResponse { return DeleteFileSystemWindowsResponse( finalBackupId: json['FinalBackupId'] as String?, finalBackupTags: (json['FinalBackupTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7277,7 +7275,7 @@ class DeleteVolumeOntapResponse { return DeleteVolumeOntapResponse( finalBackupId: json['FinalBackupId'] as String?, finalBackupTags: (json['FinalBackupTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7352,7 +7350,7 @@ class DescribeBackupsResponse { factory DescribeBackupsResponse.fromJson(Map json) { return DescribeBackupsResponse( backups: (json['Backups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Backup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7374,7 +7372,7 @@ class DescribeDataRepositoryAssociationsResponse { Map json) { return DescribeDataRepositoryAssociationsResponse( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataRepositoryAssociation.fromJson(e as Map)) .toList(), @@ -7397,7 +7395,7 @@ class DescribeDataRepositoryTasksResponse { Map json) { return DescribeDataRepositoryTasksResponse( dataRepositoryTasks: (json['DataRepositoryTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataRepositoryTask.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7418,7 +7416,7 @@ class DescribeFileCachesResponse { factory DescribeFileCachesResponse.fromJson(Map json) { return DescribeFileCachesResponse( fileCaches: (json['FileCaches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileCache.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7446,7 +7444,7 @@ class DescribeFileSystemAliasesResponse { Map json) { return DescribeFileSystemAliasesResponse( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7472,7 +7470,7 @@ class DescribeFileSystemsResponse { factory DescribeFileSystemsResponse.fromJson(Map json) { return DescribeFileSystemsResponse( fileSystems: (json['FileSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7513,7 +7511,7 @@ class DescribeSnapshotsResponse { return DescribeSnapshotsResponse( nextToken: json['NextToken'] as String?, snapshots: (json['Snapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Snapshot.fromJson(e as Map)) .toList(), ); @@ -7537,7 +7535,7 @@ class DescribeStorageVirtualMachinesResponse { return DescribeStorageVirtualMachinesResponse( nextToken: json['NextToken'] as String?, storageVirtualMachines: (json['StorageVirtualMachines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageVirtualMachine.fromJson(e as Map)) .toList(), ); @@ -7560,7 +7558,7 @@ class DescribeVolumesResponse { return DescribeVolumesResponse( nextToken: json['NextToken'] as String?, volumes: (json['Volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -7584,7 +7582,7 @@ class DisassociateFileSystemAliasesResponse { Map json) { return DisassociateFileSystemAliasesResponse( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), ); @@ -7821,7 +7819,7 @@ class FileCache { dNSName: json['DNSName'] as String?, dataRepositoryAssociationIds: (json['DataRepositoryAssociationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failureDetails: json['FailureDetails'] != null @@ -7840,14 +7838,14 @@ class FileCache { json['LustreConfiguration'] as Map) : null, networkInterfaceIds: (json['NetworkInterfaceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ownerId: json['OwnerId'] as String?, resourceARN: json['ResourceARN'] as String?, storageCapacity: json['StorageCapacity'] as int?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -7955,7 +7953,7 @@ class FileCacheCreating { dNSName: json['DNSName'] as String?, dataRepositoryAssociationIds: (json['DataRepositoryAssociationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failureDetails: json['FailureDetails'] != null @@ -7974,18 +7972,18 @@ class FileCacheCreating { json['LustreConfiguration'] as Map) : null, networkInterfaceIds: (json['NetworkInterfaceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ownerId: json['OwnerId'] as String?, resourceARN: json['ResourceARN'] as String?, storageCapacity: json['StorageCapacity'] as int?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -8432,7 +8430,7 @@ class FileSystem { factory FileSystem.fromJson(Map json) { return FileSystem( administrativeActions: (json['AdministrativeActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdministrativeAction.fromJson(e as Map)) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -8453,7 +8451,7 @@ class FileSystem { json['LustreConfiguration'] as Map) : null, networkInterfaceIds: (json['NetworkInterfaceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ontapConfiguration: json['OntapConfiguration'] != null @@ -8470,11 +8468,11 @@ class FileSystem { storageType: (json['StorageType'] as String?)?.let(StorageType.fromString), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcId: json['VpcId'] as String?, @@ -8505,7 +8503,7 @@ class FileSystemEndpoint { return FileSystemEndpoint( dNSName: json['DNSName'] as String?, ipAddresses: (json['IpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8725,7 +8723,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -9092,7 +9090,7 @@ class LustreRootSquashConfiguration { factory LustreRootSquashConfiguration.fromJson(Map json) { return LustreRootSquashConfiguration( noSquashNids: (json['NoSquashNids'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rootSquash: json['RootSquash'] as String?, @@ -9139,10 +9137,8 @@ class NFSDataRepositoryConfiguration { ? AutoExportPolicy.fromJson( json['AutoExportPolicy'] as Map) : null, - dnsIps: (json['DnsIps'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + dnsIps: + (json['DnsIps'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -9333,7 +9329,7 @@ class OntapFileSystemConfiguration { hAPairs: json['HAPairs'] as int?, preferredSubnetId: json['PreferredSubnetId'] as String?, routeTableIds: (json['RouteTableIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), throughputCapacity: json['ThroughputCapacity'] as int?, @@ -9581,10 +9577,8 @@ class OpenZFSClientConfiguration { factory OpenZFSClientConfiguration.fromJson(Map json) { return OpenZFSClientConfiguration( clients: json['Clients'] as String, - options: (json['Options'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + options: + (json['Options'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -9821,7 +9815,7 @@ class OpenZFSFileSystemConfiguration { preferredSubnetId: json['PreferredSubnetId'] as String?, rootVolumeId: json['RootVolumeId'] as String?, routeTableIds: (json['RouteTableIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), throughputCapacity: json['ThroughputCapacity'] as int?, @@ -9844,7 +9838,7 @@ class OpenZFSNfsExport { factory OpenZFSNfsExport.fromJson(Map json) { return OpenZFSNfsExport( clientConfigurations: (json['ClientConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => OpenZFSClientConfiguration.fromJson(e as Map)) .toList(), @@ -10103,7 +10097,7 @@ class OpenZFSVolumeConfiguration { deleteIntermediateSnaphots: json['DeleteIntermediateSnaphots'] as bool?, destinationSnapshot: json['DestinationSnapshot'] as String?, nfsExports: (json['NfsExports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpenZFSNfsExport.fromJson(e as Map)) .toList(), originSnapshot: json['OriginSnapshot'] != null @@ -10119,7 +10113,7 @@ class OpenZFSVolumeConfiguration { storageCapacityReservationGiB: json['StorageCapacityReservationGiB'] as int?, userAndGroupQuotas: (json['UserAndGroupQuotas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpenZFSUserOrGroupQuota.fromJson(e as Map)) .toList(), @@ -10286,7 +10280,7 @@ class RestoreVolumeFromSnapshotResponse { Map json) { return RestoreVolumeFromSnapshotResponse( administrativeActions: (json['AdministrativeActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdministrativeAction.fromJson(e as Map)) .toList(), lifecycle: @@ -10482,10 +10476,8 @@ class SelfManagedActiveDirectoryAttributes { factory SelfManagedActiveDirectoryAttributes.fromJson( Map json) { return SelfManagedActiveDirectoryAttributes( - dnsIps: (json['DnsIps'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + dnsIps: + (json['DnsIps'] as List?)?.nonNulls.map((e) => e as String).toList(), domainName: json['DomainName'] as String?, fileSystemAdministratorsGroup: json['FileSystemAdministratorsGroup'] as String?, @@ -10857,7 +10849,7 @@ class Snapshot { factory Snapshot.fromJson(Map json) { return Snapshot( administrativeActions: (json['AdministrativeActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdministrativeAction.fromJson(e as Map)) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -10871,7 +10863,7 @@ class Snapshot { resourceARN: json['ResourceARN'] as String?, snapshotId: json['SnapshotId'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), volumeId: json['VolumeId'] as String?, @@ -11087,7 +11079,7 @@ class StorageVirtualMachine { subtype: (json['Subtype'] as String?) ?.let(StorageVirtualMachineSubtype.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), uuid: json['UUID'] as String?, @@ -11235,7 +11227,7 @@ class SvmEndpoint { return SvmEndpoint( dNSName: json['DNSName'] as String?, ipAddresses: (json['IpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12424,7 +12416,7 @@ class Volume { factory Volume.fromJson(Map json) { return Volume( administrativeActions: (json['AdministrativeActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdministrativeAction.fromJson(e as Map)) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -12446,7 +12438,7 @@ class Volume { : null, resourceARN: json['ResourceARN'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), volumeId: json['VolumeId'] as String?, @@ -12891,7 +12883,7 @@ class WindowsFileSystemConfiguration { return WindowsFileSystemConfiguration( activeDirectoryId: json['ActiveDirectoryId'] as String?, aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), auditLogConfiguration: json['AuditLogConfiguration'] != null @@ -12911,7 +12903,7 @@ class WindowsFileSystemConfiguration { : null, maintenanceOperationsInProgress: (json['MaintenanceOperationsInProgress'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemMaintenanceOperation.fromString((e as String))) .toList(), preferredFileServerIp: json['PreferredFileServerIp'] as String?, diff --git a/generated/aws_fsx_api/pubspec.yaml b/generated/aws_fsx_api/pubspec.yaml index b0a8310ef..524d7cc9c 100644 --- a/generated/aws_fsx_api/pubspec.yaml +++ b/generated/aws_fsx_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_fsx_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_gamelift_api/lib/gamelift-2015-10-01.dart b/generated/aws_gamelift_api/lib/gamelift-2015-10-01.dart index 854b4e226..0c51d4619 100644 --- a/generated/aws_gamelift_api/lib/gamelift-2015-10-01.dart +++ b/generated/aws_gamelift_api/lib/gamelift-2015-10-01.dart @@ -9492,10 +9492,7 @@ class AttributeValue { s: json['S'] as String?, sdm: (json['SDM'] as Map?) ?.map((k, e) => MapEntry(k, e as double)), - sl: (json['SL'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + sl: (json['SL'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -10029,7 +10026,7 @@ class ContainerAttributes { factory ContainerAttributes.fromJson(Map json) { return ContainerAttributes( containerPortMappings: (json['ContainerPortMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerPortMapping.fromJson(e as Map)) .toList(), ); @@ -10145,21 +10142,19 @@ class ContainerDefinition { return ContainerDefinition( containerName: json['ContainerName'] as String, imageUri: json['ImageUri'] as String, - command: (json['Command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['Command'] as List?)?.nonNulls.map((e) => e as String).toList(), cpu: json['Cpu'] as int?, dependsOn: (json['DependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerDependency.fromJson(e as Map)) .toList(), entryPoint: (json['EntryPoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), environment: (json['Environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerEnvironment.fromJson(e as Map)) .toList(), essential: json['Essential'] as bool?, @@ -10642,7 +10637,7 @@ class ContainerGroupDefinition { factory ContainerGroupDefinition.fromJson(Map json) { return ContainerGroupDefinition( containerDefinitions: (json['ContainerDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerDefinition.fromJson(e as Map)) .toList(), containerGroupDefinitionArn: @@ -10750,7 +10745,7 @@ class ContainerGroupsAttributes { : null, containerGroupDefinitionProperties: (json['ContainerGroupDefinitionProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerGroupDefinitionProperty.fromJson( e as Map)) .toList(), @@ -10926,10 +10921,8 @@ class ContainerHealthCheck { factory ContainerHealthCheck.fromJson(Map json) { return ContainerHealthCheck( - command: (json['Command'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['Command'] as List).nonNulls.map((e) => e as String).toList(), interval: json['Interval'] as int?, retries: json['Retries'] as int?, startPeriod: json['StartPeriod'] as int?, @@ -11025,7 +11018,7 @@ class ContainerPortConfiguration { factory ContainerPortConfiguration.fromJson(Map json) { return ContainerPortConfiguration( containerPortRanges: (json['ContainerPortRanges'] as List) - .whereNotNull() + .nonNulls .map((e) => ContainerPortRange.fromJson(e as Map)) .toList(), ); @@ -11237,7 +11230,7 @@ class CreateFleetLocationsOutput { fleetArn: json['FleetArn'] as String?, fleetId: json['FleetId'] as String?, locationStates: (json['LocationStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocationState.fromJson(e as Map)) .toList(), ); @@ -11269,7 +11262,7 @@ class CreateFleetOutput { json['FleetAttributes'] as Map) : null, locationStates: (json['LocationStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocationState.fromJson(e as Map)) .toList(), ); @@ -11414,7 +11407,7 @@ class CreatePlayerSessionsOutput { factory CreatePlayerSessionsOutput.fromJson(Map json) { return CreatePlayerSessionsOutput( playerSessions: (json['PlayerSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlayerSession.fromJson(e as Map)) .toList(), ); @@ -11498,7 +11491,7 @@ class DeleteFleetLocationsOutput { fleetArn: json['FleetArn'] as String?, fleetId: json['FleetId'] as String?, locationStates: (json['LocationStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocationState.fromJson(e as Map)) .toList(), ); @@ -11662,7 +11655,7 @@ class DescribeEC2InstanceLimitsOutput { factory DescribeEC2InstanceLimitsOutput.fromJson(Map json) { return DescribeEC2InstanceLimitsOutput( eC2InstanceLimits: (json['EC2InstanceLimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EC2InstanceLimit.fromJson(e as Map)) .toList(), ); @@ -11688,7 +11681,7 @@ class DescribeFleetAttributesOutput { factory DescribeFleetAttributesOutput.fromJson(Map json) { return DescribeFleetAttributesOutput( fleetAttributes: (json['FleetAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAttributes.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11716,7 +11709,7 @@ class DescribeFleetCapacityOutput { factory DescribeFleetCapacityOutput.fromJson(Map json) { return DescribeFleetCapacityOutput( fleetCapacity: (json['FleetCapacity'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetCapacity.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11742,7 +11735,7 @@ class DescribeFleetEventsOutput { factory DescribeFleetEventsOutput.fromJson(Map json) { return DescribeFleetEventsOutput( events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11783,7 +11776,7 @@ class DescribeFleetLocationAttributesOutput { fleetArn: json['FleetArn'] as String?, fleetId: json['FleetId'] as String?, locationAttributes: (json['LocationAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocationAttributes.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11869,7 +11862,7 @@ class DescribeFleetPortSettingsOutput { fleetArn: json['FleetArn'] as String?, fleetId: json['FleetId'] as String?, inboundPermissions: (json['InboundPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpPermission.fromJson(e as Map)) .toList(), location: json['Location'] as String?, @@ -11898,7 +11891,7 @@ class DescribeFleetUtilizationOutput { factory DescribeFleetUtilizationOutput.fromJson(Map json) { return DescribeFleetUtilizationOutput( fleetUtilization: (json['FleetUtilization'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetUtilization.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11943,7 +11936,7 @@ class DescribeGameServerInstancesOutput { Map json) { return DescribeGameServerInstancesOutput( gameServerInstances: (json['GameServerInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameServerInstance.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11985,7 +11978,7 @@ class DescribeGameSessionDetailsOutput { factory DescribeGameSessionDetailsOutput.fromJson(Map json) { return DescribeGameSessionDetailsOutput( gameSessionDetails: (json['GameSessionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameSessionDetail.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12029,7 +12022,7 @@ class DescribeGameSessionQueuesOutput { factory DescribeGameSessionQueuesOutput.fromJson(Map json) { return DescribeGameSessionQueuesOutput( gameSessionQueues: (json['GameSessionQueues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameSessionQueue.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12054,7 +12047,7 @@ class DescribeGameSessionsOutput { factory DescribeGameSessionsOutput.fromJson(Map json) { return DescribeGameSessionsOutput( gameSessions: (json['GameSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameSession.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12079,7 +12072,7 @@ class DescribeInstancesOutput { factory DescribeInstancesOutput.fromJson(Map json) { return DescribeInstancesOutput( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Instance.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12105,7 +12098,7 @@ class DescribeMatchmakingConfigurationsOutput { Map json) { return DescribeMatchmakingConfigurationsOutput( configurations: (json['Configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchmakingConfiguration.fromJson(e as Map)) .toList(), @@ -12125,7 +12118,7 @@ class DescribeMatchmakingOutput { factory DescribeMatchmakingOutput.fromJson(Map json) { return DescribeMatchmakingOutput( ticketList: (json['TicketList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchmakingTicket.fromJson(e as Map)) .toList(), ); @@ -12150,7 +12143,7 @@ class DescribeMatchmakingRuleSetsOutput { Map json) { return DescribeMatchmakingRuleSetsOutput( ruleSets: (json['RuleSets'] as List) - .whereNotNull() + .nonNulls .map((e) => MatchmakingRuleSet.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12177,7 +12170,7 @@ class DescribePlayerSessionsOutput { return DescribePlayerSessionsOutput( nextToken: json['NextToken'] as String?, playerSessions: (json['PlayerSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlayerSession.fromJson(e as Map)) .toList(), ); @@ -12223,7 +12216,7 @@ class DescribeScalingPoliciesOutput { return DescribeScalingPoliciesOutput( nextToken: json['NextToken'] as String?, scalingPolicies: (json['ScalingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingPolicy.fromJson(e as Map)) .toList(), ); @@ -12260,7 +12253,7 @@ class DescribeVpcPeeringAuthorizationsOutput { Map json) { return DescribeVpcPeeringAuthorizationsOutput( vpcPeeringAuthorizations: (json['VpcPeeringAuthorizations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcPeeringAuthorization.fromJson(e as Map)) .toList(), @@ -12280,7 +12273,7 @@ class DescribeVpcPeeringConnectionsOutput { Map json) { return DescribeVpcPeeringConnectionsOutput( vpcPeeringConnections: (json['VpcPeeringConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcPeeringConnection.fromJson(e as Map)) .toList(), ); @@ -12927,7 +12920,7 @@ class FilterConfiguration { factory FilterConfiguration.fromJson(Map json) { return FilterConfiguration( allowedLocations: (json['AllowedLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -13250,11 +13243,11 @@ class FleetAttributes { instanceType: (json['InstanceType'] as String?)?.let(EC2InstanceType.fromString), logPaths: (json['LogPaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), metricGroups: (json['MetricGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -13273,7 +13266,7 @@ class FleetAttributes { serverLaunchPath: json['ServerLaunchPath'] as String?, status: (json['Status'] as String?)?.let(FleetStatus.fromString), stoppedActions: (json['StoppedActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAction.fromString((e as String))) .toList(), terminationTime: timeStampFromJson(json['TerminationTime']), @@ -13783,7 +13776,7 @@ class GameServerGroup { (json['GameServerProtectionPolicy'] as String?) ?.let(GameServerProtectionPolicy.fromString), instanceDefinitions: (json['InstanceDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceDefinition.fromJson(e as Map)) .toList(), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), @@ -13792,7 +13785,7 @@ class GameServerGroup { (json['Status'] as String?)?.let(GameServerGroupStatus.fromString), statusReason: json['StatusReason'] as String?, suspendedActions: (json['SuspendedActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameServerGroupAction.fromString((e as String))) .toList(), ); @@ -14246,7 +14239,7 @@ class GameSession { fleetArn: json['FleetArn'] as String?, fleetId: json['FleetId'] as String?, gameProperties: (json['GameProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameProperty.fromJson(e as Map)) .toList(), gameSessionData: json['GameSessionData'] as String?, @@ -14322,7 +14315,7 @@ class GameSessionConnectionInfo { gameSessionArn: json['GameSessionArn'] as String?, ipAddress: json['IpAddress'] as String?, matchedPlayerSessions: (json['MatchedPlayerSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MatchedPlayerSession.fromJson(e as Map)) .toList(), port: json['Port'] as int?, @@ -14529,7 +14522,7 @@ class GameSessionPlacement { dnsName: json['DnsName'] as String?, endTime: timeStampFromJson(json['EndTime']), gameProperties: (json['GameProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameProperty.fromJson(e as Map)) .toList(), gameSessionArn: json['GameSessionArn'] as String?, @@ -14542,12 +14535,12 @@ class GameSessionPlacement { matchmakerData: json['MatchmakerData'] as String?, maximumPlayerSessionCount: json['MaximumPlayerSessionCount'] as int?, placedPlayerSessions: (json['PlacedPlayerSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlacedPlayerSession.fromJson(e as Map)) .toList(), placementId: json['PlacementId'] as String?, playerLatencies: (json['PlayerLatencies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlayerLatency.fromJson(e as Map)) .toList(), port: json['Port'] as int?, @@ -14651,7 +14644,7 @@ class GameSessionQueue { return GameSessionQueue( customEventData: json['CustomEventData'] as String?, destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameSessionQueueDestination.fromJson(e as Map)) .toList(), @@ -14663,7 +14656,7 @@ class GameSessionQueue { name: json['Name'] as String?, notificationTarget: json['NotificationTarget'] as String?, playerLatencyPolicies: (json['PlayerLatencyPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlayerLatencyPolicy.fromJson(e as Map)) .toList(), priorityConfiguration: json['PriorityConfiguration'] != null @@ -15256,7 +15249,7 @@ class ListAliasesOutput { factory ListAliasesOutput.fromJson(Map json) { return ListAliasesOutput( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15281,7 +15274,7 @@ class ListBuildsOutput { factory ListBuildsOutput.fromJson(Map json) { return ListBuildsOutput( builds: (json['Builds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Build.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15306,7 +15299,7 @@ class ListComputeOutput { factory ListComputeOutput.fromJson(Map json) { return ListComputeOutput( computeList: (json['ComputeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Compute.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15332,7 +15325,7 @@ class ListContainerGroupDefinitionsOutput { Map json) { return ListContainerGroupDefinitionsOutput( containerGroupDefinitions: (json['ContainerGroupDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerGroupDefinition.fromJson(e as Map)) .toList(), @@ -15358,7 +15351,7 @@ class ListFleetsOutput { factory ListFleetsOutput.fromJson(Map json) { return ListFleetsOutput( fleetIds: (json['FleetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -15382,7 +15375,7 @@ class ListGameServerGroupsOutput { factory ListGameServerGroupsOutput.fromJson(Map json) { return ListGameServerGroupsOutput( gameServerGroups: (json['GameServerGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameServerGroup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15407,7 +15400,7 @@ class ListGameServersOutput { factory ListGameServersOutput.fromJson(Map json) { return ListGameServersOutput( gameServers: (json['GameServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameServer.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15432,7 +15425,7 @@ class ListLocationsOutput { factory ListLocationsOutput.fromJson(Map json) { return ListLocationsOutput( locations: (json['Locations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LocationModel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15458,7 +15451,7 @@ class ListScriptsOutput { return ListScriptsOutput( nextToken: json['NextToken'] as String?, scripts: (json['Scripts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Script.fromJson(e as Map)) .toList(), ); @@ -15476,7 +15469,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -15510,7 +15503,7 @@ class LocationAttributes { json['LocationState'] as Map) : null, stoppedActions: (json['StoppedActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetAction.fromString((e as String))) .toList(), updateStatus: (json['UpdateStatus'] as String?) @@ -15835,12 +15828,12 @@ class MatchmakingConfiguration { flexMatchMode: (json['FlexMatchMode'] as String?)?.let(FlexMatchMode.fromString), gameProperties: (json['GameProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameProperty.fromJson(e as Map)) .toList(), gameSessionData: json['GameSessionData'] as String?, gameSessionQueueArns: (json['GameSessionQueueArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -16075,7 +16068,7 @@ class MatchmakingTicket { json['GameSessionConnectionInfo'] as Map) : null, players: (json['Players'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Player.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -16548,11 +16541,11 @@ class PriorityConfiguration { factory PriorityConfiguration.fromJson(Map json) { return PriorityConfiguration( locationOrder: (json['LocationOrder'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), priorityOrder: (json['PriorityOrder'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PriorityType.fromString((e as String))) .toList(), ); @@ -16930,7 +16923,7 @@ class RuntimeConfiguration { maxConcurrentGameSessionActivations: json['MaxConcurrentGameSessionActivations'] as int?, serverProcesses: (json['ServerProcesses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerProcess.fromJson(e as Map)) .toList(), ); @@ -17334,7 +17327,7 @@ class SearchGameSessionsOutput { factory SearchGameSessionsOutput.fromJson(Map json) { return SearchGameSessionsOutput( gameSessions: (json['GameSessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GameSession.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/generated/aws_gamelift_api/pubspec.yaml b/generated/aws_gamelift_api/pubspec.yaml index 5963fcb5d..4e3d05300 100644 --- a/generated/aws_gamelift_api/pubspec.yaml +++ b/generated/aws_gamelift_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_gameli protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_glacier_api/lib/glacier-2012-06-01.dart b/generated/aws_glacier_api/lib/glacier-2012-06-01.dart index e3b5f33ab..76e10ca43 100644 --- a/generated/aws_glacier_api/lib/glacier-2012-06-01.dart +++ b/generated/aws_glacier_api/lib/glacier-2012-06-01.dart @@ -2340,7 +2340,7 @@ class DataRetrievalPolicy { factory DataRetrievalPolicy.fromJson(Map json) { return DataRetrievalPolicy( rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataRetrievalRule.fromJson(e as Map)) .toList(), ); @@ -3204,7 +3204,7 @@ class ListJobsOutput { factory ListJobsOutput.fromJson(Map json) { return ListJobsOutput( jobList: (json['JobList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlacierJobDescription.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -3232,7 +3232,7 @@ class ListMultipartUploadsOutput { return ListMultipartUploadsOutput( marker: json['Marker'] as String?, uploadsList: (json['UploadsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UploadListElement.fromJson(e as Map)) .toList(), ); @@ -3287,7 +3287,7 @@ class ListPartsOutput { multipartUploadId: json['MultipartUploadId'] as String?, partSizeInBytes: json['PartSizeInBytes'] as int?, parts: (json['Parts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartListElement.fromJson(e as Map)) .toList(), vaultARN: json['VaultARN'] as String?, @@ -3306,7 +3306,7 @@ class ListProvisionedCapacityOutput { factory ListProvisionedCapacityOutput.fromJson(Map json) { return ListProvisionedCapacityOutput( provisionedCapacityList: (json['ProvisionedCapacityList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisionedCapacityDescription.fromJson( e as Map)) .toList(), @@ -3349,7 +3349,7 @@ class ListVaultsOutput { return ListVaultsOutput( marker: json['Marker'] as String?, vaultList: (json['VaultList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DescribeVaultOutput.fromJson(e as Map)) .toList(), ); @@ -3539,7 +3539,7 @@ class S3Location { factory S3Location.fromJson(Map json) { return S3Location( accessControlList: (json['AccessControlList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Grant.fromJson(e as Map)) .toList(), bucketName: json['BucketName'] as String?, @@ -3783,10 +3783,8 @@ class VaultNotificationConfig { factory VaultNotificationConfig.fromJson(Map json) { return VaultNotificationConfig( - events: (json['Events'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + events: + (json['Events'] as List?)?.nonNulls.map((e) => e as String).toList(), sNSTopic: json['SNSTopic'] as String?, ); } diff --git a/generated/aws_glacier_api/pubspec.yaml b/generated/aws_glacier_api/pubspec.yaml index 4c2d24e35..4a8de5406 100644 --- a/generated/aws_glacier_api/pubspec.yaml +++ b/generated/aws_glacier_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_glacie protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_globalaccelerator_api/lib/globalaccelerator-2018-08-08.dart b/generated/aws_globalaccelerator_api/lib/globalaccelerator-2018-08-08.dart index a09db7362..c5b53d62a 100644 --- a/generated/aws_globalaccelerator_api/lib/globalaccelerator-2018-08-08.dart +++ b/generated/aws_globalaccelerator_api/lib/globalaccelerator-2018-08-08.dart @@ -3168,13 +3168,13 @@ class Accelerator { dualStackDnsName: json['DualStackDnsName'] as String?, enabled: json['Enabled'] as bool?, events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AcceleratorEvent.fromJson(e as Map)) .toList(), ipAddressType: (json['IpAddressType'] as String?)?.let(IpAddressType.fromString), ipSets: (json['IpSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpSet.fromJson(e as Map)) .toList(), lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), @@ -3285,7 +3285,7 @@ class AddCustomRoutingEndpointsResponse { Map json) { return AddCustomRoutingEndpointsResponse( endpointDescriptions: (json['EndpointDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingEndpointDescription.fromJson( e as Map)) .toList(), @@ -3309,7 +3309,7 @@ class AddEndpointsResponse { factory AddEndpointsResponse.fromJson(Map json) { return AddEndpointsResponse( endpointDescriptions: (json['EndpointDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointDescription.fromJson(e as Map)) .toList(), endpointGroupArn: json['EndpointGroupArn'] as String?, @@ -3372,11 +3372,11 @@ class Attachment { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), name: json['Name'] as String?, principals: (json['Principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -3470,7 +3470,7 @@ class ByoipCidr { return ByoipCidr( cidr: json['Cidr'] as String?, events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ByoipCidrEvent.fromJson(e as Map)) .toList(), state: (json['State'] as String?)?.let(ByoipCidrState.fromString), @@ -3821,7 +3821,7 @@ class CustomRoutingAccelerator { ipAddressType: (json['IpAddressType'] as String?)?.let(IpAddressType.fromString), ipSets: (json['IpSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpSet.fromJson(e as Map)) .toList(), lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), @@ -3952,7 +3952,7 @@ class CustomRoutingDestinationDescription { return CustomRoutingDestinationDescription( fromPort: json['FromPort'] as int?, protocols: (json['Protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Protocol.fromString((e as String))) .toList(), toPort: json['ToPort'] as int?, @@ -4050,12 +4050,12 @@ class CustomRoutingEndpointGroup { factory CustomRoutingEndpointGroup.fromJson(Map json) { return CustomRoutingEndpointGroup( destinationDescriptions: (json['DestinationDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingDestinationDescription.fromJson( e as Map)) .toList(), endpointDescriptions: (json['EndpointDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingEndpointDescription.fromJson( e as Map)) .toList(), @@ -4086,7 +4086,7 @@ class CustomRoutingListener { return CustomRoutingListener( listenerArn: json['ListenerArn'] as String?, portRanges: (json['PortRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRange.fromJson(e as Map)) .toList(), ); @@ -4338,7 +4338,7 @@ class DestinationPortMapping { return DestinationPortMapping( acceleratorArn: json['AcceleratorArn'] as String?, acceleratorSocketAddresses: (json['AcceleratorSocketAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SocketAddress.fromJson(e as Map)) .toList(), destinationSocketAddress: json['DestinationSocketAddress'] != null @@ -4566,7 +4566,7 @@ class EndpointGroup { factory EndpointGroup.fromJson(Map json) { return EndpointGroup( endpointDescriptions: (json['EndpointDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointDescription.fromJson(e as Map)) .toList(), endpointGroupArn: json['EndpointGroupArn'] as String?, @@ -4577,7 +4577,7 @@ class EndpointGroup { healthCheckProtocol: (json['HealthCheckProtocol'] as String?) ?.let(HealthCheckProtocol.fromString), portOverrides: (json['PortOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortOverride.fromJson(e as Map)) .toList(), thresholdCount: json['ThresholdCount'] as int?, @@ -4706,7 +4706,7 @@ class IpSet { ipAddressFamily: (json['IpAddressFamily'] as String?)?.let(IpAddressFamily.fromString), ipAddresses: (json['IpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ipFamily: json['IpFamily'] as String?, @@ -4730,7 +4730,7 @@ class ListAcceleratorsResponse { factory ListAcceleratorsResponse.fromJson(Map json) { return ListAcceleratorsResponse( accelerators: (json['Accelerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Accelerator.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4753,7 +4753,7 @@ class ListByoipCidrsResponse { factory ListByoipCidrsResponse.fromJson(Map json) { return ListByoipCidrsResponse( byoipCidrs: (json['ByoipCidrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ByoipCidr.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4778,7 +4778,7 @@ class ListCrossAccountAttachmentsResponse { Map json) { return ListCrossAccountAttachmentsResponse( crossAccountAttachments: (json['CrossAccountAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4799,7 +4799,7 @@ class ListCrossAccountResourceAccountsResponse { Map json) { return ListCrossAccountResourceAccountsResponse( resourceOwnerAwsAccountIds: (json['ResourceOwnerAwsAccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4823,7 +4823,7 @@ class ListCrossAccountResourcesResponse { Map json) { return ListCrossAccountResourcesResponse( crossAccountResources: (json['CrossAccountResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CrossAccountResource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4848,7 +4848,7 @@ class ListCustomRoutingAcceleratorsResponse { Map json) { return ListCustomRoutingAcceleratorsResponse( accelerators: (json['Accelerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingAccelerator.fromJson(e as Map)) .toList(), @@ -4875,7 +4875,7 @@ class ListCustomRoutingEndpointGroupsResponse { Map json) { return ListCustomRoutingEndpointGroupsResponse( endpointGroups: (json['EndpointGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingEndpointGroup.fromJson(e as Map)) .toList(), @@ -4901,7 +4901,7 @@ class ListCustomRoutingListenersResponse { Map json) { return ListCustomRoutingListenersResponse( listeners: (json['Listeners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingListener.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4927,7 +4927,7 @@ class ListCustomRoutingPortMappingsByDestinationResponse { Map json) { return ListCustomRoutingPortMappingsByDestinationResponse( destinationPortMappings: (json['DestinationPortMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DestinationPortMapping.fromJson(e as Map)) .toList(), @@ -4954,7 +4954,7 @@ class ListCustomRoutingPortMappingsResponse { return ListCustomRoutingPortMappingsResponse( nextToken: json['NextToken'] as String?, portMappings: (json['PortMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortMapping.fromJson(e as Map)) .toList(), ); @@ -4977,7 +4977,7 @@ class ListEndpointGroupsResponse { factory ListEndpointGroupsResponse.fromJson(Map json) { return ListEndpointGroupsResponse( endpointGroups: (json['EndpointGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointGroup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5001,7 +5001,7 @@ class ListListenersResponse { factory ListListenersResponse.fromJson(Map json) { return ListListenersResponse( listeners: (json['Listeners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Listener.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5020,7 +5020,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5074,7 +5074,7 @@ class Listener { (json['ClientAffinity'] as String?)?.let(ClientAffinity.fromString), listenerArn: json['ListenerArn'] as String?, portRanges: (json['PortRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRange.fromJson(e as Map)) .toList(), protocol: (json['Protocol'] as String?)?.let(Protocol.fromString), @@ -5130,7 +5130,7 @@ class PortMapping { endpointGroupArn: json['EndpointGroupArn'] as String?, endpointId: json['EndpointId'] as String?, protocols: (json['Protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomRoutingProtocol.fromString((e as String))) .toList(), ); diff --git a/generated/aws_globalaccelerator_api/pubspec.yaml b/generated/aws_globalaccelerator_api/pubspec.yaml index 05ea9d459..c41365f9a 100644 --- a/generated/aws_globalaccelerator_api/pubspec.yaml +++ b/generated/aws_globalaccelerator_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_global protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_glue_api/lib/glue-2017-03-31.dart b/generated/aws_glue_api/lib/glue-2017-03-31.dart index 99327dba9..4262d5bc5 100644 --- a/generated/aws_glue_api/lib/glue-2017-03-31.dart +++ b/generated/aws_glue_api/lib/glue-2017-03-31.dart @@ -11489,18 +11489,15 @@ class Aggregate { factory Aggregate.fromJson(Map json) { return Aggregate( aggs: (json['Aggs'] as List) - .whereNotNull() + .nonNulls .map((e) => AggregateOperation.fromJson(e as Map)) .toList(), groups: (json['Groups'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) - .toList(), - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, ); } @@ -11541,10 +11538,8 @@ class AggregateOperation { factory AggregateOperation.fromJson(Map json) { return AggregateOperation( aggFunc: AggFunction.fromString((json['AggFunc'] as String)), - column: (json['Column'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + column: + (json['Column'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -11713,7 +11708,7 @@ class AmazonRedshiftNodeData { accessType: json['AccessType'] as String?, action: json['Action'] as String?, advancedOptions: (json['AdvancedOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AmazonRedshiftAdvancedOption.fromJson(e as Map)) .toList(), @@ -11743,7 +11738,7 @@ class AmazonRedshiftNodeData { ? Option.fromJson(json['Schema'] as Map) : null, selectedColumns: (json['SelectedColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Option.fromJson(e as Map)) .toList(), sourceType: json['SourceType'] as String?, @@ -11753,7 +11748,7 @@ class AmazonRedshiftNodeData { : null, tablePrefix: json['TablePrefix'] as String?, tableSchema: (json['TableSchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Option.fromJson(e as Map)) .toList(), tempDir: json['TempDir'] as String?, @@ -11878,10 +11873,8 @@ class AmazonRedshiftTarget { ? AmazonRedshiftNodeData.fromJson( json['Data'] as Map) : null, - inputs: (json['Inputs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List?)?.nonNulls.map((e) => e as String).toList(), name: json['Name'] as String?, ); } @@ -11920,12 +11913,10 @@ class ApplyMapping { factory ApplyMapping.fromJson(Map json) { return ApplyMapping( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), mapping: (json['Mapping'] as List) - .whereNotNull() + .nonNulls .map((e) => Mapping.fromJson(e as Map)) .toList(), name: json['Name'] as String, @@ -11989,7 +11980,7 @@ class AthenaConnectorSource { schemaName: json['SchemaName'] as String, connectionTable: json['ConnectionTable'] as String?, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -12197,7 +12188,7 @@ class BackfillError { return BackfillError( code: (json['Code'] as String?)?.let(BackfillErrorCode.fromString), partitions: (json['Partitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionValueList.fromJson(e as Map)) .toList(), ); @@ -12248,10 +12239,8 @@ class BasicCatalogTarget { factory BasicCatalogTarget.fromJson(Map json) { return BasicCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, ); @@ -12282,7 +12271,7 @@ class BatchCreatePartitionResponse { factory BatchCreatePartitionResponse.fromJson(Map json) { return BatchCreatePartitionResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionError.fromJson(e as Map)) .toList(), ); @@ -12308,7 +12297,7 @@ class BatchDeleteConnectionResponse { errors: (json['Errors'] as Map?)?.map((k, e) => MapEntry(k, ErrorDetail.fromJson(e as Map))), succeeded: (json['Succeeded'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12326,7 +12315,7 @@ class BatchDeletePartitionResponse { factory BatchDeletePartitionResponse.fromJson(Map json) { return BatchDeletePartitionResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionError.fromJson(e as Map)) .toList(), ); @@ -12344,7 +12333,7 @@ class BatchDeleteTableResponse { factory BatchDeleteTableResponse.fromJson(Map json) { return BatchDeleteTableResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableError.fromJson(e as Map)) .toList(), ); @@ -12363,7 +12352,7 @@ class BatchDeleteTableVersionResponse { factory BatchDeleteTableVersionResponse.fromJson(Map json) { return BatchDeleteTableVersionResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableVersionError.fromJson(e as Map)) .toList(), ); @@ -12385,11 +12374,11 @@ class BatchGetBlueprintsResponse { factory BatchGetBlueprintsResponse.fromJson(Map json) { return BatchGetBlueprintsResponse( blueprints: (json['Blueprints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Blueprint.fromJson(e as Map)) .toList(), missingBlueprints: (json['MissingBlueprints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12411,11 +12400,11 @@ class BatchGetCrawlersResponse { factory BatchGetCrawlersResponse.fromJson(Map json) { return BatchGetCrawlersResponse( crawlers: (json['Crawlers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Crawler.fromJson(e as Map)) .toList(), crawlersNotFound: (json['CrawlersNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12439,11 +12428,11 @@ class BatchGetCustomEntityTypesResponse { Map json) { return BatchGetCustomEntityTypesResponse( customEntityTypes: (json['CustomEntityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomEntityType.fromJson(e as Map)) .toList(), customEntityTypesNotFound: (json['CustomEntityTypesNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12467,11 +12456,11 @@ class BatchGetDataQualityResultResponse { Map json) { return BatchGetDataQualityResultResponse( results: (json['Results'] as List) - .whereNotNull() + .nonNulls .map((e) => DataQualityResult.fromJson(e as Map)) .toList(), resultsNotFound: (json['ResultsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12493,11 +12482,11 @@ class BatchGetDevEndpointsResponse { factory BatchGetDevEndpointsResponse.fromJson(Map json) { return BatchGetDevEndpointsResponse( devEndpoints: (json['DevEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DevEndpoint.fromJson(e as Map)) .toList(), devEndpointsNotFound: (json['DevEndpointsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12519,11 +12508,11 @@ class BatchGetJobsResponse { factory BatchGetJobsResponse.fromJson(Map json) { return BatchGetJobsResponse( jobs: (json['Jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), jobsNotFound: (json['JobsNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12546,11 +12535,11 @@ class BatchGetPartitionResponse { factory BatchGetPartitionResponse.fromJson(Map json) { return BatchGetPartitionResponse( partitions: (json['Partitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Partition.fromJson(e as Map)) .toList(), unprocessedKeys: (json['UnprocessedKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionValueList.fromJson(e as Map)) .toList(), ); @@ -12648,12 +12637,12 @@ class BatchGetTableOptimizerResponse { factory BatchGetTableOptimizerResponse.fromJson(Map json) { return BatchGetTableOptimizerResponse( failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchGetTableOptimizerError.fromJson(e as Map)) .toList(), tableOptimizers: (json['TableOptimizers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchTableOptimizer.fromJson(e as Map)) .toList(), ); @@ -12675,11 +12664,11 @@ class BatchGetTriggersResponse { factory BatchGetTriggersResponse.fromJson(Map json) { return BatchGetTriggersResponse( triggers: (json['Triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trigger.fromJson(e as Map)) .toList(), triggersNotFound: (json['TriggersNotFound'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12701,11 +12690,11 @@ class BatchGetWorkflowsResponse { factory BatchGetWorkflowsResponse.fromJson(Map json) { return BatchGetWorkflowsResponse( missingWorkflows: (json['MissingWorkflows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), workflows: (json['Workflows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Workflow.fromJson(e as Map)) .toList(), ); @@ -12757,11 +12746,11 @@ class BatchStopJobRunResponse { factory BatchStopJobRunResponse.fromJson(Map json) { return BatchStopJobRunResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchStopJobRunError.fromJson(e as Map)) .toList(), successfulSubmissions: (json['SuccessfulSubmissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchStopJobRunSuccessfulSubmission.fromJson( e as Map)) .toList(), @@ -12846,7 +12835,7 @@ class BatchUpdatePartitionFailureEntry { ? ErrorDetail.fromJson(json['ErrorDetail'] as Map) : null, partitionValueList: (json['PartitionValueList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12889,7 +12878,7 @@ class BatchUpdatePartitionResponse { factory BatchUpdatePartitionResponse.fromJson(Map json) { return BatchUpdatePartitionResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchUpdatePartitionFailureEntry.fromJson( e as Map)) .toList(), @@ -13279,7 +13268,7 @@ class CatalogDeltaSource { (json['AdditionalDeltaOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -13375,7 +13364,7 @@ class CatalogHudiSource { (json['AdditionalHudiOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -13669,10 +13658,8 @@ class CatalogTarget { factory CatalogTarget.fromJson(Map json) { return CatalogTarget( databaseName: json['DatabaseName'] as String, - tables: (json['Tables'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tables: + (json['Tables'] as List).nonNulls.map((e) => e as String).toList(), connectionName: json['ConnectionName'] as String?, dlqEventQueueArn: json['DlqEventQueueArn'] as String?, eventQueueArn: json['EventQueueArn'] as String?, @@ -14658,7 +14645,7 @@ class CodeGenNode { factory CodeGenNode.fromJson(Map json) { return CodeGenNode( args: (json['Args'] as List) - .whereNotNull() + .nonNulls .map((e) => CodeGenNodeArg.fromJson(e as Map)) .toList(), id: json['Id'] as String, @@ -15114,7 +15101,7 @@ class ColumnStatisticsTaskRun { return ColumnStatisticsTaskRun( catalogID: json['CatalogID'] as String?, columnNameList: (json['ColumnNameList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), columnStatisticsTaskRunId: json['ColumnStatisticsTaskRunId'] as String?, @@ -15586,7 +15573,7 @@ class Connection { lastUpdatedBy: json['LastUpdatedBy'] as String?, lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), matchCriteria: (json['MatchCriteria'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -15962,7 +15949,7 @@ class ConnectionsList { factory ConnectionsList.fromJson(Map json) { return ConnectionsList( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -16032,7 +16019,7 @@ class ConnectorDataSource { .map((k, e) => MapEntry(k, e as String)), name: json['Name'] as String, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -16107,10 +16094,8 @@ class ConnectorDataTarget { data: (json['Data'] as Map) .map((k, e) => MapEntry(k, e as String)), name: json['Name'] as String, - inputs: (json['Inputs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -16288,7 +16273,7 @@ class Crawler { factory Crawler.fromJson(Map json) { return Crawler( classifiers: (json['Classifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), configuration: json['Configuration'] as String?, @@ -16491,7 +16476,7 @@ class CrawlerNodeDetails { factory CrawlerNodeDetails.fromJson(Map json) { return CrawlerNodeDetails( crawls: (json['Crawls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Crawl.fromJson(e as Map)) .toList(), ); @@ -16554,35 +16539,35 @@ class CrawlerTargets { factory CrawlerTargets.fromJson(Map json) { return CrawlerTargets( catalogTargets: (json['CatalogTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CatalogTarget.fromJson(e as Map)) .toList(), deltaTargets: (json['DeltaTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeltaTarget.fromJson(e as Map)) .toList(), dynamoDBTargets: (json['DynamoDBTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DynamoDBTarget.fromJson(e as Map)) .toList(), hudiTargets: (json['HudiTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HudiTarget.fromJson(e as Map)) .toList(), icebergTargets: (json['IcebergTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IcebergTarget.fromJson(e as Map)) .toList(), jdbcTargets: (json['JdbcTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JdbcTarget.fromJson(e as Map)) .toList(), mongoDBTargets: (json['MongoDBTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MongoDBTarget.fromJson(e as Map)) .toList(), s3Targets: (json['S3Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Target.fromJson(e as Map)) .toList(), ); @@ -16971,7 +16956,7 @@ class CreateDevEndpointResponse { roleArn: json['RoleArn'] as String?, securityConfiguration: json['SecurityConfiguration'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: json['Status'] as String?, @@ -17431,15 +17416,13 @@ class CsvClassifier { creationTime: timeStampFromJson(json['CreationTime']), customDatatypeConfigured: json['CustomDatatypeConfigured'] as bool?, customDatatypes: (json['CustomDatatypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), delimiter: json['Delimiter'] as String?, disableValueTrimming: json['DisableValueTrimming'] as bool?, - header: (json['Header'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + header: + (json['Header'] as List?)?.nonNulls.map((e) => e as String).toList(), lastUpdated: timeStampFromJson(json['LastUpdated']), quoteSymbol: json['QuoteSymbol'] as String?, serde: (json['Serde'] as String?)?.let(CsvSerdeOption.fromString), @@ -17510,13 +17493,11 @@ class CustomCode { return CustomCode( className: json['ClassName'] as String, code: json['Code'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -17567,7 +17548,7 @@ class CustomEntityType { name: json['Name'] as String, regexString: json['RegexString'] as String, contextWords: (json['ContextWords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -17950,7 +17931,7 @@ class DataQualityResult { factory DataQualityResult.fromJson(Map json) { return DataQualityResult( analyzerResults: (json['AnalyzerResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityAnalyzerResult.fromJson(e as Map)) .toList(), @@ -17962,13 +17943,13 @@ class DataQualityResult { jobName: json['JobName'] as String?, jobRunId: json['JobRunId'] as String?, observations: (json['Observations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DataQualityObservation.fromJson(e as Map)) .toList(), resultId: json['ResultId'] as String?, ruleResults: (json['RuleResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityRuleResult.fromJson(e as Map)) .toList(), rulesetEvaluationRunId: json['RulesetEvaluationRunId'] as String?, @@ -18465,7 +18446,7 @@ class Database { catalogId: json['CatalogId'] as String?, createTableDefaultPermissions: (json['CreateTableDefaultPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrincipalPermissions.fromJson(e as Map)) .toList(), createTime: timeStampFromJson(json['CreateTime']), @@ -18966,7 +18947,7 @@ class DeleteSchemaVersionsResponse { factory DeleteSchemaVersionsResponse.fromJson(Map json) { return DeleteSchemaVersionsResponse( schemaVersionErrors: (json['SchemaVersionErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SchemaVersionErrorItem.fromJson(e as Map)) .toList(), @@ -19087,7 +19068,7 @@ class DeltaTarget { connectionName: json['ConnectionName'] as String?, createNativeDeltaTable: json['CreateNativeDeltaTable'] as bool?, deltaTables: (json['DeltaTables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), writeManifest: json['WriteManifest'] as bool?, @@ -19336,13 +19317,13 @@ class DevEndpoint { publicAddress: json['PublicAddress'] as String?, publicKey: json['PublicKey'] as String?, publicKeys: (json['PublicKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), roleArn: json['RoleArn'] as String?, securityConfiguration: json['SecurityConfiguration'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: json['Status'] as String?, @@ -19677,15 +19658,12 @@ class DropDuplicates { factory DropDuplicates.fromJson(Map json) { return DropDuplicates( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, columns: (json['Columns'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -19722,15 +19700,12 @@ class DropFields { factory DropFields.fromJson(Map json) { return DropFields( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -19780,17 +19755,15 @@ class DropNullFields { factory DropNullFields.fromJson(Map json) { return DropNullFields( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, nullCheckBoxList: json['NullCheckBoxList'] != null ? NullCheckBoxList.fromJson( json['NullCheckBoxList'] as Map) : null, nullTextList: (json['NullTextList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NullValueField.fromJson(e as Map)) .toList(), ); @@ -19851,19 +19824,17 @@ class DynamicTransform { factory DynamicTransform.fromJson(Map json) { return DynamicTransform( functionName: json['FunctionName'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, path: json['Path'] as String, transformName: json['TransformName'] as String, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransformConfigParameter.fromJson(e as Map)) .toList(), @@ -20088,7 +20059,7 @@ class EncryptionConfiguration { json['JobBookmarksEncryption'] as Map) : null, s3Encryption: (json['S3Encryption'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Encryption.fromJson(e as Map)) .toList(), ); @@ -20182,10 +20153,8 @@ class EvaluateDataQuality { factory EvaluateDataQuality.fromJson(Map json) { return EvaluateDataQuality( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, ruleset: json['Ruleset'] as String, output: (json['Output'] as String?)?.let(DQTransformOutput.fromString), @@ -20256,10 +20225,8 @@ class EvaluateDataQualityMultiFrame { factory EvaluateDataQualityMultiFrame.fromJson(Map json) { return EvaluateDataQualityMultiFrame( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, ruleset: json['Ruleset'] as String, additionalDataSources: @@ -20537,10 +20504,8 @@ class FillMissingValues { factory FillMissingValues.fromJson(Map json) { return FillMissingValues( imputedPath: json['ImputedPath'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, filledPath: json['FilledPath'] as String?, ); @@ -20586,13 +20551,11 @@ class Filter { factory Filter.fromJson(Map json) { return Filter( filters: (json['Filters'] as List) - .whereNotNull() + .nonNulls .map((e) => FilterExpression.fromJson(e as Map)) .toList(), - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), logicalOperator: FilterLogicalOperator.fromString((json['LogicalOperator'] as String)), name: json['Name'] as String, @@ -20634,7 +20597,7 @@ class FilterExpression { return FilterExpression( operation: FilterOperation.fromString((json['Operation'] as String)), values: (json['Values'] as List) - .whereNotNull() + .nonNulls .map((e) => FilterValue.fromJson(e as Map)) .toList(), negated: json['Negated'] as bool?, @@ -20724,10 +20687,7 @@ class FilterValue { factory FilterValue.fromJson(Map json) { return FilterValue( type: FilterValueType.fromString((json['Type'] as String)), - value: (json['Value'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + value: (json['Value'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -20822,7 +20782,7 @@ class FindMatchesMetrics { return FindMatchesMetrics( areaUnderPRCurve: json['AreaUnderPRCurve'] as double?, columnImportances: (json['ColumnImportances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnImportance.fromJson(e as Map)) .toList(), confusionMatrix: json['ConfusionMatrix'] != null @@ -20991,7 +20951,7 @@ class GetBlueprintRunsResponse { factory GetBlueprintRunsResponse.fromJson(Map json) { return GetBlueprintRunsResponse( blueprintRuns: (json['BlueprintRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BlueprintRun.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21049,7 +21009,7 @@ class GetClassifiersResponse { factory GetClassifiersResponse.fromJson(Map json) { return GetClassifiersResponse( classifiers: (json['Classifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Classifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21073,11 +21033,11 @@ class GetColumnStatisticsForPartitionResponse { Map json) { return GetColumnStatisticsForPartitionResponse( columnStatisticsList: (json['ColumnStatisticsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnStatistics.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnError.fromJson(e as Map)) .toList(), ); @@ -21100,11 +21060,11 @@ class GetColumnStatisticsForTableResponse { Map json) { return GetColumnStatisticsForTableResponse( columnStatisticsList: (json['ColumnStatisticsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnStatistics.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnError.fromJson(e as Map)) .toList(), ); @@ -21147,7 +21107,7 @@ class GetColumnStatisticsTaskRunsResponse { Map json) { return GetColumnStatisticsTaskRunsResponse( columnStatisticsTaskRuns: (json['ColumnStatisticsTaskRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnStatisticsTaskRun.fromJson(e as Map)) .toList(), @@ -21214,7 +21174,7 @@ class GetConnectionsResponse { factory GetConnectionsResponse.fromJson(Map json) { return GetConnectionsResponse( connectionList: (json['ConnectionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21238,7 +21198,7 @@ class GetCrawlerMetricsResponse { factory GetCrawlerMetricsResponse.fromJson(Map json) { return GetCrawlerMetricsResponse( crawlerMetricsList: (json['CrawlerMetricsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CrawlerMetrics.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21279,7 +21239,7 @@ class GetCrawlersResponse { factory GetCrawlersResponse.fromJson(Map json) { return GetCrawlersResponse( crawlers: (json['Crawlers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Crawler.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21309,7 +21269,7 @@ class GetCustomEntityTypeResponse { factory GetCustomEntityTypeResponse.fromJson(Map json) { return GetCustomEntityTypeResponse( contextWords: (json['ContextWords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -21404,7 +21364,7 @@ class GetDataQualityResultResponse { factory GetDataQualityResultResponse.fromJson(Map json) { return GetDataQualityResultResponse( analyzerResults: (json['AnalyzerResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityAnalyzerResult.fromJson(e as Map)) .toList(), @@ -21416,13 +21376,13 @@ class GetDataQualityResultResponse { jobName: json['JobName'] as String?, jobRunId: json['JobRunId'] as String?, observations: (json['Observations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DataQualityObservation.fromJson(e as Map)) .toList(), resultId: json['ResultId'] as String?, ruleResults: (json['RuleResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityRuleResult.fromJson(e as Map)) .toList(), rulesetEvaluationRunId: json['RulesetEvaluationRunId'] as String?, @@ -21606,12 +21566,12 @@ class GetDataQualityRulesetEvaluationRunResponse { lastModifiedOn: timeStampFromJson(json['LastModifiedOn']), numberOfWorkers: json['NumberOfWorkers'] as int?, resultIds: (json['ResultIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), role: json['Role'] as String?, rulesetNames: (json['RulesetNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), runId: json['RunId'] as String?, @@ -21706,7 +21666,7 @@ class GetDatabasesResponse { factory GetDatabasesResponse.fromJson(Map json) { return GetDatabasesResponse( databaseList: (json['DatabaseList'] as List) - .whereNotNull() + .nonNulls .map((e) => Database.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21729,11 +21689,11 @@ class GetDataflowGraphResponse { factory GetDataflowGraphResponse.fromJson(Map json) { return GetDataflowGraphResponse( dagEdges: (json['DagEdges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeGenEdge.fromJson(e as Map)) .toList(), dagNodes: (json['DagNodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeGenNode.fromJson(e as Map)) .toList(), ); @@ -21773,7 +21733,7 @@ class GetDevEndpointsResponse { factory GetDevEndpointsResponse.fromJson(Map json) { return GetDevEndpointsResponse( devEndpoints: (json['DevEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DevEndpoint.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21848,7 +21808,7 @@ class GetJobRunsResponse { factory GetJobRunsResponse.fromJson(Map json) { return GetJobRunsResponse( jobRuns: (json['JobRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobRun.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21871,7 +21831,7 @@ class GetJobsResponse { factory GetJobsResponse.fromJson(Map json) { return GetJobsResponse( jobs: (json['Jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -21958,7 +21918,7 @@ class GetMLTaskRunsResponse { return GetMLTaskRunsResponse( nextToken: json['NextToken'] as String?, taskRuns: (json['TaskRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaskRun.fromJson(e as Map)) .toList(), ); @@ -22095,7 +22055,7 @@ class GetMLTransformResponse { : null, glueVersion: json['GlueVersion'] as String?, inputRecordTables: (json['InputRecordTables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueTable.fromJson(e as Map)) .toList(), labelCount: json['LabelCount'] as int?, @@ -22110,7 +22070,7 @@ class GetMLTransformResponse { : null, role: json['Role'] as String?, schema: (json['Schema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaColumn.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(TransformStatusType.fromString), @@ -22140,7 +22100,7 @@ class GetMLTransformsResponse { factory GetMLTransformsResponse.fromJson(Map json) { return GetMLTransformsResponse( transforms: (json['Transforms'] as List) - .whereNotNull() + .nonNulls .map((e) => MLTransform.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22159,7 +22119,7 @@ class GetMappingResponse { factory GetMappingResponse.fromJson(Map json) { return GetMappingResponse( mapping: (json['Mapping'] as List) - .whereNotNull() + .nonNulls .map((e) => MappingEntry.fromJson(e as Map)) .toList(), ); @@ -22183,7 +22143,7 @@ class GetPartitionIndexesResponse { nextToken: json['NextToken'] as String?, partitionIndexDescriptorList: (json['PartitionIndexDescriptorList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionIndexDescriptor.fromJson(e as Map)) .toList(), @@ -22225,7 +22185,7 @@ class GetPartitionsResponse { return GetPartitionsResponse( nextToken: json['NextToken'] as String?, partitions: (json['Partitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Partition.fromJson(e as Map)) .toList(), ); @@ -22310,7 +22270,7 @@ class GetResourcePoliciesResponse { return GetResourcePoliciesResponse( getResourcePoliciesResponseList: (json['GetResourcePoliciesResponseList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GluePolicy.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -22561,7 +22521,7 @@ class GetSecurityConfigurationsResponse { return GetSecurityConfigurationsResponse( nextToken: json['NextToken'] as String?, securityConfigurations: (json['SecurityConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityConfiguration.fromJson(e as Map)) .toList(), ); @@ -22686,7 +22646,7 @@ class GetTableVersionsResponse { return GetTableVersionsResponse( nextToken: json['NextToken'] as String?, tableVersions: (json['TableVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableVersion.fromJson(e as Map)) .toList(), ); @@ -22709,7 +22669,7 @@ class GetTablesResponse { return GetTablesResponse( nextToken: json['NextToken'] as String?, tableList: (json['TableList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Table.fromJson(e as Map)) .toList(), ); @@ -22766,7 +22726,7 @@ class GetTriggersResponse { return GetTriggersResponse( nextToken: json['NextToken'] as String?, triggers: (json['Triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trigger.fromJson(e as Map)) .toList(), ); @@ -22794,7 +22754,7 @@ class GetUnfilteredPartitionMetadataResponse { Map json) { return GetUnfilteredPartitionMetadataResponse( authorizedColumns: (json['AuthorizedColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), isRegisteredWithLakeFormation: @@ -22824,7 +22784,7 @@ class GetUnfilteredPartitionsMetadataResponse { return GetUnfilteredPartitionsMetadataResponse( nextToken: json['NextToken'] as String?, unfilteredPartitions: (json['UnfilteredPartitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnfilteredPartition.fromJson(e as Map)) .toList(), ); @@ -22889,11 +22849,11 @@ class GetUnfilteredTableMetadataResponse { Map json) { return GetUnfilteredTableMetadataResponse( authorizedColumns: (json['AuthorizedColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cellFilters: (json['CellFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnRowFilter.fromJson(e as Map)) .toList(), isMultiDialectView: json['IsMultiDialectView'] as bool?, @@ -22901,7 +22861,7 @@ class GetUnfilteredTableMetadataResponse { isRegisteredWithLakeFormation: json['IsRegisteredWithLakeFormation'] as bool?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), queryAuthorizationId: json['QueryAuthorizationId'] as String?, @@ -22949,7 +22909,7 @@ class GetUserDefinedFunctionsResponse { return GetUserDefinedFunctionsResponse( nextToken: json['NextToken'] as String?, userDefinedFunctions: (json['UserDefinedFunctions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserDefinedFunction.fromJson(e as Map)) .toList(), ); @@ -23022,7 +22982,7 @@ class GetWorkflowRunsResponse { return GetWorkflowRunsResponse( nextToken: json['NextToken'] as String?, runs: (json['Runs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowRun.fromJson(e as Map)) .toList(), ); @@ -23095,7 +23055,7 @@ class GlueSchema { factory GlueSchema.fromJson(Map json) { return GlueSchema( columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GlueStudioSchemaColumn.fromJson(e as Map)) .toList(), @@ -23293,16 +23253,13 @@ class GovernedCatalogTarget { factory GovernedCatalogTarget.fromJson(Map json) { return GovernedCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? CatalogSchemaChangePolicy.fromJson( @@ -23418,14 +23375,12 @@ class HudiTarget { return HudiTarget( connectionName: json['ConnectionName'] as String?, exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maximumTraversalDepth: json['MaximumTraversalDepth'] as int?, - paths: (json['Paths'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + paths: + (json['Paths'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -23517,14 +23472,12 @@ class IcebergTarget { return IcebergTarget( connectionName: json['ConnectionName'] as String?, exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maximumTraversalDepth: json['MaximumTraversalDepth'] as int?, - paths: (json['Paths'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + paths: + (json['Paths'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -23656,7 +23609,7 @@ class JDBCConnectorOptions { GlueRecordType.fromString((e as String)))), filterPredicate: json['FilterPredicate'] as String?, jobBookmarkKeys: (json['JobBookmarkKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), jobBookmarkKeysSortOrder: json['JobBookmarkKeysSortOrder'] as String?, @@ -23744,7 +23697,7 @@ class JDBCConnectorSource { : null, connectionTable: json['ConnectionTable'] as String?, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), query: json['Query'] as String?, @@ -23818,15 +23771,13 @@ class JDBCConnectorTarget { connectionTable: json['ConnectionTable'] as String, connectionType: json['ConnectionType'] as String, connectorName: json['ConnectorName'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, additionalOptions: (json['AdditionalOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -23954,11 +23905,11 @@ class JdbcTarget { return JdbcTarget( connectionName: json['ConnectionName'] as String?, enableAdditionalMetadata: (json['EnableAdditionalMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JdbcMetadataEntry.fromString((e as String))) .toList(), exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), path: json['Path'] as String?, @@ -24485,7 +24436,7 @@ class JobNodeDetails { factory JobNodeDetails.fromJson(Map json) { return JobNodeDetails( jobRuns: (json['JobRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobRun.fromJson(e as Map)) .toList(), ); @@ -24815,7 +24766,7 @@ class JobRun { : null, numberOfWorkers: json['NumberOfWorkers'] as int?, predecessorRuns: (json['PredecessorRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Predecessor.fromJson(e as Map)) .toList(), previousRunId: json['PreviousRunId'] as String?, @@ -25195,13 +25146,11 @@ class Join { factory Join.fromJson(Map json) { return Join( columns: (json['Columns'] as List) - .whereNotNull() + .nonNulls .map((e) => JoinColumn.fromJson(e as Map)) .toList(), - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), joinType: JoinType.fromString((json['JoinType'] as String)), name: json['Name'] as String, ); @@ -25238,9 +25187,8 @@ class JoinColumn { return JoinColumn( from: json['From'] as String, keys: (json['Keys'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -25949,7 +25897,7 @@ class ListBlueprintsResponse { factory ListBlueprintsResponse.fromJson(Map json) { return ListBlueprintsResponse( blueprints: (json['Blueprints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -25973,7 +25921,7 @@ class ListColumnStatisticsTaskRunsResponse { Map json) { return ListColumnStatisticsTaskRunsResponse( columnStatisticsTaskRunIds: (json['ColumnStatisticsTaskRunIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -25998,7 +25946,7 @@ class ListCrawlersResponse { factory ListCrawlersResponse.fromJson(Map json) { return ListCrawlersResponse( crawlerNames: (json['CrawlerNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -26023,7 +25971,7 @@ class ListCrawlsResponse { factory ListCrawlsResponse.fromJson(Map json) { return ListCrawlsResponse( crawls: (json['Crawls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CrawlerHistory.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -26047,7 +25995,7 @@ class ListCustomEntityTypesResponse { factory ListCustomEntityTypesResponse.fromJson(Map json) { return ListCustomEntityTypesResponse( customEntityTypes: (json['CustomEntityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomEntityType.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -26070,7 +26018,7 @@ class ListDataQualityResultsResponse { factory ListDataQualityResultsResponse.fromJson(Map json) { return ListDataQualityResultsResponse( results: (json['Results'] as List) - .whereNotNull() + .nonNulls .map((e) => DataQualityResultDescription.fromJson(e as Map)) .toList(), @@ -26096,7 +26044,7 @@ class ListDataQualityRuleRecommendationRunsResponse { return ListDataQualityRuleRecommendationRunsResponse( nextToken: json['NextToken'] as String?, runs: (json['Runs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityRuleRecommendationRunDescription.fromJson( e as Map)) .toList(), @@ -26122,7 +26070,7 @@ class ListDataQualityRulesetEvaluationRunsResponse { return ListDataQualityRulesetEvaluationRunsResponse( nextToken: json['NextToken'] as String?, runs: (json['Runs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityRulesetEvaluationRunDescription.fromJson( e as Map)) .toList(), @@ -26146,7 +26094,7 @@ class ListDataQualityRulesetsResponse { return ListDataQualityRulesetsResponse( nextToken: json['NextToken'] as String?, rulesets: (json['Rulesets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataQualityRulesetListDetails.fromJson(e as Map)) .toList(), @@ -26171,7 +26119,7 @@ class ListDevEndpointsResponse { factory ListDevEndpointsResponse.fromJson(Map json) { return ListDevEndpointsResponse( devEndpointNames: (json['DevEndpointNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -26195,7 +26143,7 @@ class ListJobsResponse { factory ListJobsResponse.fromJson(Map json) { return ListJobsResponse( jobNames: (json['JobNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -26220,7 +26168,7 @@ class ListMLTransformsResponse { factory ListMLTransformsResponse.fromJson(Map json) { return ListMLTransformsResponse( transformIds: (json['TransformIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -26246,7 +26194,7 @@ class ListRegistriesResponse { return ListRegistriesResponse( nextToken: json['NextToken'] as String?, registries: (json['Registries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegistryListItem.fromJson(e as Map)) .toList(), ); @@ -26271,7 +26219,7 @@ class ListSchemaVersionsResponse { return ListSchemaVersionsResponse( nextToken: json['NextToken'] as String?, schemas: (json['Schemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaVersionListItem.fromJson(e as Map)) .toList(), ); @@ -26296,7 +26244,7 @@ class ListSchemasResponse { return ListSchemasResponse( nextToken: json['NextToken'] as String?, schemas: (json['Schemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaListItem.fromJson(e as Map)) .toList(), ); @@ -26321,13 +26269,10 @@ class ListSessionsResponse { factory ListSessionsResponse.fromJson(Map json) { return ListSessionsResponse( - ids: (json['Ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['Ids'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, sessions: (json['Sessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Session.fromJson(e as Map)) .toList(), ); @@ -26350,7 +26295,7 @@ class ListStatementsResponse { return ListStatementsResponse( nextToken: json['NextToken'] as String?, statements: (json['Statements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Statement.fromJson(e as Map)) .toList(), ); @@ -26389,7 +26334,7 @@ class ListTableOptimizerRunsResponse { nextToken: json['NextToken'] as String?, tableName: json['TableName'] as String?, tableOptimizerRuns: (json['TableOptimizerRuns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableOptimizerRun.fromJson(e as Map)) .toList(), ); @@ -26414,7 +26359,7 @@ class ListTriggersResponse { return ListTriggersResponse( nextToken: json['NextToken'] as String?, triggerNames: (json['TriggerNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -26437,7 +26382,7 @@ class ListWorkflowsResponse { return ListWorkflowsResponse( nextToken: json['NextToken'] as String?, workflows: (json['Workflows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -26744,7 +26689,7 @@ class MLTransform { : null, glueVersion: json['GlueVersion'] as String?, inputRecordTables: (json['InputRecordTables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueTable.fromJson(e as Map)) .toList(), labelCount: json['LabelCount'] as int?, @@ -26759,7 +26704,7 @@ class MLTransform { : null, role: json['Role'] as String?, schema: (json['Schema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaColumn.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(TransformStatusType.fromString), @@ -26880,12 +26825,12 @@ class Mapping { factory Mapping.fromJson(Map json) { return Mapping( children: (json['Children'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Mapping.fromJson(e as Map)) .toList(), dropped: json['Dropped'] as bool?, fromPath: (json['FromPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fromType: json['FromType'] as String?, @@ -26998,15 +26943,12 @@ class Merge { factory Merge.fromJson(Map json) { return Merge( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, primaryKeys: (json['PrimaryKeys'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), source: json['Source'] as String, ); @@ -27048,7 +26990,7 @@ class MetadataInfo { createdTime: json['CreatedTime'] as String?, metadataValue: json['MetadataValue'] as String?, otherMetadataValueList: (json['OtherMetadataValueList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OtherMetadataValueListItem.fromJson(e as Map)) .toList(), @@ -27121,7 +27063,7 @@ class MetricBasedObservation { json['MetricValues'] as Map) : null, newRules: (json['NewRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -27189,10 +27131,8 @@ class MicrosoftSQLServerCatalogTarget { factory MicrosoftSQLServerCatalogTarget.fromJson(Map json) { return MicrosoftSQLServerCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, ); @@ -27317,10 +27257,8 @@ class MySQLCatalogTarget { factory MySQLCatalogTarget.fromJson(Map json) { return MySQLCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, ); @@ -27759,10 +27697,8 @@ class OracleSQLCatalogTarget { factory OracleSQLCatalogTarget.fromJson(Map json) { return OracleSQLCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, ); @@ -27885,13 +27821,11 @@ class PIIDetection { factory PIIDetection.fromJson(Map json) { return PIIDetection( entityTypesToDetect: (json['EntityTypesToDetect'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - inputs: (json['Inputs'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, piiType: PiiType.fromString((json['PiiType'] as String)), maskValue: json['MaskValue'] as String?, @@ -28016,10 +27950,8 @@ class Partition { json['StorageDescriptor'] as Map) : null, tableName: json['TableName'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -28043,7 +27975,7 @@ class PartitionError { ? ErrorDetail.fromJson(json['ErrorDetail'] as Map) : null, partitionValues: (json['PartitionValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -28120,11 +28052,11 @@ class PartitionIndexDescriptor { indexStatus: PartitionIndexStatus.fromString((json['IndexStatus'] as String)), keys: (json['Keys'] as List) - .whereNotNull() + .nonNulls .map((e) => KeySchemaElement.fromJson(e as Map)) .toList(), backfillErrors: (json['BackfillErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BackfillError.fromJson(e as Map)) .toList(), ); @@ -28209,10 +28141,8 @@ class PartitionValueList { factory PartitionValueList.fromJson(Map json) { return PartitionValueList( - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -28283,7 +28213,7 @@ class PhysicalConnectionRequirements { return PhysicalConnectionRequirements( availabilityZone: json['AvailabilityZone'] as String?, securityGroupIdList: (json['SecurityGroupIdList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetId: json['SubnetId'] as String?, @@ -28380,10 +28310,8 @@ class PostgreSQLCatalogTarget { factory PostgreSQLCatalogTarget.fromJson(Map json) { return PostgreSQLCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, ); @@ -28442,7 +28370,7 @@ class Predicate { factory Predicate.fromJson(Map json) { return Predicate( conditions: (json['Conditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Condition.fromJson(e as Map)) .toList(), logical: (json['Logical'] as String?)?.let(Logical.fromString), @@ -28475,7 +28403,7 @@ class PrincipalPermissions { factory PrincipalPermissions.fromJson(Map json) { return PrincipalPermissions( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), principal: json['Principal'] != null @@ -28734,10 +28662,8 @@ class Recipe { factory Recipe.fromJson(Map json) { return Recipe( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, recipeReference: RecipeReference.fromJson( json['RecipeReference'] as Map), @@ -28930,10 +28856,8 @@ class RedshiftTarget { factory RedshiftTarget.fromJson(Map json) { return RedshiftTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, redshiftTmpDir: json['RedshiftTmpDir'] as String?, @@ -29185,17 +29109,15 @@ class RenameField { factory RenameField.fromJson(Map json) { return RenameField( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, sourcePath: (json['SourcePath'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), targetPath: (json['TargetPath'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -29311,10 +29233,8 @@ class ResumeWorkflowRunResponse { factory ResumeWorkflowRunResponse.fromJson(Map json) { return ResumeWorkflowRunResponse( - nodeIds: (json['NodeIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + nodeIds: + (json['NodeIds'] as List?)?.nonNulls.map((e) => e as String).toList(), runId: json['RunId'] as String?, ); } @@ -29401,7 +29321,7 @@ class S3CatalogDeltaSource { (json['AdditionalDeltaOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -29459,7 +29379,7 @@ class S3CatalogHudiSource { (json['AdditionalHudiOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -29571,16 +29491,13 @@ class S3CatalogTarget { factory S3CatalogTarget.fromJson(Map json) { return S3CatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? CatalogSchemaChangePolicy.fromJson( @@ -29722,10 +29639,7 @@ class S3CsvSource { factory S3CsvSource.fromJson(Map json) { return S3CsvSource( name: json['Name'] as String, - paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + paths: (json['Paths'] as List).nonNulls.map((e) => e as String).toList(), quoteChar: QuoteChar.fromString((json['QuoteChar'] as String)), separator: Separator.fromString((json['Separator'] as String)), additionalOptions: json['AdditionalOptions'] != null @@ -29736,7 +29650,7 @@ class S3CsvSource { (json['CompressionType'] as String?)?.let(CompressionType.fromString), escaper: json['Escaper'] as String?, exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), groupFiles: json['GroupFiles'] as String?, @@ -29746,7 +29660,7 @@ class S3CsvSource { multiline: json['Multiline'] as bool?, optimizePerformance: json['OptimizePerformance'] as bool?, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), recurse: json['Recurse'] as bool?, @@ -29838,18 +29752,15 @@ class S3DeltaCatalogTarget { factory S3DeltaCatalogTarget.fromJson(Map json) { return S3DeltaCatalogTarget( database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, additionalOptions: (json['AdditionalOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? CatalogSchemaChangePolicy.fromJson( @@ -29922,18 +29833,15 @@ class S3DeltaDirectTarget { compression: DeltaTargetCompressionType.fromString( (json['Compression'] as String)), format: TargetFormat.fromString((json['Format'] as String)), - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, path: json['Path'] as String, additionalOptions: (json['AdditionalOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? DirectSchemaChangePolicy.fromJson( @@ -29992,10 +29900,7 @@ class S3DeltaSource { factory S3DeltaSource.fromJson(Map json) { return S3DeltaSource( name: json['Name'] as String, - paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + paths: (json['Paths'] as List).nonNulls.map((e) => e as String).toList(), additionalDeltaOptions: (json['AdditionalDeltaOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), @@ -30004,7 +29909,7 @@ class S3DeltaSource { json['AdditionalOptions'] as Map) : null, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -30110,17 +30015,14 @@ class S3DirectTarget { factory S3DirectTarget.fromJson(Map json) { return S3DirectTarget( format: TargetFormat.fromString((json['Format'] as String)), - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, path: json['Path'] as String, compression: json['Compression'] as String?, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? DirectSchemaChangePolicy.fromJson( @@ -30232,18 +30134,15 @@ class S3GlueParquetTarget { factory S3GlueParquetTarget.fromJson(Map json) { return S3GlueParquetTarget( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, path: json['Path'] as String, compression: (json['Compression'] as String?) ?.let(ParquetCompressionType.fromString), partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? DirectSchemaChangePolicy.fromJson( @@ -30309,16 +30208,13 @@ class S3HudiCatalogTarget { additionalOptions: (json['AdditionalOptions'] as Map) .map((k, e) => MapEntry(k, e as String)), database: json['Database'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, table: json['Table'] as String, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? CatalogSchemaChangePolicy.fromJson( @@ -30393,16 +30289,13 @@ class S3HudiDirectTarget { compression: HudiTargetCompressionType.fromString((json['Compression'] as String)), format: TargetFormat.fromString((json['Format'] as String)), - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, path: json['Path'] as String, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), schemaChangePolicy: json['SchemaChangePolicy'] != null ? DirectSchemaChangePolicy.fromJson( @@ -30461,10 +30354,7 @@ class S3HudiSource { factory S3HudiSource.fromJson(Map json) { return S3HudiSource( name: json['Name'] as String, - paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + paths: (json['Paths'] as List).nonNulls.map((e) => e as String).toList(), additionalHudiOptions: (json['AdditionalHudiOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), @@ -30473,7 +30363,7 @@ class S3HudiSource { json['AdditionalOptions'] as Map) : null, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -30576,10 +30466,7 @@ class S3JsonSource { factory S3JsonSource.fromJson(Map json) { return S3JsonSource( name: json['Name'] as String, - paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + paths: (json['Paths'] as List).nonNulls.map((e) => e as String).toList(), additionalOptions: json['AdditionalOptions'] != null ? S3DirectSourceAdditionalOptions.fromJson( json['AdditionalOptions'] as Map) @@ -30587,7 +30474,7 @@ class S3JsonSource { compressionType: (json['CompressionType'] as String?)?.let(CompressionType.fromString), exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), groupFiles: json['GroupFiles'] as String?, @@ -30597,7 +30484,7 @@ class S3JsonSource { maxFilesInBand: json['MaxFilesInBand'] as int?, multiline: json['Multiline'] as bool?, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), recurse: json['Recurse'] as bool?, @@ -30704,10 +30591,7 @@ class S3ParquetSource { factory S3ParquetSource.fromJson(Map json) { return S3ParquetSource( name: json['Name'] as String, - paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + paths: (json['Paths'] as List).nonNulls.map((e) => e as String).toList(), additionalOptions: json['AdditionalOptions'] != null ? S3DirectSourceAdditionalOptions.fromJson( json['AdditionalOptions'] as Map) @@ -30715,7 +30599,7 @@ class S3ParquetSource { compressionType: (json['CompressionType'] as String?) ?.let(ParquetCompressionType.fromString), exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), groupFiles: json['GroupFiles'] as String?, @@ -30723,7 +30607,7 @@ class S3ParquetSource { maxBand: json['MaxBand'] as int?, maxFilesInBand: json['MaxFilesInBand'] as int?, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), recurse: json['Recurse'] as bool?, @@ -30832,7 +30716,7 @@ class S3Target { dlqEventQueueArn: json['DlqEventQueueArn'] as String?, eventQueueArn: json['EventQueueArn'] as String?, exclusions: (json['Exclusions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), path: json['Path'] as String?, @@ -31239,7 +31123,7 @@ class SearchTablesResponse { return SearchTablesResponse( nextToken: json['NextToken'] as String?, tableList: (json['TableList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Table.fromJson(e as Map)) .toList(), ); @@ -31320,15 +31204,12 @@ class SelectFields { factory SelectFields.fromJson(Map json) { return SelectFields( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -31367,10 +31248,8 @@ class SelectFromCollection { factory SelectFromCollection.fromJson(Map json) { return SelectFromCollection( index: json['Index'] as int, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, ); } @@ -31637,14 +31516,14 @@ class SkewedInfo { factory SkewedInfo.fromJson(Map json) { return SkewedInfo( skewedColumnNames: (json['SkewedColumnNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), skewedColumnValueLocationMaps: (json['SkewedColumnValueLocationMaps'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), skewedColumnValues: (json['SkewedColumnValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -31797,14 +31676,14 @@ class SnowflakeNodeData { sampleQuery: json['SampleQuery'] as String?, schema: json['Schema'] as String?, selectedColumns: (json['SelectedColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Option.fromJson(e as Map)) .toList(), sourceType: json['SourceType'] as String?, stagingTable: json['StagingTable'] as String?, table: json['Table'] as String?, tableSchema: (json['TableSchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Option.fromJson(e as Map)) .toList(), tempDir: json['TempDir'] as String?, @@ -31883,7 +31762,7 @@ class SnowflakeSource { data: SnowflakeNodeData.fromJson(json['Data'] as Map), name: json['Name'] as String, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -31922,10 +31801,8 @@ class SnowflakeTarget { return SnowflakeTarget( data: SnowflakeNodeData.fromJson(json['Data'] as Map), name: json['Name'] as String, - inputs: (json['Inputs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -32141,7 +32018,7 @@ class SparkConnectorSource { additionalOptions: (json['AdditionalOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -32204,15 +32081,13 @@ class SparkConnectorTarget { connectionName: json['ConnectionName'] as String, connectionType: json['ConnectionType'] as String, connectorName: json['ConnectorName'] as String, - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, additionalOptions: (json['AdditionalOptions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -32275,18 +32150,16 @@ class SparkSQL { factory SparkSQL.fromJson(Map json) { return SparkSQL( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, sqlAliases: (json['SqlAliases'] as List) - .whereNotNull() + .nonNulls .map((e) => SqlAlias.fromJson(e as Map)) .toList(), sqlQuery: json['SqlQuery'] as String, outputSchemas: (json['OutputSchemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlueSchema.fromJson(e as Map)) .toList(), ); @@ -32340,10 +32213,8 @@ class Spigot { factory Spigot.fromJson(Map json) { return Spigot( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, path: json['Path'] as String, prob: json['Prob'] as double?, @@ -32389,15 +32260,12 @@ class SplitFields { factory SplitFields.fromJson(Map json) { return SplitFields( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, paths: (json['Paths'] as List) - .whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + .nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -32757,7 +32625,7 @@ class StatementOutput { executionCount: json['ExecutionCount'] as int?, status: (json['Status'] as String?)?.let(StatementState.fromString), traceback: (json['Traceback'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -32936,15 +32804,15 @@ class StorageDescriptor { factory StorageDescriptor.fromJson(Map json) { return StorageDescriptor( additionalLocations: (json['AdditionalLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), bucketColumns: (json['BucketColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), compressed: json['Compressed'] as bool?, @@ -32965,7 +32833,7 @@ class StorageDescriptor { ? SkewedInfo.fromJson(json['SkewedInfo'] as Map) : null, sortColumns: (json['SortColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Order.fromJson(e as Map)) .toList(), storedAsSubDirectories: json['StoredAsSubDirectories'] as bool?, @@ -33251,7 +33119,7 @@ class Table { parameters: (json['Parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), retention: json['Retention'] as int?, @@ -33959,10 +33827,8 @@ class TransformConfigParameter { listType: (json['ListType'] as String?)?.let(ParamType.fromString), validationMessage: json['ValidationMessage'] as String?, validationRule: json['ValidationRule'] as String?, - value: (json['Value'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + value: + (json['Value'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -34277,7 +34143,7 @@ class Trigger { factory Trigger.fromJson(Map json) { return Trigger( actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), description: json['Description'] as String?, @@ -34427,7 +34293,7 @@ class UnfilteredPartition { factory UnfilteredPartition.fromJson(Map json) { return UnfilteredPartition( authorizedColumns: (json['AuthorizedColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), isRegisteredWithLakeFormation: @@ -34465,10 +34331,8 @@ class Union { factory Union.fromJson(Map json) { return Union( - inputs: (json['Inputs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['Inputs'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, unionType: UnionType.fromString((json['UnionType'] as String)), ); @@ -34573,7 +34437,7 @@ class UpdateColumnStatisticsForPartitionResponse { Map json) { return UpdateColumnStatisticsForPartitionResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnStatisticsError.fromJson(e as Map)) .toList(), ); @@ -34592,7 +34456,7 @@ class UpdateColumnStatisticsForTableResponse { Map json) { return UpdateColumnStatisticsForTableResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnStatisticsError.fromJson(e as Map)) .toList(), ); @@ -35034,7 +34898,7 @@ class UpsertRedshiftTargetOptions { connectionName: json['ConnectionName'] as String?, tableLocation: json['TableLocation'] as String?, upsertKeys: (json['UpsertKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -35100,7 +34964,7 @@ class UserDefinedFunction { ownerName: json['OwnerName'] as String?, ownerType: (json['OwnerType'] as String?)?.let(PrincipalType.fromString), resourceUris: (json['ResourceUris'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceUri.fromJson(e as Map)) .toList(), ); @@ -35178,11 +35042,11 @@ class ViewDefinition { definer: json['Definer'] as String?, isProtected: json['IsProtected'] as bool?, representations: (json['Representations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ViewRepresentation.fromJson(e as Map)) .toList(), subObjects: (json['SubObjects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -35370,11 +35234,11 @@ class WorkflowGraph { factory WorkflowGraph.fromJson(Map json) { return WorkflowGraph( edges: (json['Edges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Edge.fromJson(e as Map)) .toList(), nodes: (json['Nodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Node.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_glue_api/pubspec.yaml b/generated/aws_glue_api/pubspec.yaml index d2dd5d504..d856531d4 100644 --- a/generated/aws_glue_api/pubspec.yaml +++ b/generated/aws_glue_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_glue_a protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_greengrass_api/lib/greengrass-2017-06-07.dart b/generated/aws_greengrass_api/lib/greengrass-2017-06-07.dart index 06b1d4c20..665088f85 100644 --- a/generated/aws_greengrass_api/lib/greengrass-2017-06-07.dart +++ b/generated/aws_greengrass_api/lib/greengrass-2017-06-07.dart @@ -2866,7 +2866,7 @@ class BulkDeploymentResult { deploymentType: (json['DeploymentType'] as String?)?.let(DeploymentType.fromString), errorDetails: (json['ErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetail.fromJson(e as Map)) .toList(), errorMessage: json['ErrorMessage'] as String?, @@ -3010,7 +3010,7 @@ class ConnectorDefinitionVersion { factory ConnectorDefinitionVersion.fromJson(Map json) { return ConnectorDefinitionVersion( connectors: (json['Connectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connector.fromJson(e as Map)) .toList(), ); @@ -3082,7 +3082,7 @@ class CoreDefinitionVersion { factory CoreDefinitionVersion.fromJson(Map json) { return CoreDefinitionVersion( cores: (json['Cores'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Core.fromJson(e as Map)) .toList(), ); @@ -4008,7 +4008,7 @@ class DeviceDefinitionVersion { factory DeviceDefinitionVersion.fromJson(Map json) { return DeviceDefinitionVersion( devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Device.fromJson(e as Map)) .toList(), ); @@ -4253,7 +4253,7 @@ class FunctionConfigurationEnvironment { json['Execution'] as Map) : null, resourceAccessPolicies: (json['ResourceAccessPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceAccessPolicy.fromJson(e as Map)) .toList(), variables: (json['Variables'] as Map?) @@ -4354,7 +4354,7 @@ class FunctionDefinitionVersion { json['DefaultConfig'] as Map) : null, functions: (json['Functions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => $Function.fromJson(e as Map)) .toList(), ); @@ -4514,7 +4514,7 @@ class GetBulkDeploymentStatusResponse { ?.let(BulkDeploymentStatus.fromString), createdAt: json['CreatedAt'] as String?, errorDetails: (json['ErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetail.fromJson(e as Map)) .toList(), errorMessage: json['ErrorMessage'] as String?, @@ -4539,7 +4539,7 @@ class GetConnectivityInfoResponse { factory GetConnectivityInfoResponse.fromJson(Map json) { return GetConnectivityInfoResponse( connectivityInfo: (json['ConnectivityInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectivityInfo.fromJson(e as Map)) .toList(), message: json['message'] as String?, @@ -4774,7 +4774,7 @@ class GetDeploymentStatusResponse { deploymentType: (json['DeploymentType'] as String?)?.let(DeploymentType.fromString), errorDetails: (json['ErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetail.fromJson(e as Map)) .toList(), errorMessage: json['ErrorMessage'] as String?, @@ -5646,7 +5646,7 @@ class ListBulkDeploymentDetailedReportsResponse { Map json) { return ListBulkDeploymentDetailedReportsResponse( deployments: (json['Deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BulkDeploymentResult.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5670,7 +5670,7 @@ class ListBulkDeploymentsResponse { factory ListBulkDeploymentsResponse.fromJson(Map json) { return ListBulkDeploymentsResponse( bulkDeployments: (json['BulkDeployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BulkDeployment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5696,7 +5696,7 @@ class ListConnectorDefinitionVersionsResponse { return ListConnectorDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -5719,7 +5719,7 @@ class ListConnectorDefinitionsResponse { factory ListConnectorDefinitionsResponse.fromJson(Map json) { return ListConnectorDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5745,7 +5745,7 @@ class ListCoreDefinitionVersionsResponse { return ListCoreDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -5768,7 +5768,7 @@ class ListCoreDefinitionsResponse { factory ListCoreDefinitionsResponse.fromJson(Map json) { return ListCoreDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5792,7 +5792,7 @@ class ListDeploymentsResponse { factory ListDeploymentsResponse.fromJson(Map json) { return ListDeploymentsResponse( deployments: (json['Deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Deployment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5818,7 +5818,7 @@ class ListDeviceDefinitionVersionsResponse { return ListDeviceDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -5841,7 +5841,7 @@ class ListDeviceDefinitionsResponse { factory ListDeviceDefinitionsResponse.fromJson(Map json) { return ListDeviceDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5867,7 +5867,7 @@ class ListFunctionDefinitionVersionsResponse { return ListFunctionDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -5890,7 +5890,7 @@ class ListFunctionDefinitionsResponse { factory ListFunctionDefinitionsResponse.fromJson(Map json) { return ListFunctionDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5911,7 +5911,7 @@ class ListGroupCertificateAuthoritiesResponse { return ListGroupCertificateAuthoritiesResponse( groupCertificateAuthorities: (json['GroupCertificateAuthorities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupCertificateAuthorityProperties.fromJson( e as Map)) .toList(), @@ -5936,7 +5936,7 @@ class ListGroupVersionsResponse { return ListGroupVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -5959,7 +5959,7 @@ class ListGroupsResponse { factory ListGroupsResponse.fromJson(Map json) { return ListGroupsResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5985,7 +5985,7 @@ class ListLoggerDefinitionVersionsResponse { return ListLoggerDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -6008,7 +6008,7 @@ class ListLoggerDefinitionsResponse { factory ListLoggerDefinitionsResponse.fromJson(Map json) { return ListLoggerDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6034,7 +6034,7 @@ class ListResourceDefinitionVersionsResponse { return ListResourceDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -6057,7 +6057,7 @@ class ListResourceDefinitionsResponse { factory ListResourceDefinitionsResponse.fromJson(Map json) { return ListResourceDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6083,7 +6083,7 @@ class ListSubscriptionDefinitionVersionsResponse { return ListSubscriptionDefinitionVersionsResponse( nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionInformation.fromJson(e as Map)) .toList(), ); @@ -6107,7 +6107,7 @@ class ListSubscriptionDefinitionsResponse { Map json) { return ListSubscriptionDefinitionsResponse( definitions: (json['Definitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefinitionInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6288,7 +6288,7 @@ class LoggerDefinitionVersion { factory LoggerDefinitionVersion.fromJson(Map json) { return LoggerDefinitionVersion( loggers: (json['Loggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Logger.fromJson(e as Map)) .toList(), ); @@ -6542,7 +6542,7 @@ class ResourceDefinitionVersion { factory ResourceDefinitionVersion.fromJson(Map json) { return ResourceDefinitionVersion( resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -6713,7 +6713,7 @@ class SecretsManagerSecretResourceData { arn: json['ARN'] as String?, additionalStagingLabelsToDownload: (json['AdditionalStagingLabelsToDownload'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6837,7 +6837,7 @@ class SubscriptionDefinitionVersion { factory SubscriptionDefinitionVersion.fromJson(Map json) { return SubscriptionDefinitionVersion( subscriptions: (json['Subscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subscription.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_greengrass_api/lib/greengrassv2-2020-11-30.dart b/generated/aws_greengrass_api/lib/greengrassv2-2020-11-30.dart index 473790be1..0d982bf8f 100644 --- a/generated/aws_greengrass_api/lib/greengrassv2-2020-11-30.dart +++ b/generated/aws_greengrass_api/lib/greengrassv2-2020-11-30.dart @@ -1477,7 +1477,7 @@ class BatchAssociateClientDeviceWithCoreDeviceResponse { Map json) { return BatchAssociateClientDeviceWithCoreDeviceResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociateClientDeviceWithCoreDeviceErrorEntry.fromJson( e as Map)) .toList(), @@ -1498,7 +1498,7 @@ class BatchDisassociateClientDeviceFromCoreDeviceResponse { Map json) { return BatchDisassociateClientDeviceFromCoreDeviceResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DisassociateClientDeviceFromCoreDeviceErrorEntry.fromJson( e as Map)) .toList(), @@ -1704,10 +1704,8 @@ class ComponentConfigurationUpdate { factory ComponentConfigurationUpdate.fromJson(Map json) { return ComponentConfigurationUpdate( merge: json['merge'] as String?, - reset: (json['reset'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + reset: + (json['reset'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -1869,7 +1867,7 @@ class ComponentLatestVersion { creationTimestamp: timeStampFromJson(json['creationTimestamp']), description: json['description'] as String?, platforms: (json['platforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentPlatform.fromJson(e as Map)) .toList(), publisher: json['publisher'] as String?, @@ -2583,7 +2581,7 @@ class DescribeComponentResponse { creationTimestamp: timeStampFromJson(json['creationTimestamp']), description: json['description'] as String?, platforms: (json['platforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentPlatform.fromJson(e as Map)) .toList(), publisher: json['publisher'] as String?, @@ -2824,11 +2822,11 @@ class EffectiveDeploymentStatusDetails { factory EffectiveDeploymentStatusDetails.fromJson(Map json) { return EffectiveDeploymentStatusDetails( errorStack: (json['errorStack'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), errorTypes: (json['errorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2896,7 +2894,7 @@ class GetConnectivityInfoResponse { factory GetConnectivityInfoResponse.fromJson(Map json) { return GetConnectivityInfoResponse( connectivityInfo: (json['ConnectivityInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectivityInfo.fromJson(e as Map)) .toList(), message: json['Message'] as String?, @@ -3174,7 +3172,7 @@ class InstalledComponent { ?.let(InstalledComponentLifecycleState.fromString), lifecycleStateDetails: json['lifecycleStateDetails'] as String?, lifecycleStatusCodes: (json['lifecycleStatusCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3245,7 +3243,7 @@ class IoTJobAbortConfig { factory IoTJobAbortConfig.fromJson(Map json) { return IoTJobAbortConfig( criteriaList: (json['criteriaList'] as List) - .whereNotNull() + .nonNulls .map((e) => IoTJobAbortCriteria.fromJson(e as Map)) .toList(), ); @@ -3927,7 +3925,7 @@ class ListClientDevicesAssociatedWithCoreDeviceResponse { Map json) { return ListClientDevicesAssociatedWithCoreDeviceResponse( associatedClientDevices: (json['associatedClientDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AssociatedClientDevice.fromJson(e as Map)) .toList(), @@ -3952,7 +3950,7 @@ class ListComponentVersionsResponse { factory ListComponentVersionsResponse.fromJson(Map json) { return ListComponentVersionsResponse( componentVersions: (json['componentVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentVersionListItem.fromJson(e as Map)) .toList(), @@ -3977,7 +3975,7 @@ class ListComponentsResponse { factory ListComponentsResponse.fromJson(Map json) { return ListComponentsResponse( components: (json['components'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Component.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4001,7 +3999,7 @@ class ListCoreDevicesResponse { factory ListCoreDevicesResponse.fromJson(Map json) { return ListCoreDevicesResponse( coreDevices: (json['coreDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoreDevice.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4025,7 +4023,7 @@ class ListDeploymentsResponse { factory ListDeploymentsResponse.fromJson(Map json) { return ListDeploymentsResponse( deployments: (json['deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Deployment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4049,7 +4047,7 @@ class ListEffectiveDeploymentsResponse { factory ListEffectiveDeploymentsResponse.fromJson(Map json) { return ListEffectiveDeploymentsResponse( effectiveDeployments: (json['effectiveDeployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectiveDeployment.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4083,7 +4081,7 @@ class ListInstalledComponentsResponse { factory ListInstalledComponentsResponse.fromJson(Map json) { return ListInstalledComponentsResponse( installedComponents: (json['installedComponents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstalledComponent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4139,7 +4137,7 @@ class ResolveComponentCandidatesResponse { Map json) { return ResolveComponentCandidatesResponse( resolvedComponentVersions: (json['resolvedComponentVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolvedComponentVersion.fromJson(e as Map)) .toList(), diff --git a/generated/aws_greengrass_api/pubspec.yaml b/generated/aws_greengrass_api/pubspec.yaml index 54039d621..59ae98c52 100644 --- a/generated/aws_greengrass_api/pubspec.yaml +++ b/generated/aws_greengrass_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_greeng protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_groundstation_api/lib/groundstation-2019-05-23.dart b/generated/aws_groundstation_api/lib/groundstation-2019-05-23.dart index 540db46af..0a61d3be4 100644 --- a/generated/aws_groundstation_api/lib/groundstation-2019-05-23.dart +++ b/generated/aws_groundstation_api/lib/groundstation-2019-05-23.dart @@ -2422,7 +2422,7 @@ class DescribeContactResponse { contactStatus: (json['contactStatus'] as String?)?.let(ContactStatus.fromString), dataflowList: (json['dataflowList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataflowDetail.fromJson(e as Map)) .toList(), endTime: timeStampFromJson(json['endTime']), @@ -2686,7 +2686,7 @@ class EndpointDetails { ? DataflowEndpoint.fromJson(json['endpoint'] as Map) : null, healthReasons: (json['healthReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapabilityHealthReason.fromString((e as String))) .toList(), healthStatus: @@ -3161,7 +3161,7 @@ class GetDataflowEndpointGroupResponse { dataflowEndpointGroupArn: json['dataflowEndpointGroupArn'] as String?, dataflowEndpointGroupId: json['dataflowEndpointGroupId'] as String?, endpointsDetails: (json['endpointsDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointDetails.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -3277,9 +3277,8 @@ class GetMissionProfileResponse { contactPrePassDurationSeconds: json['contactPrePassDurationSeconds'] as int?, dataflowEdges: (json['dataflowEdges'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), minimumViableContactDurationSeconds: json['minimumViableContactDurationSeconds'] as int?, @@ -3330,7 +3329,7 @@ class GetSatelliteResponse { json['currentEphemeris'] as Map) : null, groundStations: (json['groundStations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), noradSatelliteID: json['noradSatelliteID'] as int?, @@ -3450,7 +3449,7 @@ class ListConfigsResponse { factory ListConfigsResponse.fromJson(Map json) { return ListConfigsResponse( configList: (json['configList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3475,7 +3474,7 @@ class ListContactsResponse { factory ListContactsResponse.fromJson(Map json) { return ListContactsResponse( contactList: (json['contactList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactData.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3502,7 +3501,7 @@ class ListDataflowEndpointGroupsResponse { Map json) { return ListDataflowEndpointGroupsResponse( dataflowEndpointGroupList: (json['dataflowEndpointGroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataflowEndpointListItem.fromJson(e as Map)) .toList(), @@ -3526,7 +3525,7 @@ class ListEphemeridesResponse { factory ListEphemeridesResponse.fromJson(Map json) { return ListEphemeridesResponse( ephemerides: (json['ephemerides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EphemerisItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3551,7 +3550,7 @@ class ListGroundStationsResponse { factory ListGroundStationsResponse.fromJson(Map json) { return ListGroundStationsResponse( groundStationList: (json['groundStationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroundStationData.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3576,7 +3575,7 @@ class ListMissionProfilesResponse { factory ListMissionProfilesResponse.fromJson(Map json) { return ListMissionProfilesResponse( missionProfileList: (json['missionProfileList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MissionProfileListItem.fromJson(e as Map)) .toList(), @@ -3603,7 +3602,7 @@ class ListSatellitesResponse { return ListSatellitesResponse( nextToken: json['nextToken'] as String?, satellites: (json['satellites'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SatelliteListItem.fromJson(e as Map)) .toList(), ); @@ -3918,7 +3917,7 @@ class SatelliteListItem { json['currentEphemeris'] as Map) : null, groundStations: (json['groundStations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), noradSatelliteID: json['noradSatelliteID'] as int?, @@ -3950,13 +3949,11 @@ class SecurityDetails { return SecurityDetails( roleArn: json['roleArn'] as String, securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['subnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), ); } diff --git a/generated/aws_groundstation_api/pubspec.yaml b/generated/aws_groundstation_api/pubspec.yaml index 7c8e2b307..1cb58f912 100644 --- a/generated/aws_groundstation_api/pubspec.yaml +++ b/generated/aws_groundstation_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_ground protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_guardduty_api/lib/guardduty-2017-11-28.dart b/generated/aws_guardduty_api/lib/guardduty-2017-11-28.dart index 00ffb02b0..b6f93d7b9 100644 --- a/generated/aws_guardduty_api/lib/guardduty-2017-11-28.dart +++ b/generated/aws_guardduty_api/lib/guardduty-2017-11-28.dart @@ -3365,7 +3365,7 @@ class AccountFreeTrialInfo { json['dataSources'] as Map) : null, features: (json['features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FreeTrialFeatureConfigurationResult.fromJson( e as Map)) .toList(), @@ -3614,7 +3614,7 @@ class Anomaly { (e as Map).map((k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => AnomalyObject.fromJson(e as Map)) .toList())))), @@ -3965,14 +3965,9 @@ class Condition { factory Condition.fromJson(Map json) { return Condition( - eq: (json['eq'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - equals: (json['equals'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + eq: (json['eq'] as List?)?.nonNulls.map((e) => e as String).toList(), + equals: + (json['equals'] as List?)?.nonNulls.map((e) => e as String).toList(), greaterThan: json['greaterThan'] as int?, greaterThanOrEqual: json['greaterThanOrEqual'] as int?, gt: json['gt'] as int?, @@ -3981,12 +3976,9 @@ class Condition { lessThanOrEqual: json['lessThanOrEqual'] as int?, lt: json['lt'] as int?, lte: json['lte'] as int?, - neq: (json['neq'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + neq: (json['neq'] as List?)?.nonNulls.map((e) => e as String).toList(), notEquals: (json['notEquals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4071,7 +4063,7 @@ class Container { json['securityContext'] as Map) : null, volumeMounts: (json['volumeMounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeMount.fromJson(e as Map)) .toList(), ); @@ -4623,7 +4615,7 @@ class CreateMembersResponse { factory CreateMembersResponse.fromJson(Map json) { return CreateMembersResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -4913,7 +4905,7 @@ class DeclineInvitationsResponse { factory DeclineInvitationsResponse.fromJson(Map json) { return DeclineInvitationsResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -4981,7 +4973,7 @@ class DeleteInvitationsResponse { factory DeleteInvitationsResponse.fromJson(Map json) { return DeleteInvitationsResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -4999,7 +4991,7 @@ class DeleteMembersResponse { factory DeleteMembersResponse.fromJson(Map json) { return DeleteMembersResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -5038,7 +5030,7 @@ class DescribeMalwareScansResponse { factory DescribeMalwareScansResponse.fromJson(Map json) { return DescribeMalwareScansResponse( scans: (json['scans'] as List) - .whereNotNull() + .nonNulls .map((e) => Scan.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5122,7 +5114,7 @@ class DescribeOrganizationConfigurationResponse { json['dataSources'] as Map) : null, features: (json['features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationFeatureConfigurationResult.fromJson( e as Map)) .toList(), @@ -5415,7 +5407,7 @@ class DetectorFeatureConfigurationResult { Map json) { return DetectorFeatureConfigurationResult( additionalConfiguration: (json['additionalConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectorAdditionalConfigurationResult.fromJson( e as Map)) .toList(), @@ -5505,7 +5497,7 @@ class DisassociateMembersResponse { factory DisassociateMembersResponse.fromJson(Map json) { return DisassociateMembersResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -5594,11 +5586,11 @@ class EbsVolumeDetails { factory EbsVolumeDetails.fromJson(Map json) { return EbsVolumeDetails( scannedVolumeDetails: (json['scannedVolumeDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeDetail.fromJson(e as Map)) .toList(), skippedVolumeDetails: (json['skippedVolumeDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeDetail.fromJson(e as Map)) .toList(), ); @@ -5648,10 +5640,8 @@ class EbsVolumeScanDetails { scanId: json['scanId'] as String?, scanStartedAt: timeStampFromJson(json['scanStartedAt']), scanType: (json['scanType'] as String?)?.let(ScanType.fromString), - sources: (json['sources'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + sources: + (json['sources'] as List?)?.nonNulls.map((e) => e as String).toList(), triggerFindingId: json['triggerFindingId'] as String?, ); } @@ -5726,7 +5716,7 @@ class EcsClusterDetails { runningTasksCount: json['runningTasksCount'] as int?, status: json['status'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskDetails: json['taskDetails'] != null @@ -5785,7 +5775,7 @@ class EcsTaskDetails { return EcsTaskDetails( arn: json['arn'] as String?, containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Container.fromJson(e as Map)) .toList(), definitionArn: json['definitionArn'] as String?, @@ -5793,13 +5783,13 @@ class EcsTaskDetails { startedAt: timeStampFromJson(json['startedAt']), startedBy: json['startedBy'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), taskCreatedAt: timeStampFromJson(json['createdAt']), version: json['version'] as String?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -5842,7 +5832,7 @@ class EksClusterDetails { name: json['name'] as String?, status: json['status'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcId: json['vpcId'] as String?, @@ -5871,7 +5861,7 @@ class Evidence { factory Evidence.fromJson(Map json) { return Evidence( threatIntelligenceDetails: (json['threatIntelligenceDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThreatIntelligenceDetail.fromJson(e as Map)) .toList(), @@ -5910,10 +5900,8 @@ class FargateDetails { factory FargateDetails.fromJson(Map json) { return FargateDetails( - issues: (json['issues'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + issues: + (json['issues'] as List?)?.nonNulls.map((e) => e as String).toList(), managementType: (json['managementType'] as String?)?.let(ManagementType.fromString), ); @@ -6384,7 +6372,7 @@ class GetDetectorResponse { json['dataSources'] as Map) : null, features: (json['features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectorFeatureConfigurationResult.fromJson( e as Map)) .toList(), @@ -6453,7 +6441,7 @@ class GetFindingsResponse { factory GetFindingsResponse.fromJson(Map json) { return GetFindingsResponse( findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => Finding.fromJson(e as Map)) .toList(), ); @@ -6585,12 +6573,12 @@ class GetMemberDetectorsResponse { factory GetMemberDetectorsResponse.fromJson(Map json) { return GetMemberDetectorsResponse( memberDataSourceConfigurations: (json['members'] as List) - .whereNotNull() + .nonNulls .map((e) => MemberDataSourceConfiguration.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -6613,11 +6601,11 @@ class GetMembersResponse { factory GetMembersResponse.fromJson(Map json) { return GetMembersResponse( members: (json['members'] as List) - .whereNotNull() + .nonNulls .map((e) => Member.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -6661,11 +6649,11 @@ class GetRemainingFreeTrialDaysResponse { Map json) { return GetRemainingFreeTrialDaysResponse( accounts: (json['accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountFreeTrialInfo.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['unprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -6816,10 +6804,8 @@ class ImpersonatedUser { factory ImpersonatedUser.fromJson(Map json) { return ImpersonatedUser( - groups: (json['groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['groups'] as List?)?.nonNulls.map((e) => e as String).toList(), username: json['username'] as String?, ); } @@ -6897,17 +6883,17 @@ class InstanceDetails { instanceType: json['instanceType'] as String?, launchTime: json['launchTime'] as String?, networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), outpostArn: json['outpostArn'] as String?, platform: json['platform'] as String?, productCodes: (json['productCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductCode.fromJson(e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6958,7 +6944,7 @@ class InviteMembersResponse { factory InviteMembersResponse.fromJson(Map json) { return InviteMembersResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -7062,7 +7048,7 @@ class KubernetesApiCallAction { resource: json['resource'] as String?, resourceName: json['resourceName'] as String?, sourceIps: (json['sourceIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statusCode: json['statusCode'] as int?, @@ -7320,16 +7306,14 @@ class KubernetesUserDetails { factory KubernetesUserDetails.fromJson(Map json) { return KubernetesUserDetails( - groups: (json['groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['groups'] as List?)?.nonNulls.map((e) => e as String).toList(), impersonatedUser: json['impersonatedUser'] != null ? ImpersonatedUser.fromJson( json['impersonatedUser'] as Map) : null, sessionName: (json['sessionName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), uid: json['uid'] as String?, @@ -7387,7 +7371,7 @@ class KubernetesWorkloadDetails { factory KubernetesWorkloadDetails.fromJson(Map json) { return KubernetesWorkloadDetails( containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Container.fromJson(e as Map)) .toList(), hostIPC: json['hostIPC'] as bool?, @@ -7399,7 +7383,7 @@ class KubernetesWorkloadDetails { type: json['type'] as String?, uid: json['uid'] as String?, volumes: (json['volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -7460,7 +7444,7 @@ class LambdaDetails { revisionId: json['revisionId'] as String?, role: json['role'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcConfig: json['vpcConfig'] != null @@ -7543,7 +7527,7 @@ class ListCoverageResponse { factory ListCoverageResponse.fromJson(Map json) { return ListCoverageResponse( resources: (json['resources'] as List) - .whereNotNull() + .nonNulls .map((e) => CoverageResource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7567,7 +7551,7 @@ class ListDetectorsResponse { factory ListDetectorsResponse.fromJson(Map json) { return ListDetectorsResponse( detectorIds: (json['detectorIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -7591,7 +7575,7 @@ class ListFiltersResponse { factory ListFiltersResponse.fromJson(Map json) { return ListFiltersResponse( filterNames: (json['filterNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -7615,7 +7599,7 @@ class ListFindingsResponse { factory ListFindingsResponse.fromJson(Map json) { return ListFindingsResponse( findingIds: (json['findingIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -7638,10 +7622,8 @@ class ListIPSetsResponse { factory ListIPSetsResponse.fromJson(Map json) { return ListIPSetsResponse( - ipSetIds: (json['ipSetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + ipSetIds: + (json['ipSetIds'] as List).nonNulls.map((e) => e as String).toList(), nextToken: json['nextToken'] as String?, ); } @@ -7663,7 +7645,7 @@ class ListInvitationsResponse { factory ListInvitationsResponse.fromJson(Map json) { return ListInvitationsResponse( invitations: (json['invitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Invitation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7691,7 +7673,7 @@ class ListMembersResponse { factory ListMembersResponse.fromJson(Map json) { return ListMembersResponse( members: (json['members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Member.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7716,7 +7698,7 @@ class ListOrganizationAdminAccountsResponse { Map json) { return ListOrganizationAdminAccountsResponse( adminAccounts: (json['adminAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdminAccount.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7744,7 +7726,7 @@ class ListPublishingDestinationsResponse { Map json) { return ListPublishingDestinationsResponse( destinations: (json['destinations'] as List) - .whereNotNull() + .nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7784,7 +7766,7 @@ class ListThreatIntelSetsResponse { factory ListThreatIntelSetsResponse.fromJson(Map json) { return ListThreatIntelSetsResponse( threatIntelSetIds: (json['threatIntelSetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -8114,7 +8096,7 @@ class MemberDataSourceConfiguration { json['dataSources'] as Map) : null, features: (json['features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberFeaturesConfigurationResult.fromJson( e as Map)) .toList(), @@ -8178,7 +8160,7 @@ class MemberFeaturesConfigurationResult { Map json) { return MemberFeaturesConfigurationResult( additionalConfiguration: (json['additionalConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberAdditionalConfigurationResult.fromJson( e as Map)) .toList(), @@ -8297,21 +8279,21 @@ class NetworkInterface { factory NetworkInterface.fromJson(Map json) { return NetworkInterface( ipv6Addresses: (json['ipv6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), networkInterfaceId: json['networkInterfaceId'] as String?, privateDnsName: json['privateDnsName'] as String?, privateIpAddress: json['privateIpAddress'] as String?, privateIpAddresses: (json['privateIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrivateIpAddressDetails.fromJson(e as Map)) .toList(), publicDnsName: json['publicDnsName'] as String?, publicIp: json['publicIp'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityGroup.fromJson(e as Map)) .toList(), subnetId: json['subnetId'] as String?, @@ -8331,10 +8313,7 @@ class Observations { factory Observations.fromJson(Map json) { return Observations( - text: (json['text'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + text: (json['text'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -8761,7 +8740,7 @@ class OrganizationFeatureConfigurationResult { Map json) { return OrganizationFeatureConfigurationResult( additionalConfiguration: (json['additionalConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationAdditionalConfigurationResult.fromJson( e as Map)) .toList(), @@ -8794,7 +8773,7 @@ class OrganizationFeatureStatistics { factory OrganizationFeatureStatistics.fromJson(Map json) { return OrganizationFeatureStatistics( additionalConfiguration: (json['additionalConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationFeatureStatisticsAdditionalConfiguration.fromJson( e as Map)) @@ -9058,7 +9037,7 @@ class OrganizationStatistics { return OrganizationStatistics( activeAccountsCount: json['activeAccountsCount'] as int?, countByFeature: (json['countByFeature'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationFeatureStatistics.fromJson(e as Map)) .toList(), @@ -9133,7 +9112,7 @@ class PortProbeAction { return PortProbeAction( blocked: json['blocked'] as bool?, portProbeDetails: (json['portProbeDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortProbeDetail.fromJson(e as Map)) .toList(), ); @@ -9260,7 +9239,7 @@ class ProcessDetails { executablePath: json['executablePath'] as String?, executableSha256: json['executableSha256'] as String?, lineage: (json['lineage'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineageObject.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -9411,7 +9390,7 @@ class RdsDbInstanceDetails { engine: json['engine'] as String?, engineVersion: json['engineVersion'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -9470,7 +9449,7 @@ class RdsLoginAttemptAction { factory RdsLoginAttemptAction.fromJson(Map json) { return RdsLoginAttemptAction( loginAttributes: (json['LoginAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoginAttribute.fromJson(e as Map)) .toList(), remoteIpDetails: json['remoteIpDetails'] != null @@ -9677,7 +9656,7 @@ class Resource { : null, resourceType: json['resourceType'] as String?, s3BucketDetails: (json['s3BucketDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3BucketDetail.fromJson(e as Map)) .toList(), ); @@ -9837,15 +9816,13 @@ class RuntimeContext { addressFamily: json['addressFamily'] as String?, commandLineExample: json['commandLineExample'] as String?, fileSystemType: json['fileSystemType'] as String?, - flags: (json['flags'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + flags: + (json['flags'] as List?)?.nonNulls.map((e) => e as String).toList(), ianaProtocolNumber: json['ianaProtocolNumber'] as int?, ldPreloadValue: json['ldPreloadValue'] as String?, libraryPath: json['libraryPath'] as String?, memoryRegions: (json['memoryRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), modifiedAt: timeStampFromJson(json['modifiedAt']), @@ -9954,7 +9931,7 @@ class S3BucketDetail { ? PublicAccess.fromJson(json['publicAccess'] as Map) : null, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: json['type'] as String?, @@ -10068,7 +10045,7 @@ class Scan { accountId: json['accountId'] as String?, adminDetectorId: json['adminDetectorId'] as String?, attachedVolumes: (json['attachedVolumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeDetail.fromJson(e as Map)) .toList(), detectorId: json['detectorId'] as String?, @@ -10109,7 +10086,7 @@ class ScanCondition { factory ScanCondition.fromJson(Map json) { return ScanCondition( mapEquals: (json['mapEquals'] as List) - .whereNotNull() + .nonNulls .map((e) => ScanConditionPair.fromJson(e as Map)) .toList(), ); @@ -10395,7 +10372,7 @@ class ScanThreatName { factory ScanThreatName.fromJson(Map json) { return ScanThreatName( filePaths: (json['filePaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScanFilePath.fromJson(e as Map)) .toList(), itemCount: json['itemCount'] as int?, @@ -10668,7 +10645,7 @@ class StartMonitoringMembersResponse { factory StartMonitoringMembersResponse.fromJson(Map json) { return StartMonitoringMembersResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -10688,7 +10665,7 @@ class StopMonitoringMembersResponse { factory StopMonitoringMembersResponse.fromJson(Map json) { return StopMonitoringMembersResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -10752,7 +10729,7 @@ class ThreatDetectedByName { itemCount: json['itemCount'] as int?, shortened: json['shortened'] as bool?, threatNames: (json['threatNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScanThreatName.fromJson(e as Map)) .toList(), uniqueThreatNameCount: json['uniqueThreatNameCount'] as int?, @@ -10823,7 +10800,7 @@ class ThreatIntelligenceDetail { threatFileSha256: json['threatFileSha256'] as String?, threatListName: json['threatListName'] as String?, threatNames: (json['threatNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -11003,7 +10980,7 @@ class UpdateMemberDetectorsResponse { factory UpdateMemberDetectorsResponse.fromJson(Map json) { return UpdateMemberDetectorsResponse( unprocessedAccounts: (json['unprocessedAccounts'] as List) - .whereNotNull() + .nonNulls .map((e) => UnprocessedAccount.fromJson(e as Map)) .toList(), ); @@ -11246,28 +11223,28 @@ class UsageStatistics { factory UsageStatistics.fromJson(Map json) { return UsageStatistics( sumByAccount: (json['sumByAccount'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageAccountResult.fromJson(e as Map)) .toList(), sumByDataSource: (json['sumByDataSource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageDataSourceResult.fromJson(e as Map)) .toList(), sumByFeature: (json['sumByFeature'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageFeatureResult.fromJson(e as Map)) .toList(), sumByResource: (json['sumByResource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageResourceResult.fromJson(e as Map)) .toList(), topAccountsByFeature: (json['topAccountsByFeature'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => UsageTopAccountsResult.fromJson(e as Map)) .toList(), topResources: (json['topResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageResourceResult.fromJson(e as Map)) .toList(), ); @@ -11316,7 +11293,7 @@ class UsageTopAccountsResult { factory UsageTopAccountsResult.fromJson(Map json) { return UsageTopAccountsResult( accounts: (json['accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageTopAccountResult.fromJson(e as Map)) .toList(), feature: (json['feature'] as String?)?.let(UsageFeature.fromString), @@ -11437,11 +11414,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityGroup.fromJson(e as Map)) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, diff --git a/generated/aws_guardduty_api/pubspec.yaml b/generated/aws_guardduty_api/pubspec.yaml index f95d4a18d..5eb907c9e 100644 --- a/generated/aws_guardduty_api/pubspec.yaml +++ b/generated/aws_guardduty_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_guardd protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_health_api/lib/health-2016-08-04.dart b/generated/aws_health_api/lib/health-2016-08-04.dart index ec8c338a6..12577eec5 100644 --- a/generated/aws_health_api/lib/health-2016-08-04.dart +++ b/generated/aws_health_api/lib/health-2016-08-04.dart @@ -1075,7 +1075,7 @@ class DescribeAffectedAccountsForOrganizationResponse { Map json) { return DescribeAffectedAccountsForOrganizationResponse( affectedAccounts: (json['affectedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), eventScopeCode: @@ -1114,11 +1114,11 @@ class DescribeAffectedEntitiesForOrganizationResponse { Map json) { return DescribeAffectedEntitiesForOrganizationResponse( entities: (json['entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AffectedEntity.fromJson(e as Map)) .toList(), failedSet: (json['failedSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationAffectedEntitiesErrorItem.fromJson( e as Map)) .toList(), @@ -1146,7 +1146,7 @@ class DescribeAffectedEntitiesResponse { factory DescribeAffectedEntitiesResponse.fromJson(Map json) { return DescribeAffectedEntitiesResponse( entities: (json['entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AffectedEntity.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1168,7 +1168,7 @@ class DescribeEntityAggregatesForOrganizationResponse { return DescribeEntityAggregatesForOrganizationResponse( organizationEntityAggregates: (json['organizationEntityAggregates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationEntityAggregate.fromJson(e as Map)) .toList(), @@ -1187,7 +1187,7 @@ class DescribeEntityAggregatesResponse { factory DescribeEntityAggregatesResponse.fromJson(Map json) { return DescribeEntityAggregatesResponse( entityAggregates: (json['entityAggregates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityAggregate.fromJson(e as Map)) .toList(), ); @@ -1214,7 +1214,7 @@ class DescribeEventAggregatesResponse { factory DescribeEventAggregatesResponse.fromJson(Map json) { return DescribeEventAggregatesResponse( eventAggregates: (json['eventAggregates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventAggregate.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1238,12 +1238,12 @@ class DescribeEventDetailsForOrganizationResponse { Map json) { return DescribeEventDetailsForOrganizationResponse( failedSet: (json['failedSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationEventDetailsErrorItem.fromJson( e as Map)) .toList(), successfulSet: (json['successfulSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationEventDetails.fromJson(e as Map)) .toList(), @@ -1266,11 +1266,11 @@ class DescribeEventDetailsResponse { factory DescribeEventDetailsResponse.fromJson(Map json) { return DescribeEventDetailsResponse( failedSet: (json['failedSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDetailsErrorItem.fromJson(e as Map)) .toList(), successfulSet: (json['successfulSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDetails.fromJson(e as Map)) .toList(), ); @@ -1301,7 +1301,7 @@ class DescribeEventTypesResponse { factory DescribeEventTypesResponse.fromJson(Map json) { return DescribeEventTypesResponse( eventTypes: (json['eventTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventType.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1329,7 +1329,7 @@ class DescribeEventsForOrganizationResponse { Map json) { return DescribeEventsForOrganizationResponse( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1356,7 +1356,7 @@ class DescribeEventsResponse { factory DescribeEventsResponse.fromJson(Map json) { return DescribeEventsResponse( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2057,7 +2057,7 @@ class OrganizationEntityAggregate { factory OrganizationEntityAggregate.fromJson(Map json) { return OrganizationEntityAggregate( accounts: (json['accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AccountEntityAggregate.fromJson(e as Map)) .toList(), diff --git a/generated/aws_health_api/pubspec.yaml b/generated/aws_health_api/pubspec.yaml index e81bbb1a3..af9d642a6 100644 --- a/generated/aws_health_api/pubspec.yaml +++ b/generated/aws_health_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_health protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_iam_api/pubspec.yaml b/generated/aws_iam_api/pubspec.yaml index 5aad1a886..20bb9e5a9 100644 --- a/generated/aws_iam_api/pubspec.yaml +++ b/generated/aws_iam_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_iam_ap protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_imagebuilder_api/lib/imagebuilder-2019-12-02.dart b/generated/aws_imagebuilder_api/lib/imagebuilder-2019-12-02.dart index 1122bd696..05b99cfd4 100644 --- a/generated/aws_imagebuilder_api/lib/imagebuilder-2019-12-02.dart +++ b/generated/aws_imagebuilder_api/lib/imagebuilder-2019-12-02.dart @@ -4115,7 +4115,7 @@ class AmiDistributionConfiguration { : null, name: json['name'] as String?, targetAccountIds: (json['targetAccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4293,7 +4293,7 @@ class Component { obfuscate: json['obfuscate'] as bool?, owner: json['owner'] as String?, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentParameterDetail.fromJson(e as Map)) .toList(), @@ -4303,7 +4303,7 @@ class Component { ? ComponentState.fromJson(json['state'] as Map) : null, supportedOsVersions: (json['supportedOsVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -4332,7 +4332,7 @@ class ComponentConfiguration { return ComponentConfiguration( componentArn: json['componentArn'] as String, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentParameter.fromJson(e as Map)) .toList(), ); @@ -4378,10 +4378,7 @@ class ComponentParameter { factory ComponentParameter.fromJson(Map json) { return ComponentParameter( name: json['name'] as String, - value: (json['value'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + value: (json['value'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -4423,7 +4420,7 @@ class ComponentParameterDetail { name: json['name'] as String, type: json['type'] as String, defaultValue: (json['defaultValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -4547,7 +4544,7 @@ class ComponentSummary { ? ComponentState.fromJson(json['state'] as Map) : null, supportedOsVersions: (json['supportedOsVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) @@ -4664,7 +4661,7 @@ class ComponentVersion { owner: json['owner'] as String?, platform: (json['platform'] as String?)?.let(Platform.fromString), supportedOsVersions: (json['supportedOsVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(ComponentType.fromString), @@ -4690,7 +4687,7 @@ class Container { factory Container.fromJson(Map json) { return Container( imageUris: (json['imageUris'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), region: json['region'] as String?, @@ -4722,7 +4719,7 @@ class ContainerDistributionConfiguration { targetRepository: TargetContainerRepository.fromJson( json['targetRepository'] as Map), containerTags: (json['containerTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, @@ -4863,7 +4860,7 @@ class ContainerRecipe { return ContainerRecipe( arn: json['arn'] as String?, components: (json['components'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ComponentConfiguration.fromJson(e as Map)) .toList(), @@ -5296,7 +5293,7 @@ class CvssScoreDetails { factory CvssScoreDetails.fromJson(Map json) { return CvssScoreDetails( adjustments: (json['adjustments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CvssScoreAdjustment.fromJson(e as Map)) .toList(), cvssSource: json['cvssSource'] as String?, @@ -5551,18 +5548,18 @@ class Distribution { as Map) : null, fastLaunchConfigurations: (json['fastLaunchConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FastLaunchConfiguration.fromJson(e as Map)) .toList(), launchTemplateConfigurations: (json['launchTemplateConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchTemplateConfiguration.fromJson(e as Map)) .toList(), licenseConfigurationArns: (json['licenseConfigurationArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), s3ExportConfiguration: json['s3ExportConfiguration'] != null @@ -5646,7 +5643,7 @@ class DistributionConfiguration { dateUpdated: json['dateUpdated'] as String?, description: json['description'] as String?, distributions: (json['distributions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Distribution.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -5696,10 +5693,8 @@ class DistributionConfigurationSummary { dateUpdated: json['dateUpdated'] as String?, description: json['description'] as String?, name: json['name'] as String?, - regions: (json['regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['regions'] as List?)?.nonNulls.map((e) => e as String).toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), ); @@ -5825,7 +5820,7 @@ class EcrConfiguration { factory EcrConfiguration.fromJson(Map json) { return EcrConfiguration( containerTags: (json['containerTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), repositoryName: json['repositoryName'] as String?, @@ -6726,7 +6721,7 @@ class Image { type: (json['type'] as String?)?.let(ImageType.fromString), version: json['version'] as String?, workflows: (json['workflows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowConfiguration.fromJson(e as Map)) .toList(), ); @@ -6908,7 +6903,7 @@ class ImagePipeline { tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), workflows: (json['workflows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowConfiguration.fromJson(e as Map)) .toList(), ); @@ -7018,12 +7013,12 @@ class ImageRecipe { : null, arn: json['arn'] as String?, blockDeviceMappings: (json['blockDeviceMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceBlockDeviceMapping.fromJson(e as Map)) .toList(), components: (json['components'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ComponentConfiguration.fromJson(e as Map)) .toList(), @@ -7816,7 +7811,7 @@ class InfrastructureConfiguration { : null, instanceProfileName: json['instanceProfileName'] as String?, instanceTypes: (json['instanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), keyPair: json['keyPair'] as String?, @@ -7827,7 +7822,7 @@ class InfrastructureConfiguration { resourceTags: (json['resourceTags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), snsTopicArn: json['snsTopicArn'] as String?, @@ -7889,7 +7884,7 @@ class InfrastructureConfigurationSummary { description: json['description'] as String?, instanceProfileName: json['instanceProfileName'] as String?, instanceTypes: (json['instanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -7989,7 +7984,7 @@ class InstanceConfiguration { factory InstanceConfiguration.fromJson(Map json) { return InstanceConfiguration( blockDeviceMappings: (json['blockDeviceMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceBlockDeviceMapping.fromJson(e as Map)) .toList(), @@ -8103,21 +8098,19 @@ class LaunchPermissionConfiguration { factory LaunchPermissionConfiguration.fromJson(Map json) { return LaunchPermissionConfiguration( organizationArns: (json['organizationArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), organizationalUnitArns: (json['organizationalUnitArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userGroups: (json['userGroups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - userIds: (json['userIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + userIds: + (json['userIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -8292,13 +8285,13 @@ class LifecycleExecutionResource { : null, endTime: timeStampFromJson(json['endTime']), imageUris: (json['imageUris'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), region: json['region'] as String?, resourceId: json['resourceId'] as String?, snapshots: (json['snapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleExecutionSnapshotResource.fromJson( e as Map)) .toList(), @@ -8542,7 +8535,7 @@ class LifecyclePolicy { executionRole: json['executionRole'] as String?, name: json['name'] as String?, policyDetails: (json['policyDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecyclePolicyDetail.fromJson(e as Map)) .toList(), resourceSelection: json['resourceSelection'] != null @@ -8767,12 +8760,10 @@ class LifecyclePolicyDetailExclusionRulesAmis { ? LifecyclePolicyDetailExclusionRulesAmisLastLaunched.fromJson( json['lastLaunched'] as Map) : null, - regions: (json['regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['regions'] as List?)?.nonNulls.map((e) => e as String).toList(), sharedAccounts: (json['sharedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tagMap: (json['tagMap'] as Map?) @@ -8920,7 +8911,7 @@ class LifecyclePolicyResourceSelection { factory LifecyclePolicyResourceSelection.fromJson(Map json) { return LifecyclePolicyResourceSelection( recipes: (json['recipes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecyclePolicyResourceSelectionRecipe.fromJson( e as Map)) .toList(), @@ -9110,7 +9101,7 @@ class ListComponentBuildVersionsResponse { Map json) { return ListComponentBuildVersionsResponse( componentSummaryList: (json['componentSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9146,7 +9137,7 @@ class ListComponentsResponse { factory ListComponentsResponse.fromJson(Map json) { return ListComponentsResponse( componentVersionList: (json['componentVersionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComponentVersion.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9177,7 +9168,7 @@ class ListContainerRecipesResponse { factory ListContainerRecipesResponse.fromJson(Map json) { return ListContainerRecipesResponse( containerRecipeSummaryList: (json['containerRecipeSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ContainerRecipeSummary.fromJson(e as Map)) .toList(), @@ -9212,7 +9203,7 @@ class ListDistributionConfigurationsResponse { return ListDistributionConfigurationsResponse( distributionConfigurationSummaryList: (json['distributionConfigurationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DistributionConfigurationSummary.fromJson( e as Map)) .toList(), @@ -9244,7 +9235,7 @@ class ListImageBuildVersionsResponse { factory ListImageBuildVersionsResponse.fromJson(Map json) { return ListImageBuildVersionsResponse( imageSummaryList: (json['imageSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9275,7 +9266,7 @@ class ListImagePackagesResponse { factory ListImagePackagesResponse.fromJson(Map json) { return ListImagePackagesResponse( imagePackageList: (json['imagePackageList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImagePackage.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9306,7 +9297,7 @@ class ListImagePipelineImagesResponse { factory ListImagePipelineImagesResponse.fromJson(Map json) { return ListImagePipelineImagesResponse( imageSummaryList: (json['imageSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9337,7 +9328,7 @@ class ListImagePipelinesResponse { factory ListImagePipelinesResponse.fromJson(Map json) { return ListImagePipelinesResponse( imagePipelineList: (json['imagePipelineList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImagePipeline.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9368,7 +9359,7 @@ class ListImageRecipesResponse { factory ListImageRecipesResponse.fromJson(Map json) { return ListImageRecipesResponse( imageRecipeSummaryList: (json['imageRecipeSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageRecipeSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9429,7 +9420,7 @@ class ListImageScanFindingAggregationsResponse { nextToken: json['nextToken'] as String?, requestId: json['requestId'] as String?, responses: (json['responses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageScanFindingAggregation.fromJson(e as Map)) .toList(), @@ -9460,7 +9451,7 @@ class ListImageScanFindingsResponse { factory ListImageScanFindingsResponse.fromJson(Map json) { return ListImageScanFindingsResponse( findings: (json['findings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageScanFinding.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9501,7 +9492,7 @@ class ListImagesResponse { factory ListImagesResponse.fromJson(Map json) { return ListImagesResponse( imageVersionList: (json['imageVersionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageVersion.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9535,7 +9526,7 @@ class ListInfrastructureConfigurationsResponse { return ListInfrastructureConfigurationsResponse( infrastructureConfigurationSummaryList: (json['infrastructureConfigurationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InfrastructureConfigurationSummary.fromJson( e as Map)) .toList(), @@ -9578,7 +9569,7 @@ class ListLifecycleExecutionResourcesResponse { : null, nextToken: json['nextToken'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleExecutionResource.fromJson(e as Map)) .toList(), @@ -9604,7 +9595,7 @@ class ListLifecycleExecutionsResponse { factory ListLifecycleExecutionsResponse.fromJson(Map json) { return ListLifecycleExecutionsResponse( lifecycleExecutions: (json['lifecycleExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LifecycleExecution.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -9631,7 +9622,7 @@ class ListLifecyclePoliciesResponse { factory ListLifecyclePoliciesResponse.fromJson(Map json) { return ListLifecyclePoliciesResponse( lifecyclePolicySummaryList: (json['lifecyclePolicySummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => LifecyclePolicySummary.fromJson(e as Map)) .toList(), @@ -9676,7 +9667,7 @@ class ListWaitingWorkflowStepsResponse { return ListWaitingWorkflowStepsResponse( nextToken: json['nextToken'] as String?, steps: (json['steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowStepExecution.fromJson(e as Map)) .toList(), ); @@ -9704,7 +9695,7 @@ class ListWorkflowBuildVersionsResponse { return ListWorkflowBuildVersionsResponse( nextToken: json['nextToken'] as String?, workflowSummaryList: (json['workflowSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowSummary.fromJson(e as Map)) .toList(), ); @@ -9747,7 +9738,7 @@ class ListWorkflowExecutionsResponse { nextToken: json['nextToken'] as String?, requestId: json['requestId'] as String?, workflowExecutions: (json['workflowExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowExecutionMetadata.fromJson(e as Map)) .toList(), @@ -9802,7 +9793,7 @@ class ListWorkflowStepExecutionsResponse { nextToken: json['nextToken'] as String?, requestId: json['requestId'] as String?, steps: (json['steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowStepMetadata.fromJson(e as Map)) .toList(), workflowBuildVersionArn: json['workflowBuildVersionArn'] as String?, @@ -9830,7 +9821,7 @@ class ListWorkflowsResponse { return ListWorkflowsResponse( nextToken: json['nextToken'] as String?, workflowVersionList: (json['workflowVersionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowVersion.fromJson(e as Map)) .toList(), ); @@ -9894,11 +9885,11 @@ class OutputResources { factory OutputResources.fromJson(Map json) { return OutputResources( amis: (json['amis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ami.fromJson(e as Map)) .toList(), containers: (json['containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Container.fromJson(e as Map)) .toList(), ); @@ -9974,15 +9965,15 @@ class PackageVulnerabilityDetails { return PackageVulnerabilityDetails( vulnerabilityId: json['vulnerabilityId'] as String, cvss: (json['cvss'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CvssScore.fromJson(e as Map)) .toList(), referenceUrls: (json['referenceUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), relatedVulnerabilities: (json['relatedVulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), source: json['source'] as String?, @@ -9991,7 +9982,7 @@ class PackageVulnerabilityDetails { vendorSeverity: json['vendorSeverity'] as String?, vendorUpdatedAt: timeStampFromJson(json['vendorUpdatedAt']), vulnerablePackages: (json['vulnerablePackages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VulnerablePackage.fromJson(e as Map)) .toList(), ); @@ -10844,7 +10835,7 @@ class Workflow { name: json['name'] as String?, owner: json['owner'] as String?, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowParameterDetail.fromJson(e as Map)) .toList(), @@ -10894,7 +10885,7 @@ class WorkflowConfiguration { (json['onFailure'] as String?)?.let(OnWorkflowFailure.fromString), parallelGroup: json['parallelGroup'] as String?, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowParameter.fromJson(e as Map)) .toList(), ); @@ -11030,10 +11021,7 @@ class WorkflowParameter { factory WorkflowParameter.fromJson(Map json) { return WorkflowParameter( name: json['name'] as String, - value: (json['value'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + value: (json['value'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -11075,7 +11063,7 @@ class WorkflowParameterDetail { name: json['name'] as String, type: json['type'] as String, defaultValue: (json['defaultValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['description'] as String?, diff --git a/generated/aws_imagebuilder_api/pubspec.yaml b/generated/aws_imagebuilder_api/pubspec.yaml index 8b32044ba..81b9556c6 100644 --- a/generated/aws_imagebuilder_api/pubspec.yaml +++ b/generated/aws_imagebuilder_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_imageb protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_importexport_api/pubspec.yaml b/generated/aws_importexport_api/pubspec.yaml index 026f128de..07786cc09 100644 --- a/generated/aws_importexport_api/pubspec.yaml +++ b/generated/aws_importexport_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_import protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_inspector_api/lib/inspector-2016-02-16.dart b/generated/aws_inspector_api/lib/inspector-2016-02-16.dart index 6314b27d4..0218859a2 100644 --- a/generated/aws_inspector_api/lib/inspector-2016-02-16.dart +++ b/generated/aws_inspector_api/lib/inspector-2016-02-16.dart @@ -1785,24 +1785,24 @@ class AssessmentRun { .map((k, e) => MapEntry(Severity.fromString(k), e as int)), name: json['name'] as String, notifications: (json['notifications'] as List) - .whereNotNull() + .nonNulls .map((e) => AssessmentRunNotification.fromJson(e as Map)) .toList(), rulesPackageArns: (json['rulesPackageArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), state: AssessmentRunState.fromString((json['state'] as String)), stateChangedAt: nonNullableTimeStampFromJson(json['stateChangedAt'] as Object), stateChanges: (json['stateChanges'] as List) - .whereNotNull() + .nonNulls .map((e) => AssessmentRunStateChange.fromJson(e as Map)) .toList(), userAttributesForFindings: (json['userAttributesForFindings'] as List) - .whereNotNull() + .nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), completedAt: timeStampFromJson(json['completedAt']), @@ -1855,7 +1855,7 @@ class AssessmentRunAgent { agentId: json['agentId'] as String, assessmentRunArn: json['assessmentRunArn'] as String, telemetryMetadata: (json['telemetryMetadata'] as List) - .whereNotNull() + .nonNulls .map((e) => TelemetryMetadata.fromJson(e as Map)) .toList(), agentHealthDetails: json['agentHealthDetails'] as String?, @@ -2164,11 +2164,11 @@ class AssessmentTemplate { durationInSeconds: json['durationInSeconds'] as int, name: json['name'] as String, rulesPackageArns: (json['rulesPackageArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), userAttributesForFindings: (json['userAttributesForFindings'] as List) - .whereNotNull() + .nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), lastAssessmentRunArn: json['lastAssessmentRunArn'] as String?, @@ -2262,15 +2262,15 @@ class AssetAttributes { autoScalingGroup: json['autoScalingGroup'] as String?, hostname: json['hostname'] as String?, ipv4Addresses: (json['ipv4Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), networkInterfaces: (json['networkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2399,7 +2399,7 @@ class DescribeAssessmentRunsResponse { factory DescribeAssessmentRunsResponse.fromJson(Map json) { return DescribeAssessmentRunsResponse( assessmentRuns: (json['assessmentRuns'] as List) - .whereNotNull() + .nonNulls .map((e) => AssessmentRun.fromJson(e as Map)) .toList(), failedItems: (json['failedItems'] as Map).map((k, e) => @@ -2425,7 +2425,7 @@ class DescribeAssessmentTargetsResponse { Map json) { return DescribeAssessmentTargetsResponse( assessmentTargets: (json['assessmentTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => AssessmentTarget.fromJson(e as Map)) .toList(), failedItems: (json['failedItems'] as Map).map((k, e) => @@ -2451,7 +2451,7 @@ class DescribeAssessmentTemplatesResponse { Map json) { return DescribeAssessmentTemplatesResponse( assessmentTemplates: (json['assessmentTemplates'] as List) - .whereNotNull() + .nonNulls .map((e) => AssessmentTemplate.fromJson(e as Map)) .toList(), failedItems: (json['failedItems'] as Map).map((k, e) => @@ -2530,7 +2530,7 @@ class DescribeFindingsResponse { failedItems: (json['failedItems'] as Map).map((k, e) => MapEntry(k, FailedItemDetails.fromJson(e as Map))), findings: (json['findings'] as List) - .whereNotNull() + .nonNulls .map((e) => Finding.fromJson(e as Map)) .toList(), ); @@ -2555,7 +2555,7 @@ class DescribeResourceGroupsResponse { failedItems: (json['failedItems'] as Map).map((k, e) => MapEntry(k, FailedItemDetails.fromJson(e as Map))), resourceGroups: (json['resourceGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceGroup.fromJson(e as Map)) .toList(), ); @@ -2580,7 +2580,7 @@ class DescribeRulesPackagesResponse { failedItems: (json['failedItems'] as Map).map((k, e) => MapEntry(k, FailedItemDetails.fromJson(e as Map))), rulesPackages: (json['rulesPackages'] as List) - .whereNotNull() + .nonNulls .map((e) => RulesPackage.fromJson(e as Map)) .toList(), ); @@ -2669,12 +2669,12 @@ class Exclusion { description: json['description'] as String, recommendation: json['recommendation'] as String, scopes: (json['scopes'] as List) - .whereNotNull() + .nonNulls .map((e) => Scope.fromJson(e as Map)) .toList(), title: json['title'] as String, attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), ); @@ -2712,12 +2712,12 @@ class ExclusionPreview { description: json['description'] as String, recommendation: json['recommendation'] as String, scopes: (json['scopes'] as List) - .whereNotNull() + .nonNulls .map((e) => Scope.fromJson(e as Map)) .toList(), title: json['title'] as String, attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), ); @@ -2849,13 +2849,13 @@ class Finding { return Finding( arn: json['arn'] as String, attributes: (json['attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), updatedAt: nonNullableTimeStampFromJson(json['updatedAt'] as Object), userAttributes: (json['userAttributes'] as List) - .whereNotNull() + .nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), assetAttributes: json['assetAttributes'] != null @@ -3001,7 +3001,7 @@ class GetExclusionsPreviewResponse { previewStatus: PreviewStatus.fromString((json['previewStatus'] as String)), exclusionPreviews: (json['exclusionPreviews'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExclusionPreview.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3020,7 +3020,7 @@ class GetTelemetryMetadataResponse { factory GetTelemetryMetadataResponse.fromJson(Map json) { return GetTelemetryMetadataResponse( telemetryMetadata: (json['telemetryMetadata'] as List) - .whereNotNull() + .nonNulls .map((e) => TelemetryMetadata.fromJson(e as Map)) .toList(), ); @@ -3089,7 +3089,7 @@ class ListAssessmentRunAgentsResponse { factory ListAssessmentRunAgentsResponse.fromJson(Map json) { return ListAssessmentRunAgentsResponse( assessmentRunAgents: (json['assessmentRunAgents'] as List) - .whereNotNull() + .nonNulls .map((e) => AssessmentRunAgent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3116,7 +3116,7 @@ class ListAssessmentRunsResponse { factory ListAssessmentRunsResponse.fromJson(Map json) { return ListAssessmentRunsResponse( assessmentRunArns: (json['assessmentRunArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3143,7 +3143,7 @@ class ListAssessmentTargetsResponse { factory ListAssessmentTargetsResponse.fromJson(Map json) { return ListAssessmentTargetsResponse( assessmentTargetArns: (json['assessmentTargetArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3170,7 +3170,7 @@ class ListAssessmentTemplatesResponse { factory ListAssessmentTemplatesResponse.fromJson(Map json) { return ListAssessmentTemplatesResponse( assessmentTemplateArns: (json['assessmentTemplateArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3196,7 +3196,7 @@ class ListEventSubscriptionsResponse { factory ListEventSubscriptionsResponse.fromJson(Map json) { return ListEventSubscriptionsResponse( subscriptions: (json['subscriptions'] as List) - .whereNotNull() + .nonNulls .map((e) => Subscription.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3222,7 +3222,7 @@ class ListExclusionsResponse { factory ListExclusionsResponse.fromJson(Map json) { return ListExclusionsResponse( exclusionArns: (json['exclusionArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3248,7 +3248,7 @@ class ListFindingsResponse { factory ListFindingsResponse.fromJson(Map json) { return ListFindingsResponse( findingArns: (json['findingArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3274,7 +3274,7 @@ class ListRulesPackagesResponse { factory ListRulesPackagesResponse.fromJson(Map json) { return ListRulesPackagesResponse( rulesPackageArns: (json['rulesPackageArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -3293,7 +3293,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3365,20 +3365,20 @@ class NetworkInterface { factory NetworkInterface.fromJson(Map json) { return NetworkInterface( ipv6Addresses: (json['ipv6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), networkInterfaceId: json['networkInterfaceId'] as String?, privateDnsName: json['privateDnsName'] as String?, privateIpAddress: json['privateIpAddress'] as String?, privateIpAddresses: (json['privateIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrivateIp.fromJson(e as Map)) .toList(), publicDnsName: json['publicDnsName'] as String?, publicIp: json['publicIp'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityGroup.fromJson(e as Map)) .toList(), subnetId: json['subnetId'] as String?, @@ -3405,7 +3405,7 @@ class PreviewAgentsResponse { factory PreviewAgentsResponse.fromJson(Map json) { return PreviewAgentsResponse( agentPreviews: (json['agentPreviews'] as List) - .whereNotNull() + .nonNulls .map((e) => AgentPreview.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3540,7 +3540,7 @@ class ResourceGroup { arn: json['arn'] as String, createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object), tags: (json['tags'] as List) - .whereNotNull() + .nonNulls .map((e) => ResourceGroupTag.fromJson(e as Map)) .toList(), ); @@ -3743,7 +3743,7 @@ class Subscription { factory Subscription.fromJson(Map json) { return Subscription( eventSubscriptions: (json['eventSubscriptions'] as List) - .whereNotNull() + .nonNulls .map((e) => EventSubscription.fromJson(e as Map)) .toList(), resourceArn: json['resourceArn'] as String, diff --git a/generated/aws_inspector_api/pubspec.yaml b/generated/aws_inspector_api/pubspec.yaml index 0abf464b1..ca45ea82d 100644 --- a/generated/aws_inspector_api/pubspec.yaml +++ b/generated/aws_inspector_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_inspec protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_iot1click_devices_api/lib/devices-2018-05-14.dart b/generated/aws_iot1click_devices_api/lib/devices-2018-05-14.dart index c94081c3f..b9d23b699 100644 --- a/generated/aws_iot1click_devices_api/lib/devices-2018-05-14.dart +++ b/generated/aws_iot1click_devices_api/lib/devices-2018-05-14.dart @@ -665,7 +665,7 @@ class GetDeviceMethodsResponse { factory GetDeviceMethodsResponse.fromJson(Map json) { return GetDeviceMethodsResponse( deviceMethods: (json['deviceMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceMethod.fromJson(e as Map)) .toList(), ); @@ -719,7 +719,7 @@ class ListDeviceEventsResponse { factory ListDeviceEventsResponse.fromJson(Map json) { return ListDeviceEventsResponse( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -742,7 +742,7 @@ class ListDevicesResponse { factory ListDevicesResponse.fromJson(Map json) { return ListDevicesResponse( devices: (json['devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceDescription.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/generated/aws_iot1click_devices_api/pubspec.yaml b/generated/aws_iot1click_devices_api/pubspec.yaml index 999bca5f6..70e441234 100644 --- a/generated/aws_iot1click_devices_api/pubspec.yaml +++ b/generated/aws_iot1click_devices_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_iot1cl protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_iot1click_projects_api/lib/iot1click-projects-2018-05-14.dart b/generated/aws_iot1click_projects_api/lib/iot1click-projects-2018-05-14.dart index f5f77b34b..6ce9f4d1f 100644 --- a/generated/aws_iot1click_projects_api/lib/iot1click-projects-2018-05-14.dart +++ b/generated/aws_iot1click_projects_api/lib/iot1click-projects-2018-05-14.dart @@ -698,7 +698,7 @@ class ListPlacementsResponse { factory ListPlacementsResponse.fromJson(Map json) { return ListPlacementsResponse( placements: (json['placements'] as List) - .whereNotNull() + .nonNulls .map((e) => PlacementSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -722,7 +722,7 @@ class ListProjectsResponse { factory ListProjectsResponse.fromJson(Map json) { return ListProjectsResponse( projects: (json['projects'] as List) - .whereNotNull() + .nonNulls .map((e) => ProjectSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/generated/aws_iot1click_projects_api/pubspec.yaml b/generated/aws_iot1click_projects_api/pubspec.yaml index 1f1624e00..6463bcded 100644 --- a/generated/aws_iot1click_projects_api/pubspec.yaml +++ b/generated/aws_iot1click_projects_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_iot1cl protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_iot_api/lib/iot-2015-05-28.dart b/generated/aws_iot_api/lib/iot-2015-05-28.dart index ec605fc07..16837f445 100644 --- a/generated/aws_iot_api/lib/iot-2015-05-28.dart +++ b/generated/aws_iot_api/lib/iot-2015-05-28.dart @@ -11620,7 +11620,7 @@ class AbortConfig { factory AbortConfig.fromJson(Map json) { return AbortConfig( criteriaList: (json['criteriaList'] as List) - .whereNotNull() + .nonNulls .map((e) => AbortCriteria.fromJson(e as Map)) .toList(), ); @@ -12058,7 +12058,7 @@ class AddThingsToThingGroupParams { factory AddThingsToThingGroupParams.fromJson(Map json) { return AddThingsToThingGroupParams( thingGroupNames: (json['thingGroupNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), overrideDynamicGroups: json['overrideDynamicGroups'] as bool?, @@ -12092,10 +12092,8 @@ class AggregationType { factory AggregationType.fromJson(Map json) { return AggregationType( name: AggregationTypeName.fromString((json['name'] as String)), - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -12184,7 +12182,7 @@ class Allowed { factory Allowed.fromJson(Map json) { return Allowed( policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Policy.fromJson(e as Map)) .toList(), ); @@ -12555,7 +12553,7 @@ class AuditFinding { reasonForNonCompliance: json['reasonForNonCompliance'] as String?, reasonForNonComplianceCode: json['reasonForNonComplianceCode'] as String?, relatedResources: (json['relatedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedResource.fromJson(e as Map)) .toList(), severity: @@ -12751,13 +12749,13 @@ class AuditMitigationActionsTaskTarget { factory AuditMitigationActionsTaskTarget.fromJson(Map json) { return AuditMitigationActionsTaskTarget( - auditCheckToReasonCodeFilter: (json['auditCheckToReasonCodeFilter'] - as Map?) - ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + auditCheckToReasonCodeFilter: + (json['auditCheckToReasonCodeFilter'] as Map?)?.map( + (k, e) => MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), auditTaskId: json['auditTaskId'] as String?, findingIds: (json['findingIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12956,10 +12954,8 @@ class AuthInfo { factory AuthInfo.fromJson(Map json) { return AuthInfo( - resources: (json['resources'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + resources: + (json['resources'] as List).nonNulls.map((e) => e as String).toList(), actionType: (json['actionType'] as String?)?.let(ActionType.fromString), ); } @@ -13015,7 +13011,7 @@ class AuthResult { ? Denied.fromJson(json['denied'] as Map) : null, missingContextValues: (json['missingContextValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15743,13 +15739,13 @@ class DescribeAuditMitigationActionsTaskResponse { Map json) { return DescribeAuditMitigationActionsTaskResponse( actionsDefinition: (json['actionsDefinition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MitigationAction.fromJson(e as Map)) .toList(), - auditCheckToActionsMapping: (json['auditCheckToActionsMapping'] - as Map?) - ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + auditCheckToActionsMapping: + (json['auditCheckToActionsMapping'] as Map?)?.map( + (k, e) => MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), endTime: timeStampFromJson(json['endTime']), startTime: timeStampFromJson(json['startTime']), target: json['target'] != null @@ -15974,7 +15970,7 @@ class DescribeCertificateProviderResponse { return DescribeCertificateProviderResponse( accountDefaultForOperations: (json['accountDefaultForOperations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateProviderOperation.fromString((e as String))) .toList(), certificateProviderArn: json['certificateProviderArn'] as String?, @@ -16127,7 +16123,7 @@ class DescribeDimensionResponse { lastModifiedDate: timeStampFromJson(json['lastModifiedDate']), name: json['name'] as String?, stringValues: (json['stringValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(DimensionType.fromString), @@ -16204,7 +16200,7 @@ class DescribeDomainConfigurationResponse { json['serverCertificateConfig'] as Map) : null, serverCertificates: (json['serverCertificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerCertificateSummary.fromJson(e as Map)) .toList(), @@ -16501,7 +16497,7 @@ class DescribeJobTemplateResponse { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, destinationPackageVersions: (json['destinationPackageVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), document: json['document'] as String?, @@ -16517,7 +16513,7 @@ class DescribeJobTemplateResponse { jobTemplateArn: json['jobTemplateArn'] as String?, jobTemplateId: json['jobTemplateId'] as String?, maintenanceWindows: (json['maintenanceWindows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindow.fromJson(e as Map)) .toList(), presignedUrlConfig: json['presignedUrlConfig'] != null @@ -16576,11 +16572,11 @@ class DescribeManagedJobTemplateResponse { description: json['description'] as String?, document: json['document'] as String?, documentParameters: (json['documentParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentParameter.fromJson(e as Map)) .toList(), environments: (json['environments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), templateArn: json['templateArn'] as String?, @@ -16819,7 +16815,7 @@ class DescribeScheduledAuditResponse { scheduledAuditArn: json['scheduledAuditArn'] as String?, scheduledAuditName: json['scheduledAuditName'] as String?, targetCheckNames: (json['targetCheckNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -16888,19 +16884,19 @@ class DescribeSecurityProfileResponse { factory DescribeSecurityProfileResponse.fromJson(Map json) { return DescribeSecurityProfileResponse( additionalMetricsToRetain: (json['additionalMetricsToRetain'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), additionalMetricsToRetainV2: (json['additionalMetricsToRetainV2'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricToRetain.fromJson(e as Map)) .toList(), alertTargets: (json['alertTargets'] as Map?)?.map( (k, e) => MapEntry(AlertTargetType.fromString(k), AlertTarget.fromJson(e as Map))), behaviors: (json['behaviors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Behavior.fromJson(e as Map)) .toList(), creationDate: timeStampFromJson(json['creationDate']), @@ -17391,7 +17387,7 @@ class DetectMitigationActionsTaskSummary { Map json) { return DetectMitigationActionsTaskSummary( actionsDefinition: (json['actionsDefinition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MitigationAction.fromJson(e as Map)) .toList(), onlyActiveViolationsIncluded: @@ -17442,7 +17438,7 @@ class DetectMitigationActionsTaskTarget { behaviorName: json['behaviorName'] as String?, securityProfileName: json['securityProfileName'] as String?, violationIds: (json['violationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -17991,7 +17987,7 @@ class ExplicitDeny { factory ExplicitDeny.fromJson(Map json) { return ExplicitDeny( policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Policy.fromJson(e as Map)) .toList(), ); @@ -18290,7 +18286,7 @@ class GetBehaviorModelTrainingSummariesResponse { return GetBehaviorModelTrainingSummariesResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BehaviorModelTrainingSummary.fromJson(e as Map)) .toList(), @@ -18319,7 +18315,7 @@ class GetBucketsAggregationResponse { factory GetBucketsAggregationResponse.fromJson(Map json) { return GetBucketsAggregationResponse( buckets: (json['buckets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Bucket.fromJson(e as Map)) .toList(), totalCount: json['totalCount'] as int?, @@ -18353,7 +18349,7 @@ class GetEffectivePoliciesResponse { factory GetEffectivePoliciesResponse.fromJson(Map json) { return GetEffectivePoliciesResponse( effectivePolicies: (json['effectivePolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectivePolicy.fromJson(e as Map)) .toList(), ); @@ -18570,7 +18566,7 @@ class GetPercentilesResponse { factory GetPercentilesResponse.fromJson(Map json) { return GetPercentilesResponse( percentiles: (json['percentiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PercentPair.fromJson(e as Map)) .toList(), ); @@ -18832,7 +18828,7 @@ class HttpAction { : null, confirmationUrl: json['confirmationUrl'] as String?, headers: (json['headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpActionHeader.fromJson(e as Map)) .toList(), ); @@ -18998,7 +18994,7 @@ class ImplicitDeny { factory ImplicitDeny.fromJson(Map json) { return ImplicitDeny( policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Policy.fromJson(e as Map)) .toList(), ); @@ -19067,11 +19063,11 @@ class IndexingFilter { factory IndexingFilter.fromJson(Map json) { return IndexingFilter( geoLocations: (json['geoLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GeoLocationTarget.fromJson(e as Map)) .toList(), namedShadowNames: (json['namedShadowNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -19225,7 +19221,7 @@ class IotSiteWiseAction { return IotSiteWiseAction( putAssetPropertyValueEntries: (json['putAssetPropertyValueEntries'] as List) - .whereNotNull() + .nonNulls .map((e) => PutAssetPropertyValueEntry.fromJson(e as Map)) .toList(), @@ -19450,7 +19446,7 @@ class Job { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, destinationPackageVersions: (json['destinationPackageVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), documentParameters: (json['documentParameters'] as Map?) @@ -19480,7 +19476,7 @@ class Job { : null, reasonCode: json['reasonCode'] as String?, scheduledJobRollouts: (json['scheduledJobRollouts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduledJobRollout.fromJson(e as Map)) .toList(), schedulingConfig: json['schedulingConfig'] != null @@ -19490,10 +19486,8 @@ class Job { status: (json['status'] as String?)?.let(JobStatus.fromString), targetSelection: (json['targetSelection'] as String?)?.let(TargetSelection.fromString), - targets: (json['targets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['targets'] as List?)?.nonNulls.map((e) => e as String).toList(), timeoutConfig: json['timeoutConfig'] != null ? TimeoutConfig.fromJson( json['timeoutConfig'] as Map) @@ -19763,7 +19757,7 @@ class JobExecutionsRetryConfig { factory JobExecutionsRetryConfig.fromJson(Map json) { return JobExecutionsRetryConfig( criteriaList: (json['criteriaList'] as List) - .whereNotNull() + .nonNulls .map((e) => RetryCriteria.fromJson(e as Map)) .toList(), ); @@ -19868,7 +19862,7 @@ class JobProcessDetails { numberOfSucceededThings: json['numberOfSucceededThings'] as int?, numberOfTimedOutThings: json['numberOfTimedOutThings'] as int?, processingTargets: (json['processingTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -20029,7 +20023,7 @@ class KafkaAction { destinationArn: json['destinationArn'] as String, topic: json['topic'] as String, headers: (json['headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KafkaActionHeader.fromJson(e as Map)) .toList(), key: json['key'] as String?, @@ -20188,7 +20182,7 @@ class ListActiveViolationsResponse { factory ListActiveViolationsResponse.fromJson(Map json) { return ListActiveViolationsResponse( activeViolations: (json['activeViolations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveViolation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -20213,7 +20207,7 @@ class ListAttachedPoliciesResponse { return ListAttachedPoliciesResponse( nextMarker: json['nextMarker'] as String?, policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Policy.fromJson(e as Map)) .toList(), ); @@ -20236,7 +20230,7 @@ class ListAuditFindingsResponse { factory ListAuditFindingsResponse.fromJson(Map json) { return ListAuditFindingsResponse( findings: (json['findings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuditFinding.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -20261,7 +20255,7 @@ class ListAuditMitigationActionsExecutionsResponse { Map json) { return ListAuditMitigationActionsExecutionsResponse( actionsExecutions: (json['actionsExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuditMitigationActionExecutionMetadata.fromJson( e as Map)) .toList(), @@ -20287,7 +20281,7 @@ class ListAuditMitigationActionsTasksResponse { return ListAuditMitigationActionsTasksResponse( nextToken: json['nextToken'] as String?, tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuditMitigationActionsTaskMetadata.fromJson( e as Map)) .toList(), @@ -20312,7 +20306,7 @@ class ListAuditSuppressionsResponse { return ListAuditSuppressionsResponse( nextToken: json['nextToken'] as String?, suppressions: (json['suppressions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuditSuppression.fromJson(e as Map)) .toList(), ); @@ -20336,7 +20330,7 @@ class ListAuditTasksResponse { return ListAuditTasksResponse( nextToken: json['nextToken'] as String?, tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuditTaskMetadata.fromJson(e as Map)) .toList(), ); @@ -20358,7 +20352,7 @@ class ListAuthorizersResponse { factory ListAuthorizersResponse.fromJson(Map json) { return ListAuthorizersResponse( authorizers: (json['authorizers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorizerSummary.fromJson(e as Map)) .toList(), nextMarker: json['nextMarker'] as String?, @@ -20382,7 +20376,7 @@ class ListBillingGroupsResponse { factory ListBillingGroupsResponse.fromJson(Map json) { return ListBillingGroupsResponse( billingGroups: (json['billingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupNameAndArn.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -20406,7 +20400,7 @@ class ListCACertificatesResponse { factory ListCACertificatesResponse.fromJson(Map json) { return ListCACertificatesResponse( certificates: (json['certificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CACertificate.fromJson(e as Map)) .toList(), nextMarker: json['nextMarker'] as String?, @@ -20430,7 +20424,7 @@ class ListCertificateProvidersResponse { factory ListCertificateProvidersResponse.fromJson(Map json) { return ListCertificateProvidersResponse( certificateProviders: (json['certificateProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateProviderSummary.fromJson(e as Map)) .toList(), @@ -20456,7 +20450,7 @@ class ListCertificatesByCAResponse { factory ListCertificatesByCAResponse.fromJson(Map json) { return ListCertificatesByCAResponse( certificates: (json['certificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Certificate.fromJson(e as Map)) .toList(), nextMarker: json['nextMarker'] as String?, @@ -20481,7 +20475,7 @@ class ListCertificatesResponse { factory ListCertificatesResponse.fromJson(Map json) { return ListCertificatesResponse( certificates: (json['certificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Certificate.fromJson(e as Map)) .toList(), nextMarker: json['nextMarker'] as String?, @@ -20505,7 +20499,7 @@ class ListCustomMetricsResponse { factory ListCustomMetricsResponse.fromJson(Map json) { return ListCustomMetricsResponse( metricNames: (json['metricNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -20530,7 +20524,7 @@ class ListDetectMitigationActionsExecutionsResponse { Map json) { return ListDetectMitigationActionsExecutionsResponse( actionsExecutions: (json['actionsExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectMitigationActionExecution.fromJson( e as Map)) .toList(), @@ -20558,7 +20552,7 @@ class ListDetectMitigationActionsTasksResponse { return ListDetectMitigationActionsTasksResponse( nextToken: json['nextToken'] as String?, tasks: (json['tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectMitigationActionsTaskSummary.fromJson( e as Map)) .toList(), @@ -20583,7 +20577,7 @@ class ListDimensionsResponse { factory ListDimensionsResponse.fromJson(Map json) { return ListDimensionsResponse( dimensionNames: (json['dimensionNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -20607,7 +20601,7 @@ class ListDomainConfigurationsResponse { factory ListDomainConfigurationsResponse.fromJson(Map json) { return ListDomainConfigurationsResponse( domainConfigurations: (json['domainConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainConfigurationSummary.fromJson(e as Map)) .toList(), @@ -20632,7 +20626,7 @@ class ListFleetMetricsResponse { factory ListFleetMetricsResponse.fromJson(Map json) { return ListFleetMetricsResponse( fleetMetrics: (json['fleetMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetMetricNameAndArn.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -20656,7 +20650,7 @@ class ListIndicesResponse { factory ListIndicesResponse.fromJson(Map json) { return ListIndicesResponse( indexNames: (json['indexNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['nextToken'] as String?, @@ -20680,7 +20674,7 @@ class ListJobExecutionsForJobResponse { factory ListJobExecutionsForJobResponse.fromJson(Map json) { return ListJobExecutionsForJobResponse( executionSummaries: (json['executionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobExecutionSummaryForJob.fromJson(e as Map)) .toList(), @@ -20706,7 +20700,7 @@ class ListJobExecutionsForThingResponse { Map json) { return ListJobExecutionsForThingResponse( executionSummaries: (json['executionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobExecutionSummaryForThing.fromJson(e as Map)) .toList(), @@ -20731,7 +20725,7 @@ class ListJobTemplatesResponse { factory ListJobTemplatesResponse.fromJson(Map json) { return ListJobTemplatesResponse( jobTemplates: (json['jobTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobTemplateSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -20755,7 +20749,7 @@ class ListJobsResponse { factory ListJobsResponse.fromJson(Map json) { return ListJobsResponse( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -20778,7 +20772,7 @@ class ListManagedJobTemplatesResponse { factory ListManagedJobTemplatesResponse.fromJson(Map json) { return ListManagedJobTemplatesResponse( managedJobTemplates: (json['managedJobTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedJobTemplateSummary.fromJson(e as Map)) .toList(), @@ -20803,7 +20797,7 @@ class ListMetricValuesResponse { factory ListMetricValuesResponse.fromJson(Map json) { return ListMetricValuesResponse( metricDatumList: (json['metricDatumList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatum.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -20826,7 +20820,7 @@ class ListMitigationActionsResponse { factory ListMitigationActionsResponse.fromJson(Map json) { return ListMitigationActionsResponse( actionIdentifiers: (json['actionIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MitigationActionIdentifier.fromJson(e as Map)) .toList(), @@ -20851,7 +20845,7 @@ class ListOTAUpdatesResponse { return ListOTAUpdatesResponse( nextToken: json['nextToken'] as String?, otaUpdates: (json['otaUpdates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OTAUpdateSummary.fromJson(e as Map)) .toList(), ); @@ -20875,7 +20869,7 @@ class ListOutgoingCertificatesResponse { return ListOutgoingCertificatesResponse( nextMarker: json['nextMarker'] as String?, outgoingCertificates: (json['outgoingCertificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutgoingCertificate.fromJson(e as Map)) .toList(), ); @@ -20898,7 +20892,7 @@ class ListPackageVersionsResponse { return ListPackageVersionsResponse( nextToken: json['nextToken'] as String?, packageVersionSummaries: (json['packageVersionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageVersionSummary.fromJson(e as Map)) .toList(), ); @@ -20921,7 +20915,7 @@ class ListPackagesResponse { return ListPackagesResponse( nextToken: json['nextToken'] as String?, packageSummaries: (json['packageSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackageSummary.fromJson(e as Map)) .toList(), ); @@ -20946,7 +20940,7 @@ class ListPoliciesResponse { return ListPoliciesResponse( nextMarker: json['nextMarker'] as String?, policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Policy.fromJson(e as Map)) .toList(), ); @@ -20971,7 +20965,7 @@ class ListPolicyPrincipalsResponse { return ListPolicyPrincipalsResponse( nextMarker: json['nextMarker'] as String?, principals: (json['principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -20990,7 +20984,7 @@ class ListPolicyVersionsResponse { factory ListPolicyVersionsResponse.fromJson(Map json) { return ListPolicyVersionsResponse( policyVersions: (json['policyVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyVersion.fromJson(e as Map)) .toList(), ); @@ -21015,7 +21009,7 @@ class ListPrincipalPoliciesResponse { return ListPrincipalPoliciesResponse( nextMarker: json['nextMarker'] as String?, policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Policy.fromJson(e as Map)) .toList(), ); @@ -21039,10 +21033,8 @@ class ListPrincipalThingsResponse { factory ListPrincipalThingsResponse.fromJson(Map json) { return ListPrincipalThingsResponse( nextToken: json['nextToken'] as String?, - things: (json['things'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + things: + (json['things'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -21064,7 +21056,7 @@ class ListProvisioningTemplateVersionsResponse { return ListProvisioningTemplateVersionsResponse( nextToken: json['nextToken'] as String?, versions: (json['versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningTemplateVersionSummary.fromJson( e as Map)) .toList(), @@ -21089,7 +21081,7 @@ class ListProvisioningTemplatesResponse { return ListProvisioningTemplatesResponse( nextToken: json['nextToken'] as String?, templates: (json['templates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningTemplateSummary.fromJson(e as Map)) .toList(), @@ -21115,7 +21107,7 @@ class ListRelatedResourcesForAuditFindingResponse { return ListRelatedResourcesForAuditFindingResponse( nextToken: json['nextToken'] as String?, relatedResources: (json['relatedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedResource.fromJson(e as Map)) .toList(), ); @@ -21138,7 +21130,7 @@ class ListRoleAliasesResponse { return ListRoleAliasesResponse( nextMarker: json['nextMarker'] as String?, roleAliases: (json['roleAliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -21162,7 +21154,7 @@ class ListScheduledAuditsResponse { return ListScheduledAuditsResponse( nextToken: json['nextToken'] as String?, scheduledAudits: (json['scheduledAudits'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ScheduledAuditMetadata.fromJson(e as Map)) .toList(), @@ -21189,7 +21181,7 @@ class ListSecurityProfilesForTargetResponse { nextToken: json['nextToken'] as String?, securityProfileTargetMappings: (json['securityProfileTargetMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityProfileTargetMapping.fromJson(e as Map)) .toList(), @@ -21214,7 +21206,7 @@ class ListSecurityProfilesResponse { return ListSecurityProfilesResponse( nextToken: json['nextToken'] as String?, securityProfileIdentifiers: (json['securityProfileIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityProfileIdentifier.fromJson(e as Map)) .toList(), @@ -21238,7 +21230,7 @@ class ListStreamsResponse { return ListStreamsResponse( nextToken: json['nextToken'] as String?, streams: (json['streams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamSummary.fromJson(e as Map)) .toList(), ); @@ -21262,7 +21254,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['nextToken'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -21284,10 +21276,8 @@ class ListTargetsForPolicyResponse { factory ListTargetsForPolicyResponse.fromJson(Map json) { return ListTargetsForPolicyResponse( nextMarker: json['nextMarker'] as String?, - targets: (json['targets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['targets'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -21310,7 +21300,7 @@ class ListTargetsForSecurityProfileResponse { return ListTargetsForSecurityProfileResponse( nextToken: json['nextToken'] as String?, securityProfileTargets: (json['securityProfileTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityProfileTarget.fromJson(e as Map)) .toList(), ); @@ -21334,7 +21324,7 @@ class ListThingGroupsForThingResponse { return ListThingGroupsForThingResponse( nextToken: json['nextToken'] as String?, thingGroups: (json['thingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupNameAndArn.fromJson(e as Map)) .toList(), ); @@ -21358,7 +21348,7 @@ class ListThingGroupsResponse { return ListThingGroupsResponse( nextToken: json['nextToken'] as String?, thingGroups: (json['thingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupNameAndArn.fromJson(e as Map)) .toList(), ); @@ -21383,7 +21373,7 @@ class ListThingPrincipalsResponse { return ListThingPrincipalsResponse( nextToken: json['nextToken'] as String?, principals: (json['principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -21413,7 +21403,7 @@ class ListThingRegistrationTaskReportsResponse { nextToken: json['nextToken'] as String?, reportType: (json['reportType'] as String?)?.let(ReportType.fromString), resourceLinks: (json['resourceLinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -21437,10 +21427,8 @@ class ListThingRegistrationTasksResponse { Map json) { return ListThingRegistrationTasksResponse( nextToken: json['nextToken'] as String?, - taskIds: (json['taskIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + taskIds: + (json['taskIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -21463,7 +21451,7 @@ class ListThingTypesResponse { return ListThingTypesResponse( nextToken: json['nextToken'] as String?, thingTypes: (json['thingTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThingTypeDefinition.fromJson(e as Map)) .toList(), ); @@ -21486,10 +21474,8 @@ class ListThingsInBillingGroupResponse { factory ListThingsInBillingGroupResponse.fromJson(Map json) { return ListThingsInBillingGroupResponse( nextToken: json['nextToken'] as String?, - things: (json['things'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + things: + (json['things'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -21510,10 +21496,8 @@ class ListThingsInThingGroupResponse { factory ListThingsInThingGroupResponse.fromJson(Map json) { return ListThingsInThingGroupResponse( nextToken: json['nextToken'] as String?, - things: (json['things'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + things: + (json['things'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -21536,7 +21520,7 @@ class ListThingsResponse { return ListThingsResponse( nextToken: json['nextToken'] as String?, things: (json['things'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThingAttribute.fromJson(e as Map)) .toList(), ); @@ -21560,7 +21544,7 @@ class ListTopicRuleDestinationsResponse { Map json) { return ListTopicRuleDestinationsResponse( destinationSummaries: (json['destinationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicRuleDestinationSummary.fromJson(e as Map)) .toList(), @@ -21587,7 +21571,7 @@ class ListTopicRulesResponse { return ListTopicRulesResponse( nextToken: json['nextToken'] as String?, rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicRuleListItem.fromJson(e as Map)) .toList(), ); @@ -21610,7 +21594,7 @@ class ListV2LoggingLevelsResponse { factory ListV2LoggingLevelsResponse.fromJson(Map json) { return ListV2LoggingLevelsResponse( logTargetConfigurations: (json['logTargetConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => LogTargetConfiguration.fromJson(e as Map)) .toList(), @@ -21638,7 +21622,7 @@ class ListViolationEventsResponse { return ListViolationEventsResponse( nextToken: json['nextToken'] as String?, violationEvents: (json['violationEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ViolationEvent.fromJson(e as Map)) .toList(), ); @@ -21946,7 +21930,7 @@ class ManagedJobTemplateSummary { return ManagedJobTemplateSummary( description: json['description'] as String?, environments: (json['environments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), templateArn: json['templateArn'] as String?, @@ -22106,24 +22090,15 @@ class MetricValue { factory MetricValue.fromJson(Map json) { return MetricValue( - cidrs: (json['cidrs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + cidrs: + (json['cidrs'] as List?)?.nonNulls.map((e) => e as String).toList(), count: json['count'] as int?, number: json['number'] as double?, - numbers: (json['numbers'] as List?) - ?.whereNotNull() - .map((e) => e as double) - .toList(), - ports: (json['ports'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), - strings: (json['strings'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + numbers: + (json['numbers'] as List?)?.nonNulls.map((e) => e as double).toList(), + ports: (json['ports'] as List?)?.nonNulls.map((e) => e as int).toList(), + strings: + (json['strings'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -22490,7 +22465,7 @@ class MqttHeaders { payloadFormatIndicator: json['payloadFormatIndicator'] as String?, responseTopic: json['responseTopic'] as String?, userProperties: (json['userProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserProperty.fromJson(e as Map)) .toList(), ); @@ -22727,22 +22702,20 @@ class OTAUpdateInfo { lastModifiedDate: timeStampFromJson(json['lastModifiedDate']), otaUpdateArn: json['otaUpdateArn'] as String?, otaUpdateFiles: (json['otaUpdateFiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OTAUpdateFile.fromJson(e as Map)) .toList(), otaUpdateId: json['otaUpdateId'] as String?, otaUpdateStatus: (json['otaUpdateStatus'] as String?)?.let(OTAUpdateStatus.fromString), protocols: (json['protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Protocol.fromString((e as String))) .toList(), targetSelection: (json['targetSelection'] as String?)?.let(TargetSelection.fromString), - targets: (json['targets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['targets'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -23326,7 +23299,7 @@ class PutAssetPropertyValueEntry { factory PutAssetPropertyValueEntry.fromJson(Map json) { return PutAssetPropertyValueEntry( propertyValues: (json['propertyValues'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetPropertyValue.fromJson(e as Map)) .toList(), assetId: json['assetId'] as String?, @@ -24155,7 +24128,7 @@ class SchedulingConfig { (json['endBehavior'] as String?)?.let(JobEndBehavior.fromString), endTime: json['endTime'] as String?, maintenanceWindows: (json['maintenanceWindows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindow.fromJson(e as Map)) .toList(), startTime: json['startTime'] as String?, @@ -24197,11 +24170,11 @@ class SearchIndexResponse { return SearchIndexResponse( nextToken: json['nextToken'] as String?, thingGroups: (json['thingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThingGroupDocument.fromJson(e as Map)) .toList(), things: (json['things'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThingDocument.fromJson(e as Map)) .toList(), ); @@ -24904,7 +24877,7 @@ class StreamInfo { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, files: (json['files'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamFile.fromJson(e as Map)) .toList(), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), @@ -25149,7 +25122,7 @@ class TestAuthorizationResponse { factory TestAuthorizationResponse.fromJson(Map json) { return TestAuthorizationResponse( authResults: (json['authResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthResult.fromJson(e as Map)) .toList(), ); @@ -25185,7 +25158,7 @@ class TestInvokeAuthorizerResponse { disconnectAfterInSeconds: json['disconnectAfterInSeconds'] as int?, isAuthenticated: json['isAuthenticated'] as bool?, policyDocuments: (json['policyDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), principalId: json['principalId'] as String?, @@ -25335,7 +25308,7 @@ class ThingDocument { deviceDefender: json['deviceDefender'] as String?, shadow: json['shadow'] as String?, thingGroupNames: (json['thingGroupNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), thingId: json['thingId'] as String?, @@ -25375,7 +25348,7 @@ class ThingGroupDocument { attributes: (json['attributes'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), parentGroupNames: (json['parentGroupNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), thingGroupDescription: json['thingGroupDescription'] as String?, @@ -25418,11 +25391,11 @@ class ThingGroupIndexingConfiguration { thingGroupIndexingMode: ThingGroupIndexingMode.fromString( (json['thingGroupIndexingMode'] as String)), customFields: (json['customFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), managedFields: (json['managedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), ); @@ -25477,7 +25450,7 @@ class ThingGroupMetadata { creationDate: timeStampFromJson(json['creationDate']), parentGroupName: json['parentGroupName'] as String?, rootToParentThingGroups: (json['rootToParentThingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupNameAndArn.fromJson(e as Map)) .toList(), ); @@ -25636,7 +25609,7 @@ class ThingIndexingConfiguration { thingIndexingMode: ThingIndexingMode.fromString((json['thingIndexingMode'] as String)), customFields: (json['customFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), deviceDefenderIndexingMode: @@ -25646,7 +25619,7 @@ class ThingIndexingConfiguration { ? IndexingFilter.fromJson(json['filter'] as Map) : null, managedFields: (json['managedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), namedShadowIndexingMode: (json['namedShadowIndexingMode'] as String?) @@ -25781,7 +25754,7 @@ class ThingTypeProperties { factory ThingTypeProperties.fromJson(Map json) { return ThingTypeProperties( searchableAttributes: (json['searchableAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), thingTypeDescription: json['thingTypeDescription'] as String?, @@ -25876,7 +25849,7 @@ class TimestreamAction { return TimestreamAction( databaseName: json['databaseName'] as String, dimensions: (json['dimensions'] as List) - .whereNotNull() + .nonNulls .map((e) => TimestreamDimension.fromJson(e as Map)) .toList(), roleArn: json['roleArn'] as String, @@ -26061,7 +26034,7 @@ class TopicRule { factory TopicRule.fromJson(Map json) { return TopicRule( actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), awsIotSqlVersion: json['awsIotSqlVersion'] as String?, @@ -26623,7 +26596,7 @@ class UpdateDimensionResponse { lastModifiedDate: timeStampFromJson(json['lastModifiedDate']), name: json['name'] as String?, stringValues: (json['stringValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(DimensionType.fromString), @@ -26832,19 +26805,19 @@ class UpdateSecurityProfileResponse { factory UpdateSecurityProfileResponse.fromJson(Map json) { return UpdateSecurityProfileResponse( additionalMetricsToRetain: (json['additionalMetricsToRetain'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), additionalMetricsToRetainV2: (json['additionalMetricsToRetainV2'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricToRetain.fromJson(e as Map)) .toList(), alertTargets: (json['alertTargets'] as Map?)?.map( (k, e) => MapEntry(AlertTargetType.fromString(k), AlertTarget.fromJson(e as Map))), behaviors: (json['behaviors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Behavior.fromJson(e as Map)) .toList(), creationDate: timeStampFromJson(json['creationDate']), @@ -26981,7 +26954,7 @@ class ValidateSecurityProfileBehaviorsResponse { return ValidateSecurityProfileBehaviorsResponse( valid: json['valid'] as bool?, validationErrors: (json['validationErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationError.fromJson(e as Map)) .toList(), ); @@ -27255,11 +27228,11 @@ class VpcDestinationProperties { return VpcDestinationProperties( roleArn: json['roleArn'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, @@ -27293,11 +27266,11 @@ class VpcDestinationSummary { return VpcDestinationSummary( roleArn: json['roleArn'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['vpcId'] as String?, diff --git a/generated/aws_iot_api/pubspec.yaml b/generated/aws_iot_api/pubspec.yaml index 210086842..3425cebd0 100644 --- a/generated/aws_iot_api/pubspec.yaml +++ b/generated/aws_iot_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_iot_ap protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_iot_data_api/lib/iot-data-2015-05-28.dart b/generated/aws_iot_data_api/lib/iot-data-2015-05-28.dart index cec262283..246a82fab 100644 --- a/generated/aws_iot_data_api/lib/iot-data-2015-05-28.dart +++ b/generated/aws_iot_data_api/lib/iot-data-2015-05-28.dart @@ -544,10 +544,8 @@ class ListNamedShadowsForThingResponse { factory ListNamedShadowsForThingResponse.fromJson(Map json) { return ListNamedShadowsForThingResponse( nextToken: json['nextToken'] as String?, - results: (json['results'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + results: + (json['results'] as List?)?.nonNulls.map((e) => e as String).toList(), timestamp: json['timestamp'] as int?, ); } @@ -571,7 +569,7 @@ class ListRetainedMessagesResponse { return ListRetainedMessagesResponse( nextToken: json['nextToken'] as String?, retainedTopics: (json['retainedTopics'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RetainedMessageSummary.fromJson(e as Map)) .toList(), diff --git a/generated/aws_iot_data_api/pubspec.yaml b/generated/aws_iot_data_api/pubspec.yaml index 1eac1f04b..0e6db4453 100644 --- a/generated/aws_iot_data_api/pubspec.yaml +++ b/generated/aws_iot_data_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_iot_da protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_iot_jobs_data_api/lib/iot-jobs-data-2017-09-29.dart b/generated/aws_iot_jobs_data_api/lib/iot-jobs-data-2017-09-29.dart index daa74472a..082be1861 100644 --- a/generated/aws_iot_jobs_data_api/lib/iot-jobs-data-2017-09-29.dart +++ b/generated/aws_iot_jobs_data_api/lib/iot-jobs-data-2017-09-29.dart @@ -297,11 +297,11 @@ class GetPendingJobExecutionsResponse { factory GetPendingJobExecutionsResponse.fromJson(Map json) { return GetPendingJobExecutionsResponse( inProgressJobs: (json['inProgressJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobExecutionSummary.fromJson(e as Map)) .toList(), queuedJobs: (json['queuedJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobExecutionSummary.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_iot_jobs_data_api/pubspec.yaml b/generated/aws_iot_jobs_data_api/pubspec.yaml index 5eb02bb2a..09a687525 100644 --- a/generated/aws_iot_jobs_data_api/pubspec.yaml +++ b/generated/aws_iot_jobs_data_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_iot_jo protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_iotanalytics_api/lib/iotanalytics-2017-11-27.dart b/generated/aws_iotanalytics_api/lib/iotanalytics-2017-11-27.dart index c74787631..8332cfd41 100644 --- a/generated/aws_iotanalytics_api/lib/iotanalytics-2017-11-27.dart +++ b/generated/aws_iotanalytics_api/lib/iotanalytics-2017-11-27.dart @@ -1472,7 +1472,7 @@ class BatchPutMessageResponse { return BatchPutMessageResponse( batchPutMessageErrorEntries: (json['batchPutMessageErrorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPutMessageErrorEntry.fromJson(e as Map)) .toList(), @@ -1854,7 +1854,7 @@ class ContainerDatasetAction { resourceConfiguration: ResourceConfiguration.fromJson( json['resourceConfiguration'] as Map), variables: (json['variables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Variable.fromJson(e as Map)) .toList(), ); @@ -2208,19 +2208,19 @@ class Dataset { factory Dataset.fromJson(Map json) { return Dataset( actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetAction.fromJson(e as Map)) .toList(), arn: json['arn'] as String?, contentDeliveryRules: (json['contentDeliveryRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetContentDeliveryRule.fromJson(e as Map)) .toList(), creationTime: timeStampFromJson(json['creationTime']), lastUpdateTime: timeStampFromJson(json['lastUpdateTime']), lateDataRules: (json['lateDataRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LateDataRule.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -2230,7 +2230,7 @@ class Dataset { : null, status: (json['status'] as String?)?.let(DatasetStatus.fromString), triggers: (json['triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetTrigger.fromJson(e as Map)) .toList(), versioningConfiguration: json['versioningConfiguration'] != null @@ -2576,7 +2576,7 @@ class DatasetSummary { factory DatasetSummary.fromJson(Map json) { return DatasetSummary( actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetActionSummary.fromJson(e as Map)) .toList(), creationTime: timeStampFromJson(json['creationTime']), @@ -2584,7 +2584,7 @@ class DatasetSummary { lastUpdateTime: timeStampFromJson(json['lastUpdateTime']), status: (json['status'] as String?)?.let(DatasetStatus.fromString), triggers: (json['triggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetTrigger.fromJson(e as Map)) .toList(), ); @@ -2855,7 +2855,7 @@ class DatastorePartitions { factory DatastorePartitions.fromJson(Map json) { return DatastorePartitions( partitions: (json['partitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatastorePartition.fromJson(e as Map)) .toList(), ); @@ -3488,7 +3488,7 @@ class GetDatasetContentResponse { factory GetDatasetContentResponse.fromJson(Map json) { return GetDatasetContentResponse( entries: (json['entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetEntry.fromJson(e as Map)) .toList(), status: json['status'] != null @@ -3768,7 +3768,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( channelSummaries: (json['channelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3792,7 +3792,7 @@ class ListDatasetContentsResponse { factory ListDatasetContentsResponse.fromJson(Map json) { return ListDatasetContentsResponse( datasetContentSummaries: (json['datasetContentSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetContentSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3816,7 +3816,7 @@ class ListDatasetsResponse { factory ListDatasetsResponse.fromJson(Map json) { return ListDatasetsResponse( datasetSummaries: (json['datasetSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3840,7 +3840,7 @@ class ListDatastoresResponse { factory ListDatastoresResponse.fromJson(Map json) { return ListDatastoresResponse( datastoreSummaries: (json['datastoreSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatastoreSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3865,7 +3865,7 @@ class ListPipelinesResponse { return ListPipelinesResponse( nextToken: json['nextToken'] as String?, pipelineSummaries: (json['pipelineSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineSummary.fromJson(e as Map)) .toList(), ); @@ -3883,7 +3883,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4119,7 +4119,7 @@ class Pipeline { factory Pipeline.fromJson(Map json) { return Pipeline( activities: (json['activities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineActivity.fromJson(e as Map)) .toList(), arn: json['arn'] as String?, @@ -4127,7 +4127,7 @@ class Pipeline { lastUpdateTime: timeStampFromJson(json['lastUpdateTime']), name: json['name'] as String?, reprocessingSummaries: (json['reprocessingSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReprocessingSummary.fromJson(e as Map)) .toList(), ); @@ -4276,7 +4276,7 @@ class PipelineSummary { lastUpdateTime: timeStampFromJson(json['lastUpdateTime']), pipelineName: json['pipelineName'] as String?, reprocessingSummaries: (json['reprocessingSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReprocessingSummary.fromJson(e as Map)) .toList(), ); @@ -4330,7 +4330,7 @@ class RemoveAttributesActivity { factory RemoveAttributesActivity.fromJson(Map json) { return RemoveAttributesActivity( attributes: (json['attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['name'] as String, @@ -4477,7 +4477,7 @@ class RunPipelineActivityResponse { return RunPipelineActivityResponse( logResult: json['logResult'] as String?, payloads: (json['payloads'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => _s.decodeUint8List(e as String)) .toList(), ); @@ -4573,7 +4573,7 @@ class SampleChannelDataResponse { factory SampleChannelDataResponse.fromJson(Map json) { return SampleChannelDataResponse( payloads: (json['payloads'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => _s.decodeUint8List(e as String)) .toList(), ); @@ -4621,7 +4621,7 @@ class SchemaDefinition { factory SchemaDefinition.fromJson(Map json) { return SchemaDefinition( columns: (json['columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Column.fromJson(e as Map)) .toList(), ); @@ -4656,7 +4656,7 @@ class SelectAttributesActivity { factory SelectAttributesActivity.fromJson(Map json) { return SelectAttributesActivity( attributes: (json['attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['name'] as String, @@ -4742,7 +4742,7 @@ class SqlQueryDatasetAction { return SqlQueryDatasetAction( sqlQuery: json['sqlQuery'] as String, filters: (json['filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryFilter.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_iotanalytics_api/pubspec.yaml b/generated/aws_iotanalytics_api/pubspec.yaml index a24954486..9622db771 100644 --- a/generated/aws_iotanalytics_api/pubspec.yaml +++ b/generated/aws_iotanalytics_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_iotana protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_iotevents_api/lib/iotevents-2018-07-27.dart b/generated/aws_iotevents_api/lib/iotevents-2018-07-27.dart index 5b3fd940f..2a32cc98c 100644 --- a/generated/aws_iotevents_api/lib/iotevents-2018-07-27.dart +++ b/generated/aws_iotevents_api/lib/iotevents-2018-07-27.dart @@ -1354,7 +1354,7 @@ class AlarmEventActions { factory AlarmEventActions.fromJson(Map json) { return AlarmEventActions( alarmActions: (json['alarmActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmAction.fromJson(e as Map)) .toList(), ); @@ -1502,7 +1502,7 @@ class AlarmNotification { factory AlarmNotification.fromJson(Map json) { return AlarmNotification( notificationActions: (json['notificationActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationAction.fromJson(e as Map)) .toList(), ); @@ -1626,7 +1626,7 @@ class AnalysisResult { return AnalysisResult( level: (json['level'] as String?)?.let(AnalysisResultLevel.fromString), locations: (json['locations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AnalysisResultLocation.fromJson(e as Map)) .toList(), @@ -2465,7 +2465,7 @@ class DetectorModelDefinition { return DetectorModelDefinition( initialStateName: json['initialStateName'] as String, states: (json['states'] as List) - .whereNotNull() + .nonNulls .map((e) => State.fromJson(e as Map)) .toList(), ); @@ -2956,7 +2956,7 @@ class EmailRecipients { factory EmailRecipients.fromJson(Map json) { return EmailRecipients( to: (json['to'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecipientDetail.fromJson(e as Map)) .toList(), ); @@ -3010,7 +3010,7 @@ class Event { return Event( eventName: json['eventName'] as String, actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), condition: json['condition'] as String?, @@ -3090,7 +3090,7 @@ class GetDetectorModelAnalysisResultsResponse { Map json) { return GetDetectorModelAnalysisResultsResponse( analysisResults: (json['analysisResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisResult.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3211,7 +3211,7 @@ class InputDefinition { factory InputDefinition.fromJson(Map json) { return InputDefinition( attributes: (json['attributes'] as List) - .whereNotNull() + .nonNulls .map((e) => Attribute.fromJson(e as Map)) .toList(), ); @@ -3585,7 +3585,7 @@ class ListAlarmModelVersionsResponse { factory ListAlarmModelVersionsResponse.fromJson(Map json) { return ListAlarmModelVersionsResponse( alarmModelVersionSummaries: (json['alarmModelVersionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmModelVersionSummary.fromJson(e as Map)) .toList(), @@ -3610,7 +3610,7 @@ class ListAlarmModelsResponse { factory ListAlarmModelsResponse.fromJson(Map json) { return ListAlarmModelsResponse( alarmModelSummaries: (json['alarmModelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmModelSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3636,7 +3636,7 @@ class ListDetectorModelVersionsResponse { return ListDetectorModelVersionsResponse( detectorModelVersionSummaries: (json['detectorModelVersionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectorModelVersionSummary.fromJson(e as Map)) .toList(), @@ -3661,7 +3661,7 @@ class ListDetectorModelsResponse { factory ListDetectorModelsResponse.fromJson(Map json) { return ListDetectorModelsResponse( detectorModelSummaries: (json['detectorModelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectorModelSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3686,7 +3686,7 @@ class ListInputRoutingsResponse { return ListInputRoutingsResponse( nextToken: json['nextToken'] as String?, routedResources: (json['routedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoutedResource.fromJson(e as Map)) .toList(), ); @@ -3709,7 +3709,7 @@ class ListInputsResponse { factory ListInputsResponse.fromJson(Map json) { return ListInputsResponse( inputSummaries: (json['inputSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3728,7 +3728,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3780,7 +3780,7 @@ class LoggingOptions { level: LoggingLevel.fromString((json['level'] as String)), roleArn: json['roleArn'] as String, detectorDebugOptions: (json['detectorDebugOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectorDebugOption.fromJson(e as Map)) .toList(), ); @@ -3827,11 +3827,11 @@ class NotificationAction { action: NotificationTargetActions.fromJson( json['action'] as Map), emailConfigurations: (json['emailConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EmailConfiguration.fromJson(e as Map)) .toList(), smsConfigurations: (json['smsConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SMSConfiguration.fromJson(e as Map)) .toList(), ); @@ -3891,7 +3891,7 @@ class OnEnterLifecycle { factory OnEnterLifecycle.fromJson(Map json) { return OnEnterLifecycle( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), ); @@ -3919,7 +3919,7 @@ class OnExitLifecycle { factory OnExitLifecycle.fromJson(Map json) { return OnExitLifecycle( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), ); @@ -3952,11 +3952,11 @@ class OnInputLifecycle { factory OnInputLifecycle.fromJson(Map json) { return OnInputLifecycle( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Event.fromJson(e as Map)) .toList(), transitionEvents: (json['transitionEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransitionEvent.fromJson(e as Map)) .toList(), ); @@ -4126,7 +4126,7 @@ class SMSConfiguration { factory SMSConfiguration.fromJson(Map json) { return SMSConfiguration( recipients: (json['recipients'] as List) - .whereNotNull() + .nonNulls .map((e) => RecipientDetail.fromJson(e as Map)) .toList(), additionalMessage: json['additionalMessage'] as String?, @@ -4505,7 +4505,7 @@ class TransitionEvent { eventName: json['eventName'] as String, nextState: json['nextState'] as String, actions: (json['actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Action.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_iotevents_api/pubspec.yaml b/generated/aws_iotevents_api/pubspec.yaml index 7adeb938d..13bde8604 100644 --- a/generated/aws_iotevents_api/pubspec.yaml +++ b/generated/aws_iotevents_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_ioteve protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_iotevents_data_api/lib/iotevents-data-2018-10-23.dart b/generated/aws_iotevents_data_api/lib/iotevents-data-2018-10-23.dart index 5b2a44f01..28c62cf81 100644 --- a/generated/aws_iotevents_data_api/lib/iotevents-data-2018-10-23.dart +++ b/generated/aws_iotevents_data_api/lib/iotevents-data-2018-10-23.dart @@ -713,7 +713,7 @@ class BatchAcknowledgeAlarmResponse { factory BatchAcknowledgeAlarmResponse.fromJson(Map json) { return BatchAcknowledgeAlarmResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchAlarmActionErrorEntry.fromJson(e as Map)) .toList(), @@ -813,7 +813,7 @@ class BatchDeleteDetectorResponse { return BatchDeleteDetectorResponse( batchDeleteDetectorErrorEntries: (json['batchDeleteDetectorErrorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchDeleteDetectorErrorEntry.fromJson(e as Map)) .toList(), @@ -834,7 +834,7 @@ class BatchDisableAlarmResponse { factory BatchDisableAlarmResponse.fromJson(Map json) { return BatchDisableAlarmResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchAlarmActionErrorEntry.fromJson(e as Map)) .toList(), @@ -855,7 +855,7 @@ class BatchEnableAlarmResponse { factory BatchEnableAlarmResponse.fromJson(Map json) { return BatchEnableAlarmResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchAlarmActionErrorEntry.fromJson(e as Map)) .toList(), @@ -902,7 +902,7 @@ class BatchPutMessageResponse { return BatchPutMessageResponse( batchPutMessageErrorEntries: (json['BatchPutMessageErrorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPutMessageErrorEntry.fromJson(e as Map)) .toList(), @@ -923,7 +923,7 @@ class BatchResetAlarmResponse { factory BatchResetAlarmResponse.fromJson(Map json) { return BatchResetAlarmResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchAlarmActionErrorEntry.fromJson(e as Map)) .toList(), @@ -944,7 +944,7 @@ class BatchSnoozeAlarmResponse { factory BatchSnoozeAlarmResponse.fromJson(Map json) { return BatchSnoozeAlarmResponse( errorEntries: (json['errorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchAlarmActionErrorEntry.fromJson(e as Map)) .toList(), @@ -994,7 +994,7 @@ class BatchUpdateDetectorResponse { return BatchUpdateDetectorResponse( batchUpdateDetectorErrorEntries: (json['batchUpdateDetectorErrorEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchUpdateDetectorErrorEntry.fromJson(e as Map)) .toList(), @@ -1256,11 +1256,11 @@ class DetectorState { return DetectorState( stateName: json['stateName'] as String, timers: (json['timers'] as List) - .whereNotNull() + .nonNulls .map((e) => Timer.fromJson(e as Map)) .toList(), variables: (json['variables'] as List) - .whereNotNull() + .nonNulls .map((e) => Variable.fromJson(e as Map)) .toList(), ); @@ -1511,7 +1511,7 @@ class ListAlarmsResponse { factory ListAlarmsResponse.fromJson(Map json) { return ListAlarmsResponse( alarmSummaries: (json['alarmSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1535,7 +1535,7 @@ class ListDetectorsResponse { factory ListDetectorsResponse.fromJson(Map json) { return ListDetectorsResponse( detectorSummaries: (json['detectorSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectorSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/generated/aws_iotevents_data_api/pubspec.yaml b/generated/aws_iotevents_data_api/pubspec.yaml index d37320b13..5494385fc 100644 --- a/generated/aws_iotevents_data_api/pubspec.yaml +++ b/generated/aws_iotevents_data_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_ioteve protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_iotsecuretunneling_api/lib/iotsecuretunneling-2018-10-05.dart b/generated/aws_iotsecuretunneling_api/lib/iotsecuretunneling-2018-10-05.dart index 7c18929e0..f7f0176cb 100644 --- a/generated/aws_iotsecuretunneling_api/lib/iotsecuretunneling-2018-10-05.dart +++ b/generated/aws_iotsecuretunneling_api/lib/iotsecuretunneling-2018-10-05.dart @@ -445,10 +445,8 @@ class DestinationConfig { factory DestinationConfig.fromJson(Map json) { return DestinationConfig( - services: (json['services'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + services: + (json['services'] as List).nonNulls.map((e) => e as String).toList(), thingName: json['thingName'] as String?, ); } @@ -474,7 +472,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -498,7 +496,7 @@ class ListTunnelsResponse { return ListTunnelsResponse( nextToken: json['nextToken'] as String?, tunnelSummaries: (json['tunnelSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TunnelSummary.fromJson(e as Map)) .toList(), ); @@ -699,7 +697,7 @@ class Tunnel { : null, status: (json['status'] as String?)?.let(TunnelStatus.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), timeoutConfig: json['timeoutConfig'] != null diff --git a/generated/aws_iotsecuretunneling_api/pubspec.yaml b/generated/aws_iotsecuretunneling_api/pubspec.yaml index 70479ce10..86e13e61c 100644 --- a/generated/aws_iotsecuretunneling_api/pubspec.yaml +++ b/generated/aws_iotsecuretunneling_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_iotsec protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_iotthingsgraph_api/lib/iotthingsgraph-2018-09-06.dart b/generated/aws_iotthingsgraph_api/lib/iotthingsgraph-2018-09-06.dart index 1d2f4b184..e963bad72 100644 --- a/generated/aws_iotthingsgraph_api/lib/iotthingsgraph-2018-09-06.dart +++ b/generated/aws_iotthingsgraph_api/lib/iotthingsgraph-2018-09-06.dart @@ -2298,7 +2298,7 @@ class GetEntitiesResponse { factory GetEntitiesResponse.fromJson(Map json) { return GetEntitiesResponse( descriptions: (json['descriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityDescription.fromJson(e as Map)) .toList(), ); @@ -2340,7 +2340,7 @@ class GetFlowTemplateRevisionsResponse { return GetFlowTemplateRevisionsResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlowTemplateSummary.fromJson(e as Map)) .toList(), ); @@ -2440,7 +2440,7 @@ class GetSystemTemplateRevisionsResponse { return GetSystemTemplateRevisionsResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SystemTemplateSummary.fromJson(e as Map)) .toList(), ); @@ -2487,7 +2487,7 @@ class GetUploadStatusResponse { uploadId: json['uploadId'] as String, uploadStatus: UploadStatus.fromString((json['uploadStatus'] as String)), failureReason: (json['failureReason'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), namespaceArn: json['namespaceArn'] as String?, @@ -2515,7 +2515,7 @@ class ListFlowExecutionMessagesResponse { Map json) { return ListFlowExecutionMessagesResponse( messages: (json['messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlowExecutionMessage.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2539,7 +2539,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['nextToken'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2623,7 +2623,7 @@ class SearchEntitiesResponse { factory SearchEntitiesResponse.fromJson(Map json) { return SearchEntitiesResponse( descriptions: (json['descriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityDescription.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2649,7 +2649,7 @@ class SearchFlowExecutionsResponse { return SearchFlowExecutionsResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlowExecutionSummary.fromJson(e as Map)) .toList(), ); @@ -2674,7 +2674,7 @@ class SearchFlowTemplatesResponse { return SearchFlowTemplatesResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FlowTemplateSummary.fromJson(e as Map)) .toList(), ); @@ -2699,7 +2699,7 @@ class SearchSystemInstancesResponse { return SearchSystemInstancesResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SystemInstanceSummary.fromJson(e as Map)) .toList(), ); @@ -2724,7 +2724,7 @@ class SearchSystemTemplatesResponse { return SearchSystemTemplatesResponse( nextToken: json['nextToken'] as String?, summaries: (json['summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SystemTemplateSummary.fromJson(e as Map)) .toList(), ); @@ -2748,7 +2748,7 @@ class SearchThingsResponse { return SearchThingsResponse( nextToken: json['nextToken'] as String?, things: (json['things'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Thing.fromJson(e as Map)) .toList(), ); @@ -2831,7 +2831,7 @@ class SystemInstanceDescription { : null, validatedDependencyRevisions: (json['validatedDependencyRevisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DependencyRevision.fromJson(e as Map)) .toList(), validatedNamespaceVersion: json['validatedNamespaceVersion'] as int?, diff --git a/generated/aws_iotthingsgraph_api/pubspec.yaml b/generated/aws_iotthingsgraph_api/pubspec.yaml index 4f41c0aa7..2a2f23705 100644 --- a/generated/aws_iotthingsgraph_api/pubspec.yaml +++ b/generated/aws_iotthingsgraph_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_iotthi protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_kafka_api/lib/kafka-2018-11-14.dart b/generated/aws_kafka_api/lib/kafka-2018-11-14.dart index ba5a46bb5..7a80ea42b 100644 --- a/generated/aws_kafka_api/lib/kafka-2018-11-14.dart +++ b/generated/aws_kafka_api/lib/kafka-2018-11-14.dart @@ -2373,7 +2373,7 @@ class BatchAssociateScramSecretResponse { return BatchAssociateScramSecretResponse( clusterArn: json['clusterArn'] as String?, unprocessedScramSecrets: (json['unprocessedScramSecrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => UnprocessedScramSecret.fromJson(e as Map)) .toList(), @@ -2427,11 +2427,11 @@ class BrokerCountUpdateInfo { factory BrokerCountUpdateInfo.fromJson(Map json) { return BrokerCountUpdateInfo( createdBrokerIds: (json['createdBrokerIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), deletedBrokerIds: (json['deletedBrokerIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -2595,7 +2595,7 @@ class BrokerNodeGroupInfo { factory BrokerNodeGroupInfo.fromJson(Map json) { return BrokerNodeGroupInfo( clientSubnets: (json['clientSubnets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), instanceType: json['instanceType'] as String, @@ -2606,16 +2606,14 @@ class BrokerNodeGroupInfo { json['connectivityInfo'] as Map) : null, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), storageInfo: json['storageInfo'] != null ? StorageInfo.fromJson(json['storageInfo'] as Map) : null, - zoneIds: (json['zoneIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + zoneIds: + (json['zoneIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -2695,7 +2693,7 @@ class BrokerNodeInfo { json['currentBrokerSoftwareInfo'] as Map) : null, endpoints: (json['endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3270,7 +3268,7 @@ class ClusterOperationInfo { operationArn: json['operationArn'] as String?, operationState: json['operationState'] as String?, operationSteps: (json['operationSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterOperationStep.fromJson(e as Map)) .toList(), operationType: json['operationType'] as String?, @@ -3616,12 +3614,10 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( - subnetIds: (json['subnetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3689,7 +3685,7 @@ class Serverless { factory Serverless.fromJson(Map json) { return Serverless( vpcConfigs: (json['vpcConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => VpcConfig.fromJson(e as Map)) .toList(), clientAuthentication: json['clientAuthentication'] != null @@ -3827,7 +3823,7 @@ class CompatibleKafkaVersion { return CompatibleKafkaVersion( sourceVersion: json['sourceVersion'] as String?, targetVersions: (json['targetVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3893,7 +3889,7 @@ class Configuration { nonNullableTimeStampFromJson(json['creationTime'] as Object), description: json['description'] as String, kafkaVersions: (json['kafkaVersions'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), latestRevision: ConfigurationRevision.fromJson( @@ -4061,11 +4057,11 @@ class ConsumerGroupReplication { factory ConsumerGroupReplication.fromJson(Map json) { return ConsumerGroupReplication( consumerGroupsToReplicate: (json['consumerGroupsToReplicate'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), consumerGroupsToExclude: (json['consumerGroupsToExclude'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), detectAndCopyNewConsumerGroups: @@ -4334,12 +4330,12 @@ class CreateVpcConnectionResponse { return CreateVpcConnectionResponse( authentication: json['authentication'] as String?, clientSubnets: (json['clientSubnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['creationTime']), securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), state: (json['state'] as String?)?.let(VpcConnectionState.fromString), @@ -4462,7 +4458,7 @@ class ClusterOperationV2Provisioned { factory ClusterOperationV2Provisioned.fromJson(Map json) { return ClusterOperationV2Provisioned( operationSteps: (json['operationSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterOperationStep.fromJson(e as Map)) .toList(), sourceClusterInfo: json['sourceClusterInfo'] != null @@ -4574,7 +4570,7 @@ class ControllerNodeInfo { factory ControllerNodeInfo.fromJson(Map json) { return ControllerNodeInfo( endpoints: (json['endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4835,7 +4831,7 @@ class DescribeConfigurationResponse { creationTime: timeStampFromJson(json['creationTime']), description: json['description'] as String?, kafkaVersions: (json['kafkaVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), latestRevision: json['latestRevision'] != null @@ -4963,12 +4959,12 @@ class DescribeReplicatorResponse { currentVersion: json['currentVersion'] as String?, isReplicatorReference: json['isReplicatorReference'] as bool?, kafkaClusters: (json['kafkaClusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KafkaClusterDescription.fromJson(e as Map)) .toList(), replicationInfoList: (json['replicationInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationInfoDescription.fromJson(e as Map)) .toList(), @@ -5053,14 +5049,12 @@ class DescribeVpcConnectionResponse { authentication: json['authentication'] as String?, creationTime: timeStampFromJson(json['creationTime']), securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), state: (json['state'] as String?)?.let(VpcConnectionState.fromString), - subnets: (json['subnets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), targetClusterArn: json['targetClusterArn'] as String?, @@ -5091,7 +5085,7 @@ class BatchDisassociateScramSecretResponse { return BatchDisassociateScramSecretResponse( clusterArn: json['clusterArn'] as String?, unprocessedScramSecrets: (json['unprocessedScramSecrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => UnprocessedScramSecret.fromJson(e as Map)) .toList(), @@ -5457,7 +5451,7 @@ class GetCompatibleKafkaVersionsResponse { Map json) { return GetCompatibleKafkaVersionsResponse( compatibleKafkaVersions: (json['compatibleKafkaVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CompatibleKafkaVersion.fromJson(e as Map)) .toList(), @@ -5530,12 +5524,10 @@ class KafkaClusterClientVpcConfig { factory KafkaClusterClientVpcConfig.fromJson(Map json) { return KafkaClusterClientVpcConfig( - subnetIds: (json['subnetIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnetIds: + (json['subnetIds'] as List).nonNulls.map((e) => e as String).toList(), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5662,7 +5654,7 @@ class ListClusterOperationsResponse { factory ListClusterOperationsResponse.fromJson(Map json) { return ListClusterOperationsResponse( clusterOperationInfoList: (json['clusterOperationInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterOperationInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5689,7 +5681,7 @@ class ListClusterOperationsV2Response { factory ListClusterOperationsV2Response.fromJson(Map json) { return ListClusterOperationsV2Response( clusterOperationInfoList: (json['clusterOperationInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterOperationV2Summary.fromJson(e as Map)) .toList(), @@ -5719,7 +5711,7 @@ class ListClustersResponse { factory ListClustersResponse.fromJson(Map json) { return ListClustersResponse( clusterInfoList: (json['clusterInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5748,7 +5740,7 @@ class ListClustersV2Response { factory ListClustersV2Response.fromJson(Map json) { return ListClustersV2Response( clusterInfoList: (json['clusterInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cluster.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5777,7 +5769,7 @@ class ListConfigurationRevisionsResponse { return ListConfigurationRevisionsResponse( nextToken: json['nextToken'] as String?, revisions: (json['revisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationRevision.fromJson(e as Map)) .toList(), ); @@ -5806,7 +5798,7 @@ class ListConfigurationsResponse { factory ListConfigurationsResponse.fromJson(Map json) { return ListConfigurationsResponse( configurations: (json['configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5826,7 +5818,7 @@ class ListKafkaVersionsResponse { factory ListKafkaVersionsResponse.fromJson(Map json) { return ListKafkaVersionsResponse( kafkaVersions: (json['kafkaVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KafkaVersion.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5856,7 +5848,7 @@ class ListNodesResponse { return ListNodesResponse( nextToken: json['nextToken'] as String?, nodeInfoList: (json['nodeInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NodeInfo.fromJson(e as Map)) .toList(), ); @@ -5881,7 +5873,7 @@ class ListReplicatorsResponse { return ListReplicatorsResponse( nextToken: json['nextToken'] as String?, replicators: (json['replicators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicatorSummary.fromJson(e as Map)) .toList(), ); @@ -5908,7 +5900,7 @@ class ListScramSecretsResponse { return ListScramSecretsResponse( nextToken: json['nextToken'] as String?, secretArnList: (json['secretArnList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5955,7 +5947,7 @@ class ListClientVpcConnectionsResponse { factory ListClientVpcConnectionsResponse.fromJson(Map json) { return ListClientVpcConnectionsResponse( clientVpcConnections: (json['clientVpcConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClientVpcConnection.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5986,7 +5978,7 @@ class ListVpcConnectionsResponse { return ListVpcConnectionsResponse( nextToken: json['nextToken'] as String?, vpcConnections: (json['vpcConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcConnection.fromJson(e as Map)) .toList(), ); @@ -6118,7 +6110,7 @@ class MutableClusterInfo { json['brokerCountUpdateInfo'] as Map) : null, brokerEBSVolumeInfo: (json['brokerEBSVolumeInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BrokerEBSVolumeInfo.fromJson(e as Map)) .toList(), clientAuthentication: json['clientAuthentication'] != null @@ -7047,11 +7039,11 @@ class ReplicatorSummary { currentVersion: json['currentVersion'] as String?, isReplicatorReference: json['isReplicatorReference'] as bool?, kafkaClustersSummary: (json['kafkaClustersSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KafkaClusterSummary.fromJson(e as Map)) .toList(), replicationInfoSummaryList: (json['replicationInfoSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ReplicationInfoSummary.fromJson(e as Map)) .toList(), @@ -7168,7 +7160,7 @@ class Tls { return Tls( certificateAuthorityArnList: (json['certificateAuthorityArnList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), enabled: json['enabled'] as bool?, @@ -7249,7 +7241,7 @@ class TopicReplication { factory TopicReplication.fromJson(Map json) { return TopicReplication( topicsToReplicate: (json['topicsToReplicate'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), copyAccessControlListsForTopics: @@ -7261,7 +7253,7 @@ class TopicReplication { json['startingPosition'] as Map) : null, topicsToExclude: (json['topicsToExclude'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7879,7 +7871,7 @@ class ZookeeperNodeInfo { attachedENIId: json['attachedENIId'] as String?, clientVpcIpAddress: json['clientVpcIpAddress'] as String?, endpoints: (json['endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), zookeeperId: json['zookeeperId'] as double?, diff --git a/generated/aws_kafka_api/pubspec.yaml b/generated/aws_kafka_api/pubspec.yaml index 5fc5581d2..3441e512e 100644 --- a/generated/aws_kafka_api/pubspec.yaml +++ b/generated/aws_kafka_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_kafka_ protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_kendra_api/lib/kendra-2019-02-03.dart b/generated/aws_kendra_api/lib/kendra-2019-02-03.dart index 875fd9520..a164b87a7 100644 --- a/generated/aws_kendra_api/lib/kendra-2019-02-03.dart +++ b/generated/aws_kendra_api/lib/kendra-2019-02-03.dart @@ -4591,7 +4591,7 @@ class AlfrescoConfiguration { sslCertificateS3Path: S3Path.fromJson(json['SslCertificateS3Path'] as Map), blogFieldMappings: (json['BlogFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -4599,20 +4599,20 @@ class AlfrescoConfiguration { crawlSystemFolders: json['CrawlSystemFolders'] as bool?, documentLibraryFieldMappings: (json['DocumentLibraryFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), entityFilter: (json['EntityFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlfrescoEntity.fromString((e as String))) .toList(), exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcConfiguration: json['VpcConfiguration'] != null @@ -4620,7 +4620,7 @@ class AlfrescoConfiguration { json['VpcConfiguration'] as Map) : null, wikiFieldMappings: (json['WikiFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -4690,7 +4690,7 @@ class AssociateEntitiesToExperienceResponse { Map json) { return AssociateEntitiesToExperienceResponse( failedEntityList: (json['FailedEntityList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedEntity.fromJson(e as Map)) .toList(), ); @@ -4710,7 +4710,7 @@ class AssociatePersonasToEntitiesResponse { Map json) { return AssociatePersonasToEntitiesResponse( failedEntityList: (json['FailedEntityList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedEntity.fromJson(e as Map)) .toList(), ); @@ -4880,7 +4880,7 @@ class AttributeSuggestionsDescribeConfig { attributeSuggestionsMode: (json['AttributeSuggestionsMode'] as String?) ?.let(AttributeSuggestionsMode.fromString), suggestableConfigList: (json['SuggestableConfigList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuggestableConfig.fromJson(e as Map)) .toList(), ); @@ -5009,7 +5009,7 @@ class AuthenticationConfiguration { factory AuthenticationConfiguration.fromJson(Map json) { return AuthenticationConfiguration( basicAuthentication: (json['BasicAuthentication'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BasicAuthenticationConfiguration.fromJson( e as Map)) .toList(), @@ -5089,7 +5089,7 @@ class BatchDeleteDocumentResponse { factory BatchDeleteDocumentResponse.fromJson(Map json) { return BatchDeleteDocumentResponse( failedDocuments: (json['FailedDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchDeleteDocumentResponseFailedDocument.fromJson( e as Map)) .toList(), @@ -5171,7 +5171,7 @@ class BatchDeleteFeaturedResultsSetResponse { Map json) { return BatchDeleteFeaturedResultsSetResponse( errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchDeleteFeaturedResultsSetError.fromJson( e as Map)) .toList(), @@ -5198,11 +5198,11 @@ class BatchGetDocumentStatusResponse { factory BatchGetDocumentStatusResponse.fromJson(Map json) { return BatchGetDocumentStatusResponse( documentStatusList: (json['DocumentStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Status.fromJson(e as Map)) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchGetDocumentStatusResponseError.fromJson( e as Map)) .toList(), @@ -5256,7 +5256,7 @@ class BatchPutDocumentResponse { factory BatchPutDocumentResponse.fromJson(Map json) { return BatchPutDocumentResponse( failedDocuments: (json['FailedDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPutDocumentResponseFailedDocument.fromJson( e as Map)) .toList(), @@ -5423,7 +5423,7 @@ class BoxConfiguration { enterpriseId: json['EnterpriseId'] as String, secretArn: json['SecretArn'] as String, commentFieldMappings: (json['CommentFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -5431,20 +5431,20 @@ class BoxConfiguration { crawlTasks: json['CrawlTasks'] as bool?, crawlWebLinks: json['CrawlWebLinks'] as bool?, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fileFieldMappings: (json['FileFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), taskFieldMappings: (json['TaskFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -5454,7 +5454,7 @@ class BoxConfiguration { json['VpcConfiguration'] as Map) : null, webLinkFieldMappings: (json['WebLinkFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -5655,7 +5655,7 @@ class CollapsedResultDetail { documentAttribute: DocumentAttribute.fromJson( json['DocumentAttribute'] as Map), expandedResults: (json['ExpandedResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpandedResultItem.fromJson(e as Map)) .toList(), ); @@ -5694,14 +5694,14 @@ class ColumnConfiguration { factory ColumnConfiguration.fromJson(Map json) { return ColumnConfiguration( changeDetectingColumns: (json['ChangeDetectingColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), documentDataColumnName: json['DocumentDataColumnName'] as String, documentIdColumnName: json['DocumentIdColumnName'] as String, documentTitleColumnName: json['DocumentTitleColumnName'] as String?, fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -5776,7 +5776,7 @@ class ConfluenceAttachmentConfiguration { Map json) { return ConfluenceAttachmentConfiguration( attachmentFieldMappings: (json['AttachmentFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfluenceAttachmentToIndexFieldMapping.fromJson( e as Map)) .toList(), @@ -5908,7 +5908,7 @@ class ConfluenceBlogConfiguration { factory ConfluenceBlogConfiguration.fromJson(Map json) { return ConfluenceBlogConfiguration( blogFieldMappings: (json['BlogFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfluenceBlogToIndexFieldMapping.fromJson( e as Map)) .toList(), @@ -6104,11 +6104,11 @@ class ConfluenceConfiguration { json['BlogConfiguration'] as Map) : null, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), pageConfiguration: json['PageConfiguration'] != null @@ -6182,7 +6182,7 @@ class ConfluencePageConfiguration { factory ConfluencePageConfiguration.fromJson(Map json) { return ConfluencePageConfiguration( pageFieldMappings: (json['PageFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfluencePageToIndexFieldMapping.fromJson( e as Map)) .toList(), @@ -6321,15 +6321,15 @@ class ConfluenceSpaceConfiguration { crawlArchivedSpaces: json['CrawlArchivedSpaces'] as bool?, crawlPersonalSpaces: json['CrawlPersonalSpaces'] as bool?, excludeSpaces: (json['ExcludeSpaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includeSpaces: (json['IncludeSpaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), spaceFieldMappings: (json['SpaceFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfluenceSpaceToIndexFieldMapping.fromJson( e as Map)) .toList(), @@ -6518,14 +6518,12 @@ class ContentSourceConfiguration { factory ContentSourceConfiguration.fromJson(Map json) { return ContentSourceConfiguration( dataSourceIds: (json['DataSourceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), directPutContent: json['DirectPutContent'] as bool?, - faqIds: (json['FaqIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + faqIds: + (json['FaqIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6773,7 +6771,7 @@ class CustomDocumentEnrichmentConfiguration { Map json) { return CustomDocumentEnrichmentConfiguration( inlineConfigurations: (json['InlineConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InlineCustomDocumentEnrichmentConfiguration.fromJson( e as Map)) .toList(), @@ -7466,13 +7464,11 @@ class DataSourceVpcConfiguration { factory DataSourceVpcConfiguration.fromJson(Map json) { return DataSourceVpcConfiguration( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['SubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['SubnetIds'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -7629,14 +7625,14 @@ class DescribeAccessControlConfigurationResponse { return DescribeAccessControlConfigurationResponse( name: json['Name'] as String, accessControlList: (json['AccessControlList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Principal.fromJson(e as Map)) .toList(), description: json['Description'] as String?, errorMessage: json['ErrorMessage'] as String?, hierarchicalAccessControlList: (json['HierarchicalAccessControlList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HierarchicalPrincipal.fromJson(e as Map)) .toList(), ); @@ -7830,7 +7826,7 @@ class DescribeExperienceResponse { createdAt: timeStampFromJson(json['CreatedAt']), description: json['Description'] as String?, endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperienceEndpoint.fromJson(e as Map)) .toList(), errorMessage: json['ErrorMessage'] as String?, @@ -7986,13 +7982,13 @@ class DescribeFeaturedResultsSetResponse { creationTimestamp: json['CreationTimestamp'] as int?, description: json['Description'] as String?, featuredDocumentsMissing: (json['FeaturedDocumentsMissing'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeaturedDocumentMissing.fromJson(e as Map)) .toList(), featuredDocumentsWithMetadata: (json['FeaturedDocumentsWithMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeaturedDocumentWithMetadata.fromJson(e as Map)) .toList(), @@ -8000,7 +7996,7 @@ class DescribeFeaturedResultsSetResponse { featuredResultsSetName: json['FeaturedResultsSetName'] as String?, lastUpdatedTimestamp: json['LastUpdatedTimestamp'] as int?, queryTexts: (json['QueryTexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: @@ -8105,7 +8101,7 @@ class DescribeIndexResponse { description: json['Description'] as String?, documentMetadataConfigurations: (json['DocumentMetadataConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentMetadataConfiguration.fromJson(e as Map)) .toList(), @@ -8135,7 +8131,7 @@ class DescribeIndexResponse { as Map) : null, userTokenConfigurations: (json['UserTokenConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => UserTokenConfiguration.fromJson(e as Map)) .toList(), @@ -8196,7 +8192,7 @@ class DescribePrincipalMappingResponse { dataSourceId: json['DataSourceId'] as String?, groupId: json['GroupId'] as String?, groupOrderingIdSummaries: (json['GroupOrderingIdSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GroupOrderingIdSummary.fromJson(e as Map)) .toList(), @@ -8492,7 +8488,7 @@ class DisassociateEntitiesFromExperienceResponse { Map json) { return DisassociateEntitiesFromExperienceResponse( failedEntityList: (json['FailedEntityList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedEntity.fromJson(e as Map)) .toList(), ); @@ -8512,7 +8508,7 @@ class DisassociatePersonasFromEntitiesResponse { Map json) { return DisassociatePersonasFromEntitiesResponse( failedEntityList: (json['FailedEntityList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedEntity.fromJson(e as Map)) .toList(), ); @@ -8820,7 +8816,7 @@ class DocumentAttributeValue { dateValue: timeStampFromJson(json['DateValue']), longValue: json['LongValue'] as int?, stringListValue: (json['StringListValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stringValue: json['StringValue'] as String?, @@ -8879,7 +8875,7 @@ class DocumentAttributeValueCountPair { json['DocumentAttributeValue'] as Map) : null, facetResults: (json['FacetResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FacetResult.fromJson(e as Map)) .toList(), ); @@ -9279,7 +9275,7 @@ class ExpandedResultItem { factory ExpandedResultItem.fromJson(Map json) { return ExpandedResultItem( documentAttributes: (json['DocumentAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttribute.fromJson(e as Map)) .toList(), documentExcerpt: json['DocumentExcerpt'] != null @@ -9451,7 +9447,7 @@ class ExperiencesSummary { return ExperiencesSummary( createdAt: timeStampFromJson(json['CreatedAt']), endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperienceEndpoint.fromJson(e as Map)) .toList(), id: json['Id'] as String?, @@ -9539,7 +9535,7 @@ class FacetResult { documentAttributeKey: json['DocumentAttributeKey'] as String?, documentAttributeValueCountPairs: (json['DocumentAttributeValueCountPairs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttributeValueCountPair.fromJson( e as Map)) .toList(), @@ -9813,12 +9809,12 @@ class FeaturedResultsItem { factory FeaturedResultsItem.fromJson(Map json) { return FeaturedResultsItem( additionalAttributes: (json['AdditionalAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalResultAttribute.fromJson(e as Map)) .toList(), documentAttributes: (json['DocumentAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttribute.fromJson(e as Map)) .toList(), documentExcerpt: json['DocumentExcerpt'] != null @@ -9914,14 +9910,14 @@ class FeaturedResultsSet { creationTimestamp: json['CreationTimestamp'] as int?, description: json['Description'] as String?, featuredDocuments: (json['FeaturedDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeaturedDocument.fromJson(e as Map)) .toList(), featuredResultsSetId: json['FeaturedResultsSetId'] as String?, featuredResultsSetName: json['FeaturedResultsSetName'] as String?, lastUpdatedTimestamp: json['LastUpdatedTimestamp'] as int?, queryTexts: (json['QueryTexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: @@ -10090,16 +10086,16 @@ class FsxConfiguration { vpcConfiguration: DataSourceVpcConfiguration.fromJson( json['VpcConfiguration'] as Map), exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), secretArn: json['SecretArn'] as String?, @@ -10156,7 +10152,7 @@ class GetQuerySuggestionsResponse { return GetQuerySuggestionsResponse( querySuggestionsId: json['QuerySuggestionsId'] as String?, suggestions: (json['Suggestions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Suggestion.fromJson(e as Map)) .toList(), ); @@ -10194,12 +10190,11 @@ class GetSnapshotsResponse { json['SnapShotTimeFilter'] as Map) : null, snapshotsData: (json['SnapshotsData'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), snapshotsDataHeader: (json['SnapshotsDataHeader'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -10429,21 +10424,21 @@ class GitHubConfiguration { return GitHubConfiguration( secretArn: json['SecretArn'] as String, exclusionFileNamePatterns: (json['ExclusionFileNamePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), exclusionFileTypePatterns: (json['ExclusionFileTypePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), exclusionFolderNamePatterns: (json['ExclusionFolderNamePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), gitHubCommitConfigurationFieldMappings: (json['GitHubCommitConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), @@ -10454,58 +10449,58 @@ class GitHubConfiguration { : null, gitHubIssueAttachmentConfigurationFieldMappings: (json['GitHubIssueAttachmentConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), gitHubIssueCommentConfigurationFieldMappings: (json['GitHubIssueCommentConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), gitHubIssueDocumentConfigurationFieldMappings: (json['GitHubIssueDocumentConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), gitHubPullRequestCommentConfigurationFieldMappings: (json['GitHubPullRequestCommentConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), gitHubPullRequestDocumentAttachmentConfigurationFieldMappings: (json['GitHubPullRequestDocumentAttachmentConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), gitHubPullRequestDocumentConfigurationFieldMappings: (json['GitHubPullRequestDocumentConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), gitHubRepositoryConfigurationFieldMappings: (json['GitHubRepositoryConfigurationFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson( e as Map)) .toList(), inclusionFileNamePatterns: (json['InclusionFileNamePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionFileTypePatterns: (json['InclusionFileTypePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionFolderNamePatterns: (json['InclusionFolderNamePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), onPremiseConfiguration: json['OnPremiseConfiguration'] != null @@ -10513,7 +10508,7 @@ class GitHubConfiguration { json['OnPremiseConfiguration'] as Map) : null, repositoryFilter: (json['RepositoryFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), saaSConfiguration: json['SaaSConfiguration'] != null @@ -10749,28 +10744,28 @@ class GoogleDriveConfiguration { return GoogleDriveConfiguration( secretArn: json['SecretArn'] as String, excludeMimeTypes: (json['ExcludeMimeTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), excludeSharedDrives: (json['ExcludeSharedDrives'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), excludeUserAccounts: (json['ExcludeUserAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -10931,7 +10926,7 @@ class HierarchicalPrincipal { factory HierarchicalPrincipal.fromJson(Map json) { return HierarchicalPrincipal( principalList: (json['PrincipalList'] as List) - .whereNotNull() + .nonNulls .map((e) => Principal.fromJson(e as Map)) .toList(), ); @@ -11383,56 +11378,52 @@ class JiraConfiguration { jiraAccountUrl: json['JiraAccountUrl'] as String, secretArn: json['SecretArn'] as String, attachmentFieldMappings: (json['AttachmentFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), commentFieldMappings: (json['CommentFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), issueFieldMappings: (json['IssueFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), issueSubEntityFilter: (json['IssueSubEntityFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IssueSubEntity.fromString((e as String))) .toList(), issueType: (json['IssueType'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - project: (json['Project'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + project: + (json['Project'] as List?)?.nonNulls.map((e) => e as String).toList(), projectFieldMappings: (json['ProjectFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), - status: (json['Status'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + status: + (json['Status'] as List?)?.nonNulls.map((e) => e as String).toList(), useChangeLog: json['UseChangeLog'] as bool?, vpcConfiguration: json['VpcConfiguration'] != null ? DataSourceVpcConfiguration.fromJson( json['VpcConfiguration'] as Map) : null, workLogFieldMappings: (json['WorkLogFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -11610,7 +11601,7 @@ class ListAccessControlConfigurationsResponse { Map json) { return ListAccessControlConfigurationsResponse( accessControlConfigurations: (json['AccessControlConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => AccessControlConfigurationSummary.fromJson( e as Map)) .toList(), @@ -11635,7 +11626,7 @@ class ListDataSourceSyncJobsResponse { factory ListDataSourceSyncJobsResponse.fromJson(Map json) { return ListDataSourceSyncJobsResponse( history: (json['History'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceSyncJob.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11661,7 +11652,7 @@ class ListDataSourcesResponse { return ListDataSourcesResponse( nextToken: json['NextToken'] as String?, summaryItems: (json['SummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceSummary.fromJson(e as Map)) .toList(), ); @@ -11685,7 +11676,7 @@ class ListEntityPersonasResponse { return ListEntityPersonasResponse( nextToken: json['NextToken'] as String?, summaryItems: (json['SummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PersonasSummary.fromJson(e as Map)) .toList(), ); @@ -11709,7 +11700,7 @@ class ListExperienceEntitiesResponse { return ListExperienceEntitiesResponse( nextToken: json['NextToken'] as String?, summaryItems: (json['SummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperienceEntitiesSummary.fromJson(e as Map)) .toList(), @@ -11735,7 +11726,7 @@ class ListExperiencesResponse { return ListExperiencesResponse( nextToken: json['NextToken'] as String?, summaryItems: (json['SummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperiencesSummary.fromJson(e as Map)) .toList(), ); @@ -11758,7 +11749,7 @@ class ListFaqsResponse { factory ListFaqsResponse.fromJson(Map json) { return ListFaqsResponse( faqSummaryItems: (json['FaqSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaqSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11783,7 +11774,7 @@ class ListFeaturedResultsSetsResponse { return ListFeaturedResultsSetsResponse( featuredResultsSetSummaryItems: (json['FeaturedResultsSetSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeaturedResultsSetSummary.fromJson(e as Map)) .toList(), @@ -11811,7 +11802,7 @@ class ListGroupsOlderThanOrderingIdResponse { Map json) { return ListGroupsOlderThanOrderingIdResponse( groupsSummaries: (json['GroupsSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11836,7 +11827,7 @@ class ListIndicesResponse { return ListIndicesResponse( indexConfigurationSummaryItems: (json['IndexConfigurationSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IndexConfigurationSummary.fromJson(e as Map)) .toList(), @@ -11870,7 +11861,7 @@ class ListQuerySuggestionsBlockListsResponse { Map json) { return ListQuerySuggestionsBlockListsResponse( blockListSummaryItems: (json['BlockListSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QuerySuggestionsBlockListSummary.fromJson( e as Map)) .toList(), @@ -11890,7 +11881,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11914,7 +11905,7 @@ class ListThesauriResponse { return ListThesauriResponse( nextToken: json['NextToken'] as String?, thesaurusSummaryItems: (json['ThesaurusSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThesaurusSummary.fromJson(e as Map)) .toList(), ); @@ -12123,16 +12114,16 @@ class OneDriveConfiguration { tenantDomain: json['TenantDomain'] as String, disableLocalGroups: json['DisableLocalGroups'] as bool?, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12179,7 +12170,7 @@ class OneDriveUsers { factory OneDriveUsers.fromJson(Map json) { return OneDriveUsers( oneDriveUserList: (json['OneDriveUserList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), oneDriveUserS3Path: json['OneDriveUserS3Path'] != null @@ -12467,25 +12458,25 @@ class QueryResult { factory QueryResult.fromJson(Map json) { return QueryResult( facetResults: (json['FacetResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FacetResult.fromJson(e as Map)) .toList(), featuredResultsItems: (json['FeaturedResultsItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeaturedResultsItem.fromJson(e as Map)) .toList(), queryId: json['QueryId'] as String?, resultItems: (json['ResultItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryResultItem.fromJson(e as Map)) .toList(), spellCorrectedQueries: (json['SpellCorrectedQueries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SpellCorrectedQuery.fromJson(e as Map)) .toList(), totalNumberOfResults: json['TotalNumberOfResults'] as int?, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -12596,7 +12587,7 @@ class QueryResultItem { factory QueryResultItem.fromJson(Map json) { return QueryResultItem( additionalAttributes: (json['AdditionalAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalResultAttribute.fromJson(e as Map)) .toList(), @@ -12605,7 +12596,7 @@ class QueryResultItem { json['CollapsedResultDetail'] as Map) : null, documentAttributes: (json['DocumentAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttribute.fromJson(e as Map)) .toList(), documentExcerpt: json['DocumentExcerpt'] != null @@ -12837,7 +12828,7 @@ class QuipConfiguration { domain: json['Domain'] as String, secretArn: json['SecretArn'] as String, attachmentFieldMappings: (json['AttachmentFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -12845,24 +12836,24 @@ class QuipConfiguration { crawlChatRooms: json['CrawlChatRooms'] as bool?, crawlFileComments: json['CrawlFileComments'] as bool?, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), folderIds: (json['FolderIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), messageFieldMappings: (json['MessageFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), threadFieldMappings: (json['ThreadFieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -13067,7 +13058,7 @@ class RetrieveResult { return RetrieveResult( queryId: json['QueryId'] as String?, resultItems: (json['ResultItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RetrieveResultItem.fromJson(e as Map)) .toList(), ); @@ -13115,7 +13106,7 @@ class RetrieveResultItem { return RetrieveResultItem( content: json['Content'] as String?, documentAttributes: (json['DocumentAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttribute.fromJson(e as Map)) .toList(), documentId: json['DocumentId'] as String?, @@ -13271,15 +13262,15 @@ class S3DataSourceConfiguration { json['DocumentsMetadataConfiguration'] as Map) : null, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inclusionPrefixes: (json['InclusionPrefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -13404,12 +13395,12 @@ class SalesforceChatterFeedConfiguration { documentDataFieldName: json['DocumentDataFieldName'] as String, documentTitleFieldName: json['DocumentTitleFieldName'] as String?, fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), includeFilterTypes: (json['IncludeFilterTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SalesforceChatterFeedIncludeFilterType.fromString((e as String))) .toList(), @@ -13547,12 +13538,12 @@ class SalesforceConfiguration { crawlAttachments: json['CrawlAttachments'] as bool?, excludeAttachmentFilePatterns: (json['ExcludeAttachmentFilePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includeAttachmentFilePatterns: (json['IncludeAttachmentFilePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), knowledgeArticleConfiguration: @@ -13568,7 +13559,7 @@ class SalesforceConfiguration { : null, standardObjectConfigurations: (json['StandardObjectConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SalesforceStandardObjectConfiguration.fromJson( e as Map)) .toList(), @@ -13644,7 +13635,7 @@ class SalesforceCustomKnowledgeArticleTypeConfiguration { name: json['Name'] as String, documentTitleFieldName: json['DocumentTitleFieldName'] as String?, fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -13693,12 +13684,12 @@ class SalesforceKnowledgeArticleConfiguration { Map json) { return SalesforceKnowledgeArticleConfiguration( includedStates: (json['IncludedStates'] as List) - .whereNotNull() + .nonNulls .map((e) => SalesforceKnowledgeArticleState.fromString((e as String))) .toList(), customKnowledgeArticleTypeConfigurations: (json['CustomKnowledgeArticleTypeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SalesforceCustomKnowledgeArticleTypeConfiguration.fromJson( e as Map)) @@ -13775,7 +13766,7 @@ class SalesforceStandardKnowledgeArticleTypeConfiguration { documentDataFieldName: json['DocumentDataFieldName'] as String, documentTitleFieldName: json['DocumentTitleFieldName'] as String?, fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -13815,7 +13806,7 @@ class SalesforceStandardObjectAttachmentConfiguration { return SalesforceStandardObjectAttachmentConfiguration( documentTitleFieldName: json['DocumentTitleFieldName'] as String?, fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -13869,7 +13860,7 @@ class SalesforceStandardObjectConfiguration { name: SalesforceStandardObjectName.fromString((json['Name'] as String)), documentTitleFieldName: json['DocumentTitleFieldName'] as String?, fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), @@ -14053,10 +14044,8 @@ class SeedUrlConfiguration { factory SeedUrlConfiguration.fromJson(Map json) { return SeedUrlConfiguration( - seedUrls: (json['SeedUrls'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + seedUrls: + (json['SeedUrls'] as List).nonNulls.map((e) => e as String).toList(), webCrawlerMode: (json['WebCrawlerMode'] as String?)?.let(WebCrawlerMode.fromString), ); @@ -14284,18 +14273,18 @@ class ServiceNowKnowledgeArticleConfiguration { documentTitleFieldName: json['DocumentTitleFieldName'] as String?, excludeAttachmentFilePatterns: (json['ExcludeAttachmentFilePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), filterQuery: json['FilterQuery'] as String?, includeAttachmentFilePatterns: (json['IncludeAttachmentFilePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -14381,17 +14370,17 @@ class ServiceNowServiceCatalogConfiguration { documentTitleFieldName: json['DocumentTitleFieldName'] as String?, excludeAttachmentFilePatterns: (json['ExcludeAttachmentFilePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), includeAttachmentFilePatterns: (json['IncludeAttachmentFilePatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -14540,26 +14529,23 @@ class SharePointConfiguration { secretArn: json['SecretArn'] as String, sharePointVersion: SharePointVersion.fromString((json['SharePointVersion'] as String)), - urls: (json['Urls'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + urls: (json['Urls'] as List).nonNulls.map((e) => e as String).toList(), authenticationType: (json['AuthenticationType'] as String?) ?.let(SharePointOnlineAuthenticationType.fromString), crawlAttachments: json['CrawlAttachments'] as bool?, disableLocalGroups: json['DisableLocalGroups'] as bool?, documentTitleFieldName: json['DocumentTitleFieldName'] as String?, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), proxyConfiguration: json['ProxyConfiguration'] != null @@ -14666,10 +14652,8 @@ class SiteMapsConfiguration { factory SiteMapsConfiguration.fromJson(Map json) { return SiteMapsConfiguration( - siteMaps: (json['SiteMaps'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + siteMaps: + (json['SiteMaps'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -14818,32 +14802,32 @@ class SlackConfiguration { secretArn: json['SecretArn'] as String, sinceCrawlDate: json['SinceCrawlDate'] as String, slackEntityList: (json['SlackEntityList'] as List) - .whereNotNull() + .nonNulls .map((e) => SlackEntity.fromString((e as String))) .toList(), teamId: json['TeamId'] as String, crawlBotMessage: json['CrawlBotMessage'] as bool?, excludeArchived: json['ExcludeArchived'] as bool?, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lookBackPeriod: json['LookBackPeriod'] as int?, privateChannelFilter: (json['PrivateChannelFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), publicChannelFilter: (json['PublicChannelFilter'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), useChangeLog: json['UseChangeLog'] as bool?, @@ -15013,12 +14997,12 @@ class SourceDocument { factory SourceDocument.fromJson(Map json) { return SourceDocument( additionalAttributes: (json['AdditionalAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentAttribute.fromJson(e as Map)) .toList(), documentId: json['DocumentId'] as String?, suggestionAttributes: (json['SuggestionAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15041,7 +15025,7 @@ class SpellCorrectedQuery { factory SpellCorrectedQuery.fromJson(Map json) { return SpellCorrectedQuery( corrections: (json['Corrections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Correction.fromJson(e as Map)) .toList(), suggestedQueryText: json['SuggestedQueryText'] as String?, @@ -15228,7 +15212,7 @@ class Suggestion { return Suggestion( id: json['Id'] as String?, sourceDocuments: (json['SourceDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceDocument.fromJson(e as Map)) .toList(), value: json['Value'] != null @@ -15277,7 +15261,7 @@ class SuggestionTextWithHighlights { factory SuggestionTextWithHighlights.fromJson(Map json) { return SuggestionTextWithHighlights( highlights: (json['Highlights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuggestionHighlight.fromJson(e as Map)) .toList(), text: json['Text'] as String?, @@ -15375,7 +15359,7 @@ class TableExcerpt { factory TableExcerpt.fromJson(Map json) { return TableExcerpt( rows: (json['Rows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableRow.fromJson(e as Map)) .toList(), totalNumberOfRows: json['TotalNumberOfRows'] as int?, @@ -15395,7 +15379,7 @@ class TableRow { factory TableRow.fromJson(Map json) { return TableRow( cells: (json['Cells'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableCell.fromJson(e as Map)) .toList(), ); @@ -15530,7 +15514,7 @@ class TextWithHighlights { factory TextWithHighlights.fromJson(Map json) { return TextWithHighlights( highlights: (json['Highlights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Highlight.fromJson(e as Map)) .toList(), text: json['Text'] as String?, @@ -16092,11 +16076,11 @@ class WebCrawlerConfiguration { json['ProxyConfiguration'] as Map) : null, urlExclusionPatterns: (json['UrlExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), urlInclusionPatterns: (json['UrlInclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -16216,16 +16200,16 @@ class WorkDocsConfiguration { organizationId: json['OrganizationId'] as String, crawlComments: json['CrawlComments'] as bool?, exclusionPatterns: (json['ExclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fieldMappings: (json['FieldMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceToIndexFieldMapping.fromJson(e as Map)) .toList(), inclusionPatterns: (json['InclusionPatterns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), useChangeLog: json['UseChangeLog'] as bool?, diff --git a/generated/aws_kendra_api/pubspec.yaml b/generated/aws_kendra_api/pubspec.yaml index 26e2e3127..17e6ca6a5 100644 --- a/generated/aws_kendra_api/pubspec.yaml +++ b/generated/aws_kendra_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_kendra protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_kinesis_api/lib/kinesis-2013-12-02.dart b/generated/aws_kinesis_api/lib/kinesis-2013-12-02.dart index f5444ef6e..db101eba0 100644 --- a/generated/aws_kinesis_api/lib/kinesis-2013-12-02.dart +++ b/generated/aws_kinesis_api/lib/kinesis-2013-12-02.dart @@ -2569,7 +2569,7 @@ class ChildShard { hashKeyRange: HashKeyRange.fromJson(json['HashKeyRange'] as Map), parentShards: (json['ParentShards'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), shardId: json['ShardId'] as String, @@ -2824,7 +2824,7 @@ class EnhancedMetrics { factory EnhancedMetrics.fromJson(Map json) { return EnhancedMetrics( shardLevelMetrics: (json['ShardLevelMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricsName.fromString((e as String))) .toList(), ); @@ -2858,11 +2858,11 @@ class EnhancedMonitoringOutput { factory EnhancedMonitoringOutput.fromJson(Map json) { return EnhancedMonitoringOutput( currentShardLevelMetrics: (json['CurrentShardLevelMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricsName.fromString((e as String))) .toList(), desiredShardLevelMetrics: (json['DesiredShardLevelMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricsName.fromString((e as String))) .toList(), streamARN: json['StreamARN'] as String?, @@ -2902,11 +2902,11 @@ class GetRecordsOutput { factory GetRecordsOutput.fromJson(Map json) { return GetRecordsOutput( records: (json['Records'] as List) - .whereNotNull() + .nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), childShards: (json['ChildShards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChildShard.fromJson(e as Map)) .toList(), millisBehindLatest: json['MillisBehindLatest'] as int?, @@ -3003,7 +3003,7 @@ class ListShardsOutput { return ListShardsOutput( nextToken: json['NextToken'] as String?, shards: (json['Shards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Shard.fromJson(e as Map)) .toList(), ); @@ -3041,7 +3041,7 @@ class ListStreamConsumersOutput { factory ListStreamConsumersOutput.fromJson(Map json) { return ListStreamConsumersOutput( consumers: (json['Consumers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Consumer.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3075,12 +3075,12 @@ class ListStreamsOutput { return ListStreamsOutput( hasMoreStreams: json['HasMoreStreams'] as bool, streamNames: (json['StreamNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, streamSummaries: (json['StreamSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamSummary.fromJson(e as Map)) .toList(), ); @@ -3108,7 +3108,7 @@ class ListTagsForStreamOutput { return ListTagsForStreamOutput( hasMoreTags: json['HasMoreTags'] as bool, tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3212,7 +3212,7 @@ class PutRecordsOutput { factory PutRecordsOutput.fromJson(Map json) { return PutRecordsOutput( records: (json['Records'] as List) - .whereNotNull() + .nonNulls .map((e) => PutRecordsResultEntry.fromJson(e as Map)) .toList(), encryptionType: @@ -3673,13 +3673,13 @@ class StreamDescription { factory StreamDescription.fromJson(Map json) { return StreamDescription( enhancedMonitoring: (json['EnhancedMonitoring'] as List) - .whereNotNull() + .nonNulls .map((e) => EnhancedMetrics.fromJson(e as Map)) .toList(), hasMoreShards: json['HasMoreShards'] as bool, retentionPeriodHours: json['RetentionPeriodHours'] as int, shards: (json['Shards'] as List) - .whereNotNull() + .nonNulls .map((e) => Shard.fromJson(e as Map)) .toList(), streamARN: json['StreamARN'] as String, @@ -3811,7 +3811,7 @@ class StreamDescriptionSummary { factory StreamDescriptionSummary.fromJson(Map json) { return StreamDescriptionSummary( enhancedMonitoring: (json['EnhancedMonitoring'] as List) - .whereNotNull() + .nonNulls .map((e) => EnhancedMetrics.fromJson(e as Map)) .toList(), openShardCount: json['OpenShardCount'] as int, diff --git a/generated/aws_kinesis_api/pubspec.yaml b/generated/aws_kinesis_api/pubspec.yaml index 976862854..258905d81 100644 --- a/generated/aws_kinesis_api/pubspec.yaml +++ b/generated/aws_kinesis_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_kinesi protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_kinesis_video_archived_media_api/lib/kinesis-video-archived-media-2017-09-30.dart b/generated/aws_kinesis_video_archived_media_api/lib/kinesis-video-archived-media-2017-09-30.dart index 2f17f0909..d7a2f32a8 100644 --- a/generated/aws_kinesis_video_archived_media_api/lib/kinesis-video-archived-media-2017-09-30.dart +++ b/generated/aws_kinesis_video_archived_media_api/lib/kinesis-video-archived-media-2017-09-30.dart @@ -1754,7 +1754,7 @@ class GetImagesOutput { factory GetImagesOutput.fromJson(Map json) { return GetImagesOutput( images: (json['Images'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Image.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2072,7 +2072,7 @@ class ListFragmentsOutput { factory ListFragmentsOutput.fromJson(Map json) { return ListFragmentsOutput( fragments: (json['Fragments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Fragment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/generated/aws_kinesis_video_archived_media_api/pubspec.yaml b/generated/aws_kinesis_video_archived_media_api/pubspec.yaml index 146c2a050..1eeda24e8 100644 --- a/generated/aws_kinesis_video_archived_media_api/pubspec.yaml +++ b/generated/aws_kinesis_video_archived_media_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_kinesi protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_kinesis_video_media_api/pubspec.yaml b/generated/aws_kinesis_video_media_api/pubspec.yaml index 4e4454151..0a8875a91 100644 --- a/generated/aws_kinesis_video_media_api/pubspec.yaml +++ b/generated/aws_kinesis_video_media_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_kinesi protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_kinesis_video_signaling_api/lib/kinesis-video-signaling-2019-12-04.dart b/generated/aws_kinesis_video_signaling_api/lib/kinesis-video-signaling-2019-12-04.dart index 9ad46b53f..7f105edc3 100644 --- a/generated/aws_kinesis_video_signaling_api/lib/kinesis-video-signaling-2019-12-04.dart +++ b/generated/aws_kinesis_video_signaling_api/lib/kinesis-video-signaling-2019-12-04.dart @@ -165,7 +165,7 @@ class GetIceServerConfigResponse { factory GetIceServerConfigResponse.fromJson(Map json) { return GetIceServerConfigResponse( iceServerList: (json['IceServerList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IceServer.fromJson(e as Map)) .toList(), ); @@ -201,10 +201,7 @@ class IceServer { return IceServer( password: json['Password'] as String?, ttl: json['Ttl'] as int?, - uris: (json['Uris'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + uris: (json['Uris'] as List?)?.nonNulls.map((e) => e as String).toList(), username: json['Username'] as String?, ); } diff --git a/generated/aws_kinesis_video_signaling_api/pubspec.yaml b/generated/aws_kinesis_video_signaling_api/pubspec.yaml index 29238d08d..bca729679 100644 --- a/generated/aws_kinesis_video_signaling_api/pubspec.yaml +++ b/generated/aws_kinesis_video_signaling_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_kinesi protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_kinesisanalytics_api/lib/kinesisanalytics-2015-08-14.dart b/generated/aws_kinesisanalytics_api/lib/kinesisanalytics-2015-08-14.dart index 8688dc18f..b7c606ef2 100644 --- a/generated/aws_kinesisanalytics_api/lib/kinesisanalytics-2015-08-14.dart +++ b/generated/aws_kinesisanalytics_api/lib/kinesisanalytics-2015-08-14.dart @@ -1505,23 +1505,23 @@ class ApplicationDetail { applicationDescription: json['ApplicationDescription'] as String?, cloudWatchLoggingOptionDescriptions: (json['CloudWatchLoggingOptionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchLoggingOptionDescription.fromJson( e as Map)) .toList(), createTimestamp: timeStampFromJson(json['CreateTimestamp']), inputDescriptions: (json['InputDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDescription.fromJson(e as Map)) .toList(), lastUpdateTimestamp: timeStampFromJson(json['LastUpdateTimestamp']), outputDescriptions: (json['OutputDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDescription.fromJson(e as Map)) .toList(), referenceDataSourceDescriptions: (json['ReferenceDataSourceDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceDataSourceDescription.fromJson( e as Map)) .toList(), @@ -1894,16 +1894,15 @@ class DiscoverInputSchemaResponse { ? SourceSchema.fromJson(json['InputSchema'] as Map) : null, parsedInputRecords: (json['ParsedInputRecords'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), processedInputRecords: (json['ProcessedInputRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rawInputRecords: (json['RawInputRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2080,7 +2079,7 @@ class InputDescription { factory InputDescription.fromJson(Map json) { return InputDescription( inAppStreamNames: (json['InAppStreamNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inputId: json['InputId'] as String?, @@ -2930,7 +2929,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applicationSummaries: (json['ApplicationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), hasMoreApplications: json['HasMoreApplications'] as bool, @@ -2949,7 +2948,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3553,7 +3552,7 @@ class SourceSchema { factory SourceSchema.fromJson(Map json) { return SourceSchema( recordColumns: (json['RecordColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => RecordColumn.fromJson(e as Map)) .toList(), recordFormat: diff --git a/generated/aws_kinesisanalytics_api/pubspec.yaml b/generated/aws_kinesisanalytics_api/pubspec.yaml index 7a55dc886..6f87899e6 100644 --- a/generated/aws_kinesisanalytics_api/pubspec.yaml +++ b/generated/aws_kinesisanalytics_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_kinesi protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_kinesisanalyticsv2_api/lib/kinesisanalyticsv2-2018-05-23.dart b/generated/aws_kinesisanalyticsv2_api/lib/kinesisanalyticsv2-2018-05-23.dart index e068a6c8a..5b28c60ca 100644 --- a/generated/aws_kinesisanalyticsv2_api/lib/kinesisanalyticsv2-2018-05-23.dart +++ b/generated/aws_kinesisanalyticsv2_api/lib/kinesisanalyticsv2-2018-05-23.dart @@ -1862,7 +1862,7 @@ class AddApplicationCloudWatchLoggingOptionResponse { applicationVersionId: json['ApplicationVersionId'] as int?, cloudWatchLoggingOptionDescriptions: (json['CloudWatchLoggingOptionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchLoggingOptionDescription.fromJson( e as Map)) .toList(), @@ -1931,7 +1931,7 @@ class AddApplicationInputResponse { applicationARN: json['ApplicationARN'] as String?, applicationVersionId: json['ApplicationVersionId'] as int?, inputDescriptions: (json['InputDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDescription.fromJson(e as Map)) .toList(), ); @@ -1962,7 +1962,7 @@ class AddApplicationOutputResponse { applicationARN: json['ApplicationARN'] as String?, applicationVersionId: json['ApplicationVersionId'] as int?, outputDescriptions: (json['OutputDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDescription.fromJson(e as Map)) .toList(), ); @@ -1993,7 +1993,7 @@ class AddApplicationReferenceDataSourceResponse { applicationVersionId: json['ApplicationVersionId'] as int?, referenceDataSourceDescriptions: (json['ReferenceDataSourceDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceDataSourceDescription.fromJson( e as Map)) .toList(), @@ -2264,7 +2264,7 @@ class ApplicationConfigurationDescription { : null, vpcConfigurationDescriptions: (json['VpcConfigurationDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcConfigurationDescription.fromJson(e as Map)) .toList(), @@ -2473,7 +2473,7 @@ class ApplicationDetail { json['ApplicationVersionUpdatedFrom'] as int?, cloudWatchLoggingOptionDescriptions: (json['CloudWatchLoggingOptionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchLoggingOptionDescription.fromJson( e as Map)) .toList(), @@ -3449,7 +3449,7 @@ class DeleteApplicationCloudWatchLoggingOptionResponse { applicationVersionId: json['ApplicationVersionId'] as int?, cloudWatchLoggingOptionDescriptions: (json['CloudWatchLoggingOptionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchLoggingOptionDescription.fromJson( e as Map)) .toList(), @@ -3724,16 +3724,15 @@ class DiscoverInputSchemaResponse { ? SourceSchema.fromJson(json['InputSchema'] as Map) : null, parsedInputRecords: (json['ParsedInputRecords'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), processedInputRecords: (json['ProcessedInputRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rawInputRecords: (json['RawInputRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3770,7 +3769,7 @@ class EnvironmentPropertyDescriptions { factory EnvironmentPropertyDescriptions.fromJson(Map json) { return EnvironmentPropertyDescriptions( propertyGroupDescriptions: (json['PropertyGroupDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PropertyGroup.fromJson(e as Map)) .toList(), ); @@ -4148,7 +4147,7 @@ class InputDescription { factory InputDescription.fromJson(Map json) { return InputDescription( inAppStreamNames: (json['InAppStreamNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inputId: json['InputId'] as String?, @@ -4938,7 +4937,7 @@ class ListApplicationSnapshotsResponse { return ListApplicationSnapshotsResponse( nextToken: json['NextToken'] as String?, snapshotSummaries: (json['SnapshotSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotDetails.fromJson(e as Map)) .toList(), ); @@ -4970,7 +4969,7 @@ class ListApplicationVersionsResponse { return ListApplicationVersionsResponse( applicationVersionSummaries: (json['ApplicationVersionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationVersionSummary.fromJson(e as Map)) .toList(), @@ -4999,7 +4998,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applicationSummaries: (json['ApplicationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5018,7 +5017,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6330,7 +6329,7 @@ class SourceSchema { factory SourceSchema.fromJson(Map json) { return SourceSchema( recordColumns: (json['RecordColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => RecordColumn.fromJson(e as Map)) .toList(), recordFormat: @@ -6410,16 +6409,16 @@ class SqlApplicationConfigurationDescription { Map json) { return SqlApplicationConfigurationDescription( inputDescriptions: (json['InputDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDescription.fromJson(e as Map)) .toList(), outputDescriptions: (json['OutputDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDescription.fromJson(e as Map)) .toList(), referenceDataSourceDescriptions: (json['ReferenceDataSourceDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceDataSourceDescription.fromJson( e as Map)) .toList(), @@ -6668,13 +6667,11 @@ class VpcConfigurationDescription { factory VpcConfigurationDescription.fromJson(Map json) { return VpcConfigurationDescription( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnetIds: (json['SubnetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnetIds: + (json['SubnetIds'] as List).nonNulls.map((e) => e as String).toList(), vpcConfigurationId: json['VpcConfigurationId'] as String, vpcId: json['VpcId'] as String, ); @@ -6800,7 +6797,7 @@ class ZeppelinApplicationConfigurationDescription { : null, customArtifactsConfigurationDescription: (json['CustomArtifactsConfigurationDescription'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomArtifactConfigurationDescription.fromJson( e as Map)) .toList(), diff --git a/generated/aws_kinesisanalyticsv2_api/pubspec.yaml b/generated/aws_kinesisanalyticsv2_api/pubspec.yaml index 9e9c8902c..eeeb87433 100644 --- a/generated/aws_kinesisanalyticsv2_api/pubspec.yaml +++ b/generated/aws_kinesisanalyticsv2_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_kinesi protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_kinesisvideo_api/lib/kinesisvideo-2017-09-30.dart b/generated/aws_kinesisvideo_api/lib/kinesisvideo-2017-09-30.dart index f1a5bfc25..7388f3af0 100644 --- a/generated/aws_kinesisvideo_api/lib/kinesisvideo-2017-09-30.dart +++ b/generated/aws_kinesisvideo_api/lib/kinesisvideo-2017-09-30.dart @@ -1830,7 +1830,7 @@ class DescribeMappedResourceConfigurationOutput { return DescribeMappedResourceConfigurationOutput( mappedResourceConfigurationList: (json['MappedResourceConfigurationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MappedResourceConfigurationListItem.fromJson( e as Map)) .toList(), @@ -2058,7 +2058,7 @@ class GetSignalingChannelEndpointOutput { Map json) { return GetSignalingChannelEndpointOutput( resourceEndpointList: (json['ResourceEndpointList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceEndpointListItem.fromJson(e as Map)) .toList(), @@ -2349,7 +2349,7 @@ class ListEdgeAgentConfigurationsOutput { Map json) { return ListEdgeAgentConfigurationsOutput( edgeConfigs: (json['EdgeConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListEdgeAgentConfigurationsEdgeConfig.fromJson( e as Map)) .toList(), @@ -2374,7 +2374,7 @@ class ListSignalingChannelsOutput { factory ListSignalingChannelsOutput.fromJson(Map json) { return ListSignalingChannelsOutput( channelInfoList: (json['ChannelInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2399,7 +2399,7 @@ class ListStreamsOutput { return ListStreamsOutput( nextToken: json['NextToken'] as String?, streamInfoList: (json['StreamInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamInfo.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_kinesisvideo_api/pubspec.yaml b/generated/aws_kinesisvideo_api/pubspec.yaml index ba57f9d89..8f888353e 100644 --- a/generated/aws_kinesisvideo_api/pubspec.yaml +++ b/generated/aws_kinesisvideo_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_kinesi protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_kms_api/lib/kms-2014-11-01.dart b/generated/aws_kms_api/lib/kms-2014-11-01.dart index fcf168157..866b582fd 100644 --- a/generated/aws_kms_api/lib/kms-2014-11-01.dart +++ b/generated/aws_kms_api/lib/kms-2014-11-01.dart @@ -9625,7 +9625,7 @@ class DescribeCustomKeyStoresResponse { factory DescribeCustomKeyStoresResponse.fromJson(Map json) { return DescribeCustomKeyStoresResponse( customKeyStores: (json['CustomKeyStores'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomKeyStoresListEntry.fromJson(e as Map)) .toList(), @@ -10138,7 +10138,7 @@ class GetPublicKeyResponse { customerMasterKeySpec: (json['CustomerMasterKeySpec'] as String?) ?.let(CustomerMasterKeySpec.fromString), encryptionAlgorithms: (json['EncryptionAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EncryptionAlgorithmSpec.fromString((e as String))) .toList(), keyId: json['KeyId'] as String?, @@ -10146,7 +10146,7 @@ class GetPublicKeyResponse { keyUsage: (json['KeyUsage'] as String?)?.let(KeyUsageType.fromString), publicKey: _s.decodeNullableUint8List(json['PublicKey'] as String?), signingAlgorithms: (json['SigningAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SigningAlgorithmSpec.fromString((e as String))) .toList(), ); @@ -10295,7 +10295,7 @@ class GrantListEntry { keyId: json['KeyId'] as String?, name: json['Name'] as String?, operations: (json['Operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrantOperation.fromString((e as String))) .toList(), retiringPrincipal: json['RetiringPrincipal'] as String?, @@ -10613,7 +10613,7 @@ class KeyMetadata { description: json['Description'] as String?, enabled: json['Enabled'] as bool?, encryptionAlgorithms: (json['EncryptionAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EncryptionAlgorithmSpec.fromString((e as String))) .toList(), expirationModel: (json['ExpirationModel'] as String?) @@ -10624,7 +10624,7 @@ class KeyMetadata { keyState: (json['KeyState'] as String?)?.let(KeyState.fromString), keyUsage: (json['KeyUsage'] as String?)?.let(KeyUsageType.fromString), macAlgorithms: (json['MacAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MacAlgorithmSpec.fromString((e as String))) .toList(), multiRegion: json['MultiRegion'] as bool?, @@ -10635,7 +10635,7 @@ class KeyMetadata { origin: (json['Origin'] as String?)?.let(OriginType.fromString), pendingDeletionWindowInDays: json['PendingDeletionWindowInDays'] as int?, signingAlgorithms: (json['SigningAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SigningAlgorithmSpec.fromString((e as String))) .toList(), validTo: timeStampFromJson(json['ValidTo']), @@ -10732,7 +10732,7 @@ class ListAliasesResponse { factory ListAliasesResponse.fromJson(Map json) { return ListAliasesResponse( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AliasListEntry.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -10765,7 +10765,7 @@ class ListGrantsResponse { factory ListGrantsResponse.fromJson(Map json) { return ListGrantsResponse( grants: (json['Grants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrantListEntry.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -10799,7 +10799,7 @@ class ListKeyPoliciesResponse { return ListKeyPoliciesResponse( nextMarker: json['NextMarker'] as String?, policyNames: (json['PolicyNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), truncated: json['Truncated'] as bool?, @@ -10832,7 +10832,7 @@ class ListKeyRotationsResponse { return ListKeyRotationsResponse( nextMarker: json['NextMarker'] as String?, rotations: (json['Rotations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RotationsListEntry.fromJson(e as Map)) .toList(), truncated: json['Truncated'] as bool?, @@ -10864,7 +10864,7 @@ class ListKeysResponse { factory ListKeysResponse.fromJson(Map json) { return ListKeysResponse( keys: (json['Keys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyListEntry.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -10906,7 +10906,7 @@ class ListResourceTagsResponse { return ListResourceTagsResponse( nextMarker: json['NextMarker'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), truncated: json['Truncated'] as bool?, @@ -10977,7 +10977,7 @@ class MultiRegionConfiguration { ? MultiRegionKey.fromJson(json['PrimaryKey'] as Map) : null, replicaKeys: (json['ReplicaKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiRegionKey.fromJson(e as Map)) .toList(), ); @@ -11149,7 +11149,7 @@ class ReplicateKeyResponse { : null, replicaPolicy: json['ReplicaPolicy'] as String?, replicaTags: (json['ReplicaTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_kms_api/pubspec.yaml b/generated/aws_kms_api/pubspec.yaml index ff3f24ead..bf144f70a 100644 --- a/generated/aws_kms_api/pubspec.yaml +++ b/generated/aws_kms_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_kms_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_lakeformation_api/lib/lakeformation-2017-03-31.dart b/generated/aws_lakeformation_api/lib/lakeformation-2017-03-31.dart index 106e0f0eb..962994fe1 100644 --- a/generated/aws_lakeformation_api/lib/lakeformation-2017-03-31.dart +++ b/generated/aws_lakeformation_api/lib/lakeformation-2017-03-31.dart @@ -2422,7 +2422,7 @@ class AddLFTagsToResourceResponse { factory AddLFTagsToResourceResponse.fromJson(Map json) { return AddLFTagsToResourceResponse( failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagError.fromJson(e as Map)) .toList(), ); @@ -2562,7 +2562,7 @@ class BatchGrantPermissionsResponse { factory BatchGrantPermissionsResponse.fromJson(Map json) { return BatchGrantPermissionsResponse( failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPermissionsFailureEntry.fromJson(e as Map)) .toList(), @@ -2625,11 +2625,11 @@ class BatchPermissionsRequestEntry { return BatchPermissionsRequestEntry( id: json['Id'] as String, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), permissionsWithGrantOption: (json['PermissionsWithGrantOption'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), principal: json['Principal'] != null @@ -2672,7 +2672,7 @@ class BatchRevokePermissionsResponse { factory BatchRevokePermissionsResponse.fromJson(Map json) { return BatchRevokePermissionsResponse( failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPermissionsFailureEntry.fromJson(e as Map)) .toList(), @@ -2718,7 +2718,7 @@ class ColumnLFTag { factory ColumnLFTag.fromJson(Map json) { return ColumnLFTag( lFTags: (json['LFTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -2739,7 +2739,7 @@ class ColumnWildcard { factory ColumnWildcard.fromJson(Map json) { return ColumnWildcard( excludedColumnNames: (json['ExcludedColumnNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2885,7 +2885,7 @@ class DataCellsFilter { tableCatalogId: json['TableCatalogId'] as String, tableName: json['TableName'] as String, columnNames: (json['ColumnNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), columnWildcard: json['ColumnWildcard'] != null @@ -3122,36 +3122,36 @@ class DataLakeSettings { json['AllowFullTableExternalDataAccess'] as bool?, authorizedSessionTagValueList: (json['AuthorizedSessionTagValueList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createDatabaseDefaultPermissions: (json[ 'CreateDatabaseDefaultPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrincipalPermissions.fromJson(e as Map)) .toList(), createTableDefaultPermissions: (json['CreateTableDefaultPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrincipalPermissions.fromJson(e as Map)) .toList(), dataLakeAdmins: (json['DataLakeAdmins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakePrincipal.fromJson(e as Map)) .toList(), externalDataFilteringAllowList: (json['ExternalDataFilteringAllowList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakePrincipal.fromJson(e as Map)) .toList(), parameters: (json['Parameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), readOnlyAdmins: (json['ReadOnlyAdmins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakePrincipal.fromJson(e as Map)) .toList(), trustedResourceOwners: (json['TrustedResourceOwners'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3389,7 +3389,7 @@ class DescribeLakeFormationIdentityCenterConfigurationResponse { instanceArn: json['InstanceArn'] as String?, resourceShare: json['ResourceShare'] as String?, shareRecipients: (json['ShareRecipients'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLakePrincipal.fromJson(e as Map)) .toList(), ); @@ -3449,7 +3449,7 @@ class DetailsMap { factory DetailsMap.fromJson(Map json) { return DetailsMap( resourceShare: (json['ResourceShare'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3545,7 +3545,7 @@ class ExternalFilteringConfiguration { factory ExternalFilteringConfiguration.fromJson(Map json) { return ExternalFilteringConfiguration( authorizedTargets: (json['AuthorizedTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), status: EnableStatus.fromString((json['Status'] as String)), @@ -3679,7 +3679,7 @@ class GetEffectivePermissionsForPathResponse { return GetEffectivePermissionsForPathResponse( nextToken: json['NextToken'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrincipalResourcePermissions.fromJson(e as Map)) .toList(), @@ -3711,7 +3711,7 @@ class GetLFTagResponse { catalogId: json['CatalogId'] as String?, tagKey: json['TagKey'] as String?, tagValues: (json['TagValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3808,15 +3808,15 @@ class GetResourceLFTagsResponse { factory GetResourceLFTagsResponse.fromJson(Map json) { return GetResourceLFTagsResponse( lFTagOnDatabase: (json['LFTagOnDatabase'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), lFTagsOnColumns: (json['LFTagsOnColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnLFTag.fromJson(e as Map)) .toList(), lFTagsOnTable: (json['LFTagsOnTable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), ); @@ -3839,7 +3839,7 @@ class GetTableObjectsResponse { return GetTableObjectsResponse( nextToken: json['NextToken'] as String?, objects: (json['Objects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PartitionObjects.fromJson(e as Map)) .toList(), ); @@ -3909,7 +3909,7 @@ class GetTemporaryGlueTableCredentialsResponse { secretAccessKey: json['SecretAccessKey'] as String?, sessionToken: json['SessionToken'] as String?, vendedS3Path: (json['VendedS3Path'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3950,7 +3950,7 @@ class GetWorkUnitsResponse { return GetWorkUnitsResponse( queryId: json['QueryId'] as String, workUnitRanges: (json['WorkUnitRanges'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkUnitRange.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3988,10 +3988,8 @@ class LFTag { factory LFTag.fromJson(Map json) { return LFTag( tagKey: json['TagKey'] as String, - tagValues: (json['TagValues'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tagValues: + (json['TagValues'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -4054,10 +4052,8 @@ class LFTagKeyResource { factory LFTagKeyResource.fromJson(Map json) { return LFTagKeyResource( tagKey: json['TagKey'] as String, - tagValues: (json['TagValues'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tagValues: + (json['TagValues'] as List).nonNulls.map((e) => e as String).toList(), catalogId: json['CatalogId'] as String?, ); } @@ -4097,10 +4093,8 @@ class LFTagPair { factory LFTagPair.fromJson(Map json) { return LFTagPair( tagKey: json['TagKey'] as String, - tagValues: (json['TagValues'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + tagValues: + (json['TagValues'] as List).nonNulls.map((e) => e as String).toList(), catalogId: json['CatalogId'] as String?, ); } @@ -4141,7 +4135,7 @@ class LFTagPolicyResource { factory LFTagPolicyResource.fromJson(Map json) { return LFTagPolicyResource( expression: (json['Expression'] as List) - .whereNotNull() + .nonNulls .map((e) => LFTag.fromJson(e as Map)) .toList(), resourceType: ResourceType.fromString((json['ResourceType'] as String)), @@ -4210,7 +4204,7 @@ class ListDataCellsFilterResponse { factory ListDataCellsFilterResponse.fromJson(Map json) { return ListDataCellsFilterResponse( dataCellsFilters: (json['DataCellsFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataCellsFilter.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4233,7 +4227,7 @@ class ListLFTagsResponse { factory ListLFTagsResponse.fromJson(Map json) { return ListLFTagsResponse( lFTags: (json['LFTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4258,7 +4252,7 @@ class ListLakeFormationOptInsResponse { return ListLakeFormationOptInsResponse( lakeFormationOptInsInfoList: (json['LakeFormationOptInsInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LakeFormationOptInsInfo.fromJson(e as Map)) .toList(), @@ -4285,7 +4279,7 @@ class ListPermissionsResponse { nextToken: json['NextToken'] as String?, principalResourcePermissions: (json['PrincipalResourcePermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrincipalResourcePermissions.fromJson(e as Map)) .toList(), @@ -4310,7 +4304,7 @@ class ListResourcesResponse { return ListResourcesResponse( nextToken: json['NextToken'] as String?, resourceInfoList: (json['ResourceInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceInfo.fromJson(e as Map)) .toList(), ); @@ -4335,7 +4329,7 @@ class ListTableStorageOptimizersResponse { return ListTableStorageOptimizersResponse( nextToken: json['NextToken'] as String?, storageOptimizerList: (json['StorageOptimizerList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorageOptimizer.fromJson(e as Map)) .toList(), ); @@ -4359,7 +4353,7 @@ class ListTransactionsResponse { return ListTransactionsResponse( nextToken: json['NextToken'] as String?, transactions: (json['Transactions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TransactionDescription.fromJson(e as Map)) .toList(), @@ -4399,11 +4393,11 @@ class PartitionObjects { factory PartitionObjects.fromJson(Map json) { return PartitionObjects( objects: (json['Objects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableObject.fromJson(e as Map)) .toList(), partitionValues: (json['PartitionValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4516,7 +4510,7 @@ class PrincipalPermissions { factory PrincipalPermissions.fromJson(Map json) { return PrincipalPermissions( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), principal: json['Principal'] != null @@ -4582,11 +4576,11 @@ class PrincipalResourcePermissions { lastUpdated: timeStampFromJson(json['LastUpdated']), lastUpdatedBy: json['LastUpdatedBy'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), permissionsWithGrantOption: (json['PermissionsWithGrantOption'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromString((e as String))) .toList(), principal: json['Principal'] != null @@ -4740,7 +4734,7 @@ class RemoveLFTagsFromResourceResponse { factory RemoveLFTagsFromResourceResponse.fromJson(Map json) { return RemoveLFTagsFromResourceResponse( failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagError.fromJson(e as Map)) .toList(), ); @@ -4971,7 +4965,7 @@ class SearchDatabasesByLFTagsResponse { factory SearchDatabasesByLFTagsResponse.fromJson(Map json) { return SearchDatabasesByLFTagsResponse( databaseList: (json['DatabaseList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaggedDatabase.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4997,7 +4991,7 @@ class SearchTablesByLFTagsResponse { return SearchTablesByLFTagsResponse( nextToken: json['NextToken'] as String?, tableList: (json['TableList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TaggedTable.fromJson(e as Map)) .toList(), ); @@ -5224,7 +5218,7 @@ class TableWithColumnsResource { name: json['Name'] as String, catalogId: json['CatalogId'] as String?, columnNames: (json['ColumnNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), columnWildcard: json['ColumnWildcard'] != null @@ -5269,7 +5263,7 @@ class TaggedDatabase { ? DatabaseResource.fromJson(json['Database'] as Map) : null, lFTags: (json['LFTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), ); @@ -5300,15 +5294,15 @@ class TaggedTable { factory TaggedTable.fromJson(Map json) { return TaggedTable( lFTagOnDatabase: (json['LFTagOnDatabase'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), lFTagsOnColumns: (json['LFTagsOnColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnLFTag.fromJson(e as Map)) .toList(), lFTagsOnTable: (json['LFTagsOnTable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LFTagPair.fromJson(e as Map)) .toList(), table: json['Table'] != null diff --git a/generated/aws_lakeformation_api/pubspec.yaml b/generated/aws_lakeformation_api/pubspec.yaml index c52fbd24b..7980286f0 100644 --- a/generated/aws_lakeformation_api/pubspec.yaml +++ b/generated/aws_lakeformation_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_lakefo protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_lambda_api/lib/lambda-2014-11-11.dart b/generated/aws_lambda_api/lib/lambda-2014-11-11.dart index 8d8f88aeb..4e742ca96 100644 --- a/generated/aws_lambda_api/lib/lambda-2014-11-11.dart +++ b/generated/aws_lambda_api/lib/lambda-2014-11-11.dart @@ -819,7 +819,7 @@ class ListEventSourcesResponse { factory ListEventSourcesResponse.fromJson(Map json) { return ListEventSourcesResponse( eventSources: (json['EventSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSourceConfiguration.fromJson(e as Map)) .toList(), @@ -845,7 +845,7 @@ class ListFunctionsResponse { factory ListFunctionsResponse.fromJson(Map json) { return ListFunctionsResponse( functions: (json['Functions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionConfiguration.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, diff --git a/generated/aws_lambda_api/lib/lambda-2015-03-31.dart b/generated/aws_lambda_api/lib/lambda-2015-03-31.dart index 8df4cb3bf..394ef573a 100644 --- a/generated/aws_lambda_api/lib/lambda-2015-03-31.dart +++ b/generated/aws_lambda_api/lib/lambda-2015-03-31.dart @@ -5192,7 +5192,7 @@ class AllowedPublishers { factory AllowedPublishers.fromJson(Map json) { return AllowedPublishers( signingProfileVersionArns: (json['SigningProfileVersionArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -5437,19 +5437,19 @@ class Cors { return Cors( allowCredentials: json['AllowCredentials'] as bool?, allowHeaders: (json['AllowHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allowMethods: (json['AllowMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allowOrigins: (json['AllowOrigins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), exposeHeaders: (json['ExposeHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxAge: json['MaxAge'] as int?, @@ -5977,7 +5977,7 @@ class EventSourceMappingConfiguration { : null, functionArn: json['FunctionArn'] as String?, functionResponseTypes: (json['FunctionResponseTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionResponseType.fromString((e as String))) .toList(), lastModified: timeStampFromJson(json['LastModified']), @@ -5987,10 +5987,8 @@ class EventSourceMappingConfiguration { maximumRecordAgeInSeconds: json['MaximumRecordAgeInSeconds'] as int?, maximumRetryAttempts: json['MaximumRetryAttempts'] as int?, parallelizationFactor: json['ParallelizationFactor'] as int?, - queues: (json['Queues'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + queues: + (json['Queues'] as List?)?.nonNulls.map((e) => e as String).toList(), scalingConfig: json['ScalingConfig'] != null ? ScalingConfig.fromJson( json['ScalingConfig'] as Map) @@ -6006,7 +6004,7 @@ class EventSourceMappingConfiguration { as Map) : null, sourceAccessConfigurations: (json['SourceAccessConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceAccessConfiguration.fromJson(e as Map)) .toList(), @@ -6016,10 +6014,8 @@ class EventSourceMappingConfiguration { timeStampFromJson(json['StartingPositionTimestamp']), state: json['State'] as String?, stateTransitionReason: json['StateTransitionReason'] as String?, - topics: (json['Topics'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + topics: + (json['Topics'] as List?)?.nonNulls.map((e) => e as String).toList(), tumblingWindowInSeconds: json['TumblingWindowInSeconds'] as int?, uuid: json['UUID'] as String?, ); @@ -6115,7 +6111,7 @@ class FilterCriteria { factory FilterCriteria.fromJson(Map json) { return FilterCriteria( filters: (json['Filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Filter.fromJson(e as Map)) .toList(), ); @@ -6409,7 +6405,7 @@ class FunctionConfiguration { factory FunctionConfiguration.fromJson(Map json) { return FunctionConfiguration( architectures: (json['Architectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Architecture.fromString((e as String))) .toList(), codeSha256: json['CodeSha256'] as String?, @@ -6428,7 +6424,7 @@ class FunctionConfiguration { json['EphemeralStorage'] as Map) : null, fileSystemConfigs: (json['FileSystemConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemConfig.fromJson(e as Map)) .toList(), functionArn: json['FunctionArn'] as String?, @@ -6447,7 +6443,7 @@ class FunctionConfiguration { (json['LastUpdateStatusReasonCode'] as String?) ?.let(LastUpdateStatusReasonCode.fromString), layers: (json['Layers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Layer.fromJson(e as Map)) .toList(), loggingConfig: json['LoggingConfig'] != null @@ -6942,11 +6938,11 @@ class GetLayerVersionResponse { factory GetLayerVersionResponse.fromJson(Map json) { return GetLayerVersionResponse( compatibleArchitectures: (json['CompatibleArchitectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Architecture.fromString((e as String))) .toList(), compatibleRuntimes: (json['CompatibleRuntimes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Runtime.fromString((e as String))) .toList(), content: json['Content'] != null @@ -7085,12 +7081,10 @@ class ImageConfig { factory ImageConfig.fromJson(Map json) { return ImageConfig( - command: (json['Command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['Command'] as List?)?.nonNulls.map((e) => e as String).toList(), entryPoint: (json['EntryPoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), workingDirectory: json['WorkingDirectory'] as String?, @@ -7536,11 +7530,11 @@ class LayerVersionsListItem { factory LayerVersionsListItem.fromJson(Map json) { return LayerVersionsListItem( compatibleArchitectures: (json['CompatibleArchitectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Architecture.fromString((e as String))) .toList(), compatibleRuntimes: (json['CompatibleRuntimes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Runtime.fromString((e as String))) .toList(), createdDate: json['CreatedDate'] as String?, @@ -7598,7 +7592,7 @@ class ListAliasesResponse { factory ListAliasesResponse.fromJson(Map json) { return ListAliasesResponse( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AliasConfiguration.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -7621,7 +7615,7 @@ class ListCodeSigningConfigsResponse { factory ListCodeSigningConfigsResponse.fromJson(Map json) { return ListCodeSigningConfigsResponse( codeSigningConfigs: (json['CodeSigningConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeSigningConfig.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -7645,7 +7639,7 @@ class ListEventSourceMappingsResponse { factory ListEventSourceMappingsResponse.fromJson(Map json) { return ListEventSourceMappingsResponse( eventSourceMappings: (json['EventSourceMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventSourceMappingConfiguration.fromJson( e as Map)) .toList(), @@ -7670,7 +7664,7 @@ class ListFunctionEventInvokeConfigsResponse { Map json) { return ListFunctionEventInvokeConfigsResponse( functionEventInvokeConfigs: (json['FunctionEventInvokeConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionEventInvokeConfig.fromJson(e as Map)) .toList(), @@ -7694,7 +7688,7 @@ class ListFunctionUrlConfigsResponse { factory ListFunctionUrlConfigsResponse.fromJson(Map json) { return ListFunctionUrlConfigsResponse( functionUrlConfigs: (json['FunctionUrlConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => FunctionUrlConfig.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -7718,7 +7712,7 @@ class ListFunctionsByCodeSigningConfigResponse { Map json) { return ListFunctionsByCodeSigningConfigResponse( functionArns: (json['FunctionArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextMarker: json['NextMarker'] as String?, @@ -7742,7 +7736,7 @@ class ListFunctionsResponse { factory ListFunctionsResponse.fromJson(Map json) { return ListFunctionsResponse( functions: (json['Functions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionConfiguration.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -7765,7 +7759,7 @@ class ListLayerVersionsResponse { factory ListLayerVersionsResponse.fromJson(Map json) { return ListLayerVersionsResponse( layerVersions: (json['LayerVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LayerVersionsListItem.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -7788,7 +7782,7 @@ class ListLayersResponse { factory ListLayersResponse.fromJson(Map json) { return ListLayersResponse( layers: (json['Layers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LayersListItem.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -7815,7 +7809,7 @@ class ListProvisionedConcurrencyConfigsResponse { nextMarker: json['NextMarker'] as String?, provisionedConcurrencyConfigs: (json['ProvisionedConcurrencyConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisionedConcurrencyConfigListItem.fromJson( e as Map)) .toList(), @@ -7855,7 +7849,7 @@ class ListVersionsByFunctionResponse { return ListVersionsByFunctionResponse( nextMarker: json['NextMarker'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FunctionConfiguration.fromJson(e as Map)) .toList(), ); @@ -8149,11 +8143,11 @@ class PublishLayerVersionResponse { factory PublishLayerVersionResponse.fromJson(Map json) { return PublishLayerVersionResponse( compatibleArchitectures: (json['CompatibleArchitectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Architecture.fromString((e as String))) .toList(), compatibleRuntimes: (json['CompatibleRuntimes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Runtime.fromString((e as String))) .toList(), content: json['Content'] != null @@ -8437,7 +8431,7 @@ class SelfManagedEventSource { return SelfManagedEventSource( endpoints: (json['Endpoints'] as Map?)?.map((k, e) => MapEntry(EndPointType.fromString(k), - (e as List).whereNotNull().map((e) => e as String).toList())), + (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -8949,11 +8943,11 @@ class VpcConfigResponse { return VpcConfigResponse( ipv6AllowedForDualStack: json['Ipv6AllowedForDualStack'] as bool?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, diff --git a/generated/aws_lambda_api/pubspec.yaml b/generated/aws_lambda_api/pubspec.yaml index 474953039..5cc4a22f5 100644 --- a/generated/aws_lambda_api/pubspec.yaml +++ b/generated/aws_lambda_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_lambda protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_lex_models_api/lib/lex-models-2017-04-19.dart b/generated/aws_lex_models_api/lib/lex-models-2017-04-19.dart index 7cc9e5b42..d0bef8302 100644 --- a/generated/aws_lex_models_api/lib/lex-models-2017-04-19.dart +++ b/generated/aws_lex_models_api/lib/lex-models-2017-04-19.dart @@ -2765,7 +2765,7 @@ class BuiltinIntentMetadata { return BuiltinIntentMetadata( signature: json['signature'] as String?, supportedLocales: (json['supportedLocales'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Locale.fromString((e as String))) .toList(), ); @@ -2808,7 +2808,7 @@ class BuiltinSlotTypeMetadata { return BuiltinSlotTypeMetadata( signature: json['signature'] as String?, supportedLocales: (json['supportedLocales'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Locale.fromString((e as String))) .toList(), ); @@ -2941,7 +2941,7 @@ class ConversationLogsResponse { return ConversationLogsResponse( iamRoleArn: json['iamRoleArn'] as String?, logSettings: (json['logSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogSettingsResponse.fromJson(e as Map)) .toList(), ); @@ -3076,7 +3076,7 @@ class CreateBotVersionResponse { failureReason: json['failureReason'] as String?, idleSessionTTLInSeconds: json['idleSessionTTLInSeconds'] as int?, intents: (json['intents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Intent.fromJson(e as Map)) .toList(), lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), @@ -3199,7 +3199,7 @@ class CreateIntentVersionResponse { json['fulfillmentActivity'] as Map) : null, inputContexts: (json['inputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputContext.fromJson(e as Map)) .toList(), kendraConfiguration: json['kendraConfiguration'] != null @@ -3209,7 +3209,7 @@ class CreateIntentVersionResponse { lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, outputContexts: (json['outputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputContext.fromJson(e as Map)) .toList(), parentIntentSignature: json['parentIntentSignature'] as String?, @@ -3218,11 +3218,11 @@ class CreateIntentVersionResponse { json['rejectionStatement'] as Map) : null, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), slots: (json['slots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Slot.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -3283,14 +3283,14 @@ class CreateSlotTypeVersionResponse { createdDate: timeStampFromJson(json['createdDate']), description: json['description'] as String?, enumerationValues: (json['enumerationValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnumerationValue.fromJson(e as Map)) .toList(), lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, parentSlotTypeSignature: json['parentSlotTypeSignature'] as String?, slotTypeConfigurations: (json['slotTypeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeConfiguration.fromJson(e as Map)) .toList(), valueSelectionStrategy: (json['valueSelectionStrategy'] as String?) @@ -3348,7 +3348,7 @@ class EnumerationValue { return EnumerationValue( value: json['value'] as String, synonyms: (json['synonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3573,7 +3573,7 @@ class GetBotAliasesResponse { factory GetBotAliasesResponse.fromJson(Map json) { return GetBotAliasesResponse( botAliases: (json['BotAliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotAliasMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3674,7 +3674,7 @@ class GetBotChannelAssociationsResponse { Map json) { return GetBotChannelAssociationsResponse( botChannelAssociations: (json['botChannelAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotChannelAssociation.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3834,7 +3834,7 @@ class GetBotResponse { failureReason: json['failureReason'] as String?, idleSessionTTLInSeconds: json['idleSessionTTLInSeconds'] as int?, intents: (json['intents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Intent.fromJson(e as Map)) .toList(), lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), @@ -3868,7 +3868,7 @@ class GetBotVersionsResponse { factory GetBotVersionsResponse.fromJson(Map json) { return GetBotVersionsResponse( bots: (json['bots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3892,7 +3892,7 @@ class GetBotsResponse { factory GetBotsResponse.fromJson(Map json) { return GetBotsResponse( bots: (json['bots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BotMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3921,11 +3921,11 @@ class GetBuiltinIntentResponse { return GetBuiltinIntentResponse( signature: json['signature'] as String?, slots: (json['slots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuiltinIntentSlot.fromJson(e as Map)) .toList(), supportedLocales: (json['supportedLocales'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Locale.fromString((e as String))) .toList(), ); @@ -3951,7 +3951,7 @@ class GetBuiltinIntentsResponse { factory GetBuiltinIntentsResponse.fromJson(Map json) { return GetBuiltinIntentsResponse( intents: (json['intents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuiltinIntentMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -3977,7 +3977,7 @@ class GetBuiltinSlotTypesResponse { return GetBuiltinSlotTypesResponse( nextToken: json['nextToken'] as String?, slotTypes: (json['slotTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BuiltinSlotTypeMetadata.fromJson(e as Map)) .toList(), @@ -4086,7 +4086,7 @@ class GetImportResponse { return GetImportResponse( createdDate: timeStampFromJson(json['createdDate']), failureReason: (json['failureReason'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), importId: json['importId'] as String?, @@ -4214,7 +4214,7 @@ class GetIntentResponse { json['fulfillmentActivity'] as Map) : null, inputContexts: (json['inputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputContext.fromJson(e as Map)) .toList(), kendraConfiguration: json['kendraConfiguration'] != null @@ -4224,7 +4224,7 @@ class GetIntentResponse { lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, outputContexts: (json['outputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputContext.fromJson(e as Map)) .toList(), parentIntentSignature: json['parentIntentSignature'] as String?, @@ -4233,11 +4233,11 @@ class GetIntentResponse { json['rejectionStatement'] as Map) : null, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), slots: (json['slots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Slot.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -4264,7 +4264,7 @@ class GetIntentVersionsResponse { factory GetIntentVersionsResponse.fromJson(Map json) { return GetIntentVersionsResponse( intents: (json['intents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntentMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4289,7 +4289,7 @@ class GetIntentsResponse { factory GetIntentsResponse.fromJson(Map json) { return GetIntentsResponse( intents: (json['intents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntentMetadata.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4368,7 +4368,7 @@ class GetMigrationResponse { factory GetMigrationResponse.fromJson(Map json) { return GetMigrationResponse( alerts: (json['alerts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MigrationAlert.fromJson(e as Map)) .toList(), migrationId: json['migrationId'] as String?, @@ -4404,7 +4404,7 @@ class GetMigrationsResponse { factory GetMigrationsResponse.fromJson(Map json) { return GetMigrationsResponse( migrationSummaries: (json['migrationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MigrationSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4465,14 +4465,14 @@ class GetSlotTypeResponse { createdDate: timeStampFromJson(json['createdDate']), description: json['description'] as String?, enumerationValues: (json['enumerationValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnumerationValue.fromJson(e as Map)) .toList(), lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, parentSlotTypeSignature: json['parentSlotTypeSignature'] as String?, slotTypeConfigurations: (json['slotTypeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeConfiguration.fromJson(e as Map)) .toList(), valueSelectionStrategy: (json['valueSelectionStrategy'] as String?) @@ -4502,7 +4502,7 @@ class GetSlotTypeVersionsResponse { return GetSlotTypeVersionsResponse( nextToken: json['nextToken'] as String?, slotTypes: (json['slotTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeMetadata.fromJson(e as Map)) .toList(), ); @@ -4527,7 +4527,7 @@ class GetSlotTypesResponse { return GetSlotTypesResponse( nextToken: json['nextToken'] as String?, slotTypes: (json['slotTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeMetadata.fromJson(e as Map)) .toList(), ); @@ -4554,7 +4554,7 @@ class GetUtterancesViewResponse { return GetUtterancesViewResponse( botName: json['botName'] as String?, utterances: (json['utterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtteranceList.fromJson(e as Map)) .toList(), ); @@ -4734,7 +4734,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4952,13 +4952,11 @@ class MigrationAlert { factory MigrationAlert.fromJson(Map json) { return MigrationAlert( - details: (json['details'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + details: + (json['details'] as List?)?.nonNulls.map((e) => e as String).toList(), message: json['message'] as String?, referenceURLs: (json['referenceURLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: (json['type'] as String?)?.let(MigrationAlertType.fromString), @@ -5191,7 +5189,7 @@ class Prompt { return Prompt( maxAttempts: json['maxAttempts'] as int, messages: (json['messages'] as List) - .whereNotNull() + .nonNulls .map((e) => Message.fromJson(e as Map)) .toList(), responseCard: json['responseCard'] as String?, @@ -5266,7 +5264,7 @@ class PutBotAliasResponse { lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5440,7 +5438,7 @@ class PutBotResponse { failureReason: json['failureReason'] as String?, idleSessionTTLInSeconds: json['idleSessionTTLInSeconds'] as int?, intents: (json['intents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Intent.fromJson(e as Map)) .toList(), lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), @@ -5450,7 +5448,7 @@ class PutBotResponse { json['nluIntentConfidenceThreshold'] as double?, status: (json['status'] as String?)?.let(Status.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -5582,7 +5580,7 @@ class PutIntentResponse { json['fulfillmentActivity'] as Map) : null, inputContexts: (json['inputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputContext.fromJson(e as Map)) .toList(), kendraConfiguration: json['kendraConfiguration'] != null @@ -5592,7 +5590,7 @@ class PutIntentResponse { lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, outputContexts: (json['outputContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputContext.fromJson(e as Map)) .toList(), parentIntentSignature: json['parentIntentSignature'] as String?, @@ -5601,11 +5599,11 @@ class PutIntentResponse { json['rejectionStatement'] as Map) : null, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), slots: (json['slots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Slot.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -5674,14 +5672,14 @@ class PutSlotTypeResponse { createdDate: timeStampFromJson(json['createdDate']), description: json['description'] as String?, enumerationValues: (json['enumerationValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnumerationValue.fromJson(e as Map)) .toList(), lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']), name: json['name'] as String?, parentSlotTypeSignature: json['parentSlotTypeSignature'] as String?, slotTypeConfigurations: (json['slotTypeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SlotTypeConfiguration.fromJson(e as Map)) .toList(), valueSelectionStrategy: (json['valueSelectionStrategy'] as String?) @@ -5789,7 +5787,7 @@ class Slot { priority: json['priority'] as int?, responseCard: json['responseCard'] as String?, sampleUtterances: (json['sampleUtterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), slotType: json['slotType'] as String?, @@ -5903,7 +5901,7 @@ class SlotDefaultValueSpec { factory SlotDefaultValueSpec.fromJson(Map json) { return SlotDefaultValueSpec( defaultValueList: (json['defaultValueList'] as List) - .whereNotNull() + .nonNulls .map((e) => SlotDefaultValue.fromJson(e as Map)) .toList(), ); @@ -6105,7 +6103,7 @@ class StartImportResponse { resourceType: (json['resourceType'] as String?)?.let(ResourceType.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6184,7 +6182,7 @@ class Statement { factory Statement.fromJson(Map json) { return Statement( messages: (json['messages'] as List) - .whereNotNull() + .nonNulls .map((e) => Message.fromJson(e as Map)) .toList(), responseCard: json['responseCard'] as String?, @@ -6338,7 +6336,7 @@ class UtteranceList { return UtteranceList( botVersion: json['botVersion'] as String?, utterances: (json['utterances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UtteranceData.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_lex_models_api/pubspec.yaml b/generated/aws_lex_models_api/pubspec.yaml index f71086cb5..fbcc8f5e4 100644 --- a/generated/aws_lex_models_api/pubspec.yaml +++ b/generated/aws_lex_models_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_lex_mo protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_lex_runtime_api/lib/runtime.lex-2016-11-28.dart b/generated/aws_lex_runtime_api/lib/runtime.lex-2016-11-28.dart index efc0b5b80..be28199be 100644 --- a/generated/aws_lex_runtime_api/lib/runtime.lex-2016-11-28.dart +++ b/generated/aws_lex_runtime_api/lib/runtime.lex-2016-11-28.dart @@ -1186,7 +1186,7 @@ class GenericAttachment { return GenericAttachment( attachmentLinkUrl: json['attachmentLinkUrl'] as String?, buttons: (json['buttons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Button.fromJson(e as Map)) .toList(), imageUrl: json['imageUrl'] as String?, @@ -1236,14 +1236,14 @@ class GetSessionResponse { factory GetSessionResponse.fromJson(Map json) { return GetSessionResponse( activeContexts: (json['activeContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveContext.fromJson(e as Map)) .toList(), dialogAction: json['dialogAction'] != null ? DialogAction.fromJson(json['dialogAction'] as Map) : null, recentIntentSummaryView: (json['recentIntentSummaryView'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntentSummary.fromJson(e as Map)) .toList(), sessionAttributes: (json['sessionAttributes'] as Map?) @@ -1862,11 +1862,11 @@ class PostTextResponse { factory PostTextResponse.fromJson(Map json) { return PostTextResponse( activeContexts: (json['activeContexts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveContext.fromJson(e as Map)) .toList(), alternativeIntents: (json['alternativeIntents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictedIntent.fromJson(e as Map)) .toList(), botVersion: json['botVersion'] as String?, @@ -2076,7 +2076,7 @@ class ResponseCard { contentType: (json['contentType'] as String?)?.let(ContentType.fromString), genericAttachments: (json['genericAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GenericAttachment.fromJson(e as Map)) .toList(), version: json['version'] as String?, diff --git a/generated/aws_lex_runtime_api/pubspec.yaml b/generated/aws_lex_runtime_api/pubspec.yaml index bdcd392e6..60b1d544b 100644 --- a/generated/aws_lex_runtime_api/pubspec.yaml +++ b/generated/aws_lex_runtime_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_lex_ru protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_license_manager_api/lib/license-manager-2018-08-01.dart b/generated/aws_license_manager_api/lib/license-manager-2018-08-01.dart index 113c6ce3d..9abc404c5 100644 --- a/generated/aws_license_manager_api/lib/license-manager-2018-08-01.dart +++ b/generated/aws_license_manager_api/lib/license-manager-2018-08-01.dart @@ -2885,11 +2885,11 @@ class CheckoutBorrowLicenseResponse { factory CheckoutBorrowLicenseResponse.fromJson(Map json) { return CheckoutBorrowLicenseResponse( checkoutMetadata: (json['CheckoutMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Metadata.fromJson(e as Map)) .toList(), entitlementsAllowed: (json['EntitlementsAllowed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitlementData.fromJson(e as Map)) .toList(), expiration: json['Expiration'] as String?, @@ -2943,7 +2943,7 @@ class CheckoutLicenseResponse { checkoutType: (json['CheckoutType'] as String?)?.let(CheckoutType.fromString), entitlementsAllowed: (json['EntitlementsAllowed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitlementData.fromJson(e as Map)) .toList(), expiration: json['Expiration'] as String?, @@ -3691,7 +3691,7 @@ class GetLicenseConfigurationResponse { json['AutomatedDiscoveryInformation'] as Map) : null, consumedLicenseSummaryList: (json['ConsumedLicenseSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ConsumedLicenseSummary.fromJson(e as Map)) .toList(), @@ -3705,23 +3705,23 @@ class GetLicenseConfigurationResponse { licenseCountingType: (json['LicenseCountingType'] as String?) ?.let(LicenseCountingType.fromString), licenseRules: (json['LicenseRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), managedResourceSummaryList: (json['ManagedResourceSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ManagedResourceSummary.fromJson(e as Map)) .toList(), name: json['Name'] as String?, ownerAccountId: json['OwnerAccountId'] as String?, productInformationList: (json['ProductInformationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductInformation.fromJson(e as Map)) .toList(), status: json['Status'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3943,7 +3943,7 @@ class Grant { grantName: json['GrantName'] as String, grantStatus: GrantStatus.fromString((json['GrantStatus'] as String)), grantedOperations: (json['GrantedOperations'] as List) - .whereNotNull() + .nonNulls .map((e) => AllowedOperation.fromString((e as String))) .toList(), granteePrincipalArn: json['GranteePrincipalArn'] as String, @@ -4055,7 +4055,7 @@ class GrantedLicense { : null, createTime: json['CreateTime'] as String?, entitlements: (json['Entitlements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entitlement.fromJson(e as Map)) .toList(), homeRegion: json['HomeRegion'] as String?, @@ -4064,7 +4064,7 @@ class GrantedLicense { : null, licenseArn: json['LicenseArn'] as String?, licenseMetadata: (json['LicenseMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Metadata.fromJson(e as Map)) .toList(), licenseName: json['LicenseName'] as String?, @@ -4253,7 +4253,7 @@ class License { : null, createTime: json['CreateTime'] as String?, entitlements: (json['Entitlements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entitlement.fromJson(e as Map)) .toList(), homeRegion: json['HomeRegion'] as String?, @@ -4262,7 +4262,7 @@ class License { : null, licenseArn: json['LicenseArn'] as String?, licenseMetadata: (json['LicenseMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Metadata.fromJson(e as Map)) .toList(), licenseName: json['LicenseName'] as String?, @@ -4359,7 +4359,7 @@ class LicenseConfiguration { json['AutomatedDiscoveryInformation'] as Map) : null, consumedLicenseSummaryList: (json['ConsumedLicenseSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ConsumedLicenseSummary.fromJson(e as Map)) .toList(), @@ -4373,18 +4373,18 @@ class LicenseConfiguration { licenseCountingType: (json['LicenseCountingType'] as String?) ?.let(LicenseCountingType.fromString), licenseRules: (json['LicenseRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), managedResourceSummaryList: (json['ManagedResourceSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ManagedResourceSummary.fromJson(e as Map)) .toList(), name: json['Name'] as String?, ownerAccountId: json['OwnerAccountId'] as String?, productInformationList: (json['ProductInformationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductInformation.fromJson(e as Map)) .toList(), status: json['Status'] as String?, @@ -4670,7 +4670,7 @@ class LicenseOperationFailure { errorMessage: json['ErrorMessage'] as String?, failureTime: timeStampFromJson(json['FailureTime']), metadataList: (json['MetadataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Metadata.fromJson(e as Map)) .toList(), operationName: json['OperationName'] as String?, @@ -4746,7 +4746,7 @@ class LicenseUsage { factory LicenseUsage.fromJson(Map json) { return LicenseUsage( entitlementUsages: (json['EntitlementUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitlementUsage.fromJson(e as Map)) .toList(), ); @@ -4770,7 +4770,7 @@ class ListAssociationsForLicenseConfigurationResponse { return ListAssociationsForLicenseConfigurationResponse( licenseConfigurationAssociations: (json['LicenseConfigurationAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseConfigurationAssociation.fromJson( e as Map)) .toList(), @@ -4794,7 +4794,7 @@ class ListDistributedGrantsResponse { factory ListDistributedGrantsResponse.fromJson(Map json) { return ListDistributedGrantsResponse( grants: (json['Grants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Grant.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4819,7 +4819,7 @@ class ListFailuresForLicenseConfigurationOperationsResponse { return ListFailuresForLicenseConfigurationOperationsResponse( licenseOperationFailureList: (json['LicenseOperationFailureList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseOperationFailure.fromJson(e as Map)) .toList(), @@ -4844,7 +4844,7 @@ class ListLicenseConfigurationsResponse { Map json) { return ListLicenseConfigurationsResponse( licenseConfigurations: (json['LicenseConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseConfiguration.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4868,7 +4868,7 @@ class ListLicenseConversionTasksResponse { Map json) { return ListLicenseConversionTasksResponse( licenseConversionTasks: (json['LicenseConversionTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseConversionTask.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4894,7 +4894,7 @@ class ListLicenseManagerReportGeneratorsResponse { return ListLicenseManagerReportGeneratorsResponse( nextToken: json['NextToken'] as String?, reportGenerators: (json['ReportGenerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportGenerator.fromJson(e as Map)) .toList(), ); @@ -4917,7 +4917,7 @@ class ListLicenseSpecificationsForResourceResponse { Map json) { return ListLicenseSpecificationsForResourceResponse( licenseSpecifications: (json['LicenseSpecifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseSpecification.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4940,7 +4940,7 @@ class ListLicenseVersionsResponse { factory ListLicenseVersionsResponse.fromJson(Map json) { return ListLicenseVersionsResponse( licenses: (json['Licenses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => License.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4963,7 +4963,7 @@ class ListLicensesResponse { factory ListLicensesResponse.fromJson(Map json) { return ListLicensesResponse( licenses: (json['Licenses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => License.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4987,7 +4987,7 @@ class ListReceivedGrantsForOrganizationResponse { Map json) { return ListReceivedGrantsForOrganizationResponse( grants: (json['Grants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Grant.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5010,7 +5010,7 @@ class ListReceivedGrantsResponse { factory ListReceivedGrantsResponse.fromJson(Map json) { return ListReceivedGrantsResponse( grants: (json['Grants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Grant.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5034,7 +5034,7 @@ class ListReceivedLicensesForOrganizationResponse { Map json) { return ListReceivedLicensesForOrganizationResponse( licenses: (json['Licenses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrantedLicense.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5057,7 +5057,7 @@ class ListReceivedLicensesResponse { factory ListReceivedLicensesResponse.fromJson(Map json) { return ListReceivedLicensesResponse( licenses: (json['Licenses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GrantedLicense.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5081,7 +5081,7 @@ class ListResourceInventoryResponse { return ListResourceInventoryResponse( nextToken: json['NextToken'] as String?, resourceInventoryList: (json['ResourceInventoryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceInventory.fromJson(e as Map)) .toList(), ); @@ -5099,7 +5099,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5122,7 +5122,7 @@ class ListTokensResponse { return ListTokensResponse( nextToken: json['NextToken'] as String?, tokens: (json['Tokens'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TokenData.fromJson(e as Map)) .toList(), ); @@ -5146,7 +5146,7 @@ class ListUsageForLicenseConfigurationResponse { return ListUsageForLicenseConfigurationResponse( licenseConfigurationUsageList: (json['LicenseConfigurationUsageList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LicenseConfigurationUsage.fromJson(e as Map)) .toList(), @@ -5376,7 +5376,7 @@ class ProductInformation { return ProductInformation( productInformationFilterList: (json['ProductInformationFilterList'] as List) - .whereNotNull() + .nonNulls .map((e) => ProductInformationFilter.fromJson(e as Map)) .toList(), @@ -5419,7 +5419,7 @@ class ProductInformationFilter { json['ProductInformationFilterName'] as String, productInformationFilterValue: (json['ProductInformationFilterValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5482,7 +5482,7 @@ class ReceivedMetadata { factory ReceivedMetadata.fromJson(Map json) { return ReceivedMetadata( allowedOperations: (json['AllowedOperations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AllowedOperation.fromString((e as String))) .toList(), receivedStatus: @@ -5566,7 +5566,7 @@ class ReportContext { factory ReportContext.fromJson(Map json) { return ReportContext( licenseConfigurationArns: (json['licenseConfigurationArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -5705,14 +5705,14 @@ class ReportGenerator { : null, reportGeneratorName: json['ReportGeneratorName'] as String?, reportType: (json['ReportType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReportType.fromString((e as String))) .toList(), s3Location: json['S3Location'] != null ? S3Location.fromJson(json['S3Location'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5891,13 +5891,13 @@ class TokenData { expirationTime: json['ExpirationTime'] as String?, licenseArn: json['LicenseArn'] as String?, roleArns: (json['RoleArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: json['Status'] as String?, tokenId: json['TokenId'] as String?, tokenProperties: (json['TokenProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tokenType: json['TokenType'] as String?, diff --git a/generated/aws_license_manager_api/pubspec.yaml b/generated/aws_license_manager_api/pubspec.yaml index c9d0e6c92..42526619f 100644 --- a/generated/aws_license_manager_api/pubspec.yaml +++ b/generated/aws_license_manager_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_licens protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_lightsail_api/lib/lightsail-2016-11-28.dart b/generated/aws_lightsail_api/lib/lightsail-2016-11-28.dart index f1ec9b003..a37e81818 100644 --- a/generated/aws_lightsail_api/lib/lightsail-2016-11-28.dart +++ b/generated/aws_lightsail_api/lib/lightsail-2016-11-28.dart @@ -10753,7 +10753,7 @@ class Alarm { comparisonOperator: (json['comparisonOperator'] as String?) ?.let(ComparisonOperator.fromString), contactProtocols: (json['contactProtocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactProtocol.fromString((e as String))) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -10770,7 +10770,7 @@ class Alarm { name: json['name'] as String?, notificationEnabled: json['notificationEnabled'] as bool?, notificationTriggers: (json['notificationTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmState.fromString((e as String))) .toList(), period: json['period'] as int?, @@ -10816,7 +10816,7 @@ class AllocateStaticIpResult { factory AllocateStaticIpResult.fromJson(Map json) { return AllocateStaticIpResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -10869,7 +10869,7 @@ class AttachDiskResult { factory AttachDiskResult.fromJson(Map json) { return AttachDiskResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -10890,7 +10890,7 @@ class AttachInstancesToLoadBalancerResult { Map json) { return AttachInstancesToLoadBalancerResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -10914,7 +10914,7 @@ class AttachLoadBalancerTlsCertificateResult { Map json) { return AttachLoadBalancerTlsCertificateResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -10934,7 +10934,7 @@ class AttachStaticIpResult { factory AttachStaticIpResult.fromJson(Map json) { return AttachStaticIpResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -11076,7 +11076,7 @@ class AutoSnapshotDetails { createdAt: timeStampFromJson(json['createdAt']), date: json['date'] as String?, fromAttachedDisks: (json['fromAttachedDisks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachedDisk.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(AutoSnapshotStatus.fromString), @@ -11391,12 +11391,12 @@ class Bucket { name: json['name'] as String?, objectVersioning: json['objectVersioning'] as String?, readonlyAccessAccounts: (json['readonlyAccessAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resourceType: json['resourceType'] as String?, resourcesReceivingAccess: (json['resourcesReceivingAccess'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceReceivingAccess.fromJson(e as Map)) .toList(), @@ -11405,7 +11405,7 @@ class Bucket { : null, supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), url: json['url'] as String?, @@ -11649,11 +11649,11 @@ class Bundle { publicIpv4AddressCount: json['publicIpv4AddressCount'] as int?, ramSizeInGb: json['ramSizeInGb'] as double?, supportedAppCategories: (json['supportedAppCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppCategory.fromString((e as String))) .toList(), supportedPlatforms: (json['supportedPlatforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstancePlatform.fromString((e as String))) .toList(), transferPerMonthInGb: json['transferPerMonthInGb'] as int?, @@ -12112,7 +12112,7 @@ class Certificate { createdAt: timeStampFromJson(json['createdAt']), domainName: json['domainName'] as String?, domainValidationRecords: (json['domainValidationRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DomainValidationRecord.fromJson(e as Map)) .toList(), @@ -12134,12 +12134,12 @@ class Certificate { serialNumber: json['serialNumber'] as String?, status: (json['status'] as String?)?.let(CertificateStatus.fromString), subjectAlternativeNames: (json['subjectAlternativeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -12234,7 +12234,7 @@ class CertificateSummary { certificateName: json['certificateName'] as String?, domainName: json['domainName'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -12321,7 +12321,7 @@ class CloudFormationStackRecord { resourceType: (json['resourceType'] as String?)?.let(ResourceType.fromString), sourceInfo: (json['sourceInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudFormationStackRecordSourceInfo.fromJson( e as Map)) .toList(), @@ -12558,10 +12558,8 @@ class Container { factory Container.fromJson(Map json) { return Container( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), environment: (json['environment'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), image: json['image'] as String?, @@ -12804,7 +12802,7 @@ class ContainerService { : null, publicDomainNames: (json['publicDomainNames'] as Map?) ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + k, (e as List).nonNulls.map((e) => e as String).toList())), resourceType: (json['resourceType'] as String?)?.let(ResourceType.fromString), scale: json['scale'] as int?, @@ -12814,7 +12812,7 @@ class ContainerService { json['stateDetail'] as Map) : null, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), url: json['url'] as String?, @@ -13394,7 +13392,7 @@ class ContainerServicesListResult { factory ContainerServicesListResult.fromJson(Map json) { return ContainerServicesListResult( containerServices: (json['containerServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerService.fromJson(e as Map)) .toList(), ); @@ -13424,7 +13422,7 @@ class CookieObject { factory CookieObject.fromJson(Map json) { return CookieObject( cookiesAllowList: (json['cookiesAllowList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), option: (json['option'] as String?)?.let(ForwardValues.fromString), @@ -13454,7 +13452,7 @@ class CopySnapshotResult { factory CopySnapshotResult.fromJson(Map json) { return CopySnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13479,7 +13477,7 @@ class CostEstimate { factory CostEstimate.fromJson(Map json) { return CostEstimate( resultsByTime: (json['resultsByTime'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EstimateByTime.fromJson(e as Map)) .toList(), usageType: json['usageType'] as String?, @@ -13507,7 +13505,7 @@ class CreateBucketAccessKeyResult { ? AccessKey.fromJson(json['accessKey'] as Map) : null, operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13534,7 +13532,7 @@ class CreateBucketResult { ? Bucket.fromJson(json['bucket'] as Map) : null, operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13562,7 +13560,7 @@ class CreateCertificateResult { json['certificate'] as Map) : null, operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13582,7 +13580,7 @@ class CreateCloudFormationStackResult { factory CreateCloudFormationStackResult.fromJson(Map json) { return CreateCloudFormationStackResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13602,7 +13600,7 @@ class CreateContactMethodResult { factory CreateContactMethodResult.fromJson(Map json) { return CreateContactMethodResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13679,7 +13677,7 @@ class CreateDiskFromSnapshotResult { factory CreateDiskFromSnapshotResult.fromJson(Map json) { return CreateDiskFromSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13699,7 +13697,7 @@ class CreateDiskResult { factory CreateDiskResult.fromJson(Map json) { return CreateDiskResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13719,7 +13717,7 @@ class CreateDiskSnapshotResult { factory CreateDiskSnapshotResult.fromJson(Map json) { return CreateDiskSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13822,7 +13820,7 @@ class CreateGUISessionAccessDetailsResult { percentageComplete: json['percentageComplete'] as int?, resourceName: json['resourceName'] as String?, sessions: (json['sessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Session.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(Status.fromString), @@ -13843,7 +13841,7 @@ class CreateInstanceSnapshotResult { factory CreateInstanceSnapshotResult.fromJson(Map json) { return CreateInstanceSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13864,7 +13862,7 @@ class CreateInstancesFromSnapshotResult { Map json) { return CreateInstancesFromSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13884,7 +13882,7 @@ class CreateInstancesResult { factory CreateInstancesResult.fromJson(Map json) { return CreateInstancesResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13941,7 +13939,7 @@ class CreateLoadBalancerResult { factory CreateLoadBalancerResult.fromJson(Map json) { return CreateLoadBalancerResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13962,7 +13960,7 @@ class CreateLoadBalancerTlsCertificateResult { Map json) { return CreateLoadBalancerTlsCertificateResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -13983,7 +13981,7 @@ class CreateRelationalDatabaseFromSnapshotResult { Map json) { return CreateRelationalDatabaseFromSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14003,7 +14001,7 @@ class CreateRelationalDatabaseResult { factory CreateRelationalDatabaseResult.fromJson(Map json) { return CreateRelationalDatabaseResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14024,7 +14022,7 @@ class CreateRelationalDatabaseSnapshotResult { Map json) { return CreateRelationalDatabaseSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14057,7 +14055,7 @@ class DeleteAlarmResult { factory DeleteAlarmResult.fromJson(Map json) { return DeleteAlarmResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14077,7 +14075,7 @@ class DeleteAutoSnapshotResult { factory DeleteAutoSnapshotResult.fromJson(Map json) { return DeleteAutoSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14097,7 +14095,7 @@ class DeleteBucketAccessKeyResult { factory DeleteBucketAccessKeyResult.fromJson(Map json) { return DeleteBucketAccessKeyResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14117,7 +14115,7 @@ class DeleteBucketResult { factory DeleteBucketResult.fromJson(Map json) { return DeleteBucketResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14137,7 +14135,7 @@ class DeleteCertificateResult { factory DeleteCertificateResult.fromJson(Map json) { return DeleteCertificateResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14157,7 +14155,7 @@ class DeleteContactMethodResult { factory DeleteContactMethodResult.fromJson(Map json) { return DeleteContactMethodResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14193,7 +14191,7 @@ class DeleteDiskResult { factory DeleteDiskResult.fromJson(Map json) { return DeleteDiskResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14213,7 +14211,7 @@ class DeleteDiskSnapshotResult { factory DeleteDiskSnapshotResult.fromJson(Map json) { return DeleteDiskSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14290,7 +14288,7 @@ class DeleteInstanceResult { factory DeleteInstanceResult.fromJson(Map json) { return DeleteInstanceResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14310,7 +14308,7 @@ class DeleteInstanceSnapshotResult { factory DeleteInstanceSnapshotResult.fromJson(Map json) { return DeleteInstanceSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14349,7 +14347,7 @@ class DeleteKnownHostKeysResult { factory DeleteKnownHostKeysResult.fromJson(Map json) { return DeleteKnownHostKeysResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14369,7 +14367,7 @@ class DeleteLoadBalancerResult { factory DeleteLoadBalancerResult.fromJson(Map json) { return DeleteLoadBalancerResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14390,7 +14388,7 @@ class DeleteLoadBalancerTlsCertificateResult { Map json) { return DeleteLoadBalancerTlsCertificateResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14410,7 +14408,7 @@ class DeleteRelationalDatabaseResult { factory DeleteRelationalDatabaseResult.fromJson(Map json) { return DeleteRelationalDatabaseResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14431,7 +14429,7 @@ class DeleteRelationalDatabaseSnapshotResult { Map json) { return DeleteRelationalDatabaseSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14492,7 +14490,7 @@ class DetachDiskResult { factory DetachDiskResult.fromJson(Map json) { return DetachDiskResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14513,7 +14511,7 @@ class DetachInstancesFromLoadBalancerResult { Map json) { return DetachInstancesFromLoadBalancerResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14533,7 +14531,7 @@ class DetachStaticIpResult { factory DetachStaticIpResult.fromJson(Map json) { return DetachStaticIpResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14553,7 +14551,7 @@ class DisableAddOnResult { factory DisableAddOnResult.fromJson(Map json) { return DisableAddOnResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -14659,7 +14657,7 @@ class Disk { factory Disk.fromJson(Map json) { return Disk( addOns: (json['addOns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddOn.fromJson(e as Map)) .toList(), arn: json['arn'] as String?, @@ -14683,7 +14681,7 @@ class Disk { state: (json['state'] as String?)?.let(DiskState.fromString), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -14840,7 +14838,7 @@ class DiskSnapshot { state: (json['state'] as String?)?.let(DiskSnapshotState.fromString), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -15075,7 +15073,7 @@ class Domain { arn: json['arn'] as String?, createdAt: timeStampFromJson(json['createdAt']), domainEntries: (json['domainEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainEntry.fromJson(e as Map)) .toList(), location: json['location'] != null @@ -15091,7 +15089,7 @@ class Domain { (json['resourceType'] as String?)?.let(ResourceType.fromString), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -15291,7 +15289,7 @@ class EnableAddOnResult { factory EnableAddOnResult.fromJson(Map json) { return EnableAddOnResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15517,7 +15515,7 @@ class ExportSnapshotResult { factory ExportSnapshotResult.fromJson(Map json) { return ExportSnapshotResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -15561,7 +15559,7 @@ class GetActiveNamesResult { factory GetActiveNamesResult.fromJson(Map json) { return GetActiveNamesResult( activeNames: (json['activeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -15590,7 +15588,7 @@ class GetAlarmsResult { factory GetAlarmsResult.fromJson(Map json) { return GetAlarmsResult( alarms: (json['alarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alarm.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -15619,7 +15617,7 @@ class GetAutoSnapshotsResult { factory GetAutoSnapshotsResult.fromJson(Map json) { return GetAutoSnapshotsResult( autoSnapshots: (json['autoSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoSnapshotDetails.fromJson(e as Map)) .toList(), resourceName: json['resourceName'] as String?, @@ -15651,7 +15649,7 @@ class GetBlueprintsResult { factory GetBlueprintsResult.fromJson(Map json) { return GetBlueprintsResult( blueprints: (json['blueprints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Blueprint.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -15670,7 +15668,7 @@ class GetBucketAccessKeysResult { factory GetBucketAccessKeysResult.fromJson(Map json) { return GetBucketAccessKeysResult( accessKeys: (json['accessKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessKey.fromJson(e as Map)) .toList(), ); @@ -15688,7 +15686,7 @@ class GetBucketBundlesResult { factory GetBucketBundlesResult.fromJson(Map json) { return GetBucketBundlesResult( bundles: (json['bundles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BucketBundle.fromJson(e as Map)) .toList(), ); @@ -15710,7 +15708,7 @@ class GetBucketMetricDataResult { factory GetBucketMetricDataResult.fromJson(Map json) { return GetBucketMetricDataResult( metricData: (json['metricData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatapoint.fromJson(e as Map)) .toList(), metricName: @@ -15754,7 +15752,7 @@ class GetBucketsResult { json['accountLevelBpaSync'] as Map) : null, buckets: (json['buckets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Bucket.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -15784,7 +15782,7 @@ class GetBundlesResult { factory GetBundlesResult.fromJson(Map json) { return GetBundlesResult( bundles: (json['bundles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Bundle.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -15810,7 +15808,7 @@ class GetCertificatesResult { factory GetCertificatesResult.fromJson(Map json) { return GetCertificatesResult( certificates: (json['certificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CertificateSummary.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -15840,7 +15838,7 @@ class GetCloudFormationStackRecordsResult { Map json) { return GetCloudFormationStackRecordsResult( cloudFormationStackRecords: (json['cloudFormationStackRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudFormationStackRecord.fromJson(e as Map)) .toList(), @@ -15860,7 +15858,7 @@ class GetContactMethodsResult { factory GetContactMethodsResult.fromJson(Map json) { return GetContactMethodsResult( contactMethods: (json['contactMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactMethod.fromJson(e as Map)) .toList(), ); @@ -15879,7 +15877,7 @@ class GetContainerAPIMetadataResult { factory GetContainerAPIMetadataResult.fromJson(Map json) { return GetContainerAPIMetadataResult( metadata: (json['metadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -15899,7 +15897,7 @@ class GetContainerImagesResult { factory GetContainerImagesResult.fromJson(Map json) { return GetContainerImagesResult( containerImages: (json['containerImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerImage.fromJson(e as Map)) .toList(), ); @@ -15927,7 +15925,7 @@ class GetContainerLogResult { factory GetContainerLogResult.fromJson(Map json) { return GetContainerLogResult( logEvents: (json['logEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerServiceLogEvent.fromJson(e as Map)) .toList(), @@ -15948,7 +15946,7 @@ class GetContainerServiceDeploymentsResult { Map json) { return GetContainerServiceDeploymentsResult( deployments: (json['deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerServiceDeployment.fromJson(e as Map)) .toList(), @@ -15972,7 +15970,7 @@ class GetContainerServiceMetricDataResult { Map json) { return GetContainerServiceMetricDataResult( metricData: (json['metricData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatapoint.fromJson(e as Map)) .toList(), metricName: (json['metricName'] as String?) @@ -15993,7 +15991,7 @@ class GetContainerServicePowersResult { factory GetContainerServicePowersResult.fromJson(Map json) { return GetContainerServicePowersResult( powers: (json['powers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerServicePower.fromJson(e as Map)) .toList(), ); @@ -16011,7 +16009,7 @@ class GetCostEstimateResult { factory GetCostEstimateResult.fromJson(Map json) { return GetCostEstimateResult( resourcesBudgetEstimate: (json['resourcesBudgetEstimate'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ResourceBudgetEstimate.fromJson(e as Map)) .toList(), @@ -16075,7 +16073,7 @@ class GetDiskSnapshotsResult { factory GetDiskSnapshotsResult.fromJson(Map json) { return GetDiskSnapshotsResult( diskSnapshots: (json['diskSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DiskSnapshot.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -16104,7 +16102,7 @@ class GetDisksResult { factory GetDisksResult.fromJson(Map json) { return GetDisksResult( disks: (json['disks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Disk.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -16123,7 +16121,7 @@ class GetDistributionBundlesResult { factory GetDistributionBundlesResult.fromJson(Map json) { return GetDistributionBundlesResult( bundles: (json['bundles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DistributionBundle.fromJson(e as Map)) .toList(), ); @@ -16167,7 +16165,7 @@ class GetDistributionMetricDataResult { factory GetDistributionMetricDataResult.fromJson(Map json) { return GetDistributionMetricDataResult( metricData: (json['metricData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatapoint.fromJson(e as Map)) .toList(), metricName: (json['metricName'] as String?) @@ -16197,7 +16195,7 @@ class GetDistributionsResult { factory GetDistributionsResult.fromJson(Map json) { return GetDistributionsResult( distributions: (json['distributions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LightsailDistribution.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -16245,7 +16243,7 @@ class GetDomainsResult { factory GetDomainsResult.fromJson(Map json) { return GetDomainsResult( domains: (json['domains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Domain.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -16274,7 +16272,7 @@ class GetExportSnapshotRecordsResult { factory GetExportSnapshotRecordsResult.fromJson(Map json) { return GetExportSnapshotRecordsResult( exportSnapshotRecords: (json['exportSnapshotRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportSnapshotRecord.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -16316,7 +16314,7 @@ class GetInstanceMetricDataResult { factory GetInstanceMetricDataResult.fromJson(Map json) { return GetInstanceMetricDataResult( metricData: (json['metricData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatapoint.fromJson(e as Map)) .toList(), metricName: @@ -16337,7 +16335,7 @@ class GetInstancePortStatesResult { factory GetInstancePortStatesResult.fromJson(Map json) { return GetInstancePortStatesResult( portStates: (json['portStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstancePortState.fromJson(e as Map)) .toList(), ); @@ -16403,7 +16401,7 @@ class GetInstanceSnapshotsResult { factory GetInstanceSnapshotsResult.fromJson(Map json) { return GetInstanceSnapshotsResult( instanceSnapshots: (json['instanceSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceSnapshot.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -16449,7 +16447,7 @@ class GetInstancesResult { factory GetInstancesResult.fromJson(Map json) { return GetInstancesResult( instances: (json['instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Instance.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -16495,7 +16493,7 @@ class GetKeyPairsResult { factory GetKeyPairsResult.fromJson(Map json) { return GetKeyPairsResult( keyPairs: (json['keyPairs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyPair.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -16518,7 +16516,7 @@ class GetLoadBalancerMetricDataResult { factory GetLoadBalancerMetricDataResult.fromJson(Map json) { return GetLoadBalancerMetricDataResult( metricData: (json['metricData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatapoint.fromJson(e as Map)) .toList(), metricName: (json['metricName'] as String?) @@ -16557,7 +16555,7 @@ class GetLoadBalancerTlsCertificatesResult { Map json) { return GetLoadBalancerTlsCertificatesResult( tlsCertificates: (json['tlsCertificates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancerTlsCertificate.fromJson(e as Map)) .toList(), @@ -16588,7 +16586,7 @@ class GetLoadBalancerTlsPoliciesResult { return GetLoadBalancerTlsPoliciesResult( nextPageToken: json['nextPageToken'] as String?, tlsPolicies: (json['tlsPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancerTlsPolicy.fromJson(e as Map)) .toList(), ); @@ -16616,7 +16614,7 @@ class GetLoadBalancersResult { factory GetLoadBalancersResult.fromJson(Map json) { return GetLoadBalancersResult( loadBalancers: (json['loadBalancers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancer.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -16677,7 +16675,7 @@ class GetOperationsForResourceResult { nextPageCount: json['nextPageCount'] as String?, nextPageToken: json['nextPageToken'] as String?, operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -16708,7 +16706,7 @@ class GetOperationsResult { return GetOperationsResult( nextPageToken: json['nextPageToken'] as String?, operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -16727,7 +16725,7 @@ class GetRegionsResult { factory GetRegionsResult.fromJson(Map json) { return GetRegionsResult( regions: (json['regions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Region.fromJson(e as Map)) .toList(), ); @@ -16757,7 +16755,7 @@ class GetRelationalDatabaseBlueprintsResult { Map json) { return GetRelationalDatabaseBlueprintsResult( blueprints: (json['blueprints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationalDatabaseBlueprint.fromJson(e as Map)) .toList(), @@ -16789,7 +16787,7 @@ class GetRelationalDatabaseBundlesResult { Map json) { return GetRelationalDatabaseBundlesResult( bundles: (json['bundles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationalDatabaseBundle.fromJson(e as Map)) .toList(), @@ -16822,7 +16820,7 @@ class GetRelationalDatabaseEventsResult { return GetRelationalDatabaseEventsResult( nextPageToken: json['nextPageToken'] as String?, relationalDatabaseEvents: (json['relationalDatabaseEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationalDatabaseEvent.fromJson(e as Map)) .toList(), @@ -16855,7 +16853,7 @@ class GetRelationalDatabaseLogEventsResult { nextBackwardToken: json['nextBackwardToken'] as String?, nextForwardToken: json['nextForwardToken'] as String?, resourceLogEvents: (json['resourceLogEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogEvent.fromJson(e as Map)) .toList(), ); @@ -16875,7 +16873,7 @@ class GetRelationalDatabaseLogStreamsResult { Map json) { return GetRelationalDatabaseLogStreamsResult( logStreams: (json['logStreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -16920,7 +16918,7 @@ class GetRelationalDatabaseMetricDataResult { Map json) { return GetRelationalDatabaseMetricDataResult( metricData: (json['metricData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatapoint.fromJson(e as Map)) .toList(), metricName: (json['metricName'] as String?) @@ -16953,7 +16951,7 @@ class GetRelationalDatabaseParametersResult { return GetRelationalDatabaseParametersResult( nextPageToken: json['nextPageToken'] as String?, parameters: (json['parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationalDatabaseParameter.fromJson(e as Map)) .toList(), @@ -17023,7 +17021,7 @@ class GetRelationalDatabaseSnapshotsResult { nextPageToken: json['nextPageToken'] as String?, relationalDatabaseSnapshots: (json['relationalDatabaseSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationalDatabaseSnapshot.fromJson(e as Map)) .toList(), @@ -17053,7 +17051,7 @@ class GetRelationalDatabasesResult { return GetRelationalDatabasesResult( nextPageToken: json['nextPageToken'] as String?, relationalDatabases: (json['relationalDatabases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelationalDatabase.fromJson(e as Map)) .toList(), ); @@ -17082,7 +17080,7 @@ class GetSetupHistoryResult { return GetSetupHistoryResult( nextPageToken: json['nextPageToken'] as String?, setupHistory: (json['setupHistory'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SetupHistory.fromJson(e as Map)) .toList(), ); @@ -17130,7 +17128,7 @@ class GetStaticIpsResult { return GetStaticIpsResult( nextPageToken: json['nextPageToken'] as String?, staticIps: (json['staticIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StaticIp.fromJson(e as Map)) .toList(), ); @@ -17206,7 +17204,7 @@ class HeaderObject { factory HeaderObject.fromJson(Map json) { return HeaderObject( headersAllowList: (json['headersAllowList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HeaderEnum.fromString((e as String))) .toList(), option: (json['option'] as String?)?.let(ForwardValues.fromString), @@ -17520,7 +17518,7 @@ class Instance { factory Instance.fromJson(Map json) { return Instance( addOns: (json['addOns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddOn.fromJson(e as Map)) .toList(), arn: json['arn'] as String?, @@ -17534,7 +17532,7 @@ class Instance { ipAddressType: (json['ipAddressType'] as String?)?.let(IpAddressType.fromString), ipv6Addresses: (json['ipv6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), isStaticIp: json['isStaticIp'] as bool?, @@ -17560,7 +17558,7 @@ class Instance { : null, supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), username: json['username'] as String?, @@ -17643,13 +17641,13 @@ class InstanceAccessDetails { certKey: json['certKey'] as String?, expiresAt: timeStampFromJson(json['expiresAt']), hostKeys: (json['hostKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HostKeyAttributes.fromJson(e as Map)) .toList(), instanceName: json['instanceName'] as String?, ipAddress: json['ipAddress'] as String?, ipv6Addresses: (json['ipv6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), password: json['password'] as String?, @@ -17788,7 +17786,7 @@ class InstanceHardware { return InstanceHardware( cpuCount: json['cpuCount'] as int?, disks: (json['disks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Disk.fromJson(e as Map)) .toList(), ramSizeInGb: json['ramSizeInGb'] as double?, @@ -18075,7 +18073,7 @@ class InstanceNetworking { json['monthlyTransfer'] as Map) : null, ports: (json['ports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstancePortInfo.fromJson(e as Map)) .toList(), ); @@ -18266,17 +18264,15 @@ class InstancePortInfo { accessType: (json['accessType'] as String?)?.let(PortAccessType.fromString), cidrListAliases: (json['cidrListAliases'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - cidrs: (json['cidrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + cidrs: + (json['cidrs'] as List?)?.nonNulls.map((e) => e as String).toList(), commonName: json['commonName'] as String?, fromPort: json['fromPort'] as int?, ipv6Cidrs: (json['ipv6Cidrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), protocol: (json['protocol'] as String?)?.let(NetworkProtocol.fromString), @@ -18437,16 +18433,14 @@ class InstancePortState { factory InstancePortState.fromJson(Map json) { return InstancePortState( cidrListAliases: (json['cidrListAliases'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - cidrs: (json['cidrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + cidrs: + (json['cidrs'] as List?)?.nonNulls.map((e) => e as String).toList(), fromPort: json['fromPort'] as int?, ipv6Cidrs: (json['ipv6Cidrs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), protocol: (json['protocol'] as String?)?.let(NetworkProtocol.fromString), @@ -18546,7 +18540,7 @@ class InstanceSnapshot { arn: json['arn'] as String?, createdAt: timeStampFromJson(json['createdAt']), fromAttachedDisks: (json['fromAttachedDisks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Disk.fromJson(e as Map)) .toList(), fromBlueprintId: json['fromBlueprintId'] as String?, @@ -18565,7 +18559,7 @@ class InstanceSnapshot { state: (json['state'] as String?)?.let(InstanceSnapshotState.fromString), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -18597,7 +18591,7 @@ class InstanceSnapshotInfo { fromBlueprintId: json['fromBlueprintId'] as String?, fromBundleId: json['fromBundleId'] as String?, fromDiskInfo: (json['fromDiskInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DiskInfo.fromJson(e as Map)) .toList(), ); @@ -18729,7 +18723,7 @@ class KeyPair { (json['resourceType'] as String?)?.let(ResourceType.fromString), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -18853,7 +18847,7 @@ class LightsailDistribution { return LightsailDistribution( ableToUpdateBundle: json['ableToUpdateBundle'] as bool?, alternativeDomainNames: (json['alternativeDomainNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), arn: json['arn'] as String?, @@ -18863,7 +18857,7 @@ class LightsailDistribution { json['cacheBehaviorSettings'] as Map) : null, cacheBehaviors: (json['cacheBehaviors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CacheBehaviorPerPath.fromJson(e as Map)) .toList(), certificateName: json['certificateName'] as String?, @@ -18889,7 +18883,7 @@ class LightsailDistribution { status: json['status'] as String?, supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), viewerMinimumTlsProtocolVersion: @@ -19013,7 +19007,7 @@ class LoadBalancer { healthCheckPath: json['healthCheckPath'] as String?, httpsRedirectionEnabled: json['httpsRedirectionEnabled'] as bool?, instanceHealthSummary: (json['instanceHealthSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceHealthSummary.fromJson(e as Map)) .toList(), instancePort: json['instancePort'] as int?, @@ -19026,7 +19020,7 @@ class LoadBalancer { protocol: (json['protocol'] as String?)?.let(LoadBalancerProtocol.fromString), publicPorts: (json['publicPorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), resourceType: @@ -19034,11 +19028,11 @@ class LoadBalancer { state: (json['state'] as String?)?.let(LoadBalancerState.fromString), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), tlsCertificateSummaries: (json['tlsCertificateSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancerTlsCertificateSummary.fromJson( e as Map)) .toList(), @@ -19345,7 +19339,7 @@ class LoadBalancerTlsCertificate { createdAt: timeStampFromJson(json['createdAt']), domainName: json['domainName'] as String?, domainValidationRecords: (json['domainValidationRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancerTlsCertificateDomainValidationRecord.fromJson( e as Map)) .toList(), @@ -19377,12 +19371,12 @@ class LoadBalancerTlsCertificate { ?.let(LoadBalancerTlsCertificateStatus.fromString), subject: json['subject'] as String?, subjectAlternativeNames: (json['subjectAlternativeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -19653,7 +19647,7 @@ class LoadBalancerTlsCertificateRenewalSummary { Map json) { return LoadBalancerTlsCertificateRenewalSummary( domainValidationOptions: (json['domainValidationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBalancerTlsCertificateDomainValidationOption.fromJson( e as Map)) .toList(), @@ -19766,15 +19760,13 @@ class LoadBalancerTlsPolicy { factory LoadBalancerTlsPolicy.fromJson(Map json) { return LoadBalancerTlsPolicy( - ciphers: (json['ciphers'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ciphers: + (json['ciphers'] as List?)?.nonNulls.map((e) => e as String).toList(), description: json['description'] as String?, isDefault: json['isDefault'] as bool?, name: json['name'] as String?, protocols: (json['protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -20761,7 +20753,7 @@ class PutAlarmResult { factory PutAlarmResult.fromJson(Map json) { return PutAlarmResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -20816,7 +20808,7 @@ class QueryStringObject { return QueryStringObject( option: json['option'] as bool?, queryStringsAllowList: (json['queryStringsAllowList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -20903,7 +20895,7 @@ class RebootInstanceResult { factory RebootInstanceResult.fromJson(Map json) { return RebootInstanceResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -20923,7 +20915,7 @@ class RebootRelationalDatabaseResult { factory RebootRelationalDatabaseResult.fromJson(Map json) { return RebootRelationalDatabaseResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -20981,7 +20973,7 @@ class Region { factory Region.fromJson(Map json) { return Region( availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailabilityZone.fromJson(e as Map)) .toList(), continentCode: json['continentCode'] as String?, @@ -20990,7 +20982,7 @@ class Region { name: (json['name'] as String?)?.let(RegionName.fromString), relationalDatabaseAvailabilityZones: (json['relationalDatabaseAvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailabilityZone.fromJson(e as Map)) .toList(), ); @@ -21258,7 +21250,7 @@ class RelationalDatabase { name: json['name'] as String?, parameterApplyStatus: json['parameterApplyStatus'] as String?, pendingMaintenanceActions: (json['pendingMaintenanceActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingMaintenanceAction.fromJson(e as Map)) .toList(), @@ -21278,7 +21270,7 @@ class RelationalDatabase { state: json['state'] as String?, supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -21449,7 +21441,7 @@ class RelationalDatabaseEvent { return RelationalDatabaseEvent( createdAt: timeStampFromJson(json['createdAt']), eventCategories: (json['eventCategories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), message: json['message'] as String?, @@ -21692,7 +21684,7 @@ class RelationalDatabaseSnapshot { state: json['state'] as String?, supportCode: json['supportCode'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -21712,7 +21704,7 @@ class ReleaseStaticIpResult { factory ReleaseStaticIpResult.fromJson(Map json) { return ReleaseStaticIpResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -21790,7 +21782,7 @@ class RenewalSummary { factory RenewalSummary.fromJson(Map json) { return RenewalSummary( domainValidationRecords: (json['domainValidationRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DomainValidationRecord.fromJson(e as Map)) .toList(), @@ -21875,7 +21867,7 @@ class ResourceBudgetEstimate { factory ResourceBudgetEstimate.fromJson(Map json) { return ResourceBudgetEstimate( costEstimates: (json['costEstimates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CostEstimate.fromJson(e as Map)) .toList(), endTime: timeStampFromJson(json['endTime']), @@ -22005,7 +21997,7 @@ class SendContactMethodVerificationResult { Map json) { return SendContactMethodVerificationResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22054,7 +22046,7 @@ class SetIpAddressTypeResult { factory SetIpAddressTypeResult.fromJson(Map json) { return SetIpAddressTypeResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22074,7 +22066,7 @@ class SetResourceAccessForBucketResult { factory SetResourceAccessForBucketResult.fromJson(Map json) { return SetResourceAccessForBucketResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22157,7 +22149,7 @@ class SetupHistory { factory SetupHistory.fromJson(Map json) { return SetupHistory( executionDetails: (json['executionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SetupExecutionDetails.fromJson(e as Map)) .toList(), operationId: json['operationId'] as String?, @@ -22221,7 +22213,7 @@ class SetupInstanceHttpsResult { factory SetupInstanceHttpsResult.fromJson(Map json) { return SetupInstanceHttpsResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22252,7 +22244,7 @@ class SetupRequest { certificateProvider: (json['certificateProvider'] as String?) ?.let(CertificateProvider.fromString), domainNames: (json['domainNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), instanceName: json['instanceName'] as String?, @@ -22286,7 +22278,7 @@ class StartGUISessionResult { factory StartGUISessionResult.fromJson(Map json) { return StartGUISessionResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22306,7 +22298,7 @@ class StartInstanceResult { factory StartInstanceResult.fromJson(Map json) { return StartInstanceResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22326,7 +22318,7 @@ class StartRelationalDatabaseResult { factory StartRelationalDatabaseResult.fromJson(Map json) { return StartRelationalDatabaseResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22443,7 +22435,7 @@ class StopGUISessionResult { factory StopGUISessionResult.fromJson(Map json) { return StopGUISessionResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22491,7 +22483,7 @@ class StopInstanceResult { factory StopInstanceResult.fromJson(Map json) { return StopInstanceResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22511,7 +22503,7 @@ class StopRelationalDatabaseResult { factory StopRelationalDatabaseResult.fromJson(Map json) { return StopRelationalDatabaseResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22572,7 +22564,7 @@ class TagResourceResult { factory TagResourceResult.fromJson(Map json) { return TagResourceResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22592,7 +22584,7 @@ class TestAlarmResult { factory TestAlarmResult.fromJson(Map json) { return TestAlarmResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22681,7 +22673,7 @@ class UntagResourceResult { factory UntagResourceResult.fromJson(Map json) { return UntagResourceResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22701,7 +22693,7 @@ class UpdateBucketBundleResult { factory UpdateBucketBundleResult.fromJson(Map json) { return UpdateBucketBundleResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22728,7 +22720,7 @@ class UpdateBucketResult { ? Bucket.fromJson(json['bucket'] as Map) : null, operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22804,7 +22796,7 @@ class UpdateDomainEntryResult { factory UpdateDomainEntryResult.fromJson(Map json) { return UpdateDomainEntryResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22845,7 +22837,7 @@ class UpdateLoadBalancerAttributeResult { Map json) { return UpdateLoadBalancerAttributeResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22866,7 +22858,7 @@ class UpdateRelationalDatabaseParametersResult { Map json) { return UpdateRelationalDatabaseParametersResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); @@ -22886,7 +22878,7 @@ class UpdateRelationalDatabaseResult { factory UpdateRelationalDatabaseResult.fromJson(Map json) { return UpdateRelationalDatabaseResult( operations: (json['operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Operation.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_lightsail_api/pubspec.yaml b/generated/aws_lightsail_api/pubspec.yaml index 268efc9d1..b27f5dc66 100644 --- a/generated/aws_lightsail_api/pubspec.yaml +++ b/generated/aws_lightsail_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_lights protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_logs_api/lib/logs-2014-03-28.dart b/generated/aws_logs_api/lib/logs-2014-03-28.dart index e4ebaebe8..295aba140 100644 --- a/generated/aws_logs_api/lib/logs-2014-03-28.dart +++ b/generated/aws_logs_api/lib/logs-2014-03-28.dart @@ -5151,17 +5151,17 @@ class Anomaly { .map((k, e) => MapEntry(k, e as int)), lastSeen: json['lastSeen'] as int, logGroupArnList: (json['logGroupArnList'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), logSamples: (json['logSamples'] as List) - .whereNotNull() + .nonNulls .map((e) => LogEvent.fromJson(e as Map)) .toList(), patternId: json['patternId'] as String, patternString: json['patternString'] as String, patternTokens: (json['patternTokens'] as List) - .whereNotNull() + .nonNulls .map((e) => PatternToken.fromJson(e as Map)) .toList(), state: State.fromString((json['state'] as String)), @@ -5237,7 +5237,7 @@ class AnomalyDetector { kmsKeyId: json['kmsKeyId'] as String?, lastModifiedTimeStamp: json['lastModifiedTimeStamp'] as int?, logGroupArnList: (json['logGroupArnList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5604,7 +5604,7 @@ class DeliverySource { logType: json['logType'] as String?, name: json['name'] as String?, resourceArns: (json['resourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), service: json['service'] as String?, @@ -5626,7 +5626,7 @@ class DescribeAccountPoliciesResponse { factory DescribeAccountPoliciesResponse.fromJson(Map json) { return DescribeAccountPoliciesResponse( accountPolicies: (json['accountPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountPolicy.fromJson(e as Map)) .toList(), ); @@ -5647,7 +5647,7 @@ class DescribeDeliveriesResponse { factory DescribeDeliveriesResponse.fromJson(Map json) { return DescribeDeliveriesResponse( deliveries: (json['deliveries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Delivery.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5670,7 +5670,7 @@ class DescribeDeliveryDestinationsResponse { Map json) { return DescribeDeliveryDestinationsResponse( deliveryDestinations: (json['deliveryDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeliveryDestination.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5692,7 +5692,7 @@ class DescribeDeliverySourcesResponse { factory DescribeDeliverySourcesResponse.fromJson(Map json) { return DescribeDeliverySourcesResponse( deliverySources: (json['deliverySources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeliverySource.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5713,7 +5713,7 @@ class DescribeDestinationsResponse { factory DescribeDestinationsResponse.fromJson(Map json) { return DescribeDestinationsResponse( destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Destination.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5734,7 +5734,7 @@ class DescribeExportTasksResponse { factory DescribeExportTasksResponse.fromJson(Map json) { return DescribeExportTasksResponse( exportTasks: (json['exportTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportTask.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5758,7 +5758,7 @@ class DescribeLogGroupsResponse { factory DescribeLogGroupsResponse.fromJson(Map json) { return DescribeLogGroupsResponse( logGroups: (json['logGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogGroup.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5779,7 +5779,7 @@ class DescribeLogStreamsResponse { factory DescribeLogStreamsResponse.fromJson(Map json) { return DescribeLogStreamsResponse( logStreams: (json['logStreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogStream.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5800,7 +5800,7 @@ class DescribeMetricFiltersResponse { factory DescribeMetricFiltersResponse.fromJson(Map json) { return DescribeMetricFiltersResponse( metricFilters: (json['metricFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricFilter.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5823,7 +5823,7 @@ class DescribeQueriesResponse { return DescribeQueriesResponse( nextToken: json['nextToken'] as String?, queries: (json['queries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryInfo.fromJson(e as Map)) .toList(), ); @@ -5845,7 +5845,7 @@ class DescribeQueryDefinitionsResponse { return DescribeQueryDefinitionsResponse( nextToken: json['nextToken'] as String?, queryDefinitions: (json['queryDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryDefinition.fromJson(e as Map)) .toList(), ); @@ -5867,7 +5867,7 @@ class DescribeResourcePoliciesResponse { return DescribeResourcePoliciesResponse( nextToken: json['nextToken'] as String?, resourcePolicies: (json['resourcePolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePolicy.fromJson(e as Map)) .toList(), ); @@ -5890,7 +5890,7 @@ class DescribeSubscriptionFiltersResponse { return DescribeSubscriptionFiltersResponse( nextToken: json['nextToken'] as String?, subscriptionFilters: (json['subscriptionFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubscriptionFilter.fromJson(e as Map)) .toList(), ); @@ -6131,12 +6131,12 @@ class FilterLogEventsResponse { factory FilterLogEventsResponse.fromJson(Map json) { return FilterLogEventsResponse( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilteredLogEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, searchedLogStreams: (json['searchedLogStreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SearchedLogStream.fromJson(e as Map)) .toList(), ); @@ -6338,7 +6338,7 @@ class GetLogAnomalyDetectorResponse { kmsKeyId: json['kmsKeyId'] as String?, lastModifiedTimeStamp: json['lastModifiedTimeStamp'] as int?, logGroupArnList: (json['logGroupArnList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6368,7 +6368,7 @@ class GetLogEventsResponse { factory GetLogEventsResponse.fromJson(Map json) { return GetLogEventsResponse( events: (json['events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputLogEvent.fromJson(e as Map)) .toList(), nextBackwardToken: json['nextBackwardToken'] as String?, @@ -6390,7 +6390,7 @@ class GetLogGroupFieldsResponse { factory GetLogGroupFieldsResponse.fromJson(Map json) { return GetLogGroupFieldsResponse( logGroupFields: (json['logGroupFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogGroupField.fromJson(e as Map)) .toList(), ); @@ -6455,9 +6455,9 @@ class GetQueryResultsResponse { return GetQueryResultsResponse( encryptionKey: json['encryptionKey'] as String?, results: (json['results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => ResultField.fromJson(e as Map)) .toList()) .toList(), @@ -6522,7 +6522,7 @@ class ListAnomaliesResponse { factory ListAnomaliesResponse.fromJson(Map json) { return ListAnomaliesResponse( anomalies: (json['anomalies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Anomaly.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6544,7 +6544,7 @@ class ListLogAnomalyDetectorsResponse { factory ListLogAnomalyDetectorsResponse.fromJson(Map json) { return ListLogAnomalyDetectorsResponse( anomalyDetectors: (json['anomalyDetectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalyDetector.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -6699,15 +6699,15 @@ class LiveTailSessionStart { return LiveTailSessionStart( logEventFilterPattern: json['logEventFilterPattern'] as String?, logGroupIdentifiers: (json['logGroupIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), logStreamNamePrefixes: (json['logStreamNamePrefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), logStreamNames: (json['logStreamNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), requestId: json['requestId'] as String?, @@ -6742,7 +6742,7 @@ class LiveTailSessionUpdate { json['sessionMetadata'] as Map) : null, sessionResults: (json['sessionResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LiveTailSessionLogEvent.fromJson(e as Map)) .toList(), @@ -6878,7 +6878,7 @@ class LogGroup { dataProtectionStatus: (json['dataProtectionStatus'] as String?) ?.let(DataProtectionStatus.fromString), inheritedProperties: (json['inheritedProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InheritedProperty.fromString((e as String))) .toList(), kmsKeyId: json['kmsKeyId'] as String?, @@ -7036,7 +7036,7 @@ class MetricFilter { filterPattern: json['filterPattern'] as String?, logGroupName: json['logGroupName'] as String?, metricTransformations: (json['metricTransformations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricTransformation.fromJson(e as Map)) .toList(), ); @@ -7499,7 +7499,7 @@ class QueryDefinition { return QueryDefinition( lastModified: json['lastModified'] as int?, logGroupNames: (json['logGroupNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -8021,7 +8021,7 @@ class TestMetricFilterResponse { factory TestMetricFilterResponse.fromJson(Map json) { return TestMetricFilterResponse( matches: (json['matches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricFilterMatchRecord.fromJson(e as Map)) .toList(), diff --git a/generated/aws_logs_api/pubspec.yaml b/generated/aws_logs_api/pubspec.yaml index 843162a52..9d5c02bec 100644 --- a/generated/aws_logs_api/pubspec.yaml +++ b/generated/aws_logs_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_logs_a protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_machinelearning_api/lib/machinelearning-2014-12-12.dart b/generated/aws_machinelearning_api/lib/machinelearning-2014-12-12.dart index 211e2e0a0..66c396eb0 100644 --- a/generated/aws_machinelearning_api/lib/machinelearning-2014-12-12.dart +++ b/generated/aws_machinelearning_api/lib/machinelearning-2014-12-12.dart @@ -2810,7 +2810,7 @@ class DescribeBatchPredictionsOutput { return DescribeBatchPredictionsOutput( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchPrediction.fromJson(e as Map)) .toList(), ); @@ -2836,7 +2836,7 @@ class DescribeDataSourcesOutput { return DescribeDataSourcesOutput( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), ); @@ -2862,7 +2862,7 @@ class DescribeEvaluationsOutput { return DescribeEvaluationsOutput( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Evaluation.fromJson(e as Map)) .toList(), ); @@ -2888,7 +2888,7 @@ class DescribeMLModelsOutput { return DescribeMLModelsOutput( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MLModel.fromJson(e as Map)) .toList(), ); @@ -2918,7 +2918,7 @@ class DescribeTagsOutput { resourceType: (json['ResourceType'] as String?) ?.let(TaggableResourceType.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_machinelearning_api/pubspec.yaml b/generated/aws_machinelearning_api/pubspec.yaml index 5ec3f02bd..7982cb7fd 100644 --- a/generated/aws_machinelearning_api/pubspec.yaml +++ b/generated/aws_machinelearning_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_machin protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_macie_api/lib/macie-2017-12-19.dart b/generated/aws_macie_api/lib/macie-2017-12-19.dart index 109466df7..04deea50e 100644 --- a/generated/aws_macie_api/lib/macie-2017-12-19.dart +++ b/generated/aws_macie_api/lib/macie-2017-12-19.dart @@ -347,7 +347,7 @@ class AssociateS3ResourcesResult { factory AssociateS3ResourcesResult.fromJson(Map json) { return AssociateS3ResourcesResult( failedS3Resources: (json['failedS3Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedS3Resource.fromJson(e as Map)) .toList(), ); @@ -431,7 +431,7 @@ class DisassociateS3ResourcesResult { factory DisassociateS3ResourcesResult.fromJson(Map json) { return DisassociateS3ResourcesResult( failedS3Resources: (json['failedS3Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedS3Resource.fromJson(e as Map)) .toList(), ); @@ -487,7 +487,7 @@ class ListMemberAccountsResult { factory ListMemberAccountsResult.fromJson(Map json) { return ListMemberAccountsResult( memberAccounts: (json['memberAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberAccount.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -515,7 +515,7 @@ class ListS3ResourcesResult { return ListS3ResourcesResult( nextToken: json['nextToken'] as String?, s3Resources: (json['s3Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3ResourceClassification.fromJson(e as Map)) .toList(), @@ -694,7 +694,7 @@ class UpdateS3ResourcesResult { factory UpdateS3ResourcesResult.fromJson(Map json) { return UpdateS3ResourcesResult( failedS3Resources: (json['failedS3Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedS3Resource.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_macie_api/pubspec.yaml b/generated/aws_macie_api/pubspec.yaml index 917852c95..8c2310a91 100644 --- a/generated/aws_macie_api/pubspec.yaml +++ b/generated/aws_macie_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_macie_ protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_managedblockchain_api/lib/managedblockchain-2018-09-24.dart b/generated/aws_managedblockchain_api/lib/managedblockchain-2018-09-24.dart index c5af303be..e3a2fe012 100644 --- a/generated/aws_managedblockchain_api/lib/managedblockchain-2018-09-24.dart +++ b/generated/aws_managedblockchain_api/lib/managedblockchain-2018-09-24.dart @@ -1931,7 +1931,7 @@ class ListAccessorsOutput { factory ListAccessorsOutput.fromJson(Map json) { return ListAccessorsOutput( accessors: (json['Accessors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessorSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1954,7 +1954,7 @@ class ListInvitationsOutput { factory ListInvitationsOutput.fromJson(Map json) { return ListInvitationsOutput( invitations: (json['Invitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Invitation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1978,7 +1978,7 @@ class ListMembersOutput { factory ListMembersOutput.fromJson(Map json) { return ListMembersOutput( members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2002,7 +2002,7 @@ class ListNetworksOutput { factory ListNetworksOutput.fromJson(Map json) { return ListNetworksOutput( networks: (json['Networks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2027,7 +2027,7 @@ class ListNodesOutput { return ListNodesOutput( nextToken: json['NextToken'] as String?, nodes: (json['Nodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NodeSummary.fromJson(e as Map)) .toList(), ); @@ -2050,7 +2050,7 @@ class ListProposalVotesOutput { return ListProposalVotesOutput( nextToken: json['NextToken'] as String?, proposalVotes: (json['ProposalVotes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VoteSummary.fromJson(e as Map)) .toList(), ); @@ -2073,7 +2073,7 @@ class ListProposalsOutput { return ListProposalsOutput( nextToken: json['NextToken'] as String?, proposals: (json['Proposals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProposalSummary.fromJson(e as Map)) .toList(), ); @@ -3499,11 +3499,11 @@ class ProposalActions { factory ProposalActions.fromJson(Map json) { return ProposalActions( invitations: (json['Invitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InviteAction.fromJson(e as Map)) .toList(), removals: (json['Removals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RemoveAction.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_managedblockchain_api/pubspec.yaml b/generated/aws_managedblockchain_api/pubspec.yaml index 37104d04b..d7a8d0af8 100644 --- a/generated/aws_managedblockchain_api/pubspec.yaml +++ b/generated/aws_managedblockchain_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_manage protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_marketplace_catalog_api/lib/marketplace-catalog-2018-09-17.dart b/generated/aws_marketplace_catalog_api/lib/marketplace-catalog-2018-09-17.dart index 5420610b6..4cc059858 100644 --- a/generated/aws_marketplace_catalog_api/lib/marketplace-catalog-2018-09-17.dart +++ b/generated/aws_marketplace_catalog_api/lib/marketplace-catalog-2018-09-17.dart @@ -1015,7 +1015,7 @@ class ChangeSetSummaryListItem { changeSetName: json['ChangeSetName'] as String?, endTime: json['EndTime'] as String?, entityIdList: (json['EntityIdList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failureCode: @@ -1089,7 +1089,7 @@ class ChangeSummary { ? Entity.fromJson(json['Entity'] as Map) : null, errorDetailList: (json['ErrorDetailList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetail.fromJson(e as Map)) .toList(), ); @@ -1606,7 +1606,7 @@ class DescribeChangeSetResponse { factory DescribeChangeSetResponse.fromJson(Map json) { return DescribeChangeSetResponse( changeSet: (json['ChangeSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeSummary.fromJson(e as Map)) .toList(), changeSetArn: json['ChangeSetArn'] as String?, @@ -2114,7 +2114,7 @@ class ListChangeSetsResponse { factory ListChangeSetsResponse.fromJson(Map json) { return ListChangeSetsResponse( changeSetSummaryList: (json['ChangeSetSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChangeSetSummaryListItem.fromJson(e as Map)) .toList(), @@ -2138,7 +2138,7 @@ class ListEntitiesResponse { factory ListEntitiesResponse.fromJson(Map json) { return ListEntitiesResponse( entitySummaryList: (json['EntitySummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntitySummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2163,7 +2163,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( resourceArn: json['ResourceArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2595,7 +2595,7 @@ class OfferSummary { return OfferSummary( availabilityEndDate: json['AvailabilityEndDate'] as String?, buyerAccounts: (json['BuyerAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -2604,7 +2604,7 @@ class OfferSummary { resaleAuthorizationId: json['ResaleAuthorizationId'] as String?, state: (json['State'] as String?)?.let(OfferStateString.fromString), targeting: (json['Targeting'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OfferTargetingString.fromString((e as String))) .toList(), ); diff --git a/generated/aws_marketplace_catalog_api/pubspec.yaml b/generated/aws_marketplace_catalog_api/pubspec.yaml index bf288b8df..a1a63ed57 100644 --- a/generated/aws_marketplace_catalog_api/pubspec.yaml +++ b/generated/aws_marketplace_catalog_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_market protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_marketplace_entitlement_api/lib/entitlement.marketplace-2017-01-11.dart b/generated/aws_marketplace_entitlement_api/lib/entitlement.marketplace-2017-01-11.dart index cc0e4f0d7..266e1673e 100644 --- a/generated/aws_marketplace_entitlement_api/lib/entitlement.marketplace-2017-01-11.dart +++ b/generated/aws_marketplace_entitlement_api/lib/entitlement.marketplace-2017-01-11.dart @@ -234,7 +234,7 @@ class GetEntitlementsResult { factory GetEntitlementsResult.fromJson(Map json) { return GetEntitlementsResult( entitlements: (json['Entitlements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entitlement.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/generated/aws_marketplace_entitlement_api/pubspec.yaml b/generated/aws_marketplace_entitlement_api/pubspec.yaml index f4813c3de..b3f57ea8c 100644 --- a/generated/aws_marketplace_entitlement_api/pubspec.yaml +++ b/generated/aws_marketplace_entitlement_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_market protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_marketplacecommerceanalytics_api/pubspec.yaml b/generated/aws_marketplacecommerceanalytics_api/pubspec.yaml index dbd3343ca..00227db64 100644 --- a/generated/aws_marketplacecommerceanalytics_api/pubspec.yaml +++ b/generated/aws_marketplacecommerceanalytics_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_market protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_mediaconnect_api/lib/mediaconnect-2018-11-14.dart b/generated/aws_mediaconnect_api/lib/mediaconnect-2018-11-14.dart index 56851c839..c8109316e 100644 --- a/generated/aws_mediaconnect_api/lib/mediaconnect-2018-11-14.dart +++ b/generated/aws_mediaconnect_api/lib/mediaconnect-2018-11-14.dart @@ -2177,7 +2177,7 @@ class AddBridgeOutputsResponse { return AddBridgeOutputsResponse( bridgeArn: json['bridgeArn'] as String?, outputs: (json['outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BridgeOutput.fromJson(e as Map)) .toList(), ); @@ -2220,7 +2220,7 @@ class AddBridgeSourcesResponse { return AddBridgeSourcesResponse( bridgeArn: json['bridgeArn'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BridgeSource.fromJson(e as Map)) .toList(), ); @@ -2259,7 +2259,7 @@ class AddFlowMediaStreamsResponse { return AddFlowMediaStreamsResponse( flowArn: json['flowArn'] as String?, mediaStreams: (json['mediaStreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaStream.fromJson(e as Map)) .toList(), ); @@ -2282,7 +2282,7 @@ class AddFlowOutputsResponse { return AddFlowOutputsResponse( flowArn: json['flowArn'] as String?, outputs: (json['outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), ); @@ -2305,7 +2305,7 @@ class AddFlowSourcesResponse { return AddFlowSourcesResponse( flowArn: json['flowArn'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), ); @@ -2328,7 +2328,7 @@ class AddFlowVpcInterfacesResponse { return AddFlowVpcInterfacesResponse( flowArn: json['flowArn'] as String?, vpcInterfaces: (json['vpcInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcInterface.fromJson(e as Map)) .toList(), ); @@ -2615,7 +2615,7 @@ class Bridge { name: json['name'] as String, placementArn: json['placementArn'] as String, bridgeMessages: (json['bridgeMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageDetail.fromJson(e as Map)) .toList(), egressGatewayBridge: json['egressGatewayBridge'] != null @@ -2627,7 +2627,7 @@ class Bridge { json['ingressGatewayBridge'] as Map) : null, outputs: (json['outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BridgeOutput.fromJson(e as Map)) .toList(), sourceFailoverConfig: json['sourceFailoverConfig'] != null @@ -2635,7 +2635,7 @@ class Bridge { json['sourceFailoverConfig'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BridgeSource.fromJson(e as Map)) .toList(), ); @@ -3082,7 +3082,7 @@ class DescribeFlowSourceMetadataResponse { return DescribeFlowSourceMetadataResponse( flowArn: json['flowArn'] as String?, messages: (json['messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageDetail.fromJson(e as Map)) .toList(), timestamp: timeStampFromJson(json['timestamp']), @@ -3511,7 +3511,7 @@ class Entitlement { entitlementArn: json['entitlementArn'] as String, name: json['name'] as String, subscribers: (json['subscribers'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), dataTransferSubscriberFeePercent: @@ -3666,13 +3666,13 @@ class Flow { return Flow( availabilityZone: json['availabilityZone'] as String, entitlements: (json['entitlements'] as List) - .whereNotNull() + .nonNulls .map((e) => Entitlement.fromJson(e as Map)) .toList(), flowArn: json['flowArn'] as String, name: json['name'] as String, outputs: (json['outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), source: Source.fromJson(json['source'] as Map), @@ -3683,7 +3683,7 @@ class Flow { ? Maintenance.fromJson(json['maintenance'] as Map) : null, mediaStreams: (json['mediaStreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaStream.fromJson(e as Map)) .toList(), sourceFailoverConfig: json['sourceFailoverConfig'] != null @@ -3691,11 +3691,11 @@ class Flow { json['sourceFailoverConfig'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), vpcInterfaces: (json['vpcInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcInterface.fromJson(e as Map)) .toList(), ); @@ -3863,17 +3863,17 @@ class Gateway { factory Gateway.fromJson(Map json) { return Gateway( egressCidrBlocks: (json['egressCidrBlocks'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), gatewayArn: json['gatewayArn'] as String, name: json['name'] as String, networks: (json['networks'] as List) - .whereNotNull() + .nonNulls .map((e) => GatewayNetwork.fromJson(e as Map)) .toList(), gatewayMessages: (json['gatewayMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageDetail.fromJson(e as Map)) .toList(), gatewayState: @@ -3958,7 +3958,7 @@ class GatewayInstance { InstanceState.fromString((json['instanceState'] as String)), runningBridgeCount: json['runningBridgeCount'] as int, instanceMessages: (json['instanceMessages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageDetail.fromJson(e as Map)) .toList(), ); @@ -4091,7 +4091,7 @@ class GrantFlowEntitlementsResponse { factory GrantFlowEntitlementsResponse.fromJson(Map json) { return GrantFlowEntitlementsResponse( entitlements: (json['entitlements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entitlement.fromJson(e as Map)) .toList(), flowArn: json['flowArn'] as String?, @@ -4263,7 +4263,7 @@ class ListBridgesResponse { factory ListBridgesResponse.fromJson(Map json) { return ListBridgesResponse( bridges: (json['bridges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListedBridge.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4291,7 +4291,7 @@ class ListEntitlementsResponse { factory ListEntitlementsResponse.fromJson(Map json) { return ListEntitlementsResponse( entitlements: (json['entitlements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListedEntitlement.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4318,7 +4318,7 @@ class ListFlowsResponse { factory ListFlowsResponse.fromJson(Map json) { return ListFlowsResponse( flows: (json['flows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListedFlow.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4345,7 +4345,7 @@ class ListGatewayInstancesResponse { factory ListGatewayInstancesResponse.fromJson(Map json) { return ListGatewayInstancesResponse( instances: (json['instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListedGatewayInstance.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4372,7 +4372,7 @@ class ListGatewaysResponse { factory ListGatewaysResponse.fromJson(Map json) { return ListGatewaysResponse( gateways: (json['gateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListedGateway.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4401,7 +4401,7 @@ class ListOfferingsResponse { return ListOfferingsResponse( nextToken: json['nextToken'] as String?, offerings: (json['offerings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Offering.fromJson(e as Map)) .toList(), ); @@ -4429,7 +4429,7 @@ class ListReservationsResponse { return ListReservationsResponse( nextToken: json['nextToken'] as String?, reservations: (json['reservations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Reservation.fromJson(e as Map)) .toList(), ); @@ -4816,7 +4816,7 @@ class MediaStreamOutputConfiguration { encodingName: EncodingName.fromString((json['encodingName'] as String)), mediaStreamName: json['mediaStreamName'] as String, destinationConfigurations: (json['destinationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DestinationConfiguration.fromJson(e as Map)) .toList(), @@ -4895,7 +4895,7 @@ class MediaStreamSourceConfiguration { encodingName: EncodingName.fromString((json['encodingName'] as String)), mediaStreamName: json['mediaStreamName'] as String, inputConfigurations: (json['inputConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputConfiguration.fromJson(e as Map)) .toList(), ); @@ -4988,10 +4988,8 @@ class Messages { factory Messages.fromJson(Map json) { return Messages( - errors: (json['errors'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + errors: + (json['errors'] as List).nonNulls.map((e) => e as String).toList(), ); } } @@ -5149,7 +5147,7 @@ class Output { outputArn: json['outputArn'] as String, bridgeArn: json['bridgeArn'] as String?, bridgePorts: (json['bridgePorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), dataTransferSubscriberFeePercent: @@ -5164,7 +5162,7 @@ class Output { mediaLiveInputArn: json['mediaLiveInputArn'] as String?, mediaStreamOutputConfigurations: (json['mediaStreamOutputConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaStreamOutputConfiguration.fromJson( e as Map)) .toList(), @@ -5363,7 +5361,7 @@ class RemoveFlowVpcInterfaceResponse { flowArn: json['flowArn'] as String?, nonDeletedNetworkInterfaceIds: (json['nonDeletedNetworkInterfaceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcInterfaceName: json['vpcInterfaceName'] as String?, @@ -5820,7 +5818,7 @@ class Source { ingestPort: json['ingestPort'] as int?, mediaStreamSourceConfigurations: (json['mediaStreamSourceConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaStreamSourceConfiguration.fromJson( e as Map)) .toList(), @@ -6040,7 +6038,7 @@ class Transport { return Transport( protocol: Protocol.fromString((json['protocol'] as String)), cidrAllowList: (json['cidrAllowList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxBitrate: json['maxBitrate'] as int?, @@ -6070,7 +6068,7 @@ class TransportMediaInfo { factory TransportMediaInfo.fromJson(Map json) { return TransportMediaInfo( programs: (json['programs'] as List) - .whereNotNull() + .nonNulls .map( (e) => TransportStreamProgram.fromJson(e as Map)) .toList(), @@ -6164,7 +6162,7 @@ class TransportStreamProgram { programNumber: json['programNumber'] as int, programPid: json['programPid'] as int, streams: (json['streams'] as List) - .whereNotNull() + .nonNulls .map((e) => TransportStream.fromJson(e as Map)) .toList(), programName: json['programName'] as String?, @@ -6727,14 +6725,14 @@ class VpcInterface { return VpcInterface( name: json['name'] as String, networkInterfaceIds: (json['networkInterfaceIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), networkInterfaceType: NetworkInterfaceType.fromString( (json['networkInterfaceType'] as String)), roleArn: json['roleArn'] as String, securityGroupIds: (json['securityGroupIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), subnetId: json['subnetId'] as String, diff --git a/generated/aws_mediaconnect_api/pubspec.yaml b/generated/aws_mediaconnect_api/pubspec.yaml index 0b36fa32e..7dffa83cf 100644 --- a/generated/aws_mediaconnect_api/pubspec.yaml +++ b/generated/aws_mediaconnect_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_mediac protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_mediaconvert_api/lib/mediaconvert-2017-08-29.dart b/generated/aws_mediaconvert_api/lib/mediaconvert-2017-08-29.dart index 2b4c7a941..93f7d9398 100644 --- a/generated/aws_mediaconvert_api/lib/mediaconvert-2017-08-29.dart +++ b/generated/aws_mediaconvert_api/lib/mediaconvert-2017-08-29.dart @@ -2294,7 +2294,7 @@ class AudioChannelTaggingSettings { channelTag: (json['channelTag'] as String?)?.let(AudioChannelTag.fromString), channelTags: (json['channelTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudioChannelTag.fromString((e as String))) .toList(), ); @@ -2999,8 +2999,7 @@ class AudioSelector { languageCode: (json['languageCode'] as String?)?.let(LanguageCode.fromString), offset: json['offset'] as int?, - pids: - (json['pids'] as List?)?.whereNotNull().map((e) => e as int).toList(), + pids: (json['pids'] as List?)?.nonNulls.map((e) => e as int).toList(), programSelection: json['programSelection'] as int?, remixSettings: json['remixSettings'] != null ? RemixSettings.fromJson( @@ -3008,10 +3007,7 @@ class AudioSelector { : null, selectorType: (json['selectorType'] as String?)?.let(AudioSelectorType.fromString), - tracks: (json['tracks'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + tracks: (json['tracks'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } @@ -3066,7 +3062,7 @@ class AudioSelectorGroup { factory AudioSelectorGroup.fromJson(Map json) { return AudioSelectorGroup( audioSelectorNames: (json['audioSelectorNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3196,11 +3192,11 @@ class AutomatedAbrRule { factory AutomatedAbrRule.fromJson(Map json) { return AutomatedAbrRule( allowedRenditions: (json['allowedRenditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AllowedRenditionSize.fromJson(e as Map)) .toList(), forceIncludeRenditions: (json['forceIncludeRenditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ForceIncludeRenditionSize.fromJson(e as Map)) .toList(), @@ -3282,7 +3278,7 @@ class AutomatedAbrSettings { maxRenditions: json['maxRenditions'] as int?, minAbrBitrate: json['minAbrBitrate'] as int?, rules: (json['rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomatedAbrRule.fromJson(e as Map)) .toList(), ); @@ -5379,7 +5375,7 @@ class ChannelMapping { factory ChannelMapping.fromJson(Map json) { return ChannelMapping( outputChannels: (json['outputChannels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputChannelMapping.fromJson(e as Map)) .toList(), ); @@ -5489,7 +5485,7 @@ class CmafAdditionalManifest { return CmafAdditionalManifest( manifestNameModifier: json['manifestNameModifier'] as String?, selectedOutputs: (json['selectedOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5851,7 +5847,7 @@ class CmafGroupSettings { factory CmafGroupSettings.fromJson(Map json) { return CmafGroupSettings( additionalManifests: (json['additionalManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CmafAdditionalManifest.fromJson(e as Map)) .toList(), @@ -7474,7 +7470,7 @@ class DashAdditionalManifest { return DashAdditionalManifest( manifestNameModifier: json['manifestNameModifier'] as String?, selectedOutputs: (json['selectedOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7742,7 +7738,7 @@ class DashIsoGroupSettings { factory DashIsoGroupSettings.fromJson(Map json) { return DashIsoGroupSettings( additionalManifests: (json['additionalManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DashAdditionalManifest.fromJson(e as Map)) .toList(), @@ -8392,7 +8388,7 @@ class DescribeEndpointsResponse { factory DescribeEndpointsResponse.fromJson(Map json) { return DescribeEndpointsResponse( endpoints: (json['endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Endpoint.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -13872,7 +13868,7 @@ class HlsAdditionalManifest { return HlsAdditionalManifest( manifestNameModifier: json['manifestNameModifier'] as String?, selectedOutputs: (json['selectedOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -14462,18 +14458,18 @@ class HlsGroupSettings { factory HlsGroupSettings.fromJson(Map json) { return HlsGroupSettings( adMarkers: (json['adMarkers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HlsAdMarkers.fromString((e as String))) .toList(), additionalManifests: (json['additionalManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HlsAdditionalManifest.fromJson(e as Map)) .toList(), audioOnlyHeader: (json['audioOnlyHeader'] as String?) ?.let(HlsAudioOnlyHeader.fromString), baseUrl: json['baseUrl'] as String?, captionLanguageMappings: (json['captionLanguageMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HlsCaptionLanguageMapping.fromJson(e as Map)) .toList(), @@ -15275,7 +15271,7 @@ class ImageInserter { factory ImageInserter.fromJson(Map json) { return ImageInserter( insertableImages: (json['insertableImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsertableImage.fromJson(e as Map)) .toList(), sdrReferenceWhiteLevel: json['sdrReferenceWhiteLevel'] as int?, @@ -15641,7 +15637,7 @@ class Input { json['imageInserter'] as Map) : null, inputClippings: (json['inputClippings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputClipping.fromJson(e as Map)) .toList(), inputScanType: @@ -15653,7 +15649,7 @@ class Input { psiControl: (json['psiControl'] as String?)?.let(InputPsiControl.fromString), supplementalImps: (json['supplementalImps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), timecodeSource: (json['timecodeSource'] as String?) @@ -15664,7 +15660,7 @@ class Input { json['videoGenerator'] as Map) : null, videoOverlays: (json['videoOverlays'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VideoOverlay.fromJson(e as Map)) .toList(), videoSelector: json['videoSelector'] != null @@ -16212,7 +16208,7 @@ class InputTemplate { json['imageInserter'] as Map) : null, inputClippings: (json['inputClippings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputClipping.fromJson(e as Map)) .toList(), inputScanType: @@ -16227,7 +16223,7 @@ class InputTemplate { ?.let(InputTimecodeSource.fromString), timecodeStart: json['timecodeStart'] as String?, videoOverlays: (json['videoOverlays'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VideoOverlay.fromJson(e as Map)) .toList(), videoSelector: json['videoSelector'] != null @@ -16641,7 +16637,7 @@ class Job { errorCode: json['errorCode'] as int?, errorMessage: json['errorMessage'] as String?, hopDestinations: (json['hopDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HopDestination.fromJson(e as Map)) .toList(), id: json['id'] as String?, @@ -16651,13 +16647,13 @@ class Job { ? JobMessages.fromJson(json['messages'] as Map) : null, outputGroupDetails: (json['outputGroupDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputGroupDetail.fromJson(e as Map)) .toList(), priority: json['priority'] as int?, queue: json['queue'] as String?, queueTransitions: (json['queueTransitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueueTransition.fromJson(e as Map)) .toList(), retryCount: json['retryCount'] as int?, @@ -16672,7 +16668,7 @@ class Job { userMetadata: (json['userMetadata'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WarningGroup.fromJson(e as Map)) .toList(), ); @@ -16697,14 +16693,9 @@ class JobMessages { factory JobMessages.fromJson(Map json) { return JobMessages( - info: (json['info'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - warning: (json['warning'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + info: (json['info'] as List?)?.nonNulls.map((e) => e as String).toList(), + warning: + (json['warning'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -16842,7 +16833,7 @@ class JobSettings { : null, colorConversion3DLUTSettings: (json['colorConversion3DLUTSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColorConversion3DLUTSetting.fromJson(e as Map)) .toList(), @@ -16855,7 +16846,7 @@ class JobSettings { : null, followSource: json['followSource'] as int?, inputs: (json['inputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Input.fromJson(e as Map)) .toList(), kantarWatermark: json['kantarWatermark'] != null @@ -16875,7 +16866,7 @@ class JobSettings { json['nielsenNonLinearWatermark'] as Map) : null, outputGroups: (json['outputGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputGroup.fromJson(e as Map)) .toList(), timecodeConfig: json['timecodeConfig'] != null @@ -17028,7 +17019,7 @@ class JobTemplate { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, hopDestinations: (json['hopDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HopDestination.fromJson(e as Map)) .toList(), lastUpdated: timeStampFromJson(json['lastUpdated']), @@ -17178,7 +17169,7 @@ class JobTemplateSettings { : null, colorConversion3DLUTSettings: (json['colorConversion3DLUTSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColorConversion3DLUTSetting.fromJson(e as Map)) .toList(), @@ -17191,7 +17182,7 @@ class JobTemplateSettings { : null, followSource: json['followSource'] as int?, inputs: (json['inputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputTemplate.fromJson(e as Map)) .toList(), kantarWatermark: json['kantarWatermark'] != null @@ -17211,7 +17202,7 @@ class JobTemplateSettings { json['nielsenNonLinearWatermark'] as Map) : null, outputGroups: (json['outputGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputGroup.fromJson(e as Map)) .toList(), timecodeConfig: json['timecodeConfig'] != null @@ -17624,7 +17615,7 @@ class ListJobTemplatesResponse { factory ListJobTemplatesResponse.fromJson(Map json) { return ListJobTemplatesResponse( jobTemplates: (json['jobTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobTemplate.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -17647,7 +17638,7 @@ class ListJobsResponse { factory ListJobsResponse.fromJson(Map json) { return ListJobsResponse( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Job.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -17671,7 +17662,7 @@ class ListPresetsResponse { return ListPresetsResponse( nextToken: json['nextToken'] as String?, presets: (json['presets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Preset.fromJson(e as Map)) .toList(), ); @@ -17694,7 +17685,7 @@ class ListQueuesResponse { return ListQueuesResponse( nextToken: json['nextToken'] as String?, queues: (json['queues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Queue.fromJson(e as Map)) .toList(), ); @@ -18369,10 +18360,8 @@ class M2tsSettings { audioDuration: (json['audioDuration'] as String?)?.let(M2tsAudioDuration.fromString), audioFramesPerPes: json['audioFramesPerPes'] as int?, - audioPids: (json['audioPids'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + audioPids: + (json['audioPids'] as List?)?.nonNulls.map((e) => e as int).toList(), bitrate: json['bitrate'] as int?, bufferModel: (json['bufferModel'] as String?)?.let(M2tsBufferModel.fromString), @@ -18386,10 +18375,8 @@ class M2tsSettings { ? DvbSdtSettings.fromJson( json['dvbSdtSettings'] as Map) : null, - dvbSubPids: (json['dvbSubPids'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + dvbSubPids: + (json['dvbSubPids'] as List?)?.nonNulls.map((e) => e as int).toList(), dvbTdtSettings: json['dvbTdtSettings'] != null ? DvbTdtSettings.fromJson( json['dvbTdtSettings'] as Map) @@ -18782,10 +18769,8 @@ class M3u8Settings { audioDuration: (json['audioDuration'] as String?)?.let(M3u8AudioDuration.fromString), audioFramesPerPes: json['audioFramesPerPes'] as int?, - audioPids: (json['audioPids'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + audioPids: + (json['audioPids'] as List?)?.nonNulls.map((e) => e as int).toList(), dataPTSControl: (json['dataPTSControl'] as String?) ?.let(M3u8DataPtsControl.fromString), maxPcrInterval: json['maxPcrInterval'] as int?, @@ -20769,7 +20754,7 @@ class MsSmoothAdditionalManifest { return MsSmoothAdditionalManifest( manifestNameModifier: json['manifestNameModifier'] as String?, selectedOutputs: (json['selectedOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -20913,7 +20898,7 @@ class MsSmoothGroupSettings { factory MsSmoothGroupSettings.fromJson(Map json) { return MsSmoothGroupSettings( additionalManifests: (json['additionalManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MsSmoothAdditionalManifest.fromJson(e as Map)) .toList(), @@ -21843,11 +21828,11 @@ class Output { factory Output.fromJson(Map json) { return Output( audioDescriptions: (json['audioDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudioDescription.fromJson(e as Map)) .toList(), captionDescriptions: (json['captionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionDescription.fromJson(e as Map)) .toList(), containerSettings: json['containerSettings'] != null @@ -21910,11 +21895,11 @@ class OutputChannelMapping { factory OutputChannelMapping.fromJson(Map json) { return OutputChannelMapping( inputChannels: (json['inputChannels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), inputChannelsFineTune: (json['inputChannelsFineTune'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -21997,7 +21982,7 @@ class OutputGroup { json['outputGroupSettings'] as Map) : null, outputs: (json['outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), ); @@ -22033,7 +22018,7 @@ class OutputGroupDetail { factory OutputGroupDetail.fromJson(Map json) { return OutputGroupDetail( outputDetails: (json['outputDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDetail.fromJson(e as Map)) .toList(), ); @@ -22387,11 +22372,11 @@ class PresetSettings { factory PresetSettings.fromJson(Map json) { return PresetSettings( audioDescriptions: (json['audioDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudioDescription.fromJson(e as Map)) .toList(), captionDescriptions: (json['captionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionDescriptionPreset.fromJson(e as Map)) .toList(), @@ -23756,7 +23741,7 @@ class SpekeKeyProvider { certificateArn: json['certificateArn'] as String?, resourceId: json['resourceId'] as String?, systemIds: (json['systemIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), url: json['url'] as String?, @@ -23819,11 +23804,11 @@ class SpekeKeyProviderCmaf { return SpekeKeyProviderCmaf( certificateArn: json['certificateArn'] as String?, dashSignaledSystemIds: (json['dashSignaledSystemIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), hlsSignaledSystemIds: (json['hlsSignaledSystemIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), resourceId: json['resourceId'] as String?, @@ -24017,7 +24002,7 @@ class TeletextDestinationSettings { return TeletextDestinationSettings( pageNumber: json['pageNumber'] as String?, pageTypes: (json['pageTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TeletextPageType.fromString((e as String))) .toList(), ); @@ -24278,7 +24263,7 @@ class TimedMetadataInsertion { factory TimedMetadataInsertion.fromJson(Map json) { return TimedMetadataInsertion( id3Insertions: (json['id3Insertions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Id3Insertion.fromJson(e as Map)) .toList(), ); @@ -25587,7 +25572,7 @@ class VideoOverlayInput { return VideoOverlayInput( fileInput: json['fileInput'] as String?, inputClippings: (json['inputClippings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VideoOverlayInputClipping.fromJson(e as Map)) .toList(), diff --git a/generated/aws_mediaconvert_api/pubspec.yaml b/generated/aws_mediaconvert_api/pubspec.yaml index 78c74fe03..05afbff1d 100644 --- a/generated/aws_mediaconvert_api/pubspec.yaml +++ b/generated/aws_mediaconvert_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_mediac protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_medialive_api/lib/medialive-2017-10-14.dart b/generated/aws_medialive_api/lib/medialive-2017-10-14.dart index 4e168fbb3..ad826449e 100644 --- a/generated/aws_medialive_api/lib/medialive-2017-10-14.dart +++ b/generated/aws_medialive_api/lib/medialive-2017-10-14.dart @@ -4170,7 +4170,7 @@ class AudioChannelMapping { factory AudioChannelMapping.fromJson(Map json) { return AudioChannelMapping( inputChannelLevels: (json['inputChannelLevels'] as List) - .whereNotNull() + .nonNulls .map((e) => InputChannelLevel.fromJson(e as Map)) .toList(), outputChannel: json['outputChannel'] as int, @@ -4338,7 +4338,7 @@ class AudioDescription { audioSelectorName: json['audioSelectorName'] as String, name: json['name'] as String, audioDashRoles: (json['audioDashRoles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashRoleAudio.fromString((e as String))) .toList(), audioNormalizationSettings: json['audioNormalizationSettings'] != null @@ -4920,7 +4920,7 @@ class AudioTrackSelection { factory AudioTrackSelection.fromJson(Map json) { return AudioTrackSelection( tracks: (json['tracks'] as List) - .whereNotNull() + .nonNulls .map((e) => AudioTrack.fromJson(e as Map)) .toList(), dolbyEDecode: json['dolbyEDecode'] != null @@ -5033,7 +5033,7 @@ class AutomaticInputFailoverSettings { secondaryInputId: json['secondaryInputId'] as String, errorClearTimeMsec: json['errorClearTimeMsec'] as int?, failoverConditions: (json['failoverConditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailoverCondition.fromJson(e as Map)) .toList(), inputPreference: @@ -5211,12 +5211,12 @@ class BatchDeleteResponse { factory BatchDeleteResponse.fromJson(Map json) { return BatchDeleteResponse( failed: (json['failed'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BatchFailedResultModel.fromJson(e as Map)) .toList(), successful: (json['successful'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchSuccessfulResultModel.fromJson(e as Map)) .toList(), @@ -5285,7 +5285,7 @@ class BatchScheduleActionCreateResult { factory BatchScheduleActionCreateResult.fromJson(Map json) { return BatchScheduleActionCreateResult( scheduleActions: (json['scheduleActions'] as List) - .whereNotNull() + .nonNulls .map((e) => ScheduleAction.fromJson(e as Map)) .toList(), ); @@ -5321,7 +5321,7 @@ class BatchScheduleActionDeleteResult { factory BatchScheduleActionDeleteResult.fromJson(Map json) { return BatchScheduleActionDeleteResult( scheduleActions: (json['scheduleActions'] as List) - .whereNotNull() + .nonNulls .map((e) => ScheduleAction.fromJson(e as Map)) .toList(), ); @@ -5344,12 +5344,12 @@ class BatchStartResponse { factory BatchStartResponse.fromJson(Map json) { return BatchStartResponse( failed: (json['failed'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BatchFailedResultModel.fromJson(e as Map)) .toList(), successful: (json['successful'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchSuccessfulResultModel.fromJson(e as Map)) .toList(), @@ -5373,12 +5373,12 @@ class BatchStopResponse { factory BatchStopResponse.fromJson(Map json) { return BatchStopResponse( failed: (json['failed'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BatchFailedResultModel.fromJson(e as Map)) .toList(), successful: (json['successful'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchSuccessfulResultModel.fromJson(e as Map)) .toList(), @@ -5898,7 +5898,7 @@ class CaptionDescription { accessibility: (json['accessibility'] as String?)?.let(AccessibilityType.fromString), captionDashRoles: (json['captionDashRoles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashRoleCaption.fromString((e as String))) .toList(), destinationSettings: json['destinationSettings'] != null @@ -6452,11 +6452,11 @@ class Channel { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), encoderSettings: json['encoderSettings'] != null @@ -6465,7 +6465,7 @@ class Channel { : null, id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -6479,7 +6479,7 @@ class Channel { : null, name: json['name'] as String?, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDetail.fromJson(e as Map)) .toList(), pipelinesRunningCount: json['pipelinesRunningCount'] as int?, @@ -6633,16 +6633,16 @@ class ChannelSummary { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -6737,7 +6737,7 @@ class ColorCorrectionSettings { factory ColorCorrectionSettings.fromJson(Map json) { return ColorCorrectionSettings( globalColorCorrections: (json['globalColorCorrections'] as List) - .whereNotNull() + .nonNulls .map((e) => ColorCorrection.fromJson(e as Map)) .toList(), ); @@ -6974,11 +6974,11 @@ class DeleteChannelResponse { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), encoderSettings: json['encoderSettings'] != null @@ -6987,7 +6987,7 @@ class DeleteChannelResponse { : null, id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -7001,7 +7001,7 @@ class DeleteChannelResponse { : null, name: json['name'] as String?, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDetail.fromJson(e as Map)) .toList(), pipelinesRunningCount: json['pipelinesRunningCount'] as int?, @@ -7076,7 +7076,7 @@ class DeleteMultiplexProgramResponse { json['packetIdentifiersMap'] as Map) : null, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexProgramPipelineDetail.fromJson( e as Map)) .toList(), @@ -7134,11 +7134,11 @@ class DeleteMultiplexResponse { return DeleteMultiplexResponse( arn: json['arn'] as String?, availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexOutputDestination.fromJson(e as Map)) .toList(), @@ -7391,11 +7391,11 @@ class DescribeChannelResponse { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), encoderSettings: json['encoderSettings'] != null @@ -7404,7 +7404,7 @@ class DescribeChannelResponse { : null, id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -7418,7 +7418,7 @@ class DescribeChannelResponse { : null, name: json['name'] as String?, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDetail.fromJson(e as Map)) .toList(), pipelinesRunningCount: json['pipelinesRunningCount'] as int?, @@ -7527,7 +7527,7 @@ class DescribeInputDeviceResponse { id: json['id'] as String?, macAddress: json['macAddress'] as String?, medialiveInputArns: (json['medialiveInputArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -7657,37 +7657,37 @@ class DescribeInputResponse { return DescribeInputResponse( arn: json['arn'] as String?, attachedChannels: (json['attachedChannels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDestination.fromJson(e as Map)) .toList(), id: json['id'] as String?, inputClass: (json['inputClass'] as String?)?.let(InputClass.fromString), inputDevices: (json['inputDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDeviceSettings.fromJson(e as Map)) .toList(), inputPartnerIds: (json['inputPartnerIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inputSourceType: (json['inputSourceType'] as String?)?.let(InputSourceType.fromString), mediaConnectFlows: (json['mediaConnectFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaConnectFlow.fromJson(e as Map)) .toList(), name: json['name'] as String?, roleArn: json['roleArn'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputSource.fromJson(e as Map)) .toList(), state: (json['state'] as String?)?.let(InputState.fromString), @@ -7732,16 +7732,14 @@ class DescribeInputSecurityGroupResponse { return DescribeInputSecurityGroupResponse( arn: json['arn'] as String?, id: json['id'] as String?, - inputs: (json['inputs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['inputs'] as List?)?.nonNulls.map((e) => e as String).toList(), state: (json['state'] as String?)?.let(InputSecurityGroupState.fromString), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), whitelistRules: (json['whitelistRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputWhitelistRule.fromJson(e as Map)) .toList(), ); @@ -7789,7 +7787,7 @@ class DescribeMultiplexProgramResponse { json['packetIdentifiersMap'] as Map) : null, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexProgramPipelineDetail.fromJson( e as Map)) .toList(), @@ -7847,11 +7845,11 @@ class DescribeMultiplexResponse { return DescribeMultiplexResponse( arn: json['arn'] as String?, availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexOutputDestination.fromJson(e as Map)) .toList(), @@ -8081,7 +8079,7 @@ class DescribeScheduleResponse { return DescribeScheduleResponse( nextToken: json['nextToken'] as String?, scheduleActions: (json['scheduleActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduleAction.fromJson(e as Map)) .toList(), ); @@ -8099,7 +8097,7 @@ class DescribeThumbnailsResponse { factory DescribeThumbnailsResponse.fromJson(Map json) { return DescribeThumbnailsResponse( thumbnailDetails: (json['thumbnailDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThumbnailDetail.fromJson(e as Map)) .toList(), ); @@ -9500,17 +9498,17 @@ class EncoderSettings { factory EncoderSettings.fromJson(Map json) { return EncoderSettings( audioDescriptions: (json['audioDescriptions'] as List) - .whereNotNull() + .nonNulls .map((e) => AudioDescription.fromJson(e as Map)) .toList(), outputGroups: (json['outputGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => OutputGroup.fromJson(e as Map)) .toList(), timecodeConfig: TimecodeConfig.fromJson( json['timecodeConfig'] as Map), videoDescriptions: (json['videoDescriptions'] as List) - .whereNotNull() + .nonNulls .map((e) => VideoDescription.fromJson(e as Map)) .toList(), availBlanking: json['availBlanking'] != null @@ -9526,7 +9524,7 @@ class EncoderSettings { json['blackoutSlate'] as Map) : null, captionDescriptions: (json['captionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionDescription.fromJson(e as Map)) .toList(), colorCorrectionSettings: json['colorCorrectionSettings'] != null @@ -12678,7 +12676,7 @@ class HlsGroupSettings { destination: OutputLocationRef.fromJson( json['destination'] as Map), adMarkers: (json['adMarkers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HlsAdMarkers.fromString((e as String))) .toList(), baseUrlContent: json['baseUrlContent'] as String?, @@ -12686,7 +12684,7 @@ class HlsGroupSettings { baseUrlManifest: json['baseUrlManifest'] as String?, baseUrlManifest1: json['baseUrlManifest1'] as String?, captionLanguageMappings: (json['captionLanguageMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CaptionLanguageMapping.fromJson(e as Map)) .toList(), @@ -13676,37 +13674,37 @@ class Input { return Input( arn: json['arn'] as String?, attachedChannels: (json['attachedChannels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDestination.fromJson(e as Map)) .toList(), id: json['id'] as String?, inputClass: (json['inputClass'] as String?)?.let(InputClass.fromString), inputDevices: (json['inputDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDeviceSettings.fromJson(e as Map)) .toList(), inputPartnerIds: (json['inputPartnerIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), inputSourceType: (json['inputSourceType'] as String?)?.let(InputSourceType.fromString), mediaConnectFlows: (json['mediaConnectFlows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaConnectFlow.fromJson(e as Map)) .toList(), name: json['name'] as String?, roleArn: json['roleArn'] as String?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputSource.fromJson(e as Map)) .toList(), state: (json['state'] as String?)?.let(InputState.fromString), @@ -14290,7 +14288,7 @@ class InputDeviceNetworkSettings { factory InputDeviceNetworkSettings.fromJson(Map json) { return InputDeviceNetworkSettings( dnsAddresses: (json['dnsAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), gateway: json['gateway'] as String?, @@ -14484,7 +14482,7 @@ class InputDeviceSummary { id: json['id'] as String?, macAddress: json['macAddress'] as String?, medialiveInputArns: (json['medialiveInputArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -14608,7 +14606,7 @@ class InputDeviceUhdSettings { activeInput: (json['activeInput'] as String?) ?.let(InputDeviceActiveInput.fromString), audioChannelPairs: (json['audioChannelPairs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDeviceUhdAudioChannelPairConfig.fromJson( e as Map)) .toList(), @@ -14927,10 +14925,8 @@ class InputPrepareScheduleActionSettings { ? InputClippingSettings.fromJson( json['inputClippingSettings'] as Map) : null, - urlPath: (json['urlPath'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + urlPath: + (json['urlPath'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -14999,16 +14995,14 @@ class InputSecurityGroup { return InputSecurityGroup( arn: json['arn'] as String?, id: json['id'] as String?, - inputs: (json['inputs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inputs: + (json['inputs'] as List?)?.nonNulls.map((e) => e as String).toList(), state: (json['state'] as String?)?.let(InputSecurityGroupState.fromString), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), whitelistRules: (json['whitelistRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputWhitelistRule.fromJson(e as Map)) .toList(), ); @@ -15100,11 +15094,11 @@ class InputSettings { factory InputSettings.fromJson(Map json) { return InputSettings( audioSelectors: (json['audioSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudioSelector.fromJson(e as Map)) .toList(), captionSelectors: (json['captionSelectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaptionSelector.fromJson(e as Map)) .toList(), deblockFilter: (json['deblockFilter'] as String?) @@ -15344,10 +15338,8 @@ class InputSwitchScheduleActionSettings { ? InputClippingSettings.fromJson( json['inputClippingSettings'] as Map) : null, - urlPath: (json['urlPath'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + urlPath: + (json['urlPath'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -15523,7 +15515,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -15548,7 +15540,7 @@ class ListInputDeviceTransfersResponse { factory ListInputDeviceTransfersResponse.fromJson(Map json) { return ListInputDeviceTransfersResponse( inputDeviceTransfers: (json['inputDeviceTransfers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransferringInputDeviceSummary.fromJson( e as Map)) .toList(), @@ -15573,7 +15565,7 @@ class ListInputDevicesResponse { factory ListInputDevicesResponse.fromJson(Map json) { return ListInputDevicesResponse( inputDevices: (json['inputDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputDeviceSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -15595,7 +15587,7 @@ class ListInputSecurityGroupsResponse { factory ListInputSecurityGroupsResponse.fromJson(Map json) { return ListInputSecurityGroupsResponse( inputSecurityGroups: (json['inputSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputSecurityGroup.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -15616,7 +15608,7 @@ class ListInputsResponse { factory ListInputsResponse.fromJson(Map json) { return ListInputsResponse( inputs: (json['inputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Input.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -15640,7 +15632,7 @@ class ListMultiplexProgramsResponse { factory ListMultiplexProgramsResponse.fromJson(Map json) { return ListMultiplexProgramsResponse( multiplexPrograms: (json['multiplexPrograms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexProgramSummary.fromJson(e as Map)) .toList(), @@ -15665,7 +15657,7 @@ class ListMultiplexesResponse { factory ListMultiplexesResponse.fromJson(Map json) { return ListMultiplexesResponse( multiplexes: (json['multiplexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -15690,7 +15682,7 @@ class ListOfferingsResponse { return ListOfferingsResponse( nextToken: json['nextToken'] as String?, offerings: (json['offerings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Offering.fromJson(e as Map)) .toList(), ); @@ -15714,7 +15706,7 @@ class ListReservationsResponse { return ListReservationsResponse( nextToken: json['nextToken'] as String?, reservations: (json['reservations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Reservation.fromJson(e as Map)) .toList(), ); @@ -17865,11 +17857,11 @@ class Multiplex { return Multiplex( arn: json['arn'] as String?, availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexOutputDestination.fromJson(e as Map)) .toList(), @@ -18002,7 +17994,7 @@ class MultiplexProgram { json['packetIdentifiersMap'] as Map) : null, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexProgramPipelineDetail.fromJson( e as Map)) .toList(), @@ -18083,28 +18075,22 @@ class MultiplexProgramPacketIdentifiersMap { factory MultiplexProgramPacketIdentifiersMap.fromJson( Map json) { return MultiplexProgramPacketIdentifiersMap( - audioPids: (json['audioPids'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), - dvbSubPids: (json['dvbSubPids'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + audioPids: + (json['audioPids'] as List?)?.nonNulls.map((e) => e as int).toList(), + dvbSubPids: + (json['dvbSubPids'] as List?)?.nonNulls.map((e) => e as int).toList(), dvbTeletextPid: json['dvbTeletextPid'] as int?, etvPlatformPid: json['etvPlatformPid'] as int?, etvSignalPid: json['etvSignalPid'] as int?, klvDataPids: (json['klvDataPids'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), pcrPid: json['pcrPid'] as int?, pmtPid: json['pmtPid'] as int?, privateMetadataPid: json['privateMetadataPid'] as int?, - scte27Pids: (json['scte27Pids'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + scte27Pids: + (json['scte27Pids'] as List?)?.nonNulls.map((e) => e as int).toList(), scte35Pid: json['scte35Pid'] as int?, timedMetadataPid: json['timedMetadataPid'] as int?, videoPid: json['videoPid'] as int?, @@ -18413,7 +18399,7 @@ class MultiplexSummary { return MultiplexSummary( arn: json['arn'] as String?, availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), id: json['id'] as String?, @@ -18890,11 +18876,11 @@ class Output { outputSettings: OutputSettings.fromJson( json['outputSettings'] as Map), audioDescriptionNames: (json['audioDescriptionNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), captionDescriptionNames: (json['captionDescriptionNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), outputName: json['outputName'] as String?, @@ -18949,7 +18935,7 @@ class OutputDestination { return OutputDestination( id: json['id'] as String?, mediaPackageSettings: (json['mediaPackageSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaPackageOutputDestinationSettings.fromJson( e as Map)) .toList(), @@ -18958,7 +18944,7 @@ class OutputDestination { json['multiplexSettings'] as Map) : null, settings: (json['settings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestinationSettings.fromJson(e as Map)) .toList(), @@ -19045,7 +19031,7 @@ class OutputGroup { outputGroupSettings: OutputGroupSettings.fromJson( json['outputGroupSettings'] as Map), outputs: (json['outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => Output.fromJson(e as Map)) .toList(), name: json['name'] as String?, @@ -19335,7 +19321,7 @@ class PauseStateScheduleActionSettings { factory PauseStateScheduleActionSettings.fromJson(Map json) { return PauseStateScheduleActionSettings( pipelines: (json['pipelines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelinePauseStateSettings.fromJson(e as Map)) .toList(), @@ -19579,7 +19565,7 @@ class RemixSettings { factory RemixSettings.fromJson(Map json) { return RemixSettings( channelMappings: (json['channelMappings'] as List) - .whereNotNull() + .nonNulls .map((e) => AudioChannelMapping.fromJson(e as Map)) .toList(), channelsIn: json['channelsIn'] as int?, @@ -20090,7 +20076,7 @@ class RtmpGroupSettings { factory RtmpGroupSettings.fromJson(Map json) { return RtmpGroupSettings( adMarkers: (json['adMarkers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RtmpAdMarkers.fromString((e as String))) .toList(), authenticationScheme: (json['authenticationScheme'] as String?) @@ -21253,7 +21239,7 @@ class Scte35TimeSignalScheduleActionSettings { Map json) { return Scte35TimeSignalScheduleActionSettings( scte35Descriptors: (json['scte35Descriptors'] as List) - .whereNotNull() + .nonNulls .map((e) => Scte35Descriptor.fromJson(e as Map)) .toList(), ); @@ -21562,11 +21548,11 @@ class StartChannelResponse { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), encoderSettings: json['encoderSettings'] != null @@ -21575,7 +21561,7 @@ class StartChannelResponse { : null, id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -21589,7 +21575,7 @@ class StartChannelResponse { : null, name: json['name'] as String?, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDetail.fromJson(e as Map)) .toList(), pipelinesRunningCount: json['pipelinesRunningCount'] as int?, @@ -21673,11 +21659,11 @@ class StartMultiplexResponse { return StartMultiplexResponse( arn: json['arn'] as String?, availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexOutputDestination.fromJson(e as Map)) .toList(), @@ -21936,7 +21922,7 @@ class StaticImageOutputActivateScheduleActionSettings { return StaticImageOutputActivateScheduleActionSettings( image: InputLocation.fromJson(json['image'] as Map), outputNames: (json['outputNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), duration: json['duration'] as int?, @@ -22001,7 +21987,7 @@ class StaticImageOutputDeactivateScheduleActionSettings { Map json) { return StaticImageOutputDeactivateScheduleActionSettings( outputNames: (json['outputNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), fadeOut: json['fadeOut'] as int?, @@ -22140,11 +22126,11 @@ class StopChannelResponse { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), encoderSettings: json['encoderSettings'] != null @@ -22153,7 +22139,7 @@ class StopChannelResponse { : null, id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -22167,7 +22153,7 @@ class StopChannelResponse { : null, name: json['name'] as String?, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDetail.fromJson(e as Map)) .toList(), pipelinesRunningCount: json['pipelinesRunningCount'] as int?, @@ -22241,11 +22227,11 @@ class StopMultiplexResponse { return StopMultiplexResponse( arn: json['arn'] as String?, availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MultiplexOutputDestination.fromJson(e as Map)) .toList(), @@ -22510,7 +22496,7 @@ class ThumbnailDetail { return ThumbnailDetail( pipelineId: json['pipelineId'] as String?, thumbnails: (json['thumbnails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Thumbnail.fromJson(e as Map)) .toList(), ); @@ -23053,7 +23039,7 @@ class UpdateInputDeviceResponse { id: json['id'] as String?, macAddress: json['macAddress'] as String?, medialiveInputArns: (json['medialiveInputArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['name'] as String?, @@ -23652,19 +23638,19 @@ class VpcOutputSettingsDescription { factory VpcOutputSettingsDescription.fromJson(Map json) { return VpcOutputSettingsDescription( availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), networkInterfaceIds: (json['networkInterfaceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['securityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -24010,11 +23996,11 @@ class RestartChannelPipelinesResponse { channelClass: (json['channelClass'] as String?)?.let(ChannelClass.fromString), destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputDestination.fromJson(e as Map)) .toList(), egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelEgressEndpoint.fromJson(e as Map)) .toList(), encoderSettings: json['encoderSettings'] != null @@ -24023,7 +24009,7 @@ class RestartChannelPipelinesResponse { : null, id: json['id'] as String?, inputAttachments: (json['inputAttachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputAttachment.fromJson(e as Map)) .toList(), inputSpecification: json['inputSpecification'] != null @@ -24038,7 +24024,7 @@ class RestartChannelPipelinesResponse { maintenanceStatus: json['maintenanceStatus'] as String?, name: json['name'] as String?, pipelineDetails: (json['pipelineDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineDetail.fromJson(e as Map)) .toList(), pipelinesRunningCount: json['pipelinesRunningCount'] as int?, @@ -24777,7 +24763,7 @@ class CreateEventBridgeRuleTemplateResponse { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, eventTargets: (json['eventTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBridgeRuleTemplateTarget.fromJson(e as Map)) .toList(), @@ -24856,7 +24842,7 @@ class CreateSignalMapResponse { arn: json['arn'] as String?, cloudWatchAlarmTemplateGroupIds: (json['cloudWatchAlarmTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -24865,7 +24851,7 @@ class CreateSignalMapResponse { errorMessage: json['errorMessage'] as String?, eventBridgeRuleTemplateGroupIds: (json['eventBridgeRuleTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failedMediaResourceMap: (json['failedMediaResourceMap'] @@ -25282,7 +25268,7 @@ class GetEventBridgeRuleTemplateResponse { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, eventTargets: (json['eventTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBridgeRuleTemplateTarget.fromJson(e as Map)) .toList(), @@ -25361,7 +25347,7 @@ class GetSignalMapResponse { arn: json['arn'] as String?, cloudWatchAlarmTemplateGroupIds: (json['cloudWatchAlarmTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -25370,7 +25356,7 @@ class GetSignalMapResponse { errorMessage: json['errorMessage'] as String?, eventBridgeRuleTemplateGroupIds: (json['eventBridgeRuleTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failedMediaResourceMap: (json['failedMediaResourceMap'] @@ -25422,7 +25408,7 @@ class ListCloudWatchAlarmTemplateGroupsResponse { return ListCloudWatchAlarmTemplateGroupsResponse( cloudWatchAlarmTemplateGroups: (json['cloudWatchAlarmTemplateGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchAlarmTemplateGroupSummary.fromJson( e as Map)) .toList(), @@ -25448,7 +25434,7 @@ class ListCloudWatchAlarmTemplatesResponse { Map json) { return ListCloudWatchAlarmTemplatesResponse( cloudWatchAlarmTemplates: (json['cloudWatchAlarmTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchAlarmTemplateSummary.fromJson( e as Map)) .toList(), @@ -25476,7 +25462,7 @@ class ListEventBridgeRuleTemplateGroupsResponse { return ListEventBridgeRuleTemplateGroupsResponse( eventBridgeRuleTemplateGroups: (json['eventBridgeRuleTemplateGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBridgeRuleTemplateGroupSummary.fromJson( e as Map)) .toList(), @@ -25502,7 +25488,7 @@ class ListEventBridgeRuleTemplatesResponse { Map json) { return ListEventBridgeRuleTemplatesResponse( eventBridgeRuleTemplates: (json['eventBridgeRuleTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBridgeRuleTemplateSummary.fromJson( e as Map)) .toList(), @@ -25527,7 +25513,7 @@ class ListSignalMapsResponse { return ListSignalMapsResponse( nextToken: json['nextToken'] as String?, signalMaps: (json['signalMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SignalMapSummary.fromJson(e as Map)) .toList(), ); @@ -25551,12 +25537,12 @@ class MediaResource { factory MediaResource.fromJson(Map json) { return MediaResource( destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaResourceNeighbor.fromJson(e as Map)) .toList(), name: json['name'] as String?, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MediaResourceNeighbor.fromJson(e as Map)) .toList(), ); @@ -25771,7 +25757,7 @@ class StartDeleteMonitorDeploymentResponse { arn: json['arn'] as String?, cloudWatchAlarmTemplateGroupIds: (json['cloudWatchAlarmTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -25780,7 +25766,7 @@ class StartDeleteMonitorDeploymentResponse { errorMessage: json['errorMessage'] as String?, eventBridgeRuleTemplateGroupIds: (json['eventBridgeRuleTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failedMediaResourceMap: (json['failedMediaResourceMap'] @@ -25876,7 +25862,7 @@ class StartMonitorDeploymentResponse { arn: json['arn'] as String?, cloudWatchAlarmTemplateGroupIds: (json['cloudWatchAlarmTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -25885,7 +25871,7 @@ class StartMonitorDeploymentResponse { errorMessage: json['errorMessage'] as String?, eventBridgeRuleTemplateGroupIds: (json['eventBridgeRuleTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failedMediaResourceMap: (json['failedMediaResourceMap'] @@ -25981,7 +25967,7 @@ class StartUpdateSignalMapResponse { arn: json['arn'] as String?, cloudWatchAlarmTemplateGroupIds: (json['cloudWatchAlarmTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdAt: timeStampFromJson(json['createdAt']), @@ -25990,7 +25976,7 @@ class StartUpdateSignalMapResponse { errorMessage: json['errorMessage'] as String?, eventBridgeRuleTemplateGroupIds: (json['eventBridgeRuleTemplateGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), failedMediaResourceMap: (json['failedMediaResourceMap'] @@ -26270,7 +26256,7 @@ class UpdateEventBridgeRuleTemplateResponse { createdAt: timeStampFromJson(json['createdAt']), description: json['description'] as String?, eventTargets: (json['eventTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventBridgeRuleTemplateTarget.fromJson(e as Map)) .toList(), diff --git a/generated/aws_medialive_api/pubspec.yaml b/generated/aws_medialive_api/pubspec.yaml index dd440de02..1ef34c373 100644 --- a/generated/aws_medialive_api/pubspec.yaml +++ b/generated/aws_medialive_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_medial protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_mediapackage_api/lib/mediapackage-2017-10-12.dart b/generated/aws_mediapackage_api/lib/mediapackage-2017-10-12.dart index 6405c29f7..b6fd5b930 100644 --- a/generated/aws_mediapackage_api/lib/mediapackage-2017-10-12.dart +++ b/generated/aws_mediapackage_api/lib/mediapackage-2017-10-12.dart @@ -926,7 +926,7 @@ class CmafPackage { ? CmafEncryption.fromJson(json['encryption'] as Map) : null, hlsManifests: (json['hlsManifests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HlsManifest.fromJson(e as Map)) .toList(), segmentDurationSeconds: json['segmentDurationSeconds'] as int?, @@ -1246,7 +1246,7 @@ class CreateOriginEndpointResponse { timeDelaySeconds: json['timeDelaySeconds'] as int?, url: json['url'] as String?, whitelist: (json['whitelist'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1372,7 +1372,7 @@ class DashPackage { factory DashPackage.fromJson(Map json) { return DashPackage( adTriggers: (json['adTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdTriggersElement.fromString((e as String))) .toList(), adsOnDeliveryRestrictions: (json['adsOnDeliveryRestrictions'] as String?) @@ -1387,7 +1387,7 @@ class DashPackage { minBufferTimeSeconds: json['minBufferTimeSeconds'] as int?, minUpdatePeriodSeconds: json['minUpdatePeriodSeconds'] as int?, periodTriggers: (json['periodTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PeriodTriggersElement.fromString((e as String))) .toList(), profile: (json['profile'] as String?)?.let(Profile.fromString), @@ -1685,7 +1685,7 @@ class DescribeOriginEndpointResponse { timeDelaySeconds: json['timeDelaySeconds'] as int?, url: json['url'] as String?, whitelist: (json['whitelist'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1904,7 +1904,7 @@ class HlsIngest { factory HlsIngest.fromJson(Map json) { return HlsIngest( ingestEndpoints: (json['ingestEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IngestEndpoint.fromJson(e as Map)) .toList(), ); @@ -1983,7 +1983,7 @@ class HlsManifest { id: json['id'] as String, adMarkers: (json['adMarkers'] as String?)?.let(AdMarkers.fromString), adTriggers: (json['adTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdTriggersElement.fromString((e as String))) .toList(), adsOnDeliveryRestrictions: (json['adsOnDeliveryRestrictions'] as String?) @@ -2168,7 +2168,7 @@ class HlsPackage { return HlsPackage( adMarkers: (json['adMarkers'] as String?)?.let(AdMarkers.fromString), adTriggers: (json['adTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdTriggersElement.fromString((e as String))) .toList(), adsOnDeliveryRestrictions: (json['adsOnDeliveryRestrictions'] as String?) @@ -2300,7 +2300,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( channels: (json['channels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2324,7 +2324,7 @@ class ListHarvestJobsResponse { factory ListHarvestJobsResponse.fromJson(Map json) { return ListHarvestJobsResponse( harvestJobs: (json['harvestJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HarvestJob.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2349,7 +2349,7 @@ class ListOriginEndpointsResponse { return ListOriginEndpointsResponse( nextToken: json['nextToken'] as String?, originEndpoints: (json['originEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OriginEndpoint.fromJson(e as Map)) .toList(), ); @@ -2561,7 +2561,7 @@ class OriginEndpoint { timeDelaySeconds: json['timeDelaySeconds'] as int?, url: json['url'] as String?, whitelist: (json['whitelist'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2849,10 +2849,8 @@ class SpekeKeyProvider { return SpekeKeyProvider( resourceId: json['resourceId'] as String, roleArn: json['roleArn'] as String, - systemIds: (json['systemIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + systemIds: + (json['systemIds'] as List).nonNulls.map((e) => e as String).toList(), url: json['url'] as String, certificateArn: json['certificateArn'] as String?, encryptionContractConfiguration: @@ -3107,7 +3105,7 @@ class UpdateOriginEndpointResponse { timeDelaySeconds: json['timeDelaySeconds'] as int?, url: json['url'] as String?, whitelist: (json['whitelist'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_mediapackage_api/pubspec.yaml b/generated/aws_mediapackage_api/pubspec.yaml index 0176a5146..14ae9dab5 100644 --- a/generated/aws_mediapackage_api/pubspec.yaml +++ b/generated/aws_mediapackage_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_mediap protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_mediapackage_vod_api/lib/mediapackage-vod-2018-11-07.dart b/generated/aws_mediapackage_vod_api/lib/mediapackage-vod-2018-11-07.dart index 73bddf1b4..c25b5508f 100644 --- a/generated/aws_mediapackage_vod_api/lib/mediapackage-vod-2018-11-07.dart +++ b/generated/aws_mediapackage_vod_api/lib/mediapackage-vod-2018-11-07.dart @@ -712,7 +712,7 @@ class CmafPackage { factory CmafPackage.fromJson(Map json) { return CmafPackage( hlsManifests: (json['hlsManifests'] as List) - .whereNotNull() + .nonNulls .map((e) => HlsManifest.fromJson(e as Map)) .toList(), encryption: json['encryption'] != null @@ -831,7 +831,7 @@ class CreateAssetResponse { arn: json['arn'] as String?, createdAt: json['createdAt'] as String?, egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EgressEndpoint.fromJson(e as Map)) .toList(), id: json['id'] as String?, @@ -1089,7 +1089,7 @@ class DashPackage { factory DashPackage.fromJson(Map json) { return DashPackage( dashManifests: (json['dashManifests'] as List) - .whereNotNull() + .nonNulls .map((e) => DashManifest.fromJson(e as Map)) .toList(), encryption: json['encryption'] != null @@ -1099,7 +1099,7 @@ class DashPackage { json['includeEncoderConfigurationInSegments'] as bool?, includeIframeOnlyStream: json['includeIframeOnlyStream'] as bool?, periodTriggers: (json['periodTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PeriodTriggersElement.fromString((e as String))) .toList(), segmentDurationSeconds: json['segmentDurationSeconds'] as int?, @@ -1203,7 +1203,7 @@ class DescribeAssetResponse { arn: json['arn'] as String?, createdAt: json['createdAt'] as String?, egressEndpoints: (json['egressEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EgressEndpoint.fromJson(e as Map)) .toList(), id: json['id'] as String?, @@ -1581,7 +1581,7 @@ class HlsPackage { factory HlsPackage.fromJson(Map json) { return HlsPackage( hlsManifests: (json['hlsManifests'] as List) - .whereNotNull() + .nonNulls .map((e) => HlsManifest.fromJson(e as Map)) .toList(), encryption: json['encryption'] != null @@ -1628,7 +1628,7 @@ class ListAssetsResponse { factory ListAssetsResponse.fromJson(Map json) { return ListAssetsResponse( assets: (json['assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetShallow.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1654,7 +1654,7 @@ class ListPackagingConfigurationsResponse { return ListPackagingConfigurationsResponse( nextToken: json['nextToken'] as String?, packagingConfigurations: (json['packagingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => PackagingConfiguration.fromJson(e as Map)) .toList(), @@ -1679,7 +1679,7 @@ class ListPackagingGroupsResponse { return ListPackagingGroupsResponse( nextToken: json['nextToken'] as String?, packagingGroups: (json['packagingGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PackagingGroup.fromJson(e as Map)) .toList(), ); @@ -1789,7 +1789,7 @@ class MssPackage { factory MssPackage.fromJson(Map json) { return MssPackage( mssManifests: (json['mssManifests'] as List) - .whereNotNull() + .nonNulls .map((e) => MssManifest.fromJson(e as Map)) .toList(), encryption: json['encryption'] != null @@ -2029,10 +2029,8 @@ class SpekeKeyProvider { factory SpekeKeyProvider.fromJson(Map json) { return SpekeKeyProvider( roleArn: json['roleArn'] as String, - systemIds: (json['systemIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + systemIds: + (json['systemIds'] as List).nonNulls.map((e) => e as String).toList(), url: json['url'] as String, encryptionContractConfiguration: json['encryptionContractConfiguration'] != null diff --git a/generated/aws_mediapackage_vod_api/pubspec.yaml b/generated/aws_mediapackage_vod_api/pubspec.yaml index 859323fdc..d2d25e242 100644 --- a/generated/aws_mediapackage_vod_api/pubspec.yaml +++ b/generated/aws_mediapackage_vod_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_mediap protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_mediastore_api/lib/mediastore-2017-09-01.dart b/generated/aws_mediastore_api/lib/mediastore-2017-09-01.dart index cbc586c01..4ff2c491d 100644 --- a/generated/aws_mediastore_api/lib/mediastore-2017-09-01.dart +++ b/generated/aws_mediastore_api/lib/mediastore-2017-09-01.dart @@ -967,19 +967,19 @@ class CorsRule { factory CorsRule.fromJson(Map json) { return CorsRule( allowedHeaders: (json['AllowedHeaders'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowedOrigins: (json['AllowedOrigins'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowedMethods: (json['AllowedMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MethodName.fromString((e as String))) .toList(), exposeHeaders: (json['ExposeHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxAgeSeconds: json['MaxAgeSeconds'] as int?, @@ -1118,7 +1118,7 @@ class GetCorsPolicyOutput { factory GetCorsPolicyOutput.fromJson(Map json) { return GetCorsPolicyOutput( corsPolicy: (json['CorsPolicy'] as List) - .whereNotNull() + .nonNulls .map((e) => CorsRule.fromJson(e as Map)) .toList(), ); @@ -1174,7 +1174,7 @@ class ListContainersOutput { factory ListContainersOutput.fromJson(Map json) { return ListContainersOutput( containers: (json['Containers'] as List) - .whereNotNull() + .nonNulls .map((e) => Container.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1193,7 +1193,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1248,7 +1248,7 @@ class MetricPolicy { containerLevelMetrics: ContainerLevelMetrics.fromString( (json['ContainerLevelMetrics'] as String)), metricPolicyRules: (json['MetricPolicyRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricPolicyRule.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_mediastore_api/pubspec.yaml b/generated/aws_mediastore_api/pubspec.yaml index e4476fece..fe0261036 100644 --- a/generated/aws_mediastore_api/pubspec.yaml +++ b/generated/aws_mediastore_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_medias protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_mediastore_data_api/lib/mediastore-data-2017-09-01.dart b/generated/aws_mediastore_data_api/lib/mediastore-data-2017-09-01.dart index 0fa913c68..ab16ed68e 100644 --- a/generated/aws_mediastore_data_api/lib/mediastore-data-2017-09-01.dart +++ b/generated/aws_mediastore_data_api/lib/mediastore-data-2017-09-01.dart @@ -486,7 +486,7 @@ class ListItemsResponse { factory ListItemsResponse.fromJson(Map json) { return ListItemsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Item.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/generated/aws_mediastore_data_api/pubspec.yaml b/generated/aws_mediastore_data_api/pubspec.yaml index 7ebf8e9d2..6b1c8a381 100644 --- a/generated/aws_mediastore_data_api/pubspec.yaml +++ b/generated/aws_mediastore_data_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_medias protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_mediatailor_api/lib/mediatailor-2018-04-23.dart b/generated/aws_mediatailor_api/lib/mediatailor-2018-04-23.dart index 2ff35c50f..2f5996e01 100644 --- a/generated/aws_mediatailor_api/lib/mediatailor-2018-04-23.dart +++ b/generated/aws_mediatailor_api/lib/mediatailor-2018-04-23.dart @@ -1735,7 +1735,7 @@ class AdBreak { return AdBreak( offsetMillis: json['OffsetMillis'] as int, adBreakMetadata: (json['AdBreakMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeyValuePair.fromJson(e as Map)) .toList(), messageType: @@ -1874,7 +1874,7 @@ class Alert { lastModifiedTime: nonNullableTimeStampFromJson(json['LastModifiedTime'] as Object), relatedResourceArns: (json['RelatedResourceArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), resourceArn: json['ResourceArn'] as String, @@ -1935,7 +1935,7 @@ class AlternateMedia { factory AlternateMedia.fromJson(Map json) { return AlternateMedia( adBreaks: (json['AdBreaks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdBreak.fromJson(e as Map)) .toList(), clipRange: json['ClipRange'] != null @@ -1986,7 +1986,7 @@ class AudienceMedia { factory AudienceMedia.fromJson(Map json) { return AudienceMedia( alternateMedia: (json['AlternateMedia'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlternateMedia.fromJson(e as Map)) .toList(), audience: json['Audience'] as String?, @@ -2268,13 +2268,13 @@ class Channel { logConfiguration: LogConfigurationForChannel.fromJson( json['LogConfiguration'] as Map), outputs: (json['Outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => ResponseOutputItem.fromJson(e as Map)) .toList(), playbackMode: json['PlaybackMode'] as String, tier: json['Tier'] as String, audiences: (json['Audiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -2351,7 +2351,7 @@ class ConfigureLogsForChannelResponse { return ConfigureLogsForChannelResponse( channelName: json['ChannelName'] as String?, logTypes: (json['LogTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogType.fromString((e as String))) .toList(), ); @@ -2441,7 +2441,7 @@ class CreateChannelResponse { return CreateChannelResponse( arn: json['Arn'] as String?, audiences: (json['Audiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), channelName: json['ChannelName'] as String?, @@ -2453,7 +2453,7 @@ class CreateChannelResponse { : null, lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseOutputItem.fromJson(e as Map)) .toList(), playbackMode: json['PlaybackMode'] as String?, @@ -2509,7 +2509,7 @@ class CreateLiveSourceResponse { arn: json['Arn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), httpPackageConfigurations: (json['HttpPackageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -2634,12 +2634,12 @@ class CreateProgramResponse { factory CreateProgramResponse.fromJson(Map json) { return CreateProgramResponse( adBreaks: (json['AdBreaks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdBreak.fromJson(e as Map)) .toList(), arn: json['Arn'] as String?, audienceMedia: (json['AudienceMedia'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudienceMedia.fromJson(e as Map)) .toList(), channelName: json['ChannelName'] as String?, @@ -2727,7 +2727,7 @@ class CreateSourceLocationResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), segmentDeliveryConfigurations: (json['SegmentDeliveryConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentDeliveryConfiguration.fromJson(e as Map)) .toList(), @@ -2779,7 +2779,7 @@ class CreateVodSourceResponse { arn: json['Arn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), httpPackageConfigurations: (json['HttpPackageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -3089,7 +3089,7 @@ class DescribeChannelResponse { json['LogConfiguration'] as Map), arn: json['Arn'] as String?, audiences: (json['Audiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), channelName: json['ChannelName'] as String?, @@ -3101,7 +3101,7 @@ class DescribeChannelResponse { : null, lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseOutputItem.fromJson(e as Map)) .toList(), playbackMode: json['PlaybackMode'] as String?, @@ -3157,7 +3157,7 @@ class DescribeLiveSourceResponse { arn: json['Arn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), httpPackageConfigurations: (json['HttpPackageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -3227,12 +3227,12 @@ class DescribeProgramResponse { factory DescribeProgramResponse.fromJson(Map json) { return DescribeProgramResponse( adBreaks: (json['AdBreaks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdBreak.fromJson(e as Map)) .toList(), arn: json['Arn'] as String?, audienceMedia: (json['AudienceMedia'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudienceMedia.fromJson(e as Map)) .toList(), channelName: json['ChannelName'] as String?, @@ -3316,7 +3316,7 @@ class DescribeSourceLocationResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), segmentDeliveryConfigurations: (json['SegmentDeliveryConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentDeliveryConfiguration.fromJson(e as Map)) .toList(), @@ -3370,13 +3370,13 @@ class DescribeVodSourceResponse { factory DescribeVodSourceResponse.fromJson(Map json) { return DescribeVodSourceResponse( adBreakOpportunities: (json['AdBreakOpportunities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdBreakOpportunity.fromJson(e as Map)) .toList(), arn: json['Arn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), httpPackageConfigurations: (json['HttpPackageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -3435,7 +3435,7 @@ class GetChannelScheduleResponse { factory GetChannelScheduleResponse.fromJson(Map json) { return GetChannelScheduleResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduleEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3720,7 +3720,7 @@ class HlsPlaylistSettings { factory HlsPlaylistSettings.fromJson(Map json) { return HlsPlaylistSettings( adMarkupType: (json['AdMarkupType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdMarkupType.fromString((e as String))) .toList(), manifestWindowSeconds: json['ManifestWindowSeconds'] as int?, @@ -3874,7 +3874,7 @@ class ListAlertsResponse { factory ListAlertsResponse.fromJson(Map json) { return ListAlertsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alert.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3898,7 +3898,7 @@ class ListChannelsResponse { factory ListChannelsResponse.fromJson(Map json) { return ListChannelsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3922,7 +3922,7 @@ class ListLiveSourcesResponse { factory ListLiveSourcesResponse.fromJson(Map json) { return ListLiveSourcesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LiveSource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3949,7 +3949,7 @@ class ListPlaybackConfigurationsResponse { Map json) { return ListPlaybackConfigurationsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlaybackConfiguration.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3974,7 +3974,7 @@ class ListPrefetchSchedulesResponse { factory ListPrefetchSchedulesResponse.fromJson(Map json) { return ListPrefetchSchedulesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PrefetchSchedule.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3998,7 +3998,7 @@ class ListSourceLocationsResponse { factory ListSourceLocationsResponse.fromJson(Map json) { return ListSourceLocationsResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SourceLocation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4042,7 +4042,7 @@ class ListVodSourcesResponse { factory ListVodSourcesResponse.fromJson(Map json) { return ListVodSourcesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VodSource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4128,7 +4128,7 @@ class LiveSource { return LiveSource( arn: json['Arn'] as String, httpPackageConfigurations: (json['HttpPackageConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -4179,7 +4179,7 @@ class LogConfigurationForChannel { factory LogConfigurationForChannel.fromJson(Map json) { return LogConfigurationForChannel( logTypes: (json['LogTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogType.fromString((e as String))) .toList(), ); @@ -4525,7 +4525,7 @@ class PrefetchConsumption { return PrefetchConsumption( endTime: nonNullableTimeStampFromJson(json['EndTime'] as Object), availMatchingCriteria: (json['AvailMatchingCriteria'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailMatchingCriteria.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -5055,12 +5055,12 @@ class ScheduleEntry { approximateDurationSeconds: json['ApproximateDurationSeconds'] as int?, approximateStartTime: timeStampFromJson(json['ApproximateStartTime']), audiences: (json['Audiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), liveSourceName: json['LiveSourceName'] as String?, scheduleAdBreaks: (json['ScheduleAdBreaks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduleAdBreak.fromJson(e as Map)) .toList(), scheduleEntryType: (json['ScheduleEntryType'] as String?) @@ -5377,7 +5377,7 @@ class SourceLocation { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), segmentDeliveryConfigurations: (json['SegmentDeliveryConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentDeliveryConfiguration.fromJson(e as Map)) .toList(), @@ -5522,7 +5522,7 @@ class TimeSignalMessage { factory TimeSignalMessage.fromJson(Map json) { return TimeSignalMessage( segmentationDescriptors: (json['SegmentationDescriptors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SegmentationDescriptor.fromJson(e as Map)) .toList(), @@ -5685,7 +5685,7 @@ class UpdateChannelResponse { return UpdateChannelResponse( arn: json['Arn'] as String?, audiences: (json['Audiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), channelName: json['ChannelName'] as String?, @@ -5697,7 +5697,7 @@ class UpdateChannelResponse { : null, lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseOutputItem.fromJson(e as Map)) .toList(), playbackMode: json['PlaybackMode'] as String?, @@ -5753,7 +5753,7 @@ class UpdateLiveSourceResponse { arn: json['Arn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), httpPackageConfigurations: (json['HttpPackageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -5821,12 +5821,12 @@ class UpdateProgramResponse { factory UpdateProgramResponse.fromJson(Map json) { return UpdateProgramResponse( adBreaks: (json['AdBreaks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdBreak.fromJson(e as Map)) .toList(), arn: json['Arn'] as String?, audienceMedia: (json['AudienceMedia'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudienceMedia.fromJson(e as Map)) .toList(), channelName: json['ChannelName'] as String?, @@ -5962,7 +5962,7 @@ class UpdateSourceLocationResponse { lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), segmentDeliveryConfigurations: (json['SegmentDeliveryConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentDeliveryConfiguration.fromJson(e as Map)) .toList(), @@ -6014,7 +6014,7 @@ class UpdateVodSourceResponse { arn: json['Arn'] as String?, creationTime: timeStampFromJson(json['CreationTime']), httpPackageConfigurations: (json['HttpPackageConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), @@ -6068,7 +6068,7 @@ class VodSource { return VodSource( arn: json['Arn'] as String, httpPackageConfigurations: (json['HttpPackageConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => HttpPackageConfiguration.fromJson(e as Map)) .toList(), diff --git a/generated/aws_mediatailor_api/pubspec.yaml b/generated/aws_mediatailor_api/pubspec.yaml index 6e7aee120..206d05dce 100644 --- a/generated/aws_mediatailor_api/pubspec.yaml +++ b/generated/aws_mediatailor_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_mediat protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_meteringmarketplace_api/lib/meteringmarketplace-2016-01-14.dart b/generated/aws_meteringmarketplace_api/lib/meteringmarketplace-2016-01-14.dart index 6ab7fbf0d..f3b25d05f 100644 --- a/generated/aws_meteringmarketplace_api/lib/meteringmarketplace-2016-01-14.dart +++ b/generated/aws_meteringmarketplace_api/lib/meteringmarketplace-2016-01-14.dart @@ -390,11 +390,11 @@ class BatchMeterUsageResult { factory BatchMeterUsageResult.fromJson(Map json) { return BatchMeterUsageResult( results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageRecordResult.fromJson(e as Map)) .toList(), unprocessedRecords: (json['UnprocessedRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageRecord.fromJson(e as Map)) .toList(), ); @@ -526,7 +526,7 @@ class UsageAllocation { return UsageAllocation( allocatedUsageQuantity: json['AllocatedUsageQuantity'] as int, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -588,7 +588,7 @@ class UsageRecord { timestamp: nonNullableTimeStampFromJson(json['Timestamp'] as Object), quantity: json['Quantity'] as int?, usageAllocations: (json['UsageAllocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageAllocation.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_meteringmarketplace_api/pubspec.yaml b/generated/aws_meteringmarketplace_api/pubspec.yaml index 8f0f01c3a..e0d0a96c0 100644 --- a/generated/aws_meteringmarketplace_api/pubspec.yaml +++ b/generated/aws_meteringmarketplace_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_meteri protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_mgh_api/lib/AWSMigrationHub-2017-05-31.dart b/generated/aws_mgh_api/lib/AWSMigrationHub-2017-05-31.dart index 6247859ed..2a9985f56 100644 --- a/generated/aws_mgh_api/lib/AWSMigrationHub-2017-05-31.dart +++ b/generated/aws_mgh_api/lib/AWSMigrationHub-2017-05-31.dart @@ -1294,7 +1294,7 @@ class ListApplicationStatesResult { factory ListApplicationStatesResult.fromJson(Map json) { return ListApplicationStatesResult( applicationStateList: (json['ApplicationStateList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationState.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1319,7 +1319,7 @@ class ListCreatedArtifactsResult { factory ListCreatedArtifactsResult.fromJson(Map json) { return ListCreatedArtifactsResult( createdArtifactList: (json['CreatedArtifactList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CreatedArtifact.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1344,7 +1344,7 @@ class ListDiscoveredResourcesResult { factory ListDiscoveredResourcesResult.fromJson(Map json) { return ListDiscoveredResourcesResult( discoveredResourceList: (json['DiscoveredResourceList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DiscoveredResource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1371,7 +1371,7 @@ class ListMigrationTasksResult { factory ListMigrationTasksResult.fromJson(Map json) { return ListMigrationTasksResult( migrationTaskSummaryList: (json['MigrationTaskSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MigrationTaskSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1398,7 +1398,7 @@ class ListProgressUpdateStreamsResult { nextToken: json['NextToken'] as String?, progressUpdateStreamSummaryList: (json['ProgressUpdateStreamSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProgressUpdateStreamSummary.fromJson(e as Map)) .toList(), @@ -1439,7 +1439,7 @@ class MigrationTask { migrationTaskName: json['MigrationTaskName'] as String?, progressUpdateStream: json['ProgressUpdateStream'] as String?, resourceAttributeList: (json['ResourceAttributeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceAttribute.fromJson(e as Map)) .toList(), task: json['Task'] != null diff --git a/generated/aws_mgh_api/pubspec.yaml b/generated/aws_mgh_api/pubspec.yaml index dd5274b3e..214b7e92d 100644 --- a/generated/aws_mgh_api/pubspec.yaml +++ b/generated/aws_mgh_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_mgh_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_migrationhub_config_api/lib/migrationhub-config-2019-06-30.dart b/generated/aws_migrationhub_config_api/lib/migrationhub-config-2019-06-30.dart index 541d536f7..d7dac95fd 100644 --- a/generated/aws_migrationhub_config_api/lib/migrationhub-config-2019-06-30.dart +++ b/generated/aws_migrationhub_config_api/lib/migrationhub-config-2019-06-30.dart @@ -290,7 +290,7 @@ class DescribeHomeRegionControlsResult { factory DescribeHomeRegionControlsResult.fromJson(Map json) { return DescribeHomeRegionControlsResult( homeRegionControls: (json['HomeRegionControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HomeRegionControl.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/generated/aws_migrationhub_config_api/pubspec.yaml b/generated/aws_migrationhub_config_api/pubspec.yaml index 2a2159f7e..5c9bccb9e 100644 --- a/generated/aws_migrationhub_config_api/pubspec.yaml +++ b/generated/aws_migrationhub_config_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_migrat protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_mobile_api/lib/mobile-2017-07-01.dart b/generated/aws_mobile_api/lib/mobile-2017-07-01.dart index 55d911927..f451b0585 100644 --- a/generated/aws_mobile_api/lib/mobile-2017-07-01.dart +++ b/generated/aws_mobile_api/lib/mobile-2017-07-01.dart @@ -396,7 +396,7 @@ class BundleDetails { factory BundleDetails.fromJson(Map json) { return BundleDetails( availablePlatforms: (json['availablePlatforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Platform.fromString((e as String))) .toList(), bundleId: json['bundleId'] as String?, @@ -443,11 +443,11 @@ class DeleteProjectResult { factory DeleteProjectResult.fromJson(Map json) { return DeleteProjectResult( deletedResources: (json['deletedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), orphanedResources: (json['orphanedResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -595,7 +595,7 @@ class ListBundlesResult { factory ListBundlesResult.fromJson(Map json) { return ListBundlesResult( bundleList: (json['bundleList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BundleDetails.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -617,7 +617,7 @@ class ListProjectsResult { return ListProjectsResult( nextToken: json['nextToken'] as String?, projects: (json['projects'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectSummary.fromJson(e as Map)) .toList(), ); @@ -695,7 +695,7 @@ class ProjectDetails { projectId: json['projectId'] as String?, region: json['region'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), state: (json['state'] as String?)?.let(ProjectState.fromString), diff --git a/generated/aws_mobile_api/pubspec.yaml b/generated/aws_mobile_api/pubspec.yaml index badadbf3c..004d87ecf 100644 --- a/generated/aws_mobile_api/pubspec.yaml +++ b/generated/aws_mobile_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_mobile protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_mq_api/lib/mq-2017-11-27.dart b/generated/aws_mq_api/lib/mq-2017-11-27.dart index 20df07b56..4adec5313 100644 --- a/generated/aws_mq_api/lib/mq-2017-11-27.dart +++ b/generated/aws_mq_api/lib/mq-2017-11-27.dart @@ -1174,7 +1174,7 @@ class BrokerEngineType { return BrokerEngineType( engineType: (json['engineType'] as String?)?.let(EngineType.fromString), engineVersions: (json['engineVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngineVersion.fromJson(e as Map)) .toList(), ); @@ -1203,7 +1203,7 @@ class BrokerInstance { return BrokerInstance( consoleURL: json['consoleURL'] as String?, endpoints: (json['endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ipAddress: json['ipAddress'] as String?, @@ -1243,7 +1243,7 @@ class BrokerInstanceOption { factory BrokerInstanceOption.fromJson(Map json) { return BrokerInstanceOption( availabilityZones: (json['availabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailabilityZone.fromJson(e as Map)) .toList(), engineType: (json['engineType'] as String?)?.let(EngineType.fromString), @@ -1251,11 +1251,11 @@ class BrokerInstanceOption { storageType: (json['storageType'] as String?)?.let(BrokerStorageType.fromString), supportedDeploymentModes: (json['supportedDeploymentModes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentMode.fromString((e as String))) .toList(), supportedEngineVersions: (json['supportedEngineVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1523,7 +1523,7 @@ class Configurations { ? ConfigurationId.fromJson(json['current'] as Map) : null, history: (json['history'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationId.fromJson(e as Map)) .toList(), pending: json['pending'] != null @@ -1755,7 +1755,7 @@ class DescribeBrokerEngineTypesResponse { Map json) { return DescribeBrokerEngineTypesResponse( brokerEngineTypes: (json['brokerEngineTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BrokerEngineType.fromJson(e as Map)) .toList(), maxResults: json['maxResults'] as int?, @@ -1786,7 +1786,7 @@ class DescribeBrokerInstanceOptionsResponse { Map json) { return DescribeBrokerInstanceOptionsResponse( brokerInstanceOptions: (json['brokerInstanceOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BrokerInstanceOption.fromJson(e as Map)) .toList(), maxResults: json['maxResults'] as int?, @@ -1960,7 +1960,7 @@ class DescribeBrokerResponse { factory DescribeBrokerResponse.fromJson(Map json) { return DescribeBrokerResponse( actionsRequired: (json['actionsRequired'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionRequired.fromJson(e as Map)) .toList(), authenticationStrategy: (json['authenticationStrategy'] as String?) @@ -1969,7 +1969,7 @@ class DescribeBrokerResponse { brokerArn: json['brokerArn'] as String?, brokerId: json['brokerId'] as String?, brokerInstances: (json['brokerInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BrokerInstance.fromJson(e as Map)) .toList(), brokerName: json['brokerName'] as String?, @@ -2024,24 +2024,24 @@ class DescribeBrokerResponse { json['pendingLdapServerMetadata'] as Map) : null, pendingSecurityGroups: (json['pendingSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), publiclyAccessible: json['publiclyAccessible'] as bool?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), storageType: (json['storageType'] as String?)?.let(BrokerStorageType.fromString), subnetIds: (json['subnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), users: (json['users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserSummary.fromJson(e as Map)) .toList(), ); @@ -2188,10 +2188,8 @@ class DescribeUserResponse { return DescribeUserResponse( brokerId: json['brokerId'] as String?, consoleAccess: json['consoleAccess'] as bool?, - groups: (json['groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['groups'] as List?)?.nonNulls.map((e) => e as String).toList(), pending: json['pending'] != null ? UserPendingChanges.fromJson(json['pending'] as Map) : null, @@ -2451,10 +2449,7 @@ class LdapServerMetadataOutput { factory LdapServerMetadataOutput.fromJson(Map json) { return LdapServerMetadataOutput( - hosts: (json['hosts'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + hosts: (json['hosts'] as List).nonNulls.map((e) => e as String).toList(), roleBase: json['roleBase'] as String, roleSearchMatching: json['roleSearchMatching'] as String, serviceAccountUsername: json['serviceAccountUsername'] as String, @@ -2484,7 +2479,7 @@ class ListBrokersResponse { factory ListBrokersResponse.fromJson(Map json) { return ListBrokersResponse( brokerSummaries: (json['brokerSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BrokerSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2521,7 +2516,7 @@ class ListConfigurationRevisionsResponse { maxResults: json['maxResults'] as int?, nextToken: json['nextToken'] as String?, revisions: (json['revisions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationRevision.fromJson(e as Map)) .toList(), ); @@ -2549,7 +2544,7 @@ class ListConfigurationsResponse { factory ListConfigurationsResponse.fromJson(Map json) { return ListConfigurationsResponse( configurations: (json['configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Configuration.fromJson(e as Map)) .toList(), maxResults: json['maxResults'] as int?, @@ -2603,7 +2598,7 @@ class ListUsersResponse { maxResults: json['maxResults'] as int?, nextToken: json['nextToken'] as String?, users: (json['users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserSummary.fromJson(e as Map)) .toList(), ); @@ -2900,7 +2895,7 @@ class UpdateBrokerResponse { (json['pendingDataReplicationMode'] as String?) ?.let(DataReplicationMode.fromString), securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2949,7 +2944,7 @@ class UpdateConfigurationResponse { : null, name: json['name'] as String?, warnings: (json['warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SanitizationWarning.fromJson(e as Map)) .toList(), ); @@ -3058,10 +3053,8 @@ class UserPendingChanges { return UserPendingChanges( pendingChange: ChangeType.fromString((json['pendingChange'] as String)), consoleAccess: json['consoleAccess'] as bool?, - groups: (json['groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['groups'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } diff --git a/generated/aws_mq_api/pubspec.yaml b/generated/aws_mq_api/pubspec.yaml index fc7620de6..66ef3652e 100644 --- a/generated/aws_mq_api/pubspec.yaml +++ b/generated/aws_mq_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_mq_api protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_mturk_api/lib/mturk-requester-2017-01-17.dart b/generated/aws_mturk_api/lib/mturk-requester-2017-01-17.dart index 87ea0655e..e6d418e78 100644 --- a/generated/aws_mturk_api/lib/mturk-requester-2017-01-17.dart +++ b/generated/aws_mturk_api/lib/mturk-requester-2017-01-17.dart @@ -2838,7 +2838,7 @@ class HIT { json['NumberOfAssignmentsCompleted'] as int?, numberOfAssignmentsPending: json['NumberOfAssignmentsPending'] as int?, qualificationRequirements: (json['QualificationRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QualificationRequirement.fromJson(e as Map)) .toList(), @@ -2943,7 +2943,7 @@ class ListAssignmentsForHITResponse { factory ListAssignmentsForHITResponse.fromJson(Map json) { return ListAssignmentsForHITResponse( assignments: (json['Assignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Assignment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2971,7 +2971,7 @@ class ListBonusPaymentsResponse { factory ListBonusPaymentsResponse.fromJson(Map json) { return ListBonusPaymentsResponse( bonusPayments: (json['BonusPayments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BonusPayment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2999,7 +2999,7 @@ class ListHITsForQualificationTypeResponse { Map json) { return ListHITsForQualificationTypeResponse( hITs: (json['HITs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HIT.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3026,7 +3026,7 @@ class ListHITsResponse { factory ListHITsResponse.fromJson(Map json) { return ListHITsResponse( hITs: (json['HITs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HIT.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3059,7 +3059,7 @@ class ListQualificationRequestsResponse { nextToken: json['NextToken'] as String?, numResults: json['NumResults'] as int?, qualificationRequests: (json['QualificationRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QualificationRequest.fromJson(e as Map)) .toList(), ); @@ -3087,7 +3087,7 @@ class ListQualificationTypesResponse { nextToken: json['NextToken'] as String?, numResults: json['NumResults'] as int?, qualificationTypes: (json['QualificationTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QualificationType.fromJson(e as Map)) .toList(), ); @@ -3165,7 +3165,7 @@ class ListReviewableHITsResponse { factory ListReviewableHITsResponse.fromJson(Map json) { return ListReviewableHITsResponse( hITs: (json['HITs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HIT.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3196,7 +3196,7 @@ class ListWorkerBlocksResponse { nextToken: json['NextToken'] as String?, numResults: json['NumResults'] as int?, workerBlocks: (json['WorkerBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkerBlock.fromJson(e as Map)) .toList(), ); @@ -3225,7 +3225,7 @@ class ListWorkersWithQualificationTypeResponse { nextToken: json['NextToken'] as String?, numResults: json['NumResults'] as int?, qualifications: (json['Qualifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Qualification.fromJson(e as Map)) .toList(), ); @@ -3391,7 +3391,7 @@ class NotifyWorkersResponse { return NotifyWorkersResponse( notifyWorkersFailureStatuses: (json['NotifyWorkersFailureStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotifyWorkersFailureStatus.fromJson(e as Map)) .toList(), @@ -3420,10 +3420,8 @@ class ParameterMapEntry { factory ParameterMapEntry.fromJson(Map json) { return ParameterMapEntry( key: json['Key'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -3458,13 +3456,11 @@ class PolicyParameter { return PolicyParameter( key: json['Key'] as String?, mapEntries: (json['MapEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterMapEntry.fromJson(e as Map)) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -3664,11 +3660,11 @@ class QualificationRequirement { actionsGuarded: (json['ActionsGuarded'] as String?)?.let(HITAccessActions.fromString), integerValues: (json['IntegerValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), localeValues: (json['LocaleValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Locale.fromJson(e as Map)) .toList(), requiredToPreview: json['RequiredToPreview'] as bool?, @@ -3936,7 +3932,7 @@ class ReviewPolicy { return ReviewPolicy( policyName: json['PolicyName'] as String, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyParameter.fromJson(e as Map)) .toList(), ); @@ -3985,11 +3981,11 @@ class ReviewReport { factory ReviewReport.fromJson(Map json) { return ReviewReport( reviewActions: (json['ReviewActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReviewActionDetail.fromJson(e as Map)) .toList(), reviewResults: (json['ReviewResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReviewResultDetail.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_mturk_api/pubspec.yaml b/generated/aws_mturk_api/pubspec.yaml index 1ebd3f16d..e7914b03e 100644 --- a/generated/aws_mturk_api/pubspec.yaml +++ b/generated/aws_mturk_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_mturk_ protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_neptune_api/pubspec.yaml b/generated/aws_neptune_api/pubspec.yaml index b7a102c05..e152f11c8 100644 --- a/generated/aws_neptune_api/pubspec.yaml +++ b/generated/aws_neptune_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_neptun protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_networkmanager_api/lib/networkmanager-2019-07-05.dart b/generated/aws_networkmanager_api/lib/networkmanager-2019-07-05.dart index a935c535f..d012f7482 100644 --- a/generated/aws_networkmanager_api/lib/networkmanager-2019-07-05.dart +++ b/generated/aws_networkmanager_api/lib/networkmanager-2019-07-05.dart @@ -4006,7 +4006,7 @@ class Attachment { segmentName: json['SegmentName'] as String?, state: (json['State'] as String?)?.let(AttachmentState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), updatedAt: timeStampFromJson(json['UpdatedAt']), @@ -4282,7 +4282,7 @@ class ConnectPeer { state: (json['State'] as String?)?.let(ConnectPeerState.fromString), subnetArn: json['SubnetArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4402,13 +4402,13 @@ class ConnectPeerConfiguration { factory ConnectPeerConfiguration.fromJson(Map json) { return ConnectPeerConfiguration( bgpConfigurations: (json['BgpConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectPeerBgpConfiguration.fromJson(e as Map)) .toList(), coreNetworkAddress: json['CoreNetworkAddress'] as String?, insideCidrBlocks: (json['InsideCidrBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), peerAddress: json['PeerAddress'] as String?, @@ -4482,7 +4482,7 @@ class ConnectPeerSummary { edgeLocation: json['EdgeLocation'] as String?, subnetArn: json['SubnetArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4551,7 +4551,7 @@ class Connection { linkId: json['LinkId'] as String?, state: (json['State'] as String?)?.let(ConnectionState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4679,17 +4679,17 @@ class CoreNetwork { createdAt: timeStampFromJson(json['CreatedAt']), description: json['Description'] as String?, edges: (json['Edges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoreNetworkEdge.fromJson(e as Map)) .toList(), globalNetworkId: json['GlobalNetworkId'] as String?, segments: (json['Segments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoreNetworkSegment.fromJson(e as Map)) .toList(), state: (json['State'] as String?)?.let(CoreNetworkState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4863,16 +4863,16 @@ class CoreNetworkChangeValues { cidr: json['Cidr'] as String?, destinationIdentifier: json['DestinationIdentifier'] as String?, edgeLocations: (json['EdgeLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), insideCidrBlocks: (json['InsideCidrBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), segmentName: json['SegmentName'] as String?, sharedSegments: (json['SharedSegments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4901,7 +4901,7 @@ class CoreNetworkEdge { asn: json['Asn'] as int?, edgeLocation: json['EdgeLocation'] as String?, insideCidrBlocks: (json['InsideCidrBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4958,7 +4958,7 @@ class CoreNetworkPolicy { ? null : jsonDecode(json['PolicyDocument'] as String), policyErrors: (json['PolicyErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CoreNetworkPolicyError.fromJson(e as Map)) .toList(), @@ -5072,12 +5072,12 @@ class CoreNetworkSegment { factory CoreNetworkSegment.fromJson(Map json) { return CoreNetworkSegment( edgeLocations: (json['EdgeLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, sharedSegments: (json['SharedSegments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5180,7 +5180,7 @@ class CoreNetworkSummary { ownerAccountId: json['OwnerAccountId'] as String?, state: (json['State'] as String?)?.let(CoreNetworkState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5671,7 +5671,7 @@ class DescribeGlobalNetworksResponse { factory DescribeGlobalNetworksResponse.fromJson(Map json) { return DescribeGlobalNetworksResponse( globalNetworks: (json['GlobalNetworks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GlobalNetwork.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5758,7 +5758,7 @@ class Device { siteId: json['SiteId'] as String?, state: (json['State'] as String?)?.let(DeviceState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: json['Type'] as String?, @@ -5902,7 +5902,7 @@ class GetConnectPeerAssociationsResponse { Map json) { return GetConnectPeerAssociationsResponse( connectPeerAssociations: (json['ConnectPeerAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ConnectPeerAssociation.fromJson(e as Map)) .toList(), @@ -5943,7 +5943,7 @@ class GetConnectionsResponse { factory GetConnectionsResponse.fromJson(Map json) { return GetConnectionsResponse( connections: (json['Connections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5967,7 +5967,7 @@ class GetCoreNetworkChangeEventsResponse { Map json) { return GetCoreNetworkChangeEventsResponse( coreNetworkChangeEvents: (json['CoreNetworkChangeEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CoreNetworkChangeEvent.fromJson(e as Map)) .toList(), @@ -5991,7 +5991,7 @@ class GetCoreNetworkChangeSetResponse { factory GetCoreNetworkChangeSetResponse.fromJson(Map json) { return GetCoreNetworkChangeSetResponse( coreNetworkChanges: (json['CoreNetworkChanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoreNetworkChange.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6051,7 +6051,7 @@ class GetCustomerGatewayAssociationsResponse { return GetCustomerGatewayAssociationsResponse( customerGatewayAssociations: (json['CustomerGatewayAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomerGatewayAssociation.fromJson(e as Map)) .toList(), @@ -6075,7 +6075,7 @@ class GetDevicesResponse { factory GetDevicesResponse.fromJson(Map json) { return GetDevicesResponse( devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Device.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6098,7 +6098,7 @@ class GetLinkAssociationsResponse { factory GetLinkAssociationsResponse.fromJson(Map json) { return GetLinkAssociationsResponse( linkAssociations: (json['LinkAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LinkAssociation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6121,7 +6121,7 @@ class GetLinksResponse { factory GetLinksResponse.fromJson(Map json) { return GetLinksResponse( links: (json['Links'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Link.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6144,7 +6144,7 @@ class GetNetworkResourceCountsResponse { factory GetNetworkResourceCountsResponse.fromJson(Map json) { return GetNetworkResourceCountsResponse( networkResourceCounts: (json['NetworkResourceCounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkResourceCount.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6169,7 +6169,7 @@ class GetNetworkResourceRelationshipsResponse { return GetNetworkResourceRelationshipsResponse( nextToken: json['NextToken'] as String?, relationships: (json['Relationships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Relationship.fromJson(e as Map)) .toList(), ); @@ -6191,7 +6191,7 @@ class GetNetworkResourcesResponse { factory GetNetworkResourcesResponse.fromJson(Map json) { return GetNetworkResourcesResponse( networkResources: (json['NetworkResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkResource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6230,7 +6230,7 @@ class GetNetworkRoutesResponse { json['CoreNetworkSegmentEdge'] as Map) : null, networkRoutes: (json['NetworkRoutes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkRoute.fromJson(e as Map)) .toList(), routeTableArn: json['RouteTableArn'] as String?, @@ -6256,7 +6256,7 @@ class GetNetworkTelemetryResponse { factory GetNetworkTelemetryResponse.fromJson(Map json) { return GetNetworkTelemetryResponse( networkTelemetry: (json['NetworkTelemetry'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkTelemetry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6334,7 +6334,7 @@ class GetSitesResponse { return GetSitesResponse( nextToken: json['NextToken'] as String?, sites: (json['Sites'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Site.fromJson(e as Map)) .toList(), ); @@ -6360,7 +6360,7 @@ class GetTransitGatewayConnectPeerAssociationsResponse { nextToken: json['NextToken'] as String?, transitGatewayConnectPeerAssociations: (json['TransitGatewayConnectPeerAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransitGatewayConnectPeerAssociation.fromJson( e as Map)) .toList(), @@ -6404,7 +6404,7 @@ class GetTransitGatewayRegistrationsResponse { nextToken: json['NextToken'] as String?, transitGatewayRegistrations: (json['TransitGatewayRegistrations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransitGatewayRegistration.fromJson(e as Map)) .toList(), @@ -6490,7 +6490,7 @@ class GlobalNetwork { globalNetworkId: json['GlobalNetworkId'] as String?, state: (json['State'] as String?)?.let(GlobalNetworkState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6577,7 +6577,7 @@ class Link { siteId: json['SiteId'] as String?, state: (json['State'] as String?)?.let(LinkState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: json['Type'] as String?, @@ -6665,7 +6665,7 @@ class ListAttachmentsResponse { factory ListAttachmentsResponse.fromJson(Map json) { return ListAttachmentsResponse( attachments: (json['Attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Attachment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6688,7 +6688,7 @@ class ListConnectPeersResponse { factory ListConnectPeersResponse.fromJson(Map json) { return ListConnectPeersResponse( connectPeers: (json['ConnectPeers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectPeerSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6712,7 +6712,7 @@ class ListCoreNetworkPolicyVersionsResponse { Map json) { return ListCoreNetworkPolicyVersionsResponse( coreNetworkPolicyVersions: (json['CoreNetworkPolicyVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoreNetworkPolicyVersion.fromJson(e as Map)) .toList(), @@ -6736,7 +6736,7 @@ class ListCoreNetworksResponse { factory ListCoreNetworksResponse.fromJson(Map json) { return ListCoreNetworksResponse( coreNetworks: (json['CoreNetworks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CoreNetworkSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6785,7 +6785,7 @@ class ListPeeringsResponse { return ListPeeringsResponse( nextToken: json['NextToken'] as String?, peerings: (json['Peerings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Peering.fromJson(e as Map)) .toList(), ); @@ -6803,7 +6803,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6963,7 +6963,7 @@ class NetworkResource { resourceId: json['ResourceId'] as String?, resourceType: json['ResourceType'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7064,7 +7064,7 @@ class NetworkRoute { return NetworkRoute( destinationCidrBlock: json['DestinationCidrBlock'] as String?, destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkRouteDestination.fromJson(e as Map)) .toList(), @@ -7203,7 +7203,7 @@ class OrganizationStatus { factory OrganizationStatus.fromJson(Map json) { return OrganizationStatus( accountStatusList: (json['AccountStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountStatus.fromJson(e as Map)) .toList(), organizationAwsServiceAccessStatus: @@ -7301,7 +7301,7 @@ class Peering { resourceArn: json['ResourceArn'] as String?, state: (json['State'] as String?)?.let(PeeringState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7361,7 +7361,7 @@ class ProposedSegmentChange { attachmentPolicyRuleNumber: json['AttachmentPolicyRuleNumber'] as int?, segmentName: json['SegmentName'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7731,7 +7731,7 @@ class RouteAnalysisPath { json['CompletionStatus'] as Map) : null, path: (json['Path'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PathComponent.fromJson(e as Map)) .toList(), ); @@ -7873,7 +7873,7 @@ class Site { siteId: json['SiteId'] as String?, state: (json['State'] as String?)?.let(SiteState.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8377,7 +8377,7 @@ class VpcAttachment { ? VpcOptions.fromJson(json['Options'] as Map) : null, subnetArns: (json['SubnetArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_networkmanager_api/pubspec.yaml b/generated/aws_networkmanager_api/pubspec.yaml index b1b77b623..864f166af 100644 --- a/generated/aws_networkmanager_api/pubspec.yaml +++ b/generated/aws_networkmanager_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_networ protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_opsworks_api/lib/opsworks-2013-02-18.dart b/generated/aws_opsworks_api/lib/opsworks-2013-02-18.dart index 79c6c80ad..e1eb80c4c 100644 --- a/generated/aws_opsworks_api/lib/opsworks-2013-02-18.dart +++ b/generated/aws_opsworks_api/lib/opsworks-2013-02-18.dart @@ -5100,17 +5100,15 @@ class App { (k, e) => MapEntry(AppAttributesKeys.fromString(k), e as String)), createdAt: json['CreatedAt'] as String?, dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), description: json['Description'] as String?, - domains: (json['Domains'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + domains: + (json['Domains'] as List?)?.nonNulls.map((e) => e as String).toList(), enableSsl: json['EnableSsl'] as bool?, environment: (json['Environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentVariable.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -5236,10 +5234,8 @@ class AutoScalingThresholds { factory AutoScalingThresholds.fromJson(Map json) { return AutoScalingThresholds( - alarms: (json['Alarms'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + alarms: + (json['Alarms'] as List?)?.nonNulls.map((e) => e as String).toList(), cpuThreshold: json['CpuThreshold'] as double?, ignoreMetricsTime: json['IgnoreMetricsTime'] as int?, instanceCount: json['InstanceCount'] as int?, @@ -5401,7 +5397,7 @@ class CloudWatchLogsConfiguration { return CloudWatchLogsConfiguration( enabled: json['Enabled'] as bool?, logStreams: (json['LogStreams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchLogsLogStream.fromJson(e as Map)) .toList(), @@ -6033,7 +6029,7 @@ class Deployment { duration: json['Duration'] as int?, iamUserArn: json['IamUserArn'] as String?, instanceIds: (json['InstanceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stackId: json['StackId'] as String?, @@ -6136,8 +6132,8 @@ class DeploymentCommand { factory DeploymentCommand.fromJson(Map json) { return DeploymentCommand( name: DeploymentCommandName.fromString((json['Name'] as String)), - args: (json['Args'] as Map?)?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + args: (json['Args'] as Map?)?.map((k, e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -6190,7 +6186,7 @@ class DescribeAgentVersionsResult { factory DescribeAgentVersionsResult.fromJson(Map json) { return DescribeAgentVersionsResult( agentVersions: (json['AgentVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentVersion.fromJson(e as Map)) .toList(), ); @@ -6209,7 +6205,7 @@ class DescribeAppsResult { factory DescribeAppsResult.fromJson(Map json) { return DescribeAppsResult( apps: (json['Apps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => App.fromJson(e as Map)) .toList(), ); @@ -6229,7 +6225,7 @@ class DescribeCommandsResult { factory DescribeCommandsResult.fromJson(Map json) { return DescribeCommandsResult( commands: (json['Commands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Command.fromJson(e as Map)) .toList(), ); @@ -6248,7 +6244,7 @@ class DescribeDeploymentsResult { factory DescribeDeploymentsResult.fromJson(Map json) { return DescribeDeploymentsResult( deployments: (json['Deployments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Deployment.fromJson(e as Map)) .toList(), ); @@ -6276,7 +6272,7 @@ class DescribeEcsClustersResult { factory DescribeEcsClustersResult.fromJson(Map json) { return DescribeEcsClustersResult( ecsClusters: (json['EcsClusters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EcsCluster.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6297,7 +6293,7 @@ class DescribeElasticIpsResult { factory DescribeElasticIpsResult.fromJson(Map json) { return DescribeElasticIpsResult( elasticIps: (json['ElasticIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ElasticIp.fromJson(e as Map)) .toList(), ); @@ -6319,7 +6315,7 @@ class DescribeElasticLoadBalancersResult { Map json) { return DescribeElasticLoadBalancersResult( elasticLoadBalancers: (json['ElasticLoadBalancers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ElasticLoadBalancer.fromJson(e as Map)) .toList(), ); @@ -6338,7 +6334,7 @@ class DescribeInstancesResult { factory DescribeInstancesResult.fromJson(Map json) { return DescribeInstancesResult( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Instance.fromJson(e as Map)) .toList(), ); @@ -6357,7 +6353,7 @@ class DescribeLayersResult { factory DescribeLayersResult.fromJson(Map json) { return DescribeLayersResult( layers: (json['Layers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Layer.fromJson(e as Map)) .toList(), ); @@ -6381,7 +6377,7 @@ class DescribeLoadBasedAutoScalingResult { return DescribeLoadBasedAutoScalingResult( loadBasedAutoScalingConfigurations: (json['LoadBasedAutoScalingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoadBasedAutoScalingConfiguration.fromJson( e as Map)) .toList(), @@ -6421,7 +6417,7 @@ class DescribeOperatingSystemsResponse { factory DescribeOperatingSystemsResponse.fromJson(Map json) { return DescribeOperatingSystemsResponse( operatingSystems: (json['OperatingSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OperatingSystem.fromJson(e as Map)) .toList(), ); @@ -6459,7 +6455,7 @@ class DescribePermissionsResult { factory DescribePermissionsResult.fromJson(Map json) { return DescribePermissionsResult( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromJson(e as Map)) .toList(), ); @@ -6478,7 +6474,7 @@ class DescribeRaidArraysResult { factory DescribeRaidArraysResult.fromJson(Map json) { return DescribeRaidArraysResult( raidArrays: (json['RaidArrays'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RaidArray.fromJson(e as Map)) .toList(), ); @@ -6498,7 +6494,7 @@ class DescribeRdsDbInstancesResult { factory DescribeRdsDbInstancesResult.fromJson(Map json) { return DescribeRdsDbInstancesResult( rdsDbInstances: (json['RdsDbInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RdsDbInstance.fromJson(e as Map)) .toList(), ); @@ -6518,7 +6514,7 @@ class DescribeServiceErrorsResult { factory DescribeServiceErrorsResult.fromJson(Map json) { return DescribeServiceErrorsResult( serviceErrors: (json['ServiceErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceError.fromJson(e as Map)) .toList(), ); @@ -6579,7 +6575,7 @@ class DescribeStacksResult { factory DescribeStacksResult.fromJson(Map json) { return DescribeStacksResult( stacks: (json['Stacks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Stack.fromJson(e as Map)) .toList(), ); @@ -6603,7 +6599,7 @@ class DescribeTimeBasedAutoScalingResult { return DescribeTimeBasedAutoScalingResult( timeBasedAutoScalingConfigurations: (json['TimeBasedAutoScalingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeBasedAutoScalingConfiguration.fromJson( e as Map)) .toList(), @@ -6623,7 +6619,7 @@ class DescribeUserProfilesResult { factory DescribeUserProfilesResult.fromJson(Map json) { return DescribeUserProfilesResult( userProfiles: (json['UserProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserProfile.fromJson(e as Map)) .toList(), ); @@ -6642,7 +6638,7 @@ class DescribeVolumesResult { factory DescribeVolumesResult.fromJson(Map json) { return DescribeVolumesResult( volumes: (json['Volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Volume.fromJson(e as Map)) .toList(), ); @@ -6830,12 +6826,12 @@ class ElasticLoadBalancer { factory ElasticLoadBalancer.fromJson(Map json) { return ElasticLoadBalancer( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dnsName: json['DnsName'] as String?, ec2InstanceIds: (json['Ec2InstanceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), elasticLoadBalancerName: json['ElasticLoadBalancerName'] as String?, @@ -6843,7 +6839,7 @@ class ElasticLoadBalancer { region: json['Region'] as String?, stackId: json['StackId'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -7204,7 +7200,7 @@ class Instance { (json['AutoScalingType'] as String?)?.let(AutoScalingType.fromString), availabilityZone: json['AvailabilityZone'] as String?, blockDeviceMappings: (json['BlockDeviceMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BlockDeviceMapping.fromJson(e as Map)) .toList(), createdAt: json['CreatedAt'] as String?, @@ -7221,7 +7217,7 @@ class Instance { instanceType: json['InstanceType'] as String?, lastServiceErrorId: json['LastServiceErrorId'] as String?, layerIds: (json['LayerIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), os: json['Os'] as String?, @@ -7239,7 +7235,7 @@ class Instance { (json['RootDeviceType'] as String?)?.let(RootDeviceType.fromString), rootDeviceVolumeId: json['RootDeviceVolumeId'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sshHostDsaKeyFingerprint: json['SshHostDsaKeyFingerprint'] as String?, @@ -7550,14 +7546,14 @@ class Layer { ? Recipes.fromJson(json['CustomRecipes'] as Map) : null, customSecurityGroupIds: (json['CustomSecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultRecipes: json['DefaultRecipes'] != null ? Recipes.fromJson(json['DefaultRecipes'] as Map) : null, defaultSecurityGroupNames: (json['DefaultSecurityGroupNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), enableAutoHealing: json['EnableAutoHealing'] as bool?, @@ -7569,7 +7565,7 @@ class Layer { : null, name: json['Name'] as String?, packages: (json['Packages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), shortname: json['Shortname'] as String?, @@ -7577,7 +7573,7 @@ class Layer { type: (json['Type'] as String?)?.let(LayerType.fromString), useEbsOptimizedInstances: json['UseEbsOptimizedInstances'] as bool?, volumeConfigurations: (json['VolumeConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeConfiguration.fromJson(e as Map)) .toList(), ); @@ -7781,7 +7777,7 @@ class OperatingSystem { factory OperatingSystem.fromJson(Map json) { return OperatingSystem( configurationManagers: (json['ConfigurationManagers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OperatingSystemConfigurationManager.fromJson( e as Map)) .toList(), @@ -8063,23 +8059,19 @@ class Recipes { factory Recipes.fromJson(Map json) { return Recipes( configure: (json['Configure'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - deploy: (json['Deploy'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - setup: (json['Setup'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + deploy: + (json['Deploy'] as List?)?.nonNulls.map((e) => e as String).toList(), + setup: + (json['Setup'] as List?)?.nonNulls.map((e) => e as String).toList(), shutdown: (json['Shutdown'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), undeploy: (json['Undeploy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_opsworks_api/pubspec.yaml b/generated/aws_opsworks_api/pubspec.yaml index 72b4c62e6..0f3c42c24 100644 --- a/generated/aws_opsworks_api/pubspec.yaml +++ b/generated/aws_opsworks_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_opswor protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_opsworks_cm_api/lib/opsworkscm-2016-11-01.dart b/generated/aws_opsworks_cm_api/lib/opsworkscm-2016-11-01.dart index a04830edb..24ed8d0d4 100644 --- a/generated/aws_opsworks_cm_api/lib/opsworkscm-2016-11-01.dart +++ b/generated/aws_opsworks_cm_api/lib/opsworkscm-2016-11-01.dart @@ -1599,7 +1599,7 @@ class Backup { s3DataUrl: json['S3DataUrl'] as String?, s3LogUrl: json['S3LogUrl'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serverName: json['ServerName'] as String?, @@ -1607,7 +1607,7 @@ class Backup { status: (json['Status'] as String?)?.let(BackupStatus.fromString), statusDescription: json['StatusDescription'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), toolsVersion: json['ToolsVersion'] as String?, @@ -1709,7 +1709,7 @@ class DescribeAccountAttributesResponse { Map json) { return DescribeAccountAttributesResponse( attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAttribute.fromJson(e as Map)) .toList(), ); @@ -1731,7 +1731,7 @@ class DescribeBackupsResponse { factory DescribeBackupsResponse.fromJson(Map json) { return DescribeBackupsResponse( backups: (json['Backups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Backup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1763,7 +1763,7 @@ class DescribeEventsResponse { return DescribeEventsResponse( nextToken: json['NextToken'] as String?, serverEvents: (json['ServerEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerEvent.fromJson(e as Map)) .toList(), ); @@ -1801,7 +1801,7 @@ class DescribeNodeAssociationStatusResponse { Map json) { return DescribeNodeAssociationStatusResponse( engineAttributes: (json['EngineAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngineAttribute.fromJson(e as Map)) .toList(), nodeAssociationStatus: (json['NodeAssociationStatus'] as String?) @@ -1852,7 +1852,7 @@ class DescribeServersResponse { return DescribeServersResponse( nextToken: json['NextToken'] as String?, servers: (json['Servers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Server.fromJson(e as Map)) .toList(), ); @@ -1947,7 +1947,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2181,7 +2181,7 @@ class Server { endpoint: json['Endpoint'] as String?, engine: json['Engine'] as String?, engineAttributes: (json['EngineAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngineAttribute.fromJson(e as Map)) .toList(), engineModel: json['EngineModel'] as String?, @@ -2194,7 +2194,7 @@ class Server { preferredBackupWindow: json['PreferredBackupWindow'] as String?, preferredMaintenanceWindow: json['PreferredMaintenanceWindow'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), serverArn: json['ServerArn'] as String?, @@ -2203,7 +2203,7 @@ class Server { status: (json['Status'] as String?)?.let(ServerStatus.fromString), statusReason: json['StatusReason'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_opsworks_cm_api/pubspec.yaml b/generated/aws_opsworks_cm_api/pubspec.yaml index 360389478..5739024a4 100644 --- a/generated/aws_opsworks_cm_api/pubspec.yaml +++ b/generated/aws_opsworks_cm_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_opswor protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_organizations_api/lib/organizations-2016-11-28.dart b/generated/aws_organizations_api/lib/organizations-2016-11-28.dart index 75c041ff0..884e19f6d 100644 --- a/generated/aws_organizations_api/lib/organizations-2016-11-28.dart +++ b/generated/aws_organizations_api/lib/organizations-2016-11-28.dart @@ -5430,12 +5430,12 @@ class Handshake { expirationTimestamp: timeStampFromJson(json['ExpirationTimestamp']), id: json['Id'] as String?, parties: (json['Parties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HandshakeParty.fromJson(e as Map)) .toList(), requestedTimestamp: timeStampFromJson(json['RequestedTimestamp']), resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HandshakeResource.fromJson(e as Map)) .toList(), state: (json['State'] as String?)?.let(HandshakeState.fromString), @@ -5577,7 +5577,7 @@ class HandshakeResource { factory HandshakeResource.fromJson(Map json) { return HandshakeResource( resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HandshakeResource.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(HandshakeResourceType.fromString), @@ -5683,7 +5683,7 @@ class ListAWSServiceAccessForOrganizationResponse { Map json) { return ListAWSServiceAccessForOrganizationResponse( enabledServicePrincipals: (json['EnabledServicePrincipals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnabledServicePrincipal.fromJson(e as Map)) .toList(), @@ -5711,7 +5711,7 @@ class ListAccountsForParentResponse { factory ListAccountsForParentResponse.fromJson(Map json) { return ListAccountsForParentResponse( accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Account.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5738,7 +5738,7 @@ class ListAccountsResponse { factory ListAccountsResponse.fromJson(Map json) { return ListAccountsResponse( accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Account.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5765,7 +5765,7 @@ class ListChildrenResponse { factory ListChildrenResponse.fromJson(Map json) { return ListChildrenResponse( children: (json['Children'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Child.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5794,7 +5794,7 @@ class ListCreateAccountStatusResponse { factory ListCreateAccountStatusResponse.fromJson(Map json) { return ListCreateAccountStatusResponse( createAccountStatuses: (json['CreateAccountStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CreateAccountStatus.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5822,7 +5822,7 @@ class ListDelegatedAdministratorsResponse { Map json) { return ListDelegatedAdministratorsResponse( delegatedAdministrators: (json['DelegatedAdministrators'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DelegatedAdministrator.fromJson(e as Map)) .toList(), @@ -5851,7 +5851,7 @@ class ListDelegatedServicesForAccountResponse { Map json) { return ListDelegatedServicesForAccountResponse( delegatedServices: (json['DelegatedServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DelegatedService.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5879,7 +5879,7 @@ class ListHandshakesForAccountResponse { factory ListHandshakesForAccountResponse.fromJson(Map json) { return ListHandshakesForAccountResponse( handshakes: (json['Handshakes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Handshake.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5908,7 +5908,7 @@ class ListHandshakesForOrganizationResponse { Map json) { return ListHandshakesForOrganizationResponse( handshakes: (json['Handshakes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Handshake.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5937,7 +5937,7 @@ class ListOrganizationalUnitsForParentResponse { return ListOrganizationalUnitsForParentResponse( nextToken: json['NextToken'] as String?, organizationalUnits: (json['OrganizationalUnits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationalUnit.fromJson(e as Map)) .toList(), ); @@ -5964,7 +5964,7 @@ class ListParentsResponse { return ListParentsResponse( nextToken: json['NextToken'] as String?, parents: (json['Parents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parent.fromJson(e as Map)) .toList(), ); @@ -5991,7 +5991,7 @@ class ListPoliciesForTargetResponse { return ListPoliciesForTargetResponse( nextToken: json['NextToken'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicySummary.fromJson(e as Map)) .toList(), ); @@ -6020,7 +6020,7 @@ class ListPoliciesResponse { return ListPoliciesResponse( nextToken: json['NextToken'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicySummary.fromJson(e as Map)) .toList(), ); @@ -6047,7 +6047,7 @@ class ListRootsResponse { return ListRootsResponse( nextToken: json['NextToken'] as String?, roots: (json['Roots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Root.fromJson(e as Map)) .toList(), ); @@ -6074,7 +6074,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6102,7 +6102,7 @@ class ListTargetsForPolicyResponse { return ListTargetsForPolicyResponse( nextToken: json['NextToken'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyTargetSummary.fromJson(e as Map)) .toList(), ); @@ -6180,7 +6180,7 @@ class Organization { return Organization( arn: json['Arn'] as String?, availablePolicyTypes: (json['AvailablePolicyTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyTypeSummary.fromJson(e as Map)) .toList(), featureSet: (json['FeatureSet'] as String?) @@ -6620,7 +6620,7 @@ class Root { id: json['Id'] as String?, name: json['Name'] as String?, policyTypes: (json['PolicyTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PolicyTypeSummary.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_organizations_api/pubspec.yaml b/generated/aws_organizations_api/pubspec.yaml index fb3a2d833..066abe22e 100644 --- a/generated/aws_organizations_api/pubspec.yaml +++ b/generated/aws_organizations_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_organi protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_outposts_api/lib/outposts-2019-12-03.dart b/generated/aws_outposts_api/lib/outposts-2019-12-03.dart index b551dcccd..ca40b925c 100644 --- a/generated/aws_outposts_api/lib/outposts-2019-12-03.dart +++ b/generated/aws_outposts_api/lib/outposts-2019-12-03.dart @@ -1651,18 +1651,18 @@ class CatalogItem { return CatalogItem( catalogItemId: json['CatalogItemId'] as String?, eC2Capacities: (json['EC2Capacities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EC2Capacity.fromJson(e as Map)) .toList(), itemStatus: (json['ItemStatus'] as String?)?.let(CatalogItemStatus.fromString), powerKva: json['PowerKva'] as double?, supportedStorage: (json['SupportedStorage'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedStorageEnum.fromString((e as String))) .toList(), supportedUplinkGbps: (json['SupportedUplinkGbps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), weightLbs: json['WeightLbs'] as int?, @@ -1755,7 +1755,7 @@ class ComputeAttributes { return ComputeAttributes( hostId: json['HostId'] as String?, instanceFamilies: (json['InstanceFamilies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), state: (json['State'] as String?)?.let(ComputeAssetState.fromString), @@ -1795,7 +1795,7 @@ class ConnectionDetails { factory ConnectionDetails.fromJson(Map json) { return ConnectionDetails( allowedIps: (json['AllowedIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clientPublicKey: json['ClientPublicKey'] as String?, @@ -1991,7 +1991,7 @@ class GetCapacityTaskOutput { orderId: json['OrderId'] as String?, outpostId: json['OutpostId'] as String?, requestedInstancePools: (json['RequestedInstancePools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceTypeCapacity.fromJson(e as Map)) .toList(), ); @@ -2072,7 +2072,7 @@ class GetOutpostInstanceTypesOutput { factory GetOutpostInstanceTypesOutput.fromJson(Map json) { return GetOutpostInstanceTypesOutput( instanceTypes: (json['InstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceTypeItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2111,7 +2111,7 @@ class GetOutpostSupportedInstanceTypesOutput { Map json) { return GetOutpostSupportedInstanceTypesOutput( instanceTypes: (json['InstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceTypeItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2247,7 +2247,7 @@ class LineItem { factory LineItem.fromJson(Map json) { return LineItem( assetInformationList: (json['AssetInformationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineItemAssetInformation.fromJson(e as Map)) .toList(), @@ -2282,7 +2282,7 @@ class LineItemAssetInformation { return LineItemAssetInformation( assetId: json['AssetId'] as String?, macAddressList: (json['MacAddressList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2347,7 +2347,7 @@ class ListAssetsOutput { factory ListAssetsOutput.fromJson(Map json) { return ListAssetsOutput( assets: (json['Assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2368,7 +2368,7 @@ class ListCapacityTasksOutput { factory ListCapacityTasksOutput.fromJson(Map json) { return ListCapacityTasksOutput( capacityTasks: (json['CapacityTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CapacityTaskSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2389,7 +2389,7 @@ class ListCatalogItemsOutput { factory ListCatalogItemsOutput.fromJson(Map json) { return ListCatalogItemsOutput( catalogItems: (json['CatalogItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CatalogItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2412,7 +2412,7 @@ class ListOrdersOutput { return ListOrdersOutput( nextToken: json['NextToken'] as String?, orders: (json['Orders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrderSummary.fromJson(e as Map)) .toList(), ); @@ -2432,7 +2432,7 @@ class ListOutpostsOutput { return ListOutpostsOutput( nextToken: json['NextToken'] as String?, outposts: (json['Outposts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Outpost.fromJson(e as Map)) .toList(), ); @@ -2452,7 +2452,7 @@ class ListSitesOutput { return ListSitesOutput( nextToken: json['NextToken'] as String?, sites: (json['Sites'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Site.fromJson(e as Map)) .toList(), ); @@ -2586,7 +2586,7 @@ class Order { factory Order.fromJson(Map json) { return Order( lineItems: (json['LineItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineItem.fromJson(e as Map)) .toList(), orderFulfilledDate: timeStampFromJson(json['OrderFulfilledDate']), @@ -3121,7 +3121,7 @@ class StartCapacityTaskOutput { orderId: json['OrderId'] as String?, outpostId: json['OutpostId'] as String?, requestedInstancePools: (json['RequestedInstancePools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceTypeCapacity.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_outposts_api/pubspec.yaml b/generated/aws_outposts_api/pubspec.yaml index 5a663b6e3..efb3aeb47 100644 --- a/generated/aws_outposts_api/pubspec.yaml +++ b/generated/aws_outposts_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_outpos protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_personalize_api/lib/personalize-2018-05-22.dart b/generated/aws_personalize_api/lib/personalize-2018-05-22.dart index 589bf4a21..24d4e6f84 100644 --- a/generated/aws_personalize_api/lib/personalize-2018-05-22.dart +++ b/generated/aws_personalize_api/lib/personalize-2018-05-22.dart @@ -4079,7 +4079,7 @@ class AutoMLConfig { return AutoMLConfig( metricName: json['metricName'] as String?, recipeList: (json['recipeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4935,10 +4935,8 @@ class CategoricalHyperParameterRange { factory CategoricalHyperParameterRange.fromJson(Map json) { return CategoricalHyperParameterRange( name: json['name'] as String?, - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6166,10 +6164,8 @@ class DefaultCategoricalHyperParameterRange { return DefaultCategoricalHyperParameterRange( isTunable: json['isTunable'] as bool?, name: json['name'] as String?, - values: (json['values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -6232,19 +6228,19 @@ class DefaultHyperParameterRanges { return DefaultHyperParameterRanges( categoricalHyperParameterRanges: (json['categoricalHyperParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefaultCategoricalHyperParameterRange.fromJson( e as Map)) .toList(), continuousHyperParameterRanges: (json['continuousHyperParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefaultContinuousHyperParameterRange.fromJson( e as Map)) .toList(), integerHyperParameterRanges: (json['integerHyperParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DefaultIntegerHyperParameterRange.fromJson( e as Map)) .toList(), @@ -7134,19 +7130,19 @@ class HyperParameterRanges { return HyperParameterRanges( categoricalHyperParameterRanges: (json['categoricalHyperParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CategoricalHyperParameterRange.fromJson( e as Map)) .toList(), continuousHyperParameterRanges: (json['continuousHyperParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContinuousHyperParameterRange.fromJson(e as Map)) .toList(), integerHyperParameterRanges: (json['integerHyperParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegerHyperParameterRange.fromJson(e as Map)) .toList(), @@ -7252,7 +7248,7 @@ class ListBatchInferenceJobsResponse { factory ListBatchInferenceJobsResponse.fromJson(Map json) { return ListBatchInferenceJobsResponse( batchInferenceJobs: (json['batchInferenceJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BatchInferenceJobSummary.fromJson(e as Map)) .toList(), @@ -7277,7 +7273,7 @@ class ListBatchSegmentJobsResponse { factory ListBatchSegmentJobsResponse.fromJson(Map json) { return ListBatchSegmentJobsResponse( batchSegmentJobs: (json['batchSegmentJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => BatchSegmentJobSummary.fromJson(e as Map)) .toList(), @@ -7301,7 +7297,7 @@ class ListCampaignsResponse { factory ListCampaignsResponse.fromJson(Map json) { return ListCampaignsResponse( campaigns: (json['campaigns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CampaignSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7324,7 +7320,7 @@ class ListDataDeletionJobsResponse { factory ListDataDeletionJobsResponse.fromJson(Map json) { return ListDataDeletionJobsResponse( dataDeletionJobs: (json['dataDeletionJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DataDeletionJobSummary.fromJson(e as Map)) .toList(), @@ -7348,7 +7344,7 @@ class ListDatasetExportJobsResponse { factory ListDatasetExportJobsResponse.fromJson(Map json) { return ListDatasetExportJobsResponse( datasetExportJobs: (json['datasetExportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetExportJobSummary.fromJson(e as Map)) .toList(), @@ -7372,7 +7368,7 @@ class ListDatasetGroupsResponse { factory ListDatasetGroupsResponse.fromJson(Map json) { return ListDatasetGroupsResponse( datasetGroups: (json['datasetGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7395,7 +7391,7 @@ class ListDatasetImportJobsResponse { factory ListDatasetImportJobsResponse.fromJson(Map json) { return ListDatasetImportJobsResponse( datasetImportJobs: (json['datasetImportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetImportJobSummary.fromJson(e as Map)) .toList(), @@ -7420,7 +7416,7 @@ class ListDatasetsResponse { factory ListDatasetsResponse.fromJson(Map json) { return ListDatasetsResponse( datasets: (json['datasets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7443,7 +7439,7 @@ class ListEventTrackersResponse { factory ListEventTrackersResponse.fromJson(Map json) { return ListEventTrackersResponse( eventTrackers: (json['eventTrackers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventTrackerSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7466,7 +7462,7 @@ class ListFiltersResponse { factory ListFiltersResponse.fromJson(Map json) { return ListFiltersResponse( filters: (json['Filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7492,7 +7488,7 @@ class ListMetricAttributionMetricsResponse { Map json) { return ListMetricAttributionMetricsResponse( metrics: (json['metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricAttribute.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -7516,7 +7512,7 @@ class ListMetricAttributionsResponse { factory ListMetricAttributionsResponse.fromJson(Map json) { return ListMetricAttributionsResponse( metricAttributions: (json['metricAttributions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricAttributionSummary.fromJson(e as Map)) .toList(), @@ -7541,7 +7537,7 @@ class ListRecipesResponse { return ListRecipesResponse( nextToken: json['nextToken'] as String?, recipes: (json['recipes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecipeSummary.fromJson(e as Map)) .toList(), ); @@ -7564,7 +7560,7 @@ class ListRecommendersResponse { return ListRecommendersResponse( nextToken: json['nextToken'] as String?, recommenders: (json['recommenders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecommenderSummary.fromJson(e as Map)) .toList(), ); @@ -7587,7 +7583,7 @@ class ListSchemasResponse { return ListSchemasResponse( nextToken: json['nextToken'] as String?, schemas: (json['schemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetSchemaSummary.fromJson(e as Map)) .toList(), ); @@ -7610,7 +7606,7 @@ class ListSolutionVersionsResponse { return ListSolutionVersionsResponse( nextToken: json['nextToken'] as String?, solutionVersions: (json['solutionVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SolutionVersionSummary.fromJson(e as Map)) .toList(), @@ -7634,7 +7630,7 @@ class ListSolutionsResponse { return ListSolutionsResponse( nextToken: json['nextToken'] as String?, solutions: (json['solutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SolutionSummary.fromJson(e as Map)) .toList(), ); @@ -7652,7 +7648,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8978,10 +8974,10 @@ class TrainingDataConfig { factory TrainingDataConfig.fromJson(Map json) { return TrainingDataConfig( - excludedDatasetColumns: (json['excludedDatasetColumns'] - as Map?) - ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + excludedDatasetColumns: + (json['excludedDatasetColumns'] as Map?)?.map( + (k, e) => MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), ); } diff --git a/generated/aws_personalize_api/pubspec.yaml b/generated/aws_personalize_api/pubspec.yaml index d2eebf9c5..a86183555 100644 --- a/generated/aws_personalize_api/pubspec.yaml +++ b/generated/aws_personalize_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_person protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_personalize_events_api/pubspec.yaml b/generated/aws_personalize_events_api/pubspec.yaml index 88a54fce8..553e58cc9 100644 --- a/generated/aws_personalize_events_api/pubspec.yaml +++ b/generated/aws_personalize_events_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_person protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_personalize_runtime_api/lib/personalize-runtime-2018-05-22.dart b/generated/aws_personalize_runtime_api/lib/personalize-runtime-2018-05-22.dart index eddd703de..328cdc1c9 100644 --- a/generated/aws_personalize_runtime_api/lib/personalize-runtime-2018-05-22.dart +++ b/generated/aws_personalize_runtime_api/lib/personalize-runtime-2018-05-22.dart @@ -379,7 +379,7 @@ class GetActionRecommendationsResponse { factory GetActionRecommendationsResponse.fromJson(Map json) { return GetActionRecommendationsResponse( actionList: (json['actionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictedAction.fromJson(e as Map)) .toList(), recommendationId: json['recommendationId'] as String?, @@ -403,7 +403,7 @@ class GetPersonalizedRankingResponse { factory GetPersonalizedRankingResponse.fromJson(Map json) { return GetPersonalizedRankingResponse( personalizedRanking: (json['personalizedRanking'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictedItem.fromJson(e as Map)) .toList(), recommendationId: json['recommendationId'] as String?, @@ -427,7 +427,7 @@ class GetRecommendationsResponse { factory GetRecommendationsResponse.fromJson(Map json) { return GetRecommendationsResponse( itemList: (json['itemList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PredictedItem.fromJson(e as Map)) .toList(), recommendationId: json['recommendationId'] as String?, @@ -518,10 +518,8 @@ class PredictedItem { metadata: (json['metadata'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), promotionName: json['promotionName'] as String?, - reason: (json['reason'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + reason: + (json['reason'] as List?)?.nonNulls.map((e) => e as String).toList(), score: json['score'] as double?, ); } diff --git a/generated/aws_personalize_runtime_api/pubspec.yaml b/generated/aws_personalize_runtime_api/pubspec.yaml index b1638749e..b12f5dd07 100644 --- a/generated/aws_personalize_runtime_api/pubspec.yaml +++ b/generated/aws_personalize_runtime_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_person protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_pi_api/lib/pi-2018-02-27.dart b/generated/aws_pi_api/lib/pi-2018-02-27.dart index 49371e0e6..651b5726d 100644 --- a/generated/aws_pi_api/lib/pi-2018-02-27.dart +++ b/generated/aws_pi_api/lib/pi-2018-02-27.dart @@ -1136,7 +1136,7 @@ class AnalysisReport { endTime: timeStampFromJson(json['EndTime']), identifier: json['Identifier'] as String?, insights: (json['Insights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Insight.fromJson(e as Map)) .toList(), serviceType: @@ -1184,7 +1184,7 @@ class AnalysisReportSummary { startTime: timeStampFromJson(json['StartTime']), status: (json['Status'] as String?)?.let(AnalysisStatus.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1332,13 +1332,13 @@ class DescribeDimensionKeysResponse { alignedEndTime: timeStampFromJson(json['AlignedEndTime']), alignedStartTime: timeStampFromJson(json['AlignedStartTime']), keys: (json['Keys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionKeyDescription.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, partitionKeys: (json['PartitionKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponsePartitionKey.fromJson(e as Map)) .toList(), ); @@ -1670,7 +1670,7 @@ class DimensionGroupDetail { factory DimensionGroupDetail.fromJson(Map json) { return DimensionGroupDetail( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionDetail.fromJson(e as Map)) .toList(), group: json['Group'] as String?, @@ -1709,7 +1709,7 @@ class DimensionKeyDescription { dimensions: (json['Dimensions'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), partitions: (json['Partitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), total: json['Total'] as double?, @@ -1868,7 +1868,7 @@ class GetDimensionKeyDetailsResponse { factory GetDimensionKeyDetailsResponse.fromJson(Map json) { return GetDimensionKeyDetailsResponse( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionKeyDetail.fromJson(e as Map)) .toList(), ); @@ -1963,7 +1963,7 @@ class GetResourceMetricsResponse { alignedStartTime: timeStampFromJson(json['AlignedStartTime']), identifier: json['Identifier'] as String?, metricList: (json['MetricList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricKeyDataPoints.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2034,25 +2034,25 @@ class Insight { return Insight( insightId: json['InsightId'] as String, baselineData: (json['BaselineData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Data.fromJson(e as Map)) .toList(), context: (json['Context'] as String?)?.let(ContextType.fromString), description: json['Description'] as String?, endTime: timeStampFromJson(json['EndTime']), insightData: (json['InsightData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Data.fromJson(e as Map)) .toList(), insightType: json['InsightType'] as String?, recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), severity: (json['Severity'] as String?)?.let(Severity.fromString), startTime: timeStampFromJson(json['StartTime']), supportingInsights: (json['SupportingInsights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Insight.fromJson(e as Map)) .toList(), ); @@ -2077,7 +2077,7 @@ class ListAvailableResourceDimensionsResponse { Map json) { return ListAvailableResourceDimensionsResponse( metricDimensions: (json['MetricDimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDimensionGroups.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2105,7 +2105,7 @@ class ListAvailableResourceMetricsResponse { Map json) { return ListAvailableResourceMetricsResponse( metrics: (json['Metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ResponseResourceMetric.fromJson(e as Map)) .toList(), @@ -2133,7 +2133,7 @@ class ListPerformanceAnalysisReportsResponse { Map json) { return ListPerformanceAnalysisReportsResponse( analysisReports: (json['AnalysisReports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisReportSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2153,7 +2153,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2176,7 +2176,7 @@ class MetricDimensionGroups { factory MetricDimensionGroups.fromJson(Map json) { return MetricDimensionGroups( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionGroupDetail.fromJson(e as Map)) .toList(), metric: json['Metric'] as String?, @@ -2202,7 +2202,7 @@ class MetricKeyDataPoints { factory MetricKeyDataPoints.fromJson(Map json) { return MetricKeyDataPoints( dataPoints: (json['DataPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataPoint.fromJson(e as Map)) .toList(), key: json['Key'] != null diff --git a/generated/aws_pi_api/pubspec.yaml b/generated/aws_pi_api/pubspec.yaml index 0ad09a6ea..2ceebb87b 100644 --- a/generated/aws_pi_api/pubspec.yaml +++ b/generated/aws_pi_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_pi_api protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_pinpoint_api/lib/pinpoint-2016-12-01.dart b/generated/aws_pinpoint_api/lib/pinpoint-2016-12-01.dart index 6485de6c4..0d244af65 100644 --- a/generated/aws_pinpoint_api/lib/pinpoint-2016-12-01.dart +++ b/generated/aws_pinpoint_api/lib/pinpoint-2016-12-01.dart @@ -6143,7 +6143,7 @@ class ActivitiesResponse { factory ActivitiesResponse.fromJson(Map json) { return ActivitiesResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => ActivityResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6799,7 +6799,7 @@ class ApplicationsResponse { factory ApplicationsResponse.fromJson(Map json) { return ApplicationsResponse( item: (json['Item'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6840,10 +6840,8 @@ class AttributeDimension { factory AttributeDimension.fromJson(Map json) { return AttributeDimension( - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), attributeType: (json['AttributeType'] as String?)?.let(AttributeType.fromString), ); @@ -6917,7 +6915,7 @@ class AttributesResource { applicationId: json['ApplicationId'] as String, attributeType: json['AttributeType'] as String, attributes: (json['Attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7170,7 +7168,7 @@ class BaseKpiResult { factory BaseKpiResult.fromJson(Map json) { return BaseKpiResult( rows: (json['Rows'] as List) - .whereNotNull() + .nonNulls .map((e) => ResultRow.fromJson(e as Map)) .toList(), ); @@ -7314,7 +7312,7 @@ class CampaignEmailMessage { body: json['Body'] as String?, fromAddress: json['FromAddress'] as String?, headers: (json['Headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageHeader.fromJson(e as Map)) .toList(), htmlBody: json['HtmlBody'] as String?, @@ -7452,7 +7450,7 @@ class CampaignInAppMessage { return CampaignInAppMessage( body: json['Body'] as String?, content: (json['Content'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InAppMessageContent.fromJson(e as Map)) .toList(), customConfig: (json['CustomConfig'] as Map?) @@ -7668,7 +7666,7 @@ class CampaignResponse { segmentId: json['SegmentId'] as String, segmentVersion: json['SegmentVersion'] as int, additionalTreatments: (json['AdditionalTreatments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TreatmentResource.fromJson(e as Map)) .toList(), customDeliveryConfiguration: json['CustomDeliveryConfiguration'] != null @@ -7844,7 +7842,7 @@ class CampaignsResponse { factory CampaignsResponse.fromJson(Map json) { return CampaignsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => CampaignResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7974,7 +7972,7 @@ class Condition { factory Condition.fromJson(Map json) { return Condition( conditions: (json['Conditions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimpleCondition.fromJson(e as Map)) .toList(), operator: (json['Operator'] as String?)?.let(Operator.fromString), @@ -8406,7 +8404,7 @@ class CustomDeliveryConfiguration { return CustomDeliveryConfiguration( deliveryUri: json['DeliveryUri'] as String, endpointTypes: (json['EndpointTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointTypesElement.fromString((e as String))) .toList(), ); @@ -8485,7 +8483,7 @@ class CustomMessageActivity { return CustomMessageActivity( deliveryUri: json['DeliveryUri'] as String?, endpointTypes: (json['EndpointTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointTypesElement.fromString((e as String))) .toList(), messageConfig: json['MessageConfig'] != null @@ -9536,7 +9534,7 @@ class EmailTemplateResponse { arn: json['Arn'] as String?, defaultSubstitutions: json['DefaultSubstitutions'] as String?, headers: (json['Headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageHeader.fromJson(e as Map)) .toList(), htmlPart: json['HtmlPart'] as String?, @@ -10136,8 +10134,7 @@ class EndpointResponse { address: json['Address'] as String?, applicationId: json['ApplicationId'] as String?, attributes: (json['Attributes'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), channelType: (json['ChannelType'] as String?)?.let(ChannelType.fromString), cohortId: json['CohortId'] as String?, @@ -10242,9 +10239,9 @@ class EndpointUser { factory EndpointUser.fromJson(Map json) { return EndpointUser( - userAttributes: (json['UserAttributes'] as Map?)?.map( - (k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + userAttributes: (json['UserAttributes'] as Map?)?.map((k, + e) => + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), userId: json['UserId'] as String?, ); } @@ -10273,7 +10270,7 @@ class EndpointsResponse { factory EndpointsResponse.fromJson(Map json) { return EndpointsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => EndpointResponse.fromJson(e as Map)) .toList(), ); @@ -10816,7 +10813,7 @@ class ExportJobResponse { completionDate: json['CompletionDate'] as String?, failedPieces: json['FailedPieces'] as int?, failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), totalFailures: json['TotalFailures'] as int?, @@ -10847,7 +10844,7 @@ class ExportJobsResponse { factory ExportJobsResponse.fromJson(Map json) { return ExportJobsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => ExportJobResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11954,7 +11951,7 @@ class ImportJobResponse { completionDate: json['CompletionDate'] as String?, failedPieces: json['FailedPieces'] as int?, failures: (json['Failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), totalFailures: json['TotalFailures'] as int?, @@ -11985,7 +11982,7 @@ class ImportJobsResponse { factory ImportJobsResponse.fromJson(Map json) { return ImportJobsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => ImportJobResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -12046,7 +12043,7 @@ class InAppMessage { factory InAppMessage.fromJson(Map json) { return InAppMessage( content: (json['Content'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InAppMessageContent.fromJson(e as Map)) .toList(), customConfig: (json['CustomConfig'] as Map?) @@ -12328,7 +12325,7 @@ class InAppMessagesResponse { factory InAppMessagesResponse.fromJson(Map json) { return InAppMessagesResponse( inAppMessageCampaigns: (json['InAppMessageCampaigns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InAppMessageCampaign.fromJson(e as Map)) .toList(), ); @@ -12453,7 +12450,7 @@ class InAppTemplateResponse { templateType: TemplateType.fromString((json['TemplateType'] as String)), arn: json['Arn'] as String?, content: (json['Content'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InAppMessageContent.fromJson(e as Map)) .toList(), customConfig: (json['CustomConfig'] as Map?) @@ -13107,7 +13104,7 @@ class JourneyResponse { : null, state: (json['State'] as String?)?.let(State.fromString), timezoneEstimationMethods: (json['TimezoneEstimationMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TimezoneEstimationMethodsElement.fromString((e as String))) .toList(), @@ -13297,7 +13294,7 @@ class JourneyRunsResponse { factory JourneyRunsResponse.fromJson(Map json) { return JourneyRunsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => JourneyRunResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13521,7 +13518,7 @@ class JourneysResponse { factory JourneysResponse.fromJson(Map json) { return JourneysResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => JourneyResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -13575,7 +13572,7 @@ class ListRecommenderConfigurationsResponse { Map json) { return ListRecommenderConfigurationsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => RecommenderConfigurationResponse.fromJson( e as Map)) .toList(), @@ -14183,7 +14180,7 @@ class MultiConditionalSplitActivity { factory MultiConditionalSplitActivity.fromJson(Map json) { return MultiConditionalSplitActivity( branches: (json['Branches'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MultiConditionalBranch.fromJson(e as Map)) .toList(), @@ -14827,7 +14824,7 @@ class RandomSplitActivity { factory RandomSplitActivity.fromJson(Map json) { return RandomSplitActivity( branches: (json['Branches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RandomSplitEntry.fromJson(e as Map)) .toList(), ); @@ -15095,11 +15092,11 @@ class ResultRow { factory ResultRow.fromJson(Map json) { return ResultRow( groupedBys: (json['GroupedBys'] as List) - .whereNotNull() + .nonNulls .map((e) => ResultRowValue.fromJson(e as Map)) .toList(), values: (json['Values'] as List) - .whereNotNull() + .nonNulls .map((e) => ResultRowValue.fromJson(e as Map)) .toList(), ); @@ -15874,11 +15871,11 @@ class SegmentGroup { factory SegmentGroup.fromJson(Map json) { return SegmentGroup( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentDimensions.fromJson(e as Map)) .toList(), sourceSegments: (json['SourceSegments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentReference.fromJson(e as Map)) .toList(), sourceType: (json['SourceType'] as String?)?.let(SourceType.fromString), @@ -15921,7 +15918,7 @@ class SegmentGroupList { factory SegmentGroupList.fromJson(Map json) { return SegmentGroupList( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentGroup.fromJson(e as Map)) .toList(), include: (json['Include'] as String?)?.let(Include.fromString), @@ -16190,7 +16187,7 @@ class SegmentsResponse { factory SegmentsResponse.fromJson(Map json) { return SegmentsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => SegmentResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -16441,10 +16438,8 @@ class SetDimension { factory SetDimension.fromJson(Map json) { return SetDimension( - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), dimensionType: (json['DimensionType'] as String?)?.let(DimensionType.fromString), ); @@ -17050,7 +17045,7 @@ class TemplateVersionsResponse { factory TemplateVersionsResponse.fromJson(Map json) { return TemplateVersionsResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => TemplateVersionResponse.fromJson(e as Map)) .toList(), @@ -17081,7 +17076,7 @@ class TemplatesResponse { factory TemplatesResponse.fromJson(Map json) { return TemplatesResponse( item: (json['Item'] as List) - .whereNotNull() + .nonNulls .map((e) => TemplateResponse.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -18662,31 +18657,31 @@ class OpenHours { custom: (json['CUSTOM'] as Map?)?.map((k, e) => MapEntry( DayOfWeek.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => OpenHoursRule.fromJson(e as Map)) .toList())), email: (json['EMAIL'] as Map?)?.map((k, e) => MapEntry( DayOfWeek.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => OpenHoursRule.fromJson(e as Map)) .toList())), push: (json['PUSH'] as Map?)?.map((k, e) => MapEntry( DayOfWeek.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => OpenHoursRule.fromJson(e as Map)) .toList())), sms: (json['SMS'] as Map?)?.map((k, e) => MapEntry( DayOfWeek.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => OpenHoursRule.fromJson(e as Map)) .toList())), voice: (json['VOICE'] as Map?)?.map((k, e) => MapEntry( DayOfWeek.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => OpenHoursRule.fromJson(e as Map)) .toList())), ); @@ -18774,23 +18769,23 @@ class ClosedDays { factory ClosedDays.fromJson(Map json) { return ClosedDays( custom: (json['CUSTOM'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClosedDaysRule.fromJson(e as Map)) .toList(), email: (json['EMAIL'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClosedDaysRule.fromJson(e as Map)) .toList(), push: (json['PUSH'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClosedDaysRule.fromJson(e as Map)) .toList(), sms: (json['SMS'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClosedDaysRule.fromJson(e as Map)) .toList(), voice: (json['VOICE'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClosedDaysRule.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_pinpoint_api/pubspec.yaml b/generated/aws_pinpoint_api/pubspec.yaml index 8ebff110e..1d1af17c5 100644 --- a/generated/aws_pinpoint_api/pubspec.yaml +++ b/generated/aws_pinpoint_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_pinpoi protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_pinpoint_email_api/lib/pinpoint-email-2018-07-26.dart b/generated/aws_pinpoint_email_api/lib/pinpoint-email-2018-07-26.dart index 8eac94ded..9a1d5657e 100644 --- a/generated/aws_pinpoint_email_api/lib/pinpoint-email-2018-07-26.dart +++ b/generated/aws_pinpoint_email_api/lib/pinpoint-email-2018-07-26.dart @@ -1671,7 +1671,7 @@ class CloudWatchDestination { factory CloudWatchDestination.fromJson(Map json) { return CloudWatchDestination( dimensionConfigurations: (json['DimensionConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => CloudWatchDimensionConfiguration.fromJson( e as Map)) .toList(), @@ -1904,7 +1904,7 @@ class DailyVolume { factory DailyVolume.fromJson(Map json) { return DailyVolume( domainIspPlacements: (json['DomainIspPlacements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainIspPlacement.fromJson(e as Map)) .toList(), startDate: timeStampFromJson(json['StartDate']), @@ -2243,10 +2243,8 @@ class DkimAttributes { return DkimAttributes( signingEnabled: json['SigningEnabled'] as bool?, status: (json['Status'] as String?)?.let(DkimStatus.fromString), - tokens: (json['Tokens'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tokens: + (json['Tokens'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -2381,10 +2379,7 @@ class DomainDeliverabilityCampaign { return DomainDeliverabilityCampaign( campaignId: json['CampaignId'] as String?, deleteRate: json['DeleteRate'] as double?, - esps: (json['Esps'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + esps: (json['Esps'] as List?)?.nonNulls.map((e) => e as String).toList(), firstSeenDateTime: timeStampFromJson(json['FirstSeenDateTime']), fromAddress: json['FromAddress'] as String?, imageUrl: json['ImageUrl'] as String?, @@ -2394,7 +2389,7 @@ class DomainDeliverabilityCampaign { readDeleteRate: json['ReadDeleteRate'] as double?, readRate: json['ReadRate'] as double?, sendingIps: (json['SendingIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), spamCount: json['SpamCount'] as int?, @@ -2615,7 +2610,7 @@ class EventDestination { factory EventDestination.fromJson(Map json) { return EventDestination( matchingEventTypes: (json['MatchingEventTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => EventType.fromString((e as String))) .toList(), name: json['Name'] as String, @@ -2820,7 +2815,7 @@ class GetBlacklistReportsResponse { (k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map( (e) => BlacklistEntry.fromJson(e as Map)) .toList())), @@ -2842,7 +2837,7 @@ class GetConfigurationSetEventDestinationsResponse { Map json) { return GetConfigurationSetEventDestinationsResponse( eventDestinations: (json['EventDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDestination.fromJson(e as Map)) .toList(), ); @@ -2899,7 +2894,7 @@ class GetConfigurationSetResponse { json['SendingOptions'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trackingOptions: json['TrackingOptions'] != null @@ -2949,7 +2944,7 @@ class GetDedicatedIpsResponse { factory GetDedicatedIpsResponse.fromJson(Map json) { return GetDedicatedIpsResponse( dedicatedIps: (json['DedicatedIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DedicatedIp.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3003,13 +2998,13 @@ class GetDeliverabilityDashboardOptionsResponse { accountStatus: (json['AccountStatus'] as String?) ?.let(DeliverabilityDashboardAccountStatus.fromString), activeSubscribedDomains: (json['ActiveSubscribedDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainDeliverabilityTrackingOption.fromJson( e as Map)) .toList(), pendingExpirationSubscribedDomains: (json['PendingExpirationSubscribedDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainDeliverabilityTrackingOption.fromJson( e as Map)) .toList(), @@ -3054,14 +3049,14 @@ class GetDeliverabilityTestReportResponse { deliverabilityTestReport: DeliverabilityTestReport.fromJson( json['DeliverabilityTestReport'] as Map), ispPlacements: (json['IspPlacements'] as List) - .whereNotNull() + .nonNulls .map((e) => IspPlacement.fromJson(e as Map)) .toList(), overallPlacement: PlacementStatistics.fromJson( json['OverallPlacement'] as Map), message: json['Message'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3111,7 +3106,7 @@ class GetDomainStatisticsReportResponse { Map json) { return GetDomainStatisticsReportResponse( dailyVolumes: (json['DailyVolumes'] as List) - .whereNotNull() + .nonNulls .map((e) => DailyVolume.fromJson(e as Map)) .toList(), overallVolume: @@ -3183,7 +3178,7 @@ class GetEmailIdentityResponse { json['MailFromAttributes'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), verifiedForSendingStatus: json['VerifiedForSendingStatus'] as bool?, @@ -3283,7 +3278,7 @@ class InboxPlacementTrackingOption { return InboxPlacementTrackingOption( global: json['Global'] as bool?, trackedIsps: (json['TrackedIsps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3380,7 +3375,7 @@ class ListConfigurationSetsResponse { factory ListConfigurationSetsResponse.fromJson(Map json) { return ListConfigurationSetsResponse( configurationSets: (json['ConfigurationSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -3408,7 +3403,7 @@ class ListDedicatedIpPoolsResponse { factory ListDedicatedIpPoolsResponse.fromJson(Map json) { return ListDedicatedIpPoolsResponse( dedicatedIpPools: (json['DedicatedIpPools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -3438,7 +3433,7 @@ class ListDeliverabilityTestReportsResponse { Map json) { return ListDeliverabilityTestReportsResponse( deliverabilityTestReports: (json['DeliverabilityTestReports'] as List) - .whereNotNull() + .nonNulls .map((e) => DeliverabilityTestReport.fromJson(e as Map)) .toList(), @@ -3472,7 +3467,7 @@ class ListDomainDeliverabilityCampaignsResponse { return ListDomainDeliverabilityCampaignsResponse( domainDeliverabilityCampaigns: (json['DomainDeliverabilityCampaigns'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainDeliverabilityCampaign.fromJson(e as Map)) .toList(), @@ -3503,7 +3498,7 @@ class ListEmailIdentitiesResponse { factory ListEmailIdentitiesResponse.fromJson(Map json) { return ListEmailIdentitiesResponse( emailIdentities: (json['EmailIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3524,7 +3519,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3725,7 +3720,7 @@ class OverallVolume { factory OverallVolume.fromJson(Map json) { return OverallVolume( domainIspPlacements: (json['DomainIspPlacements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainIspPlacement.fromJson(e as Map)) .toList(), readRatePercent: json['ReadRatePercent'] as double?, diff --git a/generated/aws_pinpoint_email_api/pubspec.yaml b/generated/aws_pinpoint_email_api/pubspec.yaml index 58b86f732..99df5c8ee 100644 --- a/generated/aws_pinpoint_email_api/pubspec.yaml +++ b/generated/aws_pinpoint_email_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_pinpoi protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_pinpoint_sms_voice_api/lib/pinpoint-sms-voice-2018-09-05.dart b/generated/aws_pinpoint_sms_voice_api/lib/pinpoint-sms-voice-2018-09-05.dart index 528bc3ec9..e1d97f7c3 100644 --- a/generated/aws_pinpoint_sms_voice_api/lib/pinpoint-sms-voice-2018-09-05.dart +++ b/generated/aws_pinpoint_sms_voice_api/lib/pinpoint-sms-voice-2018-09-05.dart @@ -423,7 +423,7 @@ class EventDestination { json['KinesisFirehoseDestination'] as Map) : null, matchingEventTypes: (json['MatchingEventTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventType.fromString((e as String))) .toList(), name: json['Name'] as String?, @@ -506,7 +506,7 @@ class GetConfigurationSetEventDestinationsResponse { Map json) { return GetConfigurationSetEventDestinationsResponse( eventDestinations: (json['EventDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDestination.fromJson(e as Map)) .toList(), ); @@ -565,7 +565,7 @@ class ListConfigurationSetsResponse { factory ListConfigurationSetsResponse.fromJson(Map json) { return ListConfigurationSetsResponse( configurationSets: (json['ConfigurationSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, diff --git a/generated/aws_pinpoint_sms_voice_api/pubspec.yaml b/generated/aws_pinpoint_sms_voice_api/pubspec.yaml index 6eb9c9867..b2b75bfef 100644 --- a/generated/aws_pinpoint_sms_voice_api/pubspec.yaml +++ b/generated/aws_pinpoint_sms_voice_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_pinpoi protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_polly_api/lib/polly-2016-06-10.dart b/generated/aws_polly_api/lib/polly-2016-06-10.dart index fdbc7194b..4088406d3 100644 --- a/generated/aws_polly_api/lib/polly-2016-06-10.dart +++ b/generated/aws_polly_api/lib/polly-2016-06-10.dart @@ -586,7 +586,7 @@ class DescribeVoicesOutput { return DescribeVoicesOutput( nextToken: json['NextToken'] as String?, voices: (json['Voices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Voice.fromJson(e as Map)) .toList(), ); @@ -835,7 +835,7 @@ class ListLexiconsOutput { factory ListLexiconsOutput.fromJson(Map json) { return ListLexiconsOutput( lexicons: (json['Lexicons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LexiconDescription.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -862,7 +862,7 @@ class ListSpeechSynthesisTasksOutput { return ListSpeechSynthesisTasksOutput( nextToken: json['NextToken'] as String?, synthesisTasks: (json['SynthesisTasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SynthesisTask.fromJson(e as Map)) .toList(), ); @@ -1028,7 +1028,7 @@ class SynthesisTask { languageCode: (json['LanguageCode'] as String?)?.let(LanguageCode.fromString), lexiconNames: (json['LexiconNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), outputFormat: @@ -1038,7 +1038,7 @@ class SynthesisTask { sampleRate: json['SampleRate'] as String?, snsTopicArn: json['SnsTopicArn'] as String?, speechMarkTypes: (json['SpeechMarkTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SpeechMarkType.fromString((e as String))) .toList(), taskId: json['TaskId'] as String?, @@ -1165,7 +1165,7 @@ class Voice { factory Voice.fromJson(Map json) { return Voice( additionalLanguageCodes: (json['AdditionalLanguageCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LanguageCode.fromString((e as String))) .toList(), gender: (json['Gender'] as String?)?.let(Gender.fromString), @@ -1175,7 +1175,7 @@ class Voice { languageName: json['LanguageName'] as String?, name: json['Name'] as String?, supportedEngines: (json['SupportedEngines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Engine.fromString((e as String))) .toList(), ); diff --git a/generated/aws_polly_api/pubspec.yaml b/generated/aws_polly_api/pubspec.yaml index b13ad8ea4..b9b4c0f81 100644 --- a/generated/aws_polly_api/pubspec.yaml +++ b/generated/aws_polly_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_polly_ protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_pricing_api/lib/pricing-2017-10-15.dart b/generated/aws_pricing_api/lib/pricing-2017-10-15.dart index b36f09a45..774bbca4a 100644 --- a/generated/aws_pricing_api/lib/pricing-2017-10-15.dart +++ b/generated/aws_pricing_api/lib/pricing-2017-10-15.dart @@ -466,7 +466,7 @@ class DescribeServicesResponse { formatVersion: json['FormatVersion'] as String?, nextToken: json['NextToken'] as String?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Service.fromJson(e as Map)) .toList(), ); @@ -549,7 +549,7 @@ class GetAttributeValuesResponse { factory GetAttributeValuesResponse.fromJson(Map json) { return GetAttributeValuesResponse( attributeValues: (json['AttributeValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttributeValue.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -619,7 +619,7 @@ class ListPriceListsResponse { return ListPriceListsResponse( nextToken: json['NextToken'] as String?, priceLists: (json['PriceLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PriceList.fromJson(e as Map)) .toList(), ); @@ -670,7 +670,7 @@ class PriceList { return PriceList( currencyCode: json['CurrencyCode'] as String?, fileFormats: (json['FileFormats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), priceListArn: json['PriceListArn'] as String?, @@ -697,7 +697,7 @@ class Service { return Service( serviceCode: json['ServiceCode'] as String, attributeNames: (json['AttributeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_pricing_api/pubspec.yaml b/generated/aws_pricing_api/pubspec.yaml index 8e8b49a03..bf59d93fc 100644 --- a/generated/aws_pricing_api/pubspec.yaml +++ b/generated/aws_pricing_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_pricin protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_qldb_api/lib/qldb-2019-01-02.dart b/generated/aws_qldb_api/lib/qldb-2019-01-02.dart index f2bcede73..45b63ca5f 100644 --- a/generated/aws_qldb_api/lib/qldb-2019-01-02.dart +++ b/generated/aws_qldb_api/lib/qldb-2019-01-02.dart @@ -1741,7 +1741,7 @@ class ListJournalKinesisStreamsForLedgerResponse { return ListJournalKinesisStreamsForLedgerResponse( nextToken: json['NextToken'] as String?, streams: (json['Streams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JournalKinesisStreamDescription.fromJson( e as Map)) .toList(), @@ -1777,7 +1777,7 @@ class ListJournalS3ExportsForLedgerResponse { Map json) { return ListJournalS3ExportsForLedgerResponse( journalS3Exports: (json['JournalS3Exports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JournalS3ExportDescription.fromJson(e as Map)) .toList(), @@ -1813,7 +1813,7 @@ class ListJournalS3ExportsResponse { factory ListJournalS3ExportsResponse.fromJson(Map json) { return ListJournalS3ExportsResponse( journalS3Exports: (json['JournalS3Exports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JournalS3ExportDescription.fromJson(e as Map)) .toList(), @@ -1850,7 +1850,7 @@ class ListLedgersResponse { factory ListLedgersResponse.fromJson(Map json) { return ListLedgersResponse( ledgers: (json['Ledgers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LedgerSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/generated/aws_qldb_api/pubspec.yaml b/generated/aws_qldb_api/pubspec.yaml index fbe2f0e91..9a22b4240 100644 --- a/generated/aws_qldb_api/pubspec.yaml +++ b/generated/aws_qldb_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_qldb_a protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_qldb_session_api/lib/qldb-session-2019-07-11.dart b/generated/aws_qldb_session_api/lib/qldb-session-2019-07-11.dart index b0c0df98a..cef16ec49 100644 --- a/generated/aws_qldb_session_api/lib/qldb-session-2019-07-11.dart +++ b/generated/aws_qldb_session_api/lib/qldb-session-2019-07-11.dart @@ -444,7 +444,7 @@ class Page { return Page( nextPageToken: json['NextPageToken'] as String?, values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValueHolder.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_qldb_session_api/pubspec.yaml b/generated/aws_qldb_session_api/pubspec.yaml index 999266943..7e35388ca 100644 --- a/generated/aws_qldb_session_api/pubspec.yaml +++ b/generated/aws_qldb_session_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_qldb_s protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_quicksight_api/lib/quicksight-2018-04-01.dart b/generated/aws_quicksight_api/lib/quicksight-2018-04-01.dart index f4257aa08..21dcd3ac8 100644 --- a/generated/aws_quicksight_api/lib/quicksight-2018-04-01.dart +++ b/generated/aws_quicksight_api/lib/quicksight-2018-04-01.dart @@ -9848,17 +9848,17 @@ class Analysis { arn: json['Arn'] as String?, createdTime: timeStampFromJson(json['CreatedTime']), dataSetArns: (json['DataSetArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisError.fromJson(e as Map)) .toList(), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), name: json['Name'] as String?, sheets: (json['Sheets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Sheet.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(ResourceStatus.fromString), @@ -9947,7 +9947,7 @@ class AnalysisDefinition { return AnalysisDefinition( dataSetIdentifierDeclarations: (json['DataSetIdentifierDeclarations'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSetIdentifierDeclaration.fromJson(e as Map)) .toList(), @@ -9956,26 +9956,26 @@ class AnalysisDefinition { json['AnalysisDefaults'] as Map) : null, calculatedFields: (json['CalculatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CalculatedField.fromJson(e as Map)) .toList(), columnConfigurations: (json['ColumnConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnConfiguration.fromJson(e as Map)) .toList(), filterGroups: (json['FilterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterGroup.fromJson(e as Map)) .toList(), options: json['Options'] != null ? AssetOptions.fromJson(json['Options'] as Map) : null, parameterDeclarations: (json['ParameterDeclarations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterDeclaration.fromJson(e as Map)) .toList(), sheets: (json['Sheets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetDefinition.fromJson(e as Map)) .toList(), ); @@ -10027,7 +10027,7 @@ class AnalysisError { message: json['Message'] as String?, type: (json['Type'] as String?)?.let(AnalysisErrorType.fromString), violatedEntities: (json['ViolatedEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), ); @@ -10447,7 +10447,7 @@ class AnonymousUserSnapshotJobResult { factory AnonymousUserSnapshotJobResult.fromJson(Map json) { return AnonymousUserSnapshotJobResult( fileGroups: (json['FileGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotJobResultFileGroup.fromJson(e as Map)) .toList(), @@ -10660,27 +10660,27 @@ class AssetBundleCloudFormationOverridePropertyConfiguration { Map json) { return AssetBundleCloudFormationOverridePropertyConfiguration( analyses: (json['Analyses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobAnalysisOverrideProperties.fromJson( e as Map)) .toList(), dashboards: (json['Dashboards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobDashboardOverrideProperties.fromJson( e as Map)) .toList(), dataSets: (json['DataSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobDataSetOverrideProperties.fromJson( e as Map)) .toList(), dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobDataSourceOverrideProperties.fromJson( e as Map)) .toList(), refreshSchedules: (json['RefreshSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobRefreshScheduleOverrideProperties.fromJson( e as Map)) @@ -10692,12 +10692,12 @@ class AssetBundleCloudFormationOverridePropertyConfiguration { as Map) : null, themes: (json['Themes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobThemeOverrideProperties.fromJson( e as Map)) .toList(), vPCConnections: (json['VPCConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobVPCConnectionOverrideProperties.fromJson( e as Map)) @@ -10765,7 +10765,7 @@ class AssetBundleExportJobAnalysisOverrideProperties { return AssetBundleExportJobAnalysisOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobAnalysisPropertyToOverride.fromString( (e as String))) .toList(), @@ -10818,7 +10818,7 @@ class AssetBundleExportJobDashboardOverrideProperties { return AssetBundleExportJobDashboardOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobDashboardPropertyToOverride.fromString( (e as String))) @@ -10872,7 +10872,7 @@ class AssetBundleExportJobDataSetOverrideProperties { return AssetBundleExportJobDataSetOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobDataSetPropertyToOverride.fromString( (e as String))) .toList(), @@ -10925,7 +10925,7 @@ class AssetBundleExportJobDataSourceOverrideProperties { return AssetBundleExportJobDataSourceOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobDataSourcePropertyToOverride.fromString( (e as String))) @@ -11022,7 +11022,7 @@ class AssetBundleExportJobRefreshScheduleOverrideProperties { return AssetBundleExportJobRefreshScheduleOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobRefreshSchedulePropertyToOverride.fromString( (e as String))) @@ -11178,7 +11178,7 @@ class AssetBundleExportJobThemeOverrideProperties { return AssetBundleExportJobThemeOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobThemePropertyToOverride.fromString( (e as String))) .toList(), @@ -11230,7 +11230,7 @@ class AssetBundleExportJobVPCConnectionOverrideProperties { return AssetBundleExportJobVPCConnectionOverrideProperties( arn: json['Arn'] as String, properties: (json['Properties'] as List) - .whereNotNull() + .nonNulls .map((e) => AssetBundleExportJobVPCConnectionPropertyToOverride.fromString( (e as String))) @@ -11379,7 +11379,7 @@ class AssetBundleImportJobAnalysisOverridePermissions { Map json) { return AssetBundleImportJobAnalysisOverridePermissions( analysisIds: (json['AnalysisIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), permissions: AssetBundleResourcePermissions.fromJson( @@ -11416,11 +11416,11 @@ class AssetBundleImportJobAnalysisOverrideTags { Map json) { return AssetBundleImportJobAnalysisOverrideTags( analysisIds: (json['AnalysisIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11492,7 +11492,7 @@ class AssetBundleImportJobDashboardOverridePermissions { Map json) { return AssetBundleImportJobDashboardOverridePermissions( dashboardIds: (json['DashboardIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), linkSharingConfiguration: json['LinkSharingConfiguration'] != null @@ -11538,11 +11538,11 @@ class AssetBundleImportJobDashboardOverrideTags { Map json) { return AssetBundleImportJobDashboardOverrideTags( dashboardIds: (json['DashboardIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11608,7 +11608,7 @@ class AssetBundleImportJobDataSetOverridePermissions { Map json) { return AssetBundleImportJobDataSetOverridePermissions( dataSetIds: (json['DataSetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), permissions: AssetBundleResourcePermissions.fromJson( @@ -11645,11 +11645,11 @@ class AssetBundleImportJobDataSetOverrideTags { Map json) { return AssetBundleImportJobDataSetOverrideTags( dataSetIds: (json['DataSetIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11823,7 +11823,7 @@ class AssetBundleImportJobDataSourceOverridePermissions { Map json) { return AssetBundleImportJobDataSourceOverridePermissions( dataSourceIds: (json['DataSourceIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), permissions: AssetBundleResourcePermissions.fromJson( @@ -11860,11 +11860,11 @@ class AssetBundleImportJobDataSourceOverrideTags { Map json) { return AssetBundleImportJobDataSourceOverrideTags( dataSourceIds: (json['DataSourceIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11959,27 +11959,27 @@ class AssetBundleImportJobOverrideParameters { Map json) { return AssetBundleImportJobOverrideParameters( analyses: (json['Analyses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobAnalysisOverrideParameters.fromJson( e as Map)) .toList(), dashboards: (json['Dashboards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDashboardOverrideParameters.fromJson( e as Map)) .toList(), dataSets: (json['DataSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDataSetOverrideParameters.fromJson( e as Map)) .toList(), dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDataSourceOverrideParameters.fromJson( e as Map)) .toList(), refreshSchedules: (json['RefreshSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobRefreshScheduleOverrideParameters.fromJson( e as Map)) @@ -11991,12 +11991,12 @@ class AssetBundleImportJobOverrideParameters { as Map) : null, themes: (json['Themes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobThemeOverrideParameters.fromJson( e as Map)) .toList(), vPCConnections: (json['VPCConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobVPCConnectionOverrideParameters.fromJson( e as Map)) @@ -12063,28 +12063,28 @@ class AssetBundleImportJobOverridePermissions { Map json) { return AssetBundleImportJobOverridePermissions( analyses: (json['Analyses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobAnalysisOverridePermissions.fromJson( e as Map)) .toList(), dashboards: (json['Dashboards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDashboardOverridePermissions.fromJson( e as Map)) .toList(), dataSets: (json['DataSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDataSetOverridePermissions.fromJson( e as Map)) .toList(), dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDataSourceOverridePermissions.fromJson( e as Map)) .toList(), themes: (json['Themes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobThemeOverridePermissions.fromJson( e as Map)) .toList(), @@ -12147,32 +12147,32 @@ class AssetBundleImportJobOverrideTags { factory AssetBundleImportJobOverrideTags.fromJson(Map json) { return AssetBundleImportJobOverrideTags( analyses: (json['Analyses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobAnalysisOverrideTags.fromJson( e as Map)) .toList(), dashboards: (json['Dashboards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDashboardOverrideTags.fromJson( e as Map)) .toList(), dataSets: (json['DataSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDataSetOverrideTags.fromJson( e as Map)) .toList(), dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobDataSourceOverrideTags.fromJson( e as Map)) .toList(), themes: (json['Themes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobThemeOverrideTags.fromJson( e as Map)) .toList(), vPCConnections: (json['VPCConnections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobVPCConnectionOverrideTags.fromJson( e as Map)) .toList(), @@ -12410,10 +12410,8 @@ class AssetBundleImportJobThemeOverridePermissions { return AssetBundleImportJobThemeOverridePermissions( permissions: AssetBundleResourcePermissions.fromJson( json['Permissions'] as Map), - themeIds: (json['ThemeIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + themeIds: + (json['ThemeIds'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -12446,13 +12444,11 @@ class AssetBundleImportJobThemeOverrideTags { Map json) { return AssetBundleImportJobThemeOverrideTags( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), - themeIds: (json['ThemeIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + themeIds: + (json['ThemeIds'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -12504,17 +12500,17 @@ class AssetBundleImportJobVPCConnectionOverrideParameters { return AssetBundleImportJobVPCConnectionOverrideParameters( vPCConnectionId: json['VPCConnectionId'] as String, dnsResolvers: (json['DnsResolvers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, roleArn: json['RoleArn'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -12557,11 +12553,11 @@ class AssetBundleImportJobVPCConnectionOverrideTags { Map json) { return AssetBundleImportJobVPCConnectionOverrideTags( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vPCConnectionIds: (json['VPCConnectionIds'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -12706,12 +12702,10 @@ class AssetBundleResourcePermissions { factory AssetBundleResourcePermissions.fromJson(Map json) { return AssetBundleResourcePermissions( - actions: (json['Actions'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List).nonNulls.map((e) => e as String).toList(), principals: (json['Principals'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -12985,7 +12979,7 @@ class AuthorizedTargetsByService { factory AuthorizedTargetsByService.fromJson(Map json) { return AuthorizedTargetsByService( authorizedTargets: (json['AuthorizedTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), service: (json['Service'] as String?)?.let(ServiceType.fromString), @@ -13447,19 +13441,19 @@ class BarChartAggregatedFieldWells { factory BarChartAggregatedFieldWells.fromJson(Map json) { return BarChartAggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), colors: (json['Colors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), smallMultiples: (json['SmallMultiples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -13590,7 +13584,7 @@ class BarChartConfiguration { : null, contributionAnalysisDefaults: (json['ContributionAnalysisDefaults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContributionAnalysisDefault.fromJson(e as Map)) .toList(), @@ -13612,7 +13606,7 @@ class BarChartConfiguration { orientation: (json['Orientation'] as String?)?.let(BarChartOrientation.fromString), referenceLines: (json['ReferenceLines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceLine.fromJson(e as Map)) .toList(), smallMultiplesOptions: json['SmallMultiplesOptions'] != null @@ -13765,7 +13759,7 @@ class BarChartSortConfiguration { json['CategoryItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), colorItemsLimit: json['ColorItemsLimit'] != null @@ -13773,7 +13767,7 @@ class BarChartSortConfiguration { json['ColorItemsLimit'] as Map) : null, colorSort: (json['ColorSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), smallMultiplesLimitConfiguration: @@ -13783,7 +13777,7 @@ class BarChartSortConfiguration { as Map) : null, smallMultiplesSort: (json['SmallMultiplesSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -13872,7 +13866,7 @@ class BarChartVisual { return BarChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -13880,7 +13874,7 @@ class BarChartVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -14165,11 +14159,11 @@ class BoxPlotAggregatedFieldWells { factory BoxPlotAggregatedFieldWells.fromJson(Map json) { return BoxPlotAggregatedFieldWells( groupBy: (json['GroupBy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -14274,7 +14268,7 @@ class BoxPlotChartConfiguration { json['PrimaryYAxisLabelOptions'] as Map) : null, referenceLines: (json['ReferenceLines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceLine.fromJson(e as Map)) .toList(), sortConfiguration: json['SortConfiguration'] != null @@ -14429,7 +14423,7 @@ class BoxPlotSortConfiguration { factory BoxPlotSortConfiguration.fromJson(Map json) { return BoxPlotSortConfiguration( categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), paginationConfiguration: json['PaginationConfiguration'] != null @@ -14513,7 +14507,7 @@ class BoxPlotVisual { return BoxPlotVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -14521,7 +14515,7 @@ class BoxPlotVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -14703,7 +14697,7 @@ class CascadingControlConfiguration { factory CascadingControlConfiguration.fromJson(Map json) { return CascadingControlConfiguration( sourceControls: (json['SourceControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CascadingControlSource.fromJson(e as Map)) .toList(), @@ -14931,7 +14925,7 @@ class CategoryDrillDownFilter { factory CategoryDrillDownFilter.fromJson(Map json) { return CategoryDrillDownFilter( categoryValues: (json['CategoryValues'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), column: ColumnIdentifier.fromJson(json['Column'] as Map), @@ -15143,7 +15137,7 @@ class CellValueSynonym { return CellValueSynonym( cellValue: json['CellValue'] as String?, synonyms: (json['Synonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15189,7 +15183,7 @@ class ChartAxisLabelOptions { factory ChartAxisLabelOptions.fromJson(Map json) { return ChartAxisLabelOptions( axisLabelOptions: (json['AxisLabelOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AxisLabelOptions.fromJson(e as Map)) .toList(), sortIconVisibility: @@ -15276,7 +15270,7 @@ class CollectiveConstant { factory CollectiveConstant.fromJson(Map json) { return CollectiveConstant( valueList: (json['ValueList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15327,7 +15321,7 @@ class ColorScale { colorFillType: ColorFillType.fromString((json['ColorFillType'] as String)), colors: (json['Colors'] as List) - .whereNotNull() + .nonNulls .map((e) => DataColor.fromJson(e as Map)) .toList(), nullValueColor: json['NullValueColor'] != null @@ -15360,7 +15354,7 @@ class ColorsConfiguration { factory ColorsConfiguration.fromJson(Map json) { return ColorsConfiguration( customColors: (json['CustomColors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomColor.fromJson(e as Map)) .toList(), ); @@ -15566,7 +15560,7 @@ class ColumnGroupSchema { return ColumnGroupSchema( columnGroupColumnSchemaList: (json['ColumnGroupColumnSchemaList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnGroupColumnSchema.fromJson(e as Map)) .toList(), @@ -15687,11 +15681,11 @@ class ColumnLevelPermissionRule { factory ColumnLevelPermissionRule.fromJson(Map json) { return ColumnLevelPermissionRule( columnNames: (json['ColumnNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), principals: (json['Principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -15945,19 +15939,19 @@ class ComboChartAggregatedFieldWells { factory ComboChartAggregatedFieldWells.fromJson(Map json) { return ComboChartAggregatedFieldWells( barValues: (json['BarValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), colors: (json['Colors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), lineValues: (json['LineValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -16120,7 +16114,7 @@ class ComboChartConfiguration { json['PrimaryYAxisLabelOptions'] as Map) : null, referenceLines: (json['ReferenceLines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceLine.fromJson(e as Map)) .toList(), secondaryYAxisDisplayOptions: json['SecondaryYAxisDisplayOptions'] != null @@ -16256,7 +16250,7 @@ class ComboChartSortConfiguration { json['CategoryItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), colorItemsLimit: json['ColorItemsLimit'] != null @@ -16264,7 +16258,7 @@ class ComboChartSortConfiguration { json['ColorItemsLimit'] as Map) : null, colorSort: (json['ColorSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -16326,7 +16320,7 @@ class ComboChartVisual { return ComboChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -16334,7 +16328,7 @@ class ComboChartVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -16389,7 +16383,7 @@ class ComparativeOrder { factory ComparativeOrder.fromJson(Map json) { return ComparativeOrder( specifedOrder: (json['SpecifedOrder'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), treatUndefinedSpecifiedValues: @@ -17014,7 +17008,7 @@ class ContributionAnalysisDefault { factory ContributionAnalysisDefault.fromJson(Map json) { return ContributionAnalysisDefault( contributorDimensions: (json['ContributorDimensions'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnIdentifier.fromJson(e as Map)) .toList(), measureFieldId: json['MeasureFieldId'] as String, @@ -17157,7 +17151,7 @@ class CreateColumnsOperation { factory CreateColumnsOperation.fromJson(Map json) { return CreateColumnsOperation( columns: (json['Columns'] as List) - .whereNotNull() + .nonNulls .map((e) => CalculatedColumn.fromJson(e as Map)) .toList(), ); @@ -17463,8 +17457,7 @@ class CreateIAMPolicyAssignmentResponse { assignmentStatus: (json['AssignmentStatus'] as String?) ?.let(AssignmentStatus.fromString), identities: (json['Identities'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), policyArn: json['PolicyArn'] as String?, requestId: json['RequestId'] as String?, status: json['Status'] as int?, @@ -18090,7 +18083,7 @@ class CustomActionSetParametersOperation { return CustomActionSetParametersOperation( parameterValueConfigurations: (json['ParameterValueConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => SetParameterValueConfiguration.fromJson( e as Map)) .toList(), @@ -18314,7 +18307,7 @@ class CustomContentVisual { dataSetIdentifier: json['DataSetIdentifier'] as String, visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -18473,7 +18466,7 @@ class CustomFilterListConfiguration { (json['MatchOperator'] as String)), nullOption: FilterNullOption.fromString((json['NullOption'] as String)), categoryValues: (json['CategoryValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), selectAllOptions: (json['SelectAllOptions'] as String?) @@ -18545,19 +18538,19 @@ class CustomParameterValues { factory CustomParameterValues.fromJson(Map json) { return CustomParameterValues( dateTimeValues: (json['DateTimeValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), decimalValues: (json['DecimalValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), integerValues: (json['IntegerValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), stringValues: (json['StringValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -18605,7 +18598,7 @@ class CustomSql { name: json['Name'] as String, sqlQuery: json['SqlQuery'] as String, columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InputColumn.fromJson(e as Map)) .toList(), ); @@ -18702,7 +18695,7 @@ class Dashboard { lastPublishedTime: timeStampFromJson(json['LastPublishedTime']), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), linkEntities: (json['LinkEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -18750,7 +18743,7 @@ class DashboardError { message: json['Message'] as String?, type: (json['Type'] as String?)?.let(DashboardErrorType.fromString), violatedEntities: (json['ViolatedEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), ); @@ -19178,16 +19171,16 @@ class DashboardVersion { arn: json['Arn'] as String?, createdTime: timeStampFromJson(json['CreatedTime']), dataSetArns: (json['DataSetArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), description: json['Description'] as String?, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashboardError.fromJson(e as Map)) .toList(), sheets: (json['Sheets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Sheet.fromJson(e as Map)) .toList(), sourceEntityArn: json['SourceEntityArn'] as String?, @@ -19250,7 +19243,7 @@ class DashboardVersionDefinition { return DashboardVersionDefinition( dataSetIdentifierDeclarations: (json['DataSetIdentifierDeclarations'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSetIdentifierDeclaration.fromJson(e as Map)) .toList(), @@ -19259,26 +19252,26 @@ class DashboardVersionDefinition { json['AnalysisDefaults'] as Map) : null, calculatedFields: (json['CalculatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CalculatedField.fromJson(e as Map)) .toList(), columnConfigurations: (json['ColumnConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnConfiguration.fromJson(e as Map)) .toList(), filterGroups: (json['FilterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterGroup.fromJson(e as Map)) .toList(), options: json['Options'] != null ? AssetOptions.fromJson(json['Options'] as Map) : null, parameterDeclarations: (json['ParameterDeclarations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterDeclaration.fromJson(e as Map)) .toList(), sheets: (json['Sheets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetDefinition.fromJson(e as Map)) .toList(), ); @@ -19557,13 +19550,11 @@ class DataColorPalette { factory DataColorPalette.fromJson(Map json) { return DataColorPalette( - colors: (json['Colors'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + colors: + (json['Colors'] as List?)?.nonNulls.map((e) => e as String).toList(), emptyFillColor: json['EmptyFillColor'] as String?, minMaxGradient: (json['MinMaxGradient'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -19695,7 +19686,7 @@ class DataLabelOptions { categoryLabelVisibility: (json['CategoryLabelVisibility'] as String?) ?.let(Visibility.fromString), dataLabelTypes: (json['DataLabelTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataLabelType.fromJson(e as Map)) .toList(), labelColor: json['LabelColor'] as String?, @@ -19940,7 +19931,7 @@ class DataPathSort { return DataPathSort( direction: SortDirection.fromString((json['Direction'] as String)), sortPaths: (json['SortPaths'] as List) - .whereNotNull() + .nonNulls .map((e) => DataPathValue.fromJson(e as Map)) .toList(), ); @@ -20203,11 +20194,11 @@ class DataSet { return DataSet( arn: json['Arn'] as String?, columnGroups: (json['ColumnGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnGroup.fromJson(e as Map)) .toList(), columnLevelPermissionRules: (json['ColumnLevelPermissionRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnLevelPermissionRule.fromJson(e as Map)) .toList(), @@ -20220,7 +20211,7 @@ class DataSet { json['DataSetUsageConfiguration'] as Map) : null, datasetParameters: (json['DatasetParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetParameter.fromJson(e as Map)) .toList(), fieldFolders: (json['FieldFolders'] as Map?)?.map( @@ -20234,7 +20225,7 @@ class DataSet { MapEntry(k, LogicalTable.fromJson(e as Map))), name: json['Name'] as String?, outputColumns: (json['OutputColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputColumn.fromJson(e as Map)) .toList(), physicalTableMap: (json['PhysicalTableMap'] as Map?) @@ -20274,7 +20265,7 @@ class DataSetConfiguration { factory DataSetConfiguration.fromJson(Map json) { return DataSetConfiguration( columnGroupSchemaList: (json['ColumnGroupSchemaList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnGroupSchema.fromJson(e as Map)) .toList(), dataSetSchema: json['DataSetSchema'] != null @@ -20421,7 +20412,7 @@ class DataSetSchema { factory DataSetSchema.fromJson(Map json) { return DataSetSchema( columnSchemaList: (json['ColumnSchemaList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnSchema.fromJson(e as Map)) .toList(), ); @@ -20697,7 +20688,7 @@ class DataSource { return DataSource( alternateDataSourceParameters: (json['AlternateDataSourceParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceParameters.fromJson(e as Map)) .toList(), arn: json['Arn'] as String?, @@ -21351,11 +21342,11 @@ class DatasetMetadata { return DatasetMetadata( datasetArn: json['DatasetArn'] as String, calculatedFields: (json['CalculatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicCalculatedField.fromJson(e as Map)) .toList(), columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicColumn.fromJson(e as Map)) .toList(), dataAggregation: json['DataAggregation'] != null @@ -21365,11 +21356,11 @@ class DatasetMetadata { datasetDescription: json['DatasetDescription'] as String?, datasetName: json['DatasetName'] as String?, filters: (json['Filters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicFilter.fromJson(e as Map)) .toList(), namedEntities: (json['NamedEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicNamedEntity.fromJson(e as Map)) .toList(), ); @@ -21725,7 +21716,7 @@ class DateTimeDatasetParameterDefaultValues { Map json) { return DateTimeDatasetParameterDefaultValues( staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), ); @@ -21770,7 +21761,7 @@ class DateTimeDefaultValues { json['RollingDate'] as Map) : null, staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), ); @@ -21853,7 +21844,7 @@ class DateTimeHierarchy { return DateTimeHierarchy( hierarchyId: json['HierarchyId'] as String, drillDownFilters: (json['DrillDownFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DrillDownFilter.fromJson(e as Map)) .toList(), ); @@ -21886,7 +21877,7 @@ class DateTimeParameter { return DateTimeParameter( name: json['Name'] as String, values: (json['Values'] as List) - .whereNotNull() + .nonNulls .map(nonNullableTimeStampFromJson) .toList(), ); @@ -21936,7 +21927,7 @@ class DateTimeParameterDeclaration { json['DefaultValues'] as Map) : null, mappedDataSetParameters: (json['MappedDataSetParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MappedDataSetParameter.fromJson(e as Map)) .toList(), @@ -22156,7 +22147,7 @@ class DecimalDatasetParameterDefaultValues { Map json) { return DecimalDatasetParameterDefaultValues( staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -22191,7 +22182,7 @@ class DecimalDefaultValues { json['DynamicValue'] as Map) : null, staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), ); @@ -22223,10 +22214,8 @@ class DecimalParameter { factory DecimalParameter.fromJson(Map json) { return DecimalParameter( name: json['Name'] as String, - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as double) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as double).toList(), ); } @@ -22276,7 +22265,7 @@ class DecimalParameterDeclaration { json['DefaultValues'] as Map) : null, mappedDataSetParameters: (json['MappedDataSetParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MappedDataSetParameter.fromJson(e as Map)) .toList(), @@ -23978,7 +23967,7 @@ class DescribeAnalysisDefinitionResponse { json['Definition'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisError.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -24023,7 +24012,7 @@ class DescribeAnalysisPermissionsResponse { analysisArn: json['AnalysisArn'] as String?, analysisId: json['AnalysisId'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -24177,7 +24166,7 @@ class DescribeAssetBundleExportJobResponse { createdTime: timeStampFromJson(json['CreatedTime']), downloadUrl: json['DownloadUrl'] as String?, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobError.fromJson(e as Map)) .toList(), @@ -24190,7 +24179,7 @@ class DescribeAssetBundleExportJobResponse { ?.let(AssetBundleExportJobStatus.fromString), requestId: json['RequestId'] as String?, resourceArns: (json['ResourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: json['Status'] as int?, @@ -24199,7 +24188,7 @@ class DescribeAssetBundleExportJobResponse { json['ValidationStrategy'] as Map) : null, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobWarning.fromJson(e as Map)) .toList(), @@ -24321,7 +24310,7 @@ class DescribeAssetBundleImportJobResponse { awsAccountId: json['AwsAccountId'] as String?, createdTime: timeStampFromJson(json['CreatedTime']), errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobError.fromJson(e as Map)) .toList(), @@ -24347,13 +24336,13 @@ class DescribeAssetBundleImportJobResponse { : null, requestId: json['RequestId'] as String?, rollbackErrors: (json['RollbackErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobError.fromJson(e as Map)) .toList(), status: json['Status'] as int?, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobWarning.fromJson(e as Map)) .toList(), @@ -24462,7 +24451,7 @@ class DescribeDashboardDefinitionResponse { json['Definition'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashboardError.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -24518,7 +24507,7 @@ class DescribeDashboardPermissionsResponse { json['LinkSharingConfiguration'] as Map) : null, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -24743,7 +24732,7 @@ class DescribeDataSetPermissionsResponse { dataSetArn: json['DataSetArn'] as String?, dataSetId: json['DataSetId'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -24839,7 +24828,7 @@ class DescribeDataSourcePermissionsResponse { dataSourceArn: json['DataSourceArn'] as String?, dataSourceId: json['DataSourceId'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -24911,7 +24900,7 @@ class DescribeFolderPermissionsResponse { folderId: json['FolderId'] as String?, nextToken: json['NextToken'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -24956,7 +24945,7 @@ class DescribeFolderResolvedPermissionsResponse { folderId: json['FolderId'] as String?, nextToken: json['NextToken'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -25178,7 +25167,7 @@ class DescribeKeyRegistrationResponse { return DescribeKeyRegistrationResponse( awsAccountId: json['AwsAccountId'] as String?, keyRegistration: (json['KeyRegistration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegisteredCustomerManagedKey.fromJson(e as Map)) .toList(), @@ -25378,7 +25367,7 @@ class DescribeTemplateDefinitionResponse { json['Definition'] as Map) : null, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateError.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -25420,7 +25409,7 @@ class DescribeTemplatePermissionsResponse { Map json) { return DescribeTemplatePermissionsResponse( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -25512,7 +25501,7 @@ class DescribeThemePermissionsResponse { factory DescribeThemePermissionsResponse.fromJson(Map json) { return DescribeThemePermissionsResponse( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -25578,7 +25567,7 @@ class DescribeTopicPermissionsResponse { factory DescribeTopicPermissionsResponse.fromJson(Map json) { return DescribeTopicPermissionsResponse( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -26276,7 +26265,7 @@ class EmptyVisual { dataSetIdentifier: json['DataSetIdentifier'] as String, visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), ); @@ -26432,12 +26421,12 @@ class ExplicitHierarchy { factory ExplicitHierarchy.fromJson(Map json) { return ExplicitHierarchy( columns: (json['Columns'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnIdentifier.fromJson(e as Map)) .toList(), hierarchyId: json['HierarchyId'] as String, drillDownFilters: (json['DrillDownFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DrillDownFilter.fromJson(e as Map)) .toList(), ); @@ -26599,7 +26588,7 @@ class FieldBasedTooltip { aggregationVisibility: (json['AggregationVisibility'] as String?) ?.let(Visibility.fromString), tooltipFields: (json['TooltipFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TooltipItem.fromJson(e as Map)) .toList(), tooltipTitleType: (json['TooltipTitleType'] as String?) @@ -26636,10 +26625,8 @@ class FieldFolder { factory FieldFolder.fromJson(Map json) { return FieldFolder( - columns: (json['columns'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + columns: + (json['columns'] as List?)?.nonNulls.map((e) => e as String).toList(), description: json['description'] as String?, ); } @@ -26879,11 +26866,11 @@ class FilledMapAggregatedFieldWells { factory FilledMapAggregatedFieldWells.fromJson(Map json) { return FilledMapAggregatedFieldWells( geospatial: (json['Geospatial'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -26912,7 +26899,7 @@ class FilledMapConditionalFormatting { return FilledMapConditionalFormatting( conditionalFormattingOptions: (json['ConditionalFormattingOptions'] as List) - .whereNotNull() + .nonNulls .map((e) => FilledMapConditionalFormattingOption.fromJson( e as Map)) .toList(), @@ -27114,7 +27101,7 @@ class FilledMapSortConfiguration { factory FilledMapSortConfiguration.fromJson(Map json) { return FilledMapSortConfiguration( categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -27171,7 +27158,7 @@ class FilledMapVisual { return FilledMapVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -27179,7 +27166,7 @@ class FilledMapVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), conditionalFormatting: json['ConditionalFormatting'] != null @@ -27690,7 +27677,7 @@ class FilterGroup { CrossDatasetTypes.fromString((json['CrossDataset'] as String)), filterGroupId: json['FilterGroupId'] as String, filters: (json['Filters'] as List) - .whereNotNull() + .nonNulls .map((e) => Filter.fromJson(e as Map)) .toList(), scopeConfiguration: FilterScopeConfiguration.fromJson( @@ -27760,7 +27747,7 @@ class FilterListConfiguration { matchOperator: CategoryFilterMatchOperator.fromString( (json['MatchOperator'] as String)), categoryValues: (json['CategoryValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nullOption: @@ -27949,13 +27936,13 @@ class FilterOperationSelectedFieldsConfiguration { Map json) { return FilterOperationSelectedFieldsConfiguration( selectedColumns: (json['SelectedColumns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnIdentifier.fromJson(e as Map)) .toList(), selectedFieldOptions: (json['SelectedFieldOptions'] as String?) ?.let(SelectedFieldOptions.fromString), selectedFields: (json['SelectedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -28126,10 +28113,8 @@ class FilterSelectableValues { factory FilterSelectableValues.fromJson(Map json) { return FilterSelectableValues( - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -28386,7 +28371,7 @@ class Folder { createdTime: timeStampFromJson(json['CreatedTime']), folderId: json['FolderId'] as String?, folderPath: (json['FolderPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), folderType: (json['FolderType'] as String?)?.let(FolderType.fromString), @@ -29050,7 +29035,7 @@ class FreeFormLayoutConfiguration { factory FreeFormLayoutConfiguration.fromJson(Map json) { return FreeFormLayoutConfiguration( elements: (json['Elements'] as List) - .whereNotNull() + .nonNulls .map((e) => FreeFormLayoutElement.fromJson(e as Map)) .toList(), canvasSizeOptions: json['CanvasSizeOptions'] != null @@ -29147,7 +29132,7 @@ class FreeFormLayoutElement { json['LoadingAnimation'] as Map) : null, renderingRules: (json['RenderingRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetElementRenderingRule.fromJson(e as Map)) .toList(), @@ -29289,7 +29274,7 @@ class FreeFormSectionLayoutConfiguration { Map json) { return FreeFormSectionLayoutConfiguration( elements: (json['Elements'] as List) - .whereNotNull() + .nonNulls .map((e) => FreeFormLayoutElement.fromJson(e as Map)) .toList(), ); @@ -29321,11 +29306,11 @@ class FunnelChartAggregatedFieldWells { factory FunnelChartAggregatedFieldWells.fromJson(Map json) { return FunnelChartAggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -29590,7 +29575,7 @@ class FunnelChartSortConfiguration { json['CategoryItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -29645,7 +29630,7 @@ class FunnelChartVisual { return FunnelChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -29653,7 +29638,7 @@ class FunnelChartVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -29757,7 +29742,7 @@ class GaugeChartConditionalFormatting { return GaugeChartConditionalFormatting( conditionalFormattingOptions: (json['ConditionalFormattingOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GaugeChartConditionalFormattingOption.fromJson( e as Map)) .toList(), @@ -29915,11 +29900,11 @@ class GaugeChartFieldWells { factory GaugeChartFieldWells.fromJson(Map json) { return GaugeChartFieldWells( targetValues: (json['TargetValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -30079,7 +30064,7 @@ class GaugeChartVisual { return GaugeChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -30198,10 +30183,8 @@ class GeoSpatialColumnGroup { factory GeoSpatialColumnGroup.fromJson(Map json) { return GeoSpatialColumnGroup( - columns: (json['Columns'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + columns: + (json['Columns'] as List).nonNulls.map((e) => e as String).toList(), name: json['Name'] as String, countryCode: (json['CountryCode'] as String?) ?.let(GeoSpatialCountryCode.fromString), @@ -30311,7 +30294,7 @@ class GeospatialHeatmapColorScale { factory GeospatialHeatmapColorScale.fromJson(Map json) { return GeospatialHeatmapColorScale( colors: (json['Colors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GeospatialHeatmapDataColor.fromJson(e as Map)) .toList(), @@ -30398,15 +30381,15 @@ class GeospatialMapAggregatedFieldWells { Map json) { return GeospatialMapAggregatedFieldWells( colors: (json['Colors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), geospatial: (json['Geospatial'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -30612,7 +30595,7 @@ class GeospatialMapVisual { return GeospatialMapVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -30620,7 +30603,7 @@ class GeospatialMapVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -30855,7 +30838,7 @@ class GradientColor { factory GradientColor.fromJson(Map json) { return GradientColor( stops: (json['Stops'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GradientStop.fromJson(e as Map)) .toList(), ); @@ -30950,7 +30933,7 @@ class GridLayoutConfiguration { factory GridLayoutConfiguration.fromJson(Map json) { return GridLayoutConfiguration( elements: (json['Elements'] as List) - .whereNotNull() + .nonNulls .map((e) => GridLayoutElement.fromJson(e as Map)) .toList(), canvasSizeOptions: json['CanvasSizeOptions'] != null @@ -31330,15 +31313,15 @@ class HeatMapAggregatedFieldWells { factory HeatMapAggregatedFieldWells.fromJson(Map json) { return HeatMapAggregatedFieldWells( columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), rows: (json['Rows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -31520,7 +31503,7 @@ class HeatMapSortConfiguration { as Map) : null, heatMapColumnSort: (json['HeatMapColumnSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), heatMapRowItemsLimitConfiguration: @@ -31530,7 +31513,7 @@ class HeatMapSortConfiguration { as Map) : null, heatMapRowSort: (json['HeatMapRowSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -31594,7 +31577,7 @@ class HeatMapVisual { return HeatMapVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -31602,7 +31585,7 @@ class HeatMapVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -31647,7 +31630,7 @@ class HistogramAggregatedFieldWells { factory HistogramAggregatedFieldWells.fromJson(Map json) { return HistogramAggregatedFieldWells( values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -31895,7 +31878,7 @@ class HistogramVisual { return HistogramVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -31983,8 +31966,7 @@ class IAMPolicyAssignment { ?.let(AssignmentStatus.fromString), awsAccountId: json['AwsAccountId'] as String?, identities: (json['Identities'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), policyArn: json['PolicyArn'] as String?, ); } @@ -32406,7 +32388,7 @@ class InsightConfiguration { factory InsightConfiguration.fromJson(Map json) { return InsightConfiguration( computations: (json['Computations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Computation.fromJson(e as Map)) .toList(), customNarrative: json['CustomNarrative'] != null @@ -32472,7 +32454,7 @@ class InsightVisual { dataSetIdentifier: json['DataSetIdentifier'] as String, visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), insightConfiguration: json['InsightConfiguration'] != null @@ -32572,7 +32554,7 @@ class IntegerDatasetParameterDefaultValues { Map json) { return IntegerDatasetParameterDefaultValues( staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -32607,7 +32589,7 @@ class IntegerDefaultValues { json['DynamicValue'] as Map) : null, staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -32639,8 +32621,7 @@ class IntegerParameter { factory IntegerParameter.fromJson(Map json) { return IntegerParameter( name: json['Name'] as String, - values: - (json['Values'] as List).whereNotNull().map((e) => e as int).toList(), + values: (json['Values'] as List).nonNulls.map((e) => e as int).toList(), ); } @@ -32689,7 +32670,7 @@ class IntegerParameterDeclaration { json['DefaultValues'] as Map) : null, mappedDataSetParameters: (json['MappedDataSetParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MappedDataSetParameter.fromJson(e as Map)) .toList(), @@ -33022,7 +33003,7 @@ class KPIConditionalFormatting { return KPIConditionalFormatting( conditionalFormattingOptions: (json['ConditionalFormattingOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KPIConditionalFormattingOption.fromJson( e as Map)) .toList(), @@ -33168,15 +33149,15 @@ class KPIFieldWells { factory KPIFieldWells.fromJson(Map json) { return KPIFieldWells( targetValues: (json['TargetValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), trendGroups: (json['TrendGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -33385,7 +33366,7 @@ class KPISortConfiguration { factory KPISortConfiguration.fromJson(Map json) { return KPISortConfiguration( trendGroupSort: (json['TrendGroupSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -33504,7 +33485,7 @@ class KPIVisual { return KPIVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -33512,7 +33493,7 @@ class KPIVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), conditionalFormatting: json['ConditionalFormatting'] != null @@ -33873,19 +33854,19 @@ class LineChartAggregatedFieldWells { factory LineChartAggregatedFieldWells.fromJson(Map json) { return LineChartAggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), colors: (json['Colors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), smallMultiples: (json['SmallMultiples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -33997,7 +33978,7 @@ class LineChartConfiguration { return LineChartConfiguration( contributionAnalysisDefaults: (json['ContributionAnalysisDefaults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContributionAnalysisDefault.fromJson(e as Map)) .toList(), @@ -34014,7 +33995,7 @@ class LineChartConfiguration { json['FieldWells'] as Map) : null, forecastConfigurations: (json['ForecastConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ForecastConfiguration.fromJson(e as Map)) .toList(), interactions: json['Interactions'] != null @@ -34033,7 +34014,7 @@ class LineChartConfiguration { json['PrimaryYAxisLabelOptions'] as Map) : null, referenceLines: (json['ReferenceLines'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReferenceLine.fromJson(e as Map)) .toList(), secondaryYAxisDisplayOptions: json['SecondaryYAxisDisplayOptions'] != null @@ -34045,7 +34026,7 @@ class LineChartConfiguration { json['SecondaryYAxisLabelOptions'] as Map) : null, series: (json['Series'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SeriesItem.fromJson(e as Map)) .toList(), singleAxisOptions: json['SingleAxisOptions'] != null @@ -34453,7 +34434,7 @@ class LineChartSortConfiguration { as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), colorItemsLimitConfiguration: json['ColorItemsLimitConfiguration'] != null @@ -34467,7 +34448,7 @@ class LineChartSortConfiguration { as Map) : null, smallMultiplesSort: (json['SmallMultiplesSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -34549,7 +34530,7 @@ class LineChartVisual { return LineChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -34557,7 +34538,7 @@ class LineChartVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -34626,7 +34607,7 @@ class LineSeriesAxisDisplayOptions { json['AxisOptions'] as Map) : null, missingDataConfigurations: (json['MissingDataConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MissingDataConfiguration.fromJson(e as Map)) .toList(), @@ -34657,7 +34638,7 @@ class LinkSharingConfiguration { factory LinkSharingConfiguration.fromJson(Map json) { return LinkSharingConfiguration( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), ); @@ -34694,7 +34675,7 @@ class ListAnalysesResponse { factory ListAnalysesResponse.fromJson(Map json) { return ListAnalysesResponse( analysisSummaryList: (json['AnalysisSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -34729,7 +34710,7 @@ class ListAssetBundleExportJobsResponse { return ListAssetBundleExportJobsResponse( assetBundleExportJobSummaryList: (json['AssetBundleExportJobSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleExportJobSummary.fromJson(e as Map)) .toList(), @@ -34765,7 +34746,7 @@ class ListAssetBundleImportJobsResponse { return ListAssetBundleImportJobsResponse( assetBundleImportJobSummaryList: (json['AssetBundleImportJobSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssetBundleImportJobSummary.fromJson(e as Map)) .toList(), @@ -34903,7 +34884,7 @@ class ListDashboardVersionsResponse { return ListDashboardVersionsResponse( dashboardVersionSummaryList: (json['DashboardVersionSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashboardVersionSummary.fromJson(e as Map)) .toList(), @@ -34938,7 +34919,7 @@ class ListDashboardsResponse { factory ListDashboardsResponse.fromJson(Map json) { return ListDashboardsResponse( dashboardSummaryList: (json['DashboardSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashboardSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -34971,7 +34952,7 @@ class ListDataSetsResponse { factory ListDataSetsResponse.fromJson(Map json) { return ListDataSetsResponse( dataSetSummaries: (json['DataSetSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSetSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -35004,7 +34985,7 @@ class ListDataSourcesResponse { factory ListDataSourcesResponse.fromJson(Map json) { return ListDataSourcesResponse( dataSources: (json['DataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -35038,7 +35019,7 @@ class ListFolderMembersResponse { factory ListFolderMembersResponse.fromJson(Map json) { return ListFolderMembersResponse( folderMemberList: (json['FolderMemberList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MemberIdArnPair.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -35072,7 +35053,7 @@ class ListFoldersResponse { factory ListFoldersResponse.fromJson(Map json) { return ListFoldersResponse( folderSummaryList: (json['FolderSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FolderSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -35105,7 +35086,7 @@ class ListGroupMembershipsResponse { factory ListGroupMembershipsResponse.fromJson(Map json) { return ListGroupMembershipsResponse( groupMemberList: (json['GroupMemberList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupMember.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -35138,7 +35119,7 @@ class ListGroupsResponse { factory ListGroupsResponse.fromJson(Map json) { return ListGroupsResponse( groupList: (json['GroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -35172,7 +35153,7 @@ class ListIAMPolicyAssignmentsForUserResponse { Map json) { return ListIAMPolicyAssignmentsForUserResponse( activeAssignments: (json['ActiveAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActiveIAMPolicyAssignment.fromJson(e as Map)) .toList(), @@ -35206,7 +35187,7 @@ class ListIAMPolicyAssignmentsResponse { factory ListIAMPolicyAssignmentsResponse.fromJson(Map json) { return ListIAMPolicyAssignmentsResponse( iAMPolicyAssignments: (json['IAMPolicyAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IAMPolicyAssignmentSummary.fromJson(e as Map)) .toList(), @@ -35244,7 +35225,7 @@ class ListIdentityPropagationConfigsResponse { nextToken: json['NextToken'] as String?, requestId: json['RequestId'] as String?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorizedTargetsByService.fromJson(e as Map)) .toList(), @@ -35276,7 +35257,7 @@ class ListIngestionsResponse { factory ListIngestionsResponse.fromJson(Map json) { return ListIngestionsResponse( ingestions: (json['Ingestions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ingestion.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -35317,7 +35298,7 @@ class ListNamespacesResponse { factory ListNamespacesResponse.fromJson(Map json) { return ListNamespacesResponse( namespaces: (json['Namespaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NamespaceInfoV2.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -35346,7 +35327,7 @@ class ListRefreshSchedulesResponse { factory ListRefreshSchedulesResponse.fromJson(Map json) { return ListRefreshSchedulesResponse( refreshSchedules: (json['RefreshSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RefreshSchedule.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -35378,7 +35359,7 @@ class ListRoleMembershipsResponse { factory ListRoleMembershipsResponse.fromJson(Map json) { return ListRoleMembershipsResponse( membersList: (json['MembersList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -35410,7 +35391,7 @@ class ListTagsForResourceResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -35443,7 +35424,7 @@ class ListTemplateAliasesResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, templateAliasList: (json['TemplateAliasList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateAlias.fromJson(e as Map)) .toList(), ); @@ -35476,7 +35457,7 @@ class ListTemplateVersionsResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, templateVersionSummaryList: (json['TemplateVersionSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TemplateVersionSummary.fromJson(e as Map)) .toList(), @@ -35510,7 +35491,7 @@ class ListTemplatesResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, templateSummaryList: (json['TemplateSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateSummary.fromJson(e as Map)) .toList(), ); @@ -35543,7 +35524,7 @@ class ListThemeAliasesResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, themeAliasList: (json['ThemeAliasList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThemeAlias.fromJson(e as Map)) .toList(), ); @@ -35576,7 +35557,7 @@ class ListThemeVersionsResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, themeVersionSummaryList: (json['ThemeVersionSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThemeVersionSummary.fromJson(e as Map)) .toList(), ); @@ -35609,7 +35590,7 @@ class ListThemesResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, themeSummaryList: (json['ThemeSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThemeSummary.fromJson(e as Map)) .toList(), ); @@ -35645,7 +35626,7 @@ class ListTopicRefreshSchedulesResponse { Map json) { return ListTopicRefreshSchedulesResponse( refreshSchedules: (json['RefreshSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicRefreshScheduleSummary.fromJson(e as Map)) .toList(), @@ -35683,7 +35664,7 @@ class ListTopicsResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, topicsSummaries: (json['TopicsSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicSummary.fromJson(e as Map)) .toList(), ); @@ -35713,7 +35694,7 @@ class ListUserGroupsResponse { factory ListUserGroupsResponse.fromJson(Map json) { return ListUserGroupsResponse( groupList: (json['GroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -35749,7 +35730,7 @@ class ListUsersResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, userList: (json['UserList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -35783,7 +35764,7 @@ class ListVPCConnectionsResponse { requestId: json['RequestId'] as String?, status: json['Status'] as int?, vPCConnectionSummaries: (json['VPCConnectionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VPCConnectionSummary.fromJson(e as Map)) .toList(), ); @@ -35865,7 +35846,7 @@ class LogicalTable { source: LogicalTableSource.fromJson(json['Source'] as Map), dataTransforms: (json['DataTransforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransformOperation.fromJson(e as Map)) .toList(), ); @@ -36939,19 +36920,19 @@ class NewDefaultValues { factory NewDefaultValues.fromJson(Map json) { return NewDefaultValues( dateTimeStaticValues: (json['DateTimeStaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), decimalStaticValues: (json['DecimalStaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), integerStaticValues: (json['IntegerStaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), stringStaticValues: (json['StringStaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -38488,10 +38469,8 @@ class ParameterSelectableValues { ? ColumnIdentifier.fromJson( json['LinkToDataSetColumn'] as Map) : null, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -38715,19 +38694,19 @@ class Parameters { factory Parameters.fromJson(Map json) { return Parameters( dateTimeParameters: (json['DateTimeParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateTimeParameter.fromJson(e as Map)) .toList(), decimalParameters: (json['DecimalParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DecimalParameter.fromJson(e as Map)) .toList(), integerParameters: (json['IntegerParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegerParameter.fromJson(e as Map)) .toList(), stringParameters: (json['StringParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringParameter.fromJson(e as Map)) .toList(), ); @@ -39058,15 +39037,15 @@ class PieChartAggregatedFieldWells { factory PieChartAggregatedFieldWells.fromJson(Map json) { return PieChartAggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), smallMultiples: (json['SmallMultiples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -39146,7 +39125,7 @@ class PieChartConfiguration { : null, contributionAnalysisDefaults: (json['ContributionAnalysisDefaults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContributionAnalysisDefault.fromJson(e as Map)) .toList(), @@ -39281,7 +39260,7 @@ class PieChartSortConfiguration { json['CategoryItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), smallMultiplesLimitConfiguration: @@ -39291,7 +39270,7 @@ class PieChartSortConfiguration { as Map) : null, smallMultiplesSort: (json['SmallMultiplesSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -39369,7 +39348,7 @@ class PieChartVisual { return PieChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -39377,7 +39356,7 @@ class PieChartVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -39461,15 +39440,15 @@ class PivotTableAggregatedFieldWells { factory PivotTableAggregatedFieldWells.fromJson(Map json) { return PivotTableAggregatedFieldWells( columns: (json['Columns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), rows: (json['Rows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -39517,7 +39496,7 @@ class PivotTableCellConditionalFormatting { json['Scope'] as Map) : null, scopes: (json['Scopes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotTableConditionalFormattingScope.fromJson( e as Map)) .toList(), @@ -39556,7 +39535,7 @@ class PivotTableConditionalFormatting { return PivotTableConditionalFormatting( conditionalFormattingOptions: (json['ConditionalFormattingOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotTableConditionalFormattingOption.fromJson( e as Map)) .toList(), @@ -39744,7 +39723,7 @@ class PivotTableDataPathOption { factory PivotTableDataPathOption.fromJson(Map json) { return PivotTableDataPathOption( dataPathList: (json['DataPathList'] as List) - .whereNotNull() + .nonNulls .map((e) => DataPathValue.fromJson(e as Map)) .toList(), width: json['Width'] as String?, @@ -39853,7 +39832,7 @@ class PivotTableFieldCollapseStateTarget { Map json) { return PivotTableFieldCollapseStateTarget( fieldDataPathValues: (json['FieldDataPathValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataPathValue.fromJson(e as Map)) .toList(), fieldId: json['FieldId'] as String?, @@ -39928,17 +39907,17 @@ class PivotTableFieldOptions { factory PivotTableFieldOptions.fromJson(Map json) { return PivotTableFieldOptions( collapseStateOptions: (json['CollapseStateOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotTableFieldCollapseStateOption.fromJson( e as Map)) .toList(), dataPathOptions: (json['DataPathOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotTableDataPathOption.fromJson(e as Map)) .toList(), selectedFieldOptions: (json['SelectedFieldOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotTableFieldOption.fromJson(e as Map)) .toList(), ); @@ -40321,7 +40300,7 @@ class PivotTableSortConfiguration { factory PivotTableSortConfiguration.fromJson(Map json) { return PivotTableSortConfiguration( fieldSortOptions: (json['FieldSortOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotFieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -40447,7 +40426,7 @@ class PivotTableVisual { return PivotTableVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -40538,7 +40517,7 @@ class PivotTotalOptions { scrollStatus: (json['ScrollStatus'] as String?) ?.let(TableTotalsScrollStatus.fromString), totalAggregationOptions: (json['TotalAggregationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TotalAggregationOption.fromJson(e as Map)) .toList(), @@ -40639,12 +40618,12 @@ class PredefinedHierarchy { factory PredefinedHierarchy.fromJson(Map json) { return PredefinedHierarchy( columns: (json['Columns'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnIdentifier.fromJson(e as Map)) .toList(), hierarchyId: json['HierarchyId'] as String, drillDownFilters: (json['DrillDownFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DrillDownFilter.fromJson(e as Map)) .toList(), ); @@ -40752,7 +40731,7 @@ class ProjectOperation { factory ProjectOperation.fromJson(Map json) { return ProjectOperation( projectedColumns: (json['ProjectedColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -40875,15 +40854,15 @@ class RadarChartAggregatedFieldWells { factory RadarChartAggregatedFieldWells.fromJson(Map json) { return RadarChartAggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), color: (json['Color'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -41202,7 +41181,7 @@ class RadarChartSortConfiguration { json['CategoryItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), colorItemsLimit: json['ColorItemsLimit'] != null @@ -41210,7 +41189,7 @@ class RadarChartSortConfiguration { json['ColorItemsLimit'] as Map) : null, colorSort: (json['ColorSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -41265,7 +41244,7 @@ class RadarChartVisual { return RadarChartVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -41273,7 +41252,7 @@ class RadarChartVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -41436,7 +41415,7 @@ class RedshiftIAMParameters { roleArn: json['RoleArn'] as String, autoCreateDatabaseUser: json['AutoCreateDatabaseUser'] as bool?, databaseGroups: (json['DatabaseGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), databaseUser: json['DatabaseUser'] as String?, @@ -42609,7 +42588,7 @@ class RelationalTable { return RelationalTable( dataSourceArn: json['DataSourceArn'] as String, inputColumns: (json['InputColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => InputColumn.fromJson(e as Map)) .toList(), name: json['Name'] as String, @@ -42934,10 +42913,8 @@ class ResourcePermission { factory ResourcePermission.fromJson(Map json) { return ResourcePermission( - actions: (json['Actions'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List).nonNulls.map((e) => e as String).toList(), principal: json['Principal'] as String, ); } @@ -43070,7 +43047,7 @@ class RowAlternateColorOptions { factory RowAlternateColorOptions.fromJson(Map json) { return RowAlternateColorOptions( rowAlternateColors: (json['RowAlternateColors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['Status'] as String?)?.let(WidgetStatus.fromString), @@ -43246,15 +43223,14 @@ class RowLevelPermissionTagConfiguration { Map json) { return RowLevelPermissionTagConfiguration( tagRules: (json['TagRules'] as List) - .whereNotNull() + .nonNulls .map((e) => RowLevelPermissionTagRule.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(Status.fromString), tagRuleConfigurations: (json['TagRuleConfigurations'] as List?) - ?.whereNotNull() - .map((e) => - (e as List).whereNotNull().map((e) => e as String).toList()) + ?.nonNulls + .map((e) => (e as List).nonNulls.map((e) => e as String).toList()) .toList(), ); } @@ -43426,7 +43402,7 @@ class S3Source { return S3Source( dataSourceArn: json['DataSourceArn'] as String, inputColumns: (json['InputColumns'] as List) - .whereNotNull() + .nonNulls .map((e) => InputColumn.fromJson(e as Map)) .toList(), uploadSettings: json['UploadSettings'] != null @@ -43481,7 +43457,7 @@ class SameSheetTargetVisualConfiguration { targetVisualOptions: (json['TargetVisualOptions'] as String?) ?.let(TargetVisualOptions.fromString), targetVisuals: (json['TargetVisuals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -43519,15 +43495,15 @@ class SankeyDiagramAggregatedFieldWells { Map json) { return SankeyDiagramAggregatedFieldWells( destination: (json['Destination'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), source: (json['Source'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), weight: (json['Weight'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -43661,7 +43637,7 @@ class SankeyDiagramSortConfiguration { json['SourceItemsLimit'] as Map) : null, weightSort: (json['WeightSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -43715,7 +43691,7 @@ class SankeyDiagramVisual { return SankeyDiagramVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -43782,23 +43758,23 @@ class ScatterPlotCategoricallyAggregatedFieldWells { Map json) { return ScatterPlotCategoricallyAggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), label: (json['Label'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), size: (json['Size'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), xAxis: (json['XAxis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), yAxis: (json['YAxis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -44062,23 +44038,23 @@ class ScatterPlotUnaggregatedFieldWells { Map json) { return ScatterPlotUnaggregatedFieldWells( category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), label: (json['Label'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), size: (json['Size'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), xAxis: (json['XAxis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), yAxis: (json['YAxis'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), ); @@ -44139,7 +44115,7 @@ class ScatterPlotVisual { return ScatterPlotVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -44147,7 +44123,7 @@ class ScatterPlotVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -44265,7 +44241,7 @@ class SearchAnalysesResponse { factory SearchAnalysesResponse.fromJson(Map json) { return SearchAnalysesResponse( analysisSummaryList: (json['AnalysisSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnalysisSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44299,7 +44275,7 @@ class SearchDashboardsResponse { factory SearchDashboardsResponse.fromJson(Map json) { return SearchDashboardsResponse( dashboardSummaryList: (json['DashboardSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DashboardSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44332,7 +44308,7 @@ class SearchDataSetsResponse { factory SearchDataSetsResponse.fromJson(Map json) { return SearchDataSetsResponse( dataSetSummaries: (json['DataSetSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSetSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44366,7 +44342,7 @@ class SearchDataSourcesResponse { factory SearchDataSourcesResponse.fromJson(Map json) { return SearchDataSourcesResponse( dataSourceSummaries: (json['DataSourceSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44400,7 +44376,7 @@ class SearchFoldersResponse { factory SearchFoldersResponse.fromJson(Map json) { return SearchFoldersResponse( folderSummaryList: (json['FolderSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FolderSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44434,7 +44410,7 @@ class SearchGroupsResponse { factory SearchGroupsResponse.fromJson(Map json) { return SearchGroupsResponse( groupList: (json['GroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44544,19 +44520,19 @@ class SectionBasedLayoutConfiguration { factory SectionBasedLayoutConfiguration.fromJson(Map json) { return SectionBasedLayoutConfiguration( bodySections: (json['BodySections'] as List) - .whereNotNull() + .nonNulls .map((e) => BodySectionConfiguration.fromJson(e as Map)) .toList(), canvasSizeOptions: SectionBasedLayoutCanvasSizeOptions.fromJson( json['CanvasSizeOptions'] as Map), footerSections: (json['FooterSections'] as List) - .whereNotNull() + .nonNulls .map((e) => HeaderFooterSectionConfiguration.fromJson( e as Map)) .toList(), headerSections: (json['HeaderSections'] as List) - .whereNotNull() + .nonNulls .map((e) => HeaderFooterSectionConfiguration.fromJson( e as Map)) .toList(), @@ -44780,7 +44756,7 @@ class SelectedSheetsFilterScopeConfiguration { return SelectedSheetsFilterScopeConfiguration( sheetVisualScopingConfigurations: (json['SheetVisualScopingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetVisualScopingConfiguration.fromJson( e as Map)) .toList(), @@ -44887,13 +44863,13 @@ class SemanticType { return SemanticType( falseyCellValue: json['FalseyCellValue'] as String?, falseyCellValueSynonyms: (json['FalseyCellValueSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subTypeName: json['SubTypeName'] as String?, truthyCellValue: json['TruthyCellValue'] as String?, truthyCellValueSynonyms: (json['TruthyCellValueSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), typeName: json['TypeName'] as String?, @@ -45370,29 +45346,29 @@ class SheetDefinition { (json['ContentType'] as String?)?.let(SheetContentType.fromString), description: json['Description'] as String?, filterControls: (json['FilterControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterControl.fromJson(e as Map)) .toList(), layouts: (json['Layouts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Layout.fromJson(e as Map)) .toList(), name: json['Name'] as String?, parameterControls: (json['ParameterControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterControl.fromJson(e as Map)) .toList(), sheetControlLayouts: (json['SheetControlLayouts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetControlLayout.fromJson(e as Map)) .toList(), textBoxes: (json['TextBoxes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetTextBox.fromJson(e as Map)) .toList(), title: json['Title'] as String?, visuals: (json['Visuals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Visual.fromJson(e as Map)) .toList(), ); @@ -45615,7 +45591,7 @@ class SheetVisualScopingConfiguration { scope: FilterVisualScope.fromString((json['Scope'] as String)), sheetId: json['SheetId'] as String, visualIds: (json['VisualIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -46032,7 +46008,7 @@ class SnapshotAnonymousUserRedacted { factory SnapshotAnonymousUserRedacted.fromJson(Map json) { return SnapshotAnonymousUserRedacted( rowLevelPermissionTagKeys: (json['RowLevelPermissionTagKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -46060,7 +46036,7 @@ class SnapshotConfiguration { factory SnapshotConfiguration.fromJson(Map json) { return SnapshotConfiguration( fileGroups: (json['FileGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => SnapshotFileGroup.fromJson(e as Map)) .toList(), destinationConfiguration: json['DestinationConfiguration'] != null @@ -46101,7 +46077,7 @@ class SnapshotDestinationConfiguration { factory SnapshotDestinationConfiguration.fromJson(Map json) { return SnapshotDestinationConfiguration( s3Destinations: (json['S3Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotS3DestinationConfiguration.fromJson( e as Map)) .toList(), @@ -46141,7 +46117,7 @@ class SnapshotFile { formatType: SnapshotFileFormatType.fromString((json['FormatType'] as String)), sheetSelections: (json['SheetSelections'] as List) - .whereNotNull() + .nonNulls .map((e) => SnapshotFileSheetSelection.fromJson(e as Map)) .toList(), @@ -46188,7 +46164,7 @@ class SnapshotFileGroup { factory SnapshotFileGroup.fromJson(Map json) { return SnapshotFileGroup( files: (json['Files'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotFile.fromJson(e as Map)) .toList(), ); @@ -46246,7 +46222,7 @@ class SnapshotFileSheetSelection { (json['SelectionScope'] as String)), sheetId: json['SheetId'] as String, visualIds: (json['VisualIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -46318,7 +46294,7 @@ class SnapshotJobResult { factory SnapshotJobResult.fromJson(Map json) { return SnapshotJobResult( anonymousUsers: (json['AnonymousUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnonymousUserSnapshotJobResult.fromJson( e as Map)) .toList(), @@ -46363,11 +46339,11 @@ class SnapshotJobResultFileGroup { factory SnapshotJobResultFileGroup.fromJson(Map json) { return SnapshotJobResultFileGroup( files: (json['Files'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotFile.fromJson(e as Map)) .toList(), s3Results: (json['S3Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotJobS3Result.fromJson(e as Map)) .toList(), ); @@ -46398,7 +46374,7 @@ class SnapshotJobS3Result { factory SnapshotJobS3Result.fromJson(Map json) { return SnapshotJobS3Result( errorInfo: (json['ErrorInfo'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotJobResultErrorInfo.fromJson(e as Map)) .toList(), @@ -46489,7 +46465,7 @@ class SnapshotUserConfigurationRedacted { Map json) { return SnapshotUserConfigurationRedacted( anonymousUsers: (json['AnonymousUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SnapshotAnonymousUserRedacted.fromJson(e as Map)) .toList(), @@ -46951,7 +46927,7 @@ class StringDatasetParameterDefaultValues { Map json) { return StringDatasetParameterDefaultValues( staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -46986,7 +46962,7 @@ class StringDefaultValues { json['DynamicValue'] as Map) : null, staticValues: (json['StaticValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -47056,10 +47032,8 @@ class StringParameter { factory StringParameter.fromJson(Map json) { return StringParameter( name: json['Name'] as String, - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -47109,7 +47083,7 @@ class StringParameterDeclaration { json['DefaultValues'] as Map) : null, mappedDataSetParameters: (json['MappedDataSetParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MappedDataSetParameter.fromJson(e as Map)) .toList(), @@ -47240,7 +47214,7 @@ class SubtotalOptions { fieldLevel: (json['FieldLevel'] as String?) ?.let(PivotTableSubtotalLevel.fromString), fieldLevelOptions: (json['FieldLevelOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PivotTableFieldSubtotalOptions.fromJson( e as Map)) .toList(), @@ -47249,7 +47223,7 @@ class SubtotalOptions { json['MetricHeaderCellStyle'] as Map) : null, styleTargets: (json['StyleTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableStyleTarget.fromJson(e as Map)) .toList(), totalCellStyle: json['TotalCellStyle'] != null @@ -47329,11 +47303,11 @@ class TableAggregatedFieldWells { factory TableAggregatedFieldWells.fromJson(Map json) { return TableAggregatedFieldWells( groupBy: (json['GroupBy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -47576,7 +47550,7 @@ class TableConditionalFormatting { return TableConditionalFormatting( conditionalFormattingOptions: (json['ConditionalFormattingOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableConditionalFormattingOption.fromJson( e as Map)) .toList(), @@ -47687,7 +47661,7 @@ class TableConfiguration { json['SortConfiguration'] as Map) : null, tableInlineVisualizations: (json['TableInlineVisualizations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableInlineVisualization.fromJson(e as Map)) .toList(), @@ -47965,16 +47939,14 @@ class TableFieldOptions { factory TableFieldOptions.fromJson(Map json) { return TableFieldOptions( - order: (json['Order'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + order: + (json['Order'] as List?)?.nonNulls.map((e) => e as String).toList(), pinnedFieldOptions: json['PinnedFieldOptions'] != null ? TablePinnedFieldOptions.fromJson( json['PinnedFieldOptions'] as Map) : null, selectedFieldOptions: (json['SelectedFieldOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TableFieldOption.fromJson(e as Map)) .toList(), ); @@ -48213,7 +48185,7 @@ class TablePinnedFieldOptions { factory TablePinnedFieldOptions.fromJson(Map json) { return TablePinnedFieldOptions( pinnedLeftFields: (json['PinnedLeftFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -48357,7 +48329,7 @@ class TableSortConfiguration { json['PaginationConfiguration'] as Map) : null, rowSort: (json['RowSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -48441,7 +48413,7 @@ class TableUnaggregatedFieldWells { factory TableUnaggregatedFieldWells.fromJson(Map json) { return TableUnaggregatedFieldWells( values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnaggregatedField.fromJson(e as Map)) .toList(), ); @@ -48494,7 +48466,7 @@ class TableVisual { return TableVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -48586,7 +48558,7 @@ class TagColumnOperation { return TagColumnOperation( columnName: json['ColumnName'] as String, tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnTag.fromJson(e as Map)) .toList(), ); @@ -48738,7 +48710,7 @@ class TemplateError { message: json['Message'] as String?, type: (json['Type'] as String?)?.let(TemplateErrorType.fromString), violatedEntities: (json['ViolatedEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Entity.fromJson(e as Map)) .toList(), ); @@ -48941,16 +48913,16 @@ class TemplateVersion { return TemplateVersion( createdTime: timeStampFromJson(json['CreatedTime']), dataSetConfigurations: (json['DataSetConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSetConfiguration.fromJson(e as Map)) .toList(), description: json['Description'] as String?, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateError.fromJson(e as Map)) .toList(), sheets: (json['Sheets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Sheet.fromJson(e as Map)) .toList(), sourceEntityArn: json['SourceEntityArn'] as String?, @@ -49013,7 +48985,7 @@ class TemplateVersionDefinition { factory TemplateVersionDefinition.fromJson(Map json) { return TemplateVersionDefinition( dataSetConfigurations: (json['DataSetConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => DataSetConfiguration.fromJson(e as Map)) .toList(), analysisDefaults: json['AnalysisDefaults'] != null @@ -49021,26 +48993,26 @@ class TemplateVersionDefinition { json['AnalysisDefaults'] as Map) : null, calculatedFields: (json['CalculatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CalculatedField.fromJson(e as Map)) .toList(), columnConfigurations: (json['ColumnConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnConfiguration.fromJson(e as Map)) .toList(), filterGroups: (json['FilterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilterGroup.fromJson(e as Map)) .toList(), options: json['Options'] != null ? AssetOptions.fromJson(json['Options'] as Map) : null, parameterDeclarations: (json['ParameterDeclarations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterDeclaration.fromJson(e as Map)) .toList(), sheets: (json['Sheets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SheetDefinition.fromJson(e as Map)) .toList(), ); @@ -49601,7 +49573,7 @@ class ThemeVersion { createdTime: timeStampFromJson(json['CreatedTime']), description: json['Description'] as String?, errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThemeError.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(ResourceStatus.fromString), @@ -50309,7 +50281,7 @@ class TopBottomFilter { return TopBottomFilter( aggregationSortConfigurations: (json['AggregationSortConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => AggregationSortConfiguration.fromJson(e as Map)) .toList(), @@ -50622,16 +50594,16 @@ class TopicCalculatedField { aggregation: (json['Aggregation'] as String?)?.let(DefaultAggregation.fromString), allowedAggregations: (json['AllowedAggregations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorSpecifiedAggregation.fromString((e as String))) .toList(), calculatedFieldDescription: json['CalculatedFieldDescription'] as String?, calculatedFieldSynonyms: (json['CalculatedFieldSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), cellValueSynonyms: (json['CellValueSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CellValueSynonym.fromJson(e as Map)) .toList(), columnDataRole: @@ -50649,7 +50621,7 @@ class TopicCalculatedField { neverAggregateInFilter: json['NeverAggregateInFilter'] as bool?, nonAdditive: json['NonAdditive'] as bool?, notAllowedAggregations: (json['NotAllowedAggregations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorSpecifiedAggregation.fromString((e as String))) .toList(), semanticType: json['SemanticType'] != null @@ -50899,11 +50871,11 @@ class TopicColumn { aggregation: (json['Aggregation'] as String?)?.let(DefaultAggregation.fromString), allowedAggregations: (json['AllowedAggregations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorSpecifiedAggregation.fromString((e as String))) .toList(), cellValueSynonyms: (json['CellValueSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CellValueSynonym.fromJson(e as Map)) .toList(), columnDataRole: @@ -50911,7 +50883,7 @@ class TopicColumn { columnDescription: json['ColumnDescription'] as String?, columnFriendlyName: json['ColumnFriendlyName'] as String?, columnSynonyms: (json['ColumnSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), comparativeOrder: json['ComparativeOrder'] != null @@ -50927,7 +50899,7 @@ class TopicColumn { neverAggregateInFilter: json['NeverAggregateInFilter'] as bool?, nonAdditive: json['NonAdditive'] as bool?, notAllowedAggregations: (json['NotAllowedAggregations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorSpecifiedAggregation.fromString((e as String))) .toList(), semanticType: json['SemanticType'] != null @@ -51042,7 +51014,7 @@ class TopicDetails { factory TopicDetails.fromJson(Map json) { return TopicDetails( dataSets: (json['DataSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetMetadata.fromJson(e as Map)) .toList(), description: json['Description'] as String?, @@ -51137,7 +51109,7 @@ class TopicFilter { (json['FilterClass'] as String?)?.let(FilterClass.fromString), filterDescription: json['FilterDescription'] as String?, filterSynonyms: (json['FilterSynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), filterType: @@ -51215,12 +51187,12 @@ class TopicNamedEntity { return TopicNamedEntity( entityName: json['EntityName'] as String, definition: (json['Definition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NamedEntityDefinition.fromJson(e as Map)) .toList(), entityDescription: json['EntityDescription'] as String?, entitySynonyms: (json['EntitySynonyms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), semanticEntityType: json['SemanticEntityType'] != null @@ -51853,7 +51825,7 @@ class TotalOptions { scrollStatus: (json['ScrollStatus'] as String?) ?.let(TableTotalsScrollStatus.fromString), totalAggregationOptions: (json['TotalAggregationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => TotalAggregationOption.fromJson(e as Map)) .toList(), @@ -52011,15 +51983,15 @@ class TreeMapAggregatedFieldWells { factory TreeMapAggregatedFieldWells.fromJson(Map json) { return TreeMapAggregatedFieldWells( colors: (json['Colors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), sizes: (json['Sizes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -52205,7 +52177,7 @@ class TreeMapSortConfiguration { as Map) : null, treeMapSort: (json['TreeMapSort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -52263,7 +52235,7 @@ class TreeMapVisual { return TreeMapVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -52271,7 +52243,7 @@ class TreeMapVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -52405,7 +52377,7 @@ class Typography { factory Typography.fromJson(Map json) { return Typography( fontFamilies: (json['FontFamilies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Font.fromJson(e as Map)) .toList(), ); @@ -52696,7 +52668,7 @@ class UntagColumnOperation { return UntagColumnOperation( columnName: json['ColumnName'] as String, tagNames: (json['TagNames'] as List) - .whereNotNull() + .nonNulls .map((e) => ColumnTagName.fromString((e as String))) .toList(), ); @@ -52830,7 +52802,7 @@ class UpdateAnalysisPermissionsResponse { analysisArn: json['AnalysisArn'] as String?, analysisId: json['AnalysisId'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -52900,7 +52872,7 @@ class UpdateDashboardLinksResponse { return UpdateDashboardLinksResponse( dashboardArn: json['DashboardArn'] as String?, linkEntities: (json['LinkEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), requestId: json['RequestId'] as String?, @@ -52947,7 +52919,7 @@ class UpdateDashboardPermissionsResponse { json['LinkSharingConfiguration'] as Map) : null, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -53200,7 +53172,7 @@ class UpdateFolderPermissionsResponse { arn: json['Arn'] as String?, folderId: json['FolderId'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -53323,8 +53295,7 @@ class UpdateIAMPolicyAssignmentResponse { assignmentStatus: (json['AssignmentStatus'] as String?) ?.let(AssignmentStatus.fromString), identities: (json['Identities'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), policyArn: json['PolicyArn'] as String?, requestId: json['RequestId'] as String?, status: json['Status'] as int?, @@ -53398,13 +53369,13 @@ class UpdateKeyRegistrationResponse { factory UpdateKeyRegistrationResponse.fromJson(Map json) { return UpdateKeyRegistrationResponse( failedKeyRegistration: (json['FailedKeyRegistration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedKeyRegistrationEntry.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, successfulKeyRegistration: (json['SuccessfulKeyRegistration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuccessfulKeyRegistrationEntry.fromJson( e as Map)) .toList(), @@ -53561,7 +53532,7 @@ class UpdateTemplatePermissionsResponse { Map json) { return UpdateTemplatePermissionsResponse( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -53668,7 +53639,7 @@ class UpdateThemePermissionsResponse { factory UpdateThemePermissionsResponse.fromJson(Map json) { return UpdateThemePermissionsResponse( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -53748,7 +53719,7 @@ class UpdateTopicPermissionsResponse { factory UpdateTopicPermissionsResponse.fromJson(Map json) { return UpdateTopicPermissionsResponse( permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePermission.fromJson(e as Map)) .toList(), requestId: json['RequestId'] as String?, @@ -54162,18 +54133,18 @@ class VPCConnection { ?.let(VPCConnectionAvailabilityStatus.fromString), createdTime: timeStampFromJson(json['CreatedTime']), dnsResolvers: (json['DnsResolvers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), name: json['Name'] as String?, networkInterfaces: (json['NetworkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), roleArn: json['RoleArn'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['Status'] as String?) @@ -54284,18 +54255,18 @@ class VPCConnectionSummary { ?.let(VPCConnectionAvailabilityStatus.fromString), createdTime: timeStampFromJson(json['CreatedTime']), dnsResolvers: (json['DnsResolvers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']), name: json['Name'] as String?, networkInterfaces: (json['NetworkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), roleArn: json['RoleArn'] as String?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['Status'] as String?) @@ -54822,7 +54793,7 @@ class VisualCustomAction { factory VisualCustomAction.fromJson(Map json) { return VisualCustomAction( actionOperations: (json['ActionOperations'] as List) - .whereNotNull() + .nonNulls .map((e) => VisualCustomActionOperation.fromJson(e as Map)) .toList(), @@ -55006,7 +54977,7 @@ class VisualPalette { return VisualPalette( chartColor: json['ChartColor'] as String?, colorMap: (json['ColorMap'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataPathColor.fromJson(e as Map)) .toList(), ); @@ -55130,15 +55101,15 @@ class WaterfallChartAggregatedFieldWells { Map json) { return WaterfallChartAggregatedFieldWells( breakdowns: (json['Breakdowns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), values: (json['Values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -55435,7 +55406,7 @@ class WaterfallChartSortConfiguration { json['BreakdownItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -55491,7 +55462,7 @@ class WaterfallVisual { return WaterfallVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -55499,7 +55470,7 @@ class WaterfallVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null @@ -55631,11 +55602,11 @@ class WordCloudAggregatedFieldWells { factory WordCloudAggregatedFieldWells.fromJson(Map json) { return WordCloudAggregatedFieldWells( groupBy: (json['GroupBy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DimensionField.fromJson(e as Map)) .toList(), size: (json['Size'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MeasureField.fromJson(e as Map)) .toList(), ); @@ -55852,7 +55823,7 @@ class WordCloudSortConfiguration { json['CategoryItemsLimit'] as Map) : null, categorySort: (json['CategorySort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldSortOptions.fromJson(e as Map)) .toList(), ); @@ -55907,7 +55878,7 @@ class WordCloudVisual { return WordCloudVisual( visualId: json['VisualId'] as String, actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VisualCustomAction.fromJson(e as Map)) .toList(), chartConfiguration: json['ChartConfiguration'] != null @@ -55915,7 +55886,7 @@ class WordCloudVisual { json['ChartConfiguration'] as Map) : null, columnHierarchies: (json['ColumnHierarchies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnHierarchy.fromJson(e as Map)) .toList(), subtitle: json['Subtitle'] != null diff --git a/generated/aws_quicksight_api/pubspec.yaml b/generated/aws_quicksight_api/pubspec.yaml index 64ebf45b7..43caa779d 100644 --- a/generated/aws_quicksight_api/pubspec.yaml +++ b/generated/aws_quicksight_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_quicks protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_ram_api/lib/ram-2018-01-04.dart b/generated/aws_ram_api/lib/ram-2018-01-04.dart index f5c98bc0c..5fb4e281a 100644 --- a/generated/aws_ram_api/lib/ram-2018-01-04.dart +++ b/generated/aws_ram_api/lib/ram-2018-01-04.dart @@ -2776,7 +2776,7 @@ class AssociateResourceShareResponse { return AssociateResourceShareResponse( clientToken: json['clientToken'] as String?, resourceShareAssociations: (json['resourceShareAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceShareAssociation.fromJson(e as Map)) .toList(), @@ -3103,7 +3103,7 @@ class DisassociateResourceShareResponse { return DisassociateResourceShareResponse( clientToken: json['clientToken'] as String?, resourceShareAssociations: (json['resourceShareAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceShareAssociation.fromJson(e as Map)) .toList(), @@ -3167,7 +3167,7 @@ class GetResourcePoliciesResponse { return GetResourcePoliciesResponse( nextToken: json['nextToken'] as String?, policies: (json['policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3196,7 +3196,7 @@ class GetResourceShareAssociationsResponse { return GetResourceShareAssociationsResponse( nextToken: json['nextToken'] as String?, resourceShareAssociations: (json['resourceShareAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceShareAssociation.fromJson(e as Map)) .toList(), @@ -3226,7 +3226,7 @@ class GetResourceShareInvitationsResponse { return GetResourceShareInvitationsResponse( nextToken: json['nextToken'] as String?, resourceShareInvitations: (json['resourceShareInvitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceShareInvitation.fromJson(e as Map)) .toList(), @@ -3255,7 +3255,7 @@ class GetResourceSharesResponse { return GetResourceSharesResponse( nextToken: json['nextToken'] as String?, resourceShares: (json['resourceShares'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceShare.fromJson(e as Map)) .toList(), ); @@ -3285,7 +3285,7 @@ class ListPendingInvitationResourcesResponse { return ListPendingInvitationResourcesResponse( nextToken: json['nextToken'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -3314,7 +3314,7 @@ class ListPermissionAssociationsResponse { return ListPermissionAssociationsResponse( nextToken: json['nextToken'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociatedPermission.fromJson(e as Map)) .toList(), ); @@ -3342,7 +3342,7 @@ class ListPermissionVersionsResponse { return ListPermissionVersionsResponse( nextToken: json['nextToken'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceSharePermissionSummary.fromJson( e as Map)) .toList(), @@ -3371,7 +3371,7 @@ class ListPermissionsResponse { return ListPermissionsResponse( nextToken: json['nextToken'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceSharePermissionSummary.fromJson( e as Map)) .toList(), @@ -3400,7 +3400,7 @@ class ListPrincipalsResponse { return ListPrincipalsResponse( nextToken: json['nextToken'] as String?, principals: (json['principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Principal.fromJson(e as Map)) .toList(), ); @@ -3431,7 +3431,7 @@ class ListReplacePermissionAssociationsWorkResponse { nextToken: json['nextToken'] as String?, replacePermissionAssociationsWorks: (json['replacePermissionAssociationsWorks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplacePermissionAssociationsWork.fromJson( e as Map)) .toList(), @@ -3462,7 +3462,7 @@ class ListResourceSharePermissionsResponse { return ListResourceSharePermissionsResponse( nextToken: json['nextToken'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceSharePermissionSummary.fromJson( e as Map)) .toList(), @@ -3492,7 +3492,7 @@ class ListResourceTypesResponse { return ListResourceTypesResponse( nextToken: json['nextToken'] as String?, resourceTypes: (json['resourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceNameAndResourceType.fromJson(e as Map)) .toList(), @@ -3521,7 +3521,7 @@ class ListResourcesResponse { return ListResourcesResponse( nextToken: json['nextToken'] as String?, resources: (json['resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -4071,7 +4071,7 @@ class ResourceShare { status: (json['status'] as String?)?.let(ResourceShareStatus.fromString), statusMessage: json['statusMessage'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4277,7 +4277,7 @@ class ResourceShareInvitation { receiverArn: json['receiverArn'] as String?, resourceShareArn: json['resourceShareArn'] as String?, resourceShareAssociations: (json['resourceShareAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceShareAssociation.fromJson(e as Map)) .toList(), @@ -4446,7 +4446,7 @@ class ResourceSharePermissionDetail { resourceType: json['resourceType'] as String?, status: (json['status'] as String?)?.let(PermissionStatus.fromString), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -4569,7 +4569,7 @@ class ResourceSharePermissionSummary { resourceType: json['resourceType'] as String?, status: json['status'] as String?, tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), version: json['version'] as String?, diff --git a/generated/aws_ram_api/pubspec.yaml b/generated/aws_ram_api/pubspec.yaml index 111b2b1cd..8733c3f4f 100644 --- a/generated/aws_ram_api/pubspec.yaml +++ b/generated/aws_ram_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_ram_ap protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_rds_api/pubspec.yaml b/generated/aws_rds_api/pubspec.yaml index 8cd1a77af..d11ba6b0d 100644 --- a/generated/aws_rds_api/pubspec.yaml +++ b/generated/aws_rds_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_rds_ap protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_rds_data_api/lib/rds-data-2018-08-01.dart b/generated/aws_rds_data_api/lib/rds-data-2018-08-01.dart index ba195d09a..df18afccc 100644 --- a/generated/aws_rds_data_api/lib/rds-data-2018-08-01.dart +++ b/generated/aws_rds_data_api/lib/rds-data-2018-08-01.dart @@ -534,23 +534,21 @@ class ArrayValue { factory ArrayValue.fromJson(Map json) { return ArrayValue( arrayValues: (json['arrayValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ArrayValue.fromJson(e as Map)) .toList(), booleanValues: (json['booleanValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as bool) .toList(), doubleValues: (json['doubleValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as double) .toList(), - longValues: (json['longValues'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + longValues: + (json['longValues'] as List?)?.nonNulls.map((e) => e as int).toList(), stringValues: (json['stringValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -585,7 +583,7 @@ class BatchExecuteStatementResponse { factory BatchExecuteStatementResponse.fromJson(Map json) { return BatchExecuteStatementResponse( updateResults: (json['updateResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateResult.fromJson(e as Map)) .toList(), ); @@ -734,7 +732,7 @@ class ExecuteSqlResponse { factory ExecuteSqlResponse.fromJson(Map json) { return ExecuteSqlResponse( sqlStatementResults: (json['sqlStatementResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SqlStatementResult.fromJson(e as Map)) .toList(), ); @@ -785,19 +783,19 @@ class ExecuteStatementResponse { factory ExecuteStatementResponse.fromJson(Map json) { return ExecuteStatementResponse( columnMetadata: (json['columnMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnMetadata.fromJson(e as Map)) .toList(), formattedRecords: json['formattedRecords'] as String?, generatedFields: (json['generatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), numberOfRecordsUpdated: json['numberOfRecordsUpdated'] as int?, records: (json['records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as List) - .whereNotNull() + .nonNulls .map((e) => Field.fromJson(e as Map)) .toList()) .toList(), @@ -904,7 +902,7 @@ class Record { factory Record.fromJson(Map json) { return Record( values: (json['values'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Value.fromJson(e as Map)) .toList(), ); @@ -947,7 +945,7 @@ class ResultFrame { factory ResultFrame.fromJson(Map json) { return ResultFrame( records: (json['records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), resultSetMetadata: json['resultSetMetadata'] != null @@ -975,7 +973,7 @@ class ResultSetMetadata { return ResultSetMetadata( columnCount: json['columnCount'] as int?, columnMetadata: (json['columnMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ColumnMetadata.fromJson(e as Map)) .toList(), ); @@ -1140,7 +1138,7 @@ class StructValue { factory StructValue.fromJson(Map json) { return StructValue( attributes: (json['attributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Value.fromJson(e as Map)) .toList(), ); @@ -1177,7 +1175,7 @@ class UpdateResult { factory UpdateResult.fromJson(Map json) { return UpdateResult( generatedFields: (json['generatedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Field.fromJson(e as Map)) .toList(), ); @@ -1237,7 +1235,7 @@ class Value { factory Value.fromJson(Map json) { return Value( arrayValues: (json['arrayValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Value.fromJson(e as Map)) .toList(), bigIntValue: json['bigIntValue'] as int?, diff --git a/generated/aws_rds_data_api/pubspec.yaml b/generated/aws_rds_data_api/pubspec.yaml index 5c97633ad..690d77760 100644 --- a/generated/aws_rds_data_api/pubspec.yaml +++ b/generated/aws_rds_data_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_rds_da protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_redshift_api/pubspec.yaml b/generated/aws_redshift_api/pubspec.yaml index 82719d16e..c272b1f07 100644 --- a/generated/aws_redshift_api/pubspec.yaml +++ b/generated/aws_redshift_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_redshi protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_rekognition_api/lib/rekognition-2016-06-27.dart b/generated/aws_rekognition_api/lib/rekognition-2016-06-27.dart index e3bf22b40..b203c1559 100644 --- a/generated/aws_rekognition_api/lib/rekognition-2016-06-27.dart +++ b/generated/aws_rekognition_api/lib/rekognition-2016-06-27.dart @@ -6360,12 +6360,12 @@ class AssociateFacesResponse { factory AssociateFacesResponse.fromJson(Map json) { return AssociateFacesResponse( associatedFaces: (json['AssociatedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociatedFace.fromJson(e as Map)) .toList(), unsuccessfulFaceAssociations: (json['UnsuccessfulFaceAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsuccessfulFaceAssociation.fromJson(e as Map)) .toList(), @@ -6671,10 +6671,7 @@ class Celebrity { : null, matchConfidence: json['MatchConfidence'] as double?, name: json['Name'] as String?, - urls: (json['Urls'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + urls: (json['Urls'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -6727,10 +6724,7 @@ class CelebrityDetail { ? KnownGender.fromJson(json['KnownGender'] as Map) : null, name: json['Name'] as String?, - urls: (json['Urls'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + urls: (json['Urls'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -6860,7 +6854,7 @@ class CompareFacesResponse { factory CompareFacesResponse.fromJson(Map json) { return CompareFacesResponse( faceMatches: (json['FaceMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CompareFacesMatch.fromJson(e as Map)) .toList(), sourceImageFace: json['SourceImageFace'] != null @@ -6874,7 +6868,7 @@ class CompareFacesResponse { (json['TargetImageOrientationCorrection'] as String?) ?.let(OrientationCorrection.fromString), unmatchedFaces: (json['UnmatchedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComparedFace.fromJson(e as Map)) .toList(), ); @@ -6925,11 +6919,11 @@ class ComparedFace { : null, confidence: json['Confidence'] as double?, emotions: (json['Emotions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Emotion.fromJson(e as Map)) .toList(), landmarks: (json['Landmarks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Landmark.fromJson(e as Map)) .toList(), pose: json['Pose'] != null @@ -6998,10 +6992,8 @@ class ConnectedHomeSettings { factory ConnectedHomeSettings.fromJson(Map json) { return ConnectedHomeSettings( - labels: (json['Labels'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['Labels'] as List).nonNulls.map((e) => e as String).toList(), minConfidence: json['MinConfidence'] as double?, ); } @@ -7114,7 +7106,7 @@ class ContentModerationDetection { factory ContentModerationDetection.fromJson(Map json) { return ContentModerationDetection( contentTypes: (json['ContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContentType.fromJson(e as Map)) .toList(), durationMillis: json['DurationMillis'] as int?, @@ -7785,11 +7777,11 @@ class DeleteFacesResponse { factory DeleteFacesResponse.fromJson(Map json) { return DeleteFacesResponse( deletedFaces: (json['DeletedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), unsuccessfulFaceDeletions: (json['UnsuccessfulFaceDeletions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsuccessfulFaceDeletion.fromJson(e as Map)) .toList(), @@ -7930,7 +7922,7 @@ class DescribeProjectVersionsResponse { return DescribeProjectVersionsResponse( nextToken: json['NextToken'] as String?, projectVersionDescriptions: (json['ProjectVersionDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectVersionDescription.fromJson(e as Map)) .toList(), @@ -7957,7 +7949,7 @@ class DescribeProjectsResponse { return DescribeProjectsResponse( nextToken: json['NextToken'] as String?, projectDescriptions: (json['ProjectDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectDescription.fromJson(e as Map)) .toList(), ); @@ -8055,7 +8047,7 @@ class DescribeStreamProcessorResponse { json['Output'] as Map) : null, regionsOfInterest: (json['RegionsOfInterest'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegionOfInterest.fromJson(e as Map)) .toList(), roleArn: json['RoleArn'] as String?, @@ -8082,7 +8074,7 @@ class DetectCustomLabelsResponse { factory DetectCustomLabelsResponse.fromJson(Map json) { return DetectCustomLabelsResponse( customLabels: (json['CustomLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomLabel.fromJson(e as Map)) .toList(), ); @@ -8116,7 +8108,7 @@ class DetectFacesResponse { factory DetectFacesResponse.fromJson(Map json) { return DetectFacesResponse( faceDetails: (json['FaceDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaceDetail.fromJson(e as Map)) .toList(), orientationCorrection: (json['OrientationCorrection'] as String?) @@ -8159,7 +8151,7 @@ class DetectLabelsImageBackground { factory DetectLabelsImageBackground.fromJson(Map json) { return DetectLabelsImageBackground( dominantColors: (json['DominantColors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantColor.fromJson(e as Map)) .toList(), quality: json['Quality'] != null @@ -8189,7 +8181,7 @@ class DetectLabelsImageForeground { factory DetectLabelsImageForeground.fromJson(Map json) { return DetectLabelsImageForeground( dominantColors: (json['DominantColors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantColor.fromJson(e as Map)) .toList(), quality: json['Quality'] != null @@ -8238,7 +8230,7 @@ class DetectLabelsImageProperties { json['Background'] as Map) : null, dominantColors: (json['DominantColors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantColor.fromJson(e as Map)) .toList(), foreground: json['Foreground'] != null @@ -8339,7 +8331,7 @@ class DetectLabelsResponse { : null, labelModelVersion: json['LabelModelVersion'] as String?, labels: (json['Labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Label.fromJson(e as Map)) .toList(), orientationCorrection: (json['OrientationCorrection'] as String?) @@ -8407,7 +8399,7 @@ class DetectModerationLabelsResponse { factory DetectModerationLabelsResponse.fromJson(Map json) { return DetectModerationLabelsResponse( contentTypes: (json['ContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContentType.fromJson(e as Map)) .toList(), humanLoopActivationOutput: json['HumanLoopActivationOutput'] != null @@ -8415,7 +8407,7 @@ class DetectModerationLabelsResponse { json['HumanLoopActivationOutput'] as Map) : null, moderationLabels: (json['ModerationLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModerationLabel.fromJson(e as Map)) .toList(), moderationModelVersion: json['ModerationModelVersion'] as String?, @@ -8447,7 +8439,7 @@ class DetectProtectiveEquipmentResponse { Map json) { return DetectProtectiveEquipmentResponse( persons: (json['Persons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectiveEquipmentPerson.fromJson(e as Map)) .toList(), @@ -8502,7 +8494,7 @@ class DetectTextResponse { factory DetectTextResponse.fromJson(Map json) { return DetectTextResponse( textDetections: (json['TextDetections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TextDetection.fromJson(e as Map)) .toList(), textModelVersion: json['TextModelVersion'] as String?, @@ -8572,12 +8564,12 @@ class DisassociateFacesResponse { factory DisassociateFacesResponse.fromJson(Map json) { return DisassociateFacesResponse( disassociatedFaces: (json['DisassociatedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DisassociatedFace.fromJson(e as Map)) .toList(), unsuccessfulFaceDisassociations: (json['UnsuccessfulFaceDisassociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsuccessfulFaceDisassociation.fromJson( e as Map)) .toList(), @@ -9060,7 +9052,7 @@ class FaceDetail { : null, confidence: json['Confidence'] as double?, emotions: (json['Emotions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Emotion.fromJson(e as Map)) .toList(), eyeDirection: json['EyeDirection'] != null @@ -9079,7 +9071,7 @@ class FaceDetail { ? Gender.fromJson(json['Gender'] as Map) : null, landmarks: (json['Landmarks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Landmark.fromJson(e as Map)) .toList(), mouthOpen: json['MouthOpen'] != null @@ -9384,7 +9376,7 @@ class Geometry { ? BoundingBox.fromJson(json['BoundingBox'] as Map) : null, polygon: (json['Polygon'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Point.fromJson(e as Map)) .toList(), ); @@ -9413,10 +9405,7 @@ class GetCelebrityInfoResponse { ? KnownGender.fromJson(json['KnownGender'] as Map) : null, name: json['Name'] as String?, - urls: (json['Urls'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + urls: (json['Urls'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -9467,7 +9456,7 @@ class GetCelebrityRecognitionResponse { factory GetCelebrityRecognitionResponse.fromJson(Map json) { return GetCelebrityRecognitionResponse( celebrities: (json['Celebrities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CelebrityRecognition.fromJson(e as Map)) .toList(), jobId: json['JobId'] as String?, @@ -9575,7 +9564,7 @@ class GetContentModerationResponse { jobStatus: (json['JobStatus'] as String?)?.let(VideoJobStatus.fromString), jobTag: json['JobTag'] as String?, moderationLabels: (json['ModerationLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContentModerationDetection.fromJson(e as Map)) .toList(), @@ -9640,7 +9629,7 @@ class GetFaceDetectionResponse { factory GetFaceDetectionResponse.fromJson(Map json) { return GetFaceDetectionResponse( faces: (json['Faces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaceDetection.fromJson(e as Map)) .toList(), jobId: json['JobId'] as String?, @@ -9701,7 +9690,7 @@ class GetFaceLivenessSessionResultsResponse { sessionId: json['SessionId'] as String, status: LivenessSessionStatus.fromString((json['Status'] as String)), auditImages: (json['AuditImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuditImage.fromJson(e as Map)) .toList(), confidence: json['Confidence'] as double?, @@ -9769,7 +9758,7 @@ class GetFaceSearchResponse { jobTag: json['JobTag'] as String?, nextToken: json['NextToken'] as String?, persons: (json['Persons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PersonMatch.fromJson(e as Map)) .toList(), statusMessage: json['StatusMessage'] as String?, @@ -9872,7 +9861,7 @@ class GetLabelDetectionResponse { jobTag: json['JobTag'] as String?, labelModelVersion: json['LabelModelVersion'] as String?, labels: (json['Labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelDetection.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -10024,7 +10013,7 @@ class GetPersonTrackingResponse { jobTag: json['JobTag'] as String?, nextToken: json['NextToken'] as String?, persons: (json['Persons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PersonDetection.fromJson(e as Map)) .toList(), statusMessage: json['StatusMessage'] as String?, @@ -10106,7 +10095,7 @@ class GetSegmentDetectionResponse { factory GetSegmentDetectionResponse.fromJson(Map json) { return GetSegmentDetectionResponse( audioMetadata: (json['AudioMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AudioMetadata.fromJson(e as Map)) .toList(), jobId: json['JobId'] as String?, @@ -10114,11 +10103,11 @@ class GetSegmentDetectionResponse { jobTag: json['JobTag'] as String?, nextToken: json['NextToken'] as String?, segments: (json['Segments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentDetection.fromJson(e as Map)) .toList(), selectedSegmentTypes: (json['SelectedSegmentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SegmentTypeInfo.fromJson(e as Map)) .toList(), statusMessage: json['StatusMessage'] as String?, @@ -10126,7 +10115,7 @@ class GetSegmentDetectionResponse { ? Video.fromJson(json['Video'] as Map) : null, videoMetadata: (json['VideoMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VideoMetadata.fromJson(e as Map)) .toList(), ); @@ -10185,7 +10174,7 @@ class GetTextDetectionResponse { nextToken: json['NextToken'] as String?, statusMessage: json['StatusMessage'] as String?, textDetections: (json['TextDetections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TextDetectionResult.fromJson(e as Map)) .toList(), textModelVersion: json['TextModelVersion'] as String?, @@ -10253,7 +10242,7 @@ class HumanLoopActivationOutput { json['HumanLoopActivationConditionsEvaluationResults'] as String), humanLoopActivationReasons: (json['HumanLoopActivationReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), humanLoopArn: json['HumanLoopArn'] as String?, @@ -10448,13 +10437,13 @@ class IndexFacesResponse { return IndexFacesResponse( faceModelVersion: json['FaceModelVersion'] as String?, faceRecords: (json['FaceRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaceRecord.fromJson(e as Map)) .toList(), orientationCorrection: (json['OrientationCorrection'] as String?) ?.let(OrientationCorrection.fromString), unindexedFaces: (json['UnindexedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnindexedFace.fromJson(e as Map)) .toList(), ); @@ -10488,7 +10477,7 @@ class Instance { : null, confidence: json['Confidence'] as double?, dominantColors: (json['DominantColors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DominantColor.fromJson(e as Map)) .toList(), ); @@ -10648,21 +10637,21 @@ class Label { factory Label.fromJson(Map json) { return Label( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelAlias.fromJson(e as Map)) .toList(), categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelCategory.fromJson(e as Map)) .toList(), confidence: json['Confidence'] as double?, instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Instance.fromJson(e as Map)) .toList(), name: json['Name'] as String?, parents: (json['Parents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parent.fromJson(e as Map)) .toList(), ); @@ -10905,11 +10894,11 @@ class ListCollectionsResponse { factory ListCollectionsResponse.fromJson(Map json) { return ListCollectionsResponse( collectionIds: (json['CollectionIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), faceModelVersions: (json['FaceModelVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -10935,7 +10924,7 @@ class ListDatasetEntriesResponse { factory ListDatasetEntriesResponse.fromJson(Map json) { return ListDatasetEntriesResponse( datasetEntries: (json['DatasetEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -10961,7 +10950,7 @@ class ListDatasetLabelsResponse { factory ListDatasetLabelsResponse.fromJson(Map json) { return ListDatasetLabelsResponse( datasetLabelDescriptions: (json['DatasetLabelDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetLabelDescription.fromJson(e as Map)) .toList(), @@ -10992,7 +10981,7 @@ class ListFacesResponse { return ListFacesResponse( faceModelVersion: json['FaceModelVersion'] as String?, faces: (json['Faces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Face.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -11015,7 +11004,7 @@ class ListMediaAnalysisJobsResponse { factory ListMediaAnalysisJobsResponse.fromJson(Map json) { return ListMediaAnalysisJobsResponse( mediaAnalysisJobs: (json['MediaAnalysisJobs'] as List) - .whereNotNull() + .nonNulls .map((e) => MediaAnalysisJobDescription.fromJson(e as Map)) .toList(), @@ -11042,7 +11031,7 @@ class ListProjectPoliciesResponse { return ListProjectPoliciesResponse( nextToken: json['NextToken'] as String?, projectPolicies: (json['ProjectPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProjectPolicy.fromJson(e as Map)) .toList(), ); @@ -11067,7 +11056,7 @@ class ListStreamProcessorsResponse { return ListStreamProcessorsResponse( nextToken: json['NextToken'] as String?, streamProcessors: (json['StreamProcessors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StreamProcessor.fromJson(e as Map)) .toList(), ); @@ -11107,7 +11096,7 @@ class ListUsersResponse { return ListUsersResponse( nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -11777,7 +11766,7 @@ class PersonMatch { factory PersonMatch.fromJson(Map json) { return PersonMatch( faceMatches: (json['FaceMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaceMatch.fromJson(e as Map)) .toList(), person: json['Person'] != null @@ -11920,7 +11909,7 @@ class ProjectDescription { (json['AutoUpdate'] as String?)?.let(ProjectAutoUpdate.fromString), creationTimestamp: timeStampFromJson(json['CreationTimestamp']), datasets: (json['Datasets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DatasetMetadata.fromJson(e as Map)) .toList(), feature: @@ -12179,7 +12168,7 @@ class ProtectiveEquipmentBodyPart { return ProtectiveEquipmentBodyPart( confidence: json['Confidence'] as double?, equipmentDetections: (json['EquipmentDetections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EquipmentDetection.fromJson(e as Map)) .toList(), name: (json['Name'] as String?)?.let(BodyPart.fromString), @@ -12216,7 +12205,7 @@ class ProtectiveEquipmentPerson { factory ProtectiveEquipmentPerson.fromJson(Map json) { return ProtectiveEquipmentPerson( bodyParts: (json['BodyParts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProtectiveEquipmentBodyPart.fromJson(e as Map)) .toList(), @@ -12318,17 +12307,17 @@ class ProtectiveEquipmentSummary { factory ProtectiveEquipmentSummary.fromJson(Map json) { return ProtectiveEquipmentSummary( personsIndeterminate: (json['PersonsIndeterminate'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), personsWithRequiredEquipment: (json['PersonsWithRequiredEquipment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), personsWithoutRequiredEquipment: (json['PersonsWithoutRequiredEquipment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -12446,13 +12435,13 @@ class RecognizeCelebritiesResponse { factory RecognizeCelebritiesResponse.fromJson(Map json) { return RecognizeCelebritiesResponse( celebrityFaces: (json['CelebrityFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Celebrity.fromJson(e as Map)) .toList(), orientationCorrection: (json['OrientationCorrection'] as String?) ?.let(OrientationCorrection.fromString), unrecognizedFaces: (json['UnrecognizedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComparedFace.fromJson(e as Map)) .toList(), ); @@ -12486,7 +12475,7 @@ class RegionOfInterest { ? BoundingBox.fromJson(json['BoundingBox'] as Map) : null, polygon: (json['Polygon'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Point.fromJson(e as Map)) .toList(), ); @@ -12611,7 +12600,7 @@ class SearchFacesByImageResponse { factory SearchFacesByImageResponse.fromJson(Map json) { return SearchFacesByImageResponse( faceMatches: (json['FaceMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaceMatch.fromJson(e as Map)) .toList(), faceModelVersion: json['FaceModelVersion'] as String?, @@ -12645,7 +12634,7 @@ class SearchFacesResponse { factory SearchFacesResponse.fromJson(Map json) { return SearchFacesResponse( faceMatches: (json['FaceMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaceMatch.fromJson(e as Map)) .toList(), faceModelVersion: json['FaceModelVersion'] as String?, @@ -12690,11 +12679,11 @@ class SearchUsersByImageResponse { json['SearchedFace'] as Map) : null, unsearchedFaces: (json['UnsearchedFaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsearchedFace.fromJson(e as Map)) .toList(), userMatches: (json['UserMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserMatch.fromJson(e as Map)) .toList(), ); @@ -12735,7 +12724,7 @@ class SearchUsersResponse { ? SearchedUser.fromJson(json['SearchedUser'] as Map) : null, userMatches: (json['UserMatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserMatch.fromJson(e as Map)) .toList(), ); @@ -13684,7 +13673,7 @@ class TestingData { factory TestingData.fromJson(Map json) { return TestingData( assets: (json['Assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Asset.fromJson(e as Map)) .toList(), autoCreate: json['AutoCreate'] as bool?, @@ -13851,7 +13840,7 @@ class TrainingData { factory TrainingData.fromJson(Map json) { return TrainingData( assets: (json['Assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Asset.fromJson(e as Map)) .toList(), ); @@ -13946,7 +13935,7 @@ class UnindexedFace { ? FaceDetail.fromJson(json['FaceDetail'] as Map) : null, reasons: (json['Reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Reason.fromString((e as String))) .toList(), ); @@ -13972,7 +13961,7 @@ class UnsearchedFace { ? FaceDetail.fromJson(json['FaceDetails'] as Map) : null, reasons: (json['Reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsearchedFaceReason.fromString((e as String))) .toList(), ); @@ -14028,7 +14017,7 @@ class UnsuccessfulFaceAssociation { confidence: json['Confidence'] as double?, faceId: json['FaceId'] as String?, reasons: (json['Reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsuccessfulFaceAssociationReason.fromString((e as String))) .toList(), @@ -14075,7 +14064,7 @@ class UnsuccessfulFaceDeletion { return UnsuccessfulFaceDeletion( faceId: json['FaceId'] as String?, reasons: (json['Reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsuccessfulFaceDeletionReason.fromString((e as String))) .toList(), userId: json['UserId'] as String?, @@ -14120,7 +14109,7 @@ class UnsuccessfulFaceDisassociation { return UnsuccessfulFaceDisassociation( faceId: json['FaceId'] as String?, reasons: (json['Reasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnsuccessfulFaceDisassociationReason.fromString((e as String))) .toList(), @@ -14255,7 +14244,7 @@ class ValidationData { factory ValidationData.fromJson(Map json) { return ValidationData( assets: (json['Assets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Asset.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_rekognition_api/pubspec.yaml b/generated/aws_rekognition_api/pubspec.yaml index 677a254df..e4b84ae6c 100644 --- a/generated/aws_rekognition_api/pubspec.yaml +++ b/generated/aws_rekognition_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_rekogn protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_resource_groups_api/lib/resource-groups-2017-11-27.dart b/generated/aws_resource_groups_api/lib/resource-groups-2017-11-27.dart index c183e7669..d2af8a2fe 100644 --- a/generated/aws_resource_groups_api/lib/resource-groups-2017-11-27.dart +++ b/generated/aws_resource_groups_api/lib/resource-groups-2017-11-27.dart @@ -1379,13 +1379,13 @@ class GroupConfiguration { factory GroupConfiguration.fromJson(Map json) { return GroupConfiguration( configuration: (json['Configuration'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GroupConfigurationItem.fromJson(e as Map)) .toList(), failureReason: json['FailureReason'] as String?, proposedConfiguration: (json['ProposedConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => GroupConfigurationItem.fromJson(e as Map)) .toList(), @@ -1422,7 +1422,7 @@ class GroupConfigurationItem { return GroupConfigurationItem( type: json['Type'] as String, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupConfigurationParameter.fromJson(e as Map)) .toList(), @@ -1464,10 +1464,8 @@ class GroupConfigurationParameter { factory GroupConfigurationParameter.fromJson(Map json) { return GroupConfigurationParameter( name: json['Name'] as String, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -1641,15 +1639,15 @@ class GroupResourcesOutput { factory GroupResourcesOutput.fromJson(Map json) { return GroupResourcesOutput( failed: (json['Failed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedResource.fromJson(e as Map)) .toList(), pending: (json['Pending'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingResource.fromJson(e as Map)) .toList(), succeeded: (json['Succeeded'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1725,15 +1723,15 @@ class ListGroupResourcesOutput { return ListGroupResourcesOutput( nextToken: json['NextToken'] as String?, queryErrors: (json['QueryErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryError.fromJson(e as Map)) .toList(), resourceIdentifiers: (json['ResourceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceIdentifier.fromJson(e as Map)) .toList(), resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ListGroupResourcesItem.fromJson(e as Map)) .toList(), @@ -1768,11 +1766,11 @@ class ListGroupsOutput { factory ListGroupsOutput.fromJson(Map json) { return ListGroupsOutput( groupIdentifiers: (json['GroupIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupIdentifier.fromJson(e as Map)) .toList(), groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2155,11 +2153,11 @@ class SearchResourcesOutput { return SearchResourcesOutput( nextToken: json['NextToken'] as String?, queryErrors: (json['QueryErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => QueryError.fromJson(e as Map)) .toList(), resourceIdentifiers: (json['ResourceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceIdentifier.fromJson(e as Map)) .toList(), ); @@ -2212,15 +2210,15 @@ class UngroupResourcesOutput { factory UngroupResourcesOutput.fromJson(Map json) { return UngroupResourcesOutput( failed: (json['Failed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedResource.fromJson(e as Map)) .toList(), pending: (json['Pending'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingResource.fromJson(e as Map)) .toList(), succeeded: (json['Succeeded'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2242,10 +2240,7 @@ class UntagOutput { factory UntagOutput.fromJson(Map json) { return UntagOutput( arn: json['Arn'] as String?, - keys: (json['Keys'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + keys: (json['Keys'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } diff --git a/generated/aws_resource_groups_api/pubspec.yaml b/generated/aws_resource_groups_api/pubspec.yaml index 6e744f062..1c6c65030 100644 --- a/generated/aws_resource_groups_api/pubspec.yaml +++ b/generated/aws_resource_groups_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_resour protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_resourcegroupstaggingapi_api/lib/resourcegroupstaggingapi-2017-01-26.dart b/generated/aws_resourcegroupstaggingapi_api/lib/resourcegroupstaggingapi-2017-01-26.dart index a9ec52351..c20bbdd08 100644 --- a/generated/aws_resourcegroupstaggingapi_api/lib/resourcegroupstaggingapi-2017-01-26.dart +++ b/generated/aws_resourcegroupstaggingapi_api/lib/resourcegroupstaggingapi-2017-01-26.dart @@ -734,11 +734,11 @@ class ComplianceDetails { return ComplianceDetails( complianceStatus: json['ComplianceStatus'] as bool?, keysWithNoncompliantValues: (json['KeysWithNoncompliantValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), noncompliantKeys: (json['NoncompliantKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -884,7 +884,7 @@ class GetComplianceSummaryOutput { return GetComplianceSummaryOutput( paginationToken: json['PaginationToken'] as String?, summaryList: (json['SummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Summary.fromJson(e as Map)) .toList(), ); @@ -910,7 +910,7 @@ class GetResourcesOutput { return GetResourcesOutput( paginationToken: json['PaginationToken'] as String?, resourceTagMappingList: (json['ResourceTagMappingList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTagMapping.fromJson(e as Map)) .toList(), ); @@ -935,10 +935,8 @@ class GetTagKeysOutput { factory GetTagKeysOutput.fromJson(Map json) { return GetTagKeysOutput( paginationToken: json['PaginationToken'] as String?, - tagKeys: (json['TagKeys'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tagKeys: + (json['TagKeys'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -963,7 +961,7 @@ class GetTagValuesOutput { return GetTagValuesOutput( paginationToken: json['PaginationToken'] as String?, tagValues: (json['TagValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1014,7 +1012,7 @@ class ResourceTagMapping { : null, resourceARN: json['ResourceARN'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_resourcegroupstaggingapi_api/pubspec.yaml b/generated/aws_resourcegroupstaggingapi_api/pubspec.yaml index 3b31de4f9..13cd2d07a 100644 --- a/generated/aws_resourcegroupstaggingapi_api/pubspec.yaml +++ b/generated/aws_resourcegroupstaggingapi_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_resour protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_robomaker_api/lib/robomaker-2018-06-29.dart b/generated/aws_robomaker_api/lib/robomaker-2018-06-29.dart index 6be737587..d0ccf98af 100644 --- a/generated/aws_robomaker_api/lib/robomaker-2018-06-29.dart +++ b/generated/aws_robomaker_api/lib/robomaker-2018-06-29.dart @@ -2283,7 +2283,7 @@ class BatchDeleteWorldsResponse { factory BatchDeleteWorldsResponse.fromJson(Map json) { return BatchDeleteWorldsResponse( unprocessedWorlds: (json['unprocessedWorlds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2306,11 +2306,11 @@ class BatchDescribeSimulationJobResponse { Map json) { return BatchDescribeSimulationJobResponse( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationJob.fromJson(e as Map)) .toList(), unprocessedJobs: (json['unprocessedJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2572,7 +2572,7 @@ class CreateDeploymentJobResponse { createdAt: timeStampFromJson(json['createdAt']), deploymentApplicationConfigs: (json['deploymentApplicationConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentApplicationConfig.fromJson(e as Map)) .toList(), @@ -2680,7 +2680,7 @@ class CreateRobotApplicationResponse { json['robotSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -2743,7 +2743,7 @@ class CreateRobotApplicationVersionResponse { json['robotSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -2869,7 +2869,7 @@ class CreateSimulationApplicationResponse { json['simulationSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -2948,7 +2948,7 @@ class CreateSimulationApplicationVersionResponse { json['simulationSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -3075,7 +3075,7 @@ class CreateSimulationJobResponse { ? ComputeResponse.fromJson(json['compute'] as Map) : null, dataSources: (json['dataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), failureBehavior: @@ -3095,12 +3095,12 @@ class CreateSimulationJobResponse { json['outputLocation'] as Map) : null, robotApplications: (json['robotApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RobotApplicationConfig.fromJson(e as Map)) .toList(), simulationApplications: (json['simulationApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationApplicationConfig.fromJson(e as Map)) .toList(), @@ -3385,7 +3385,7 @@ class DataSource { name: json['name'] as String?, s3Bucket: json['s3Bucket'] as String?, s3Keys: (json['s3Keys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3KeyOutput.fromJson(e as Map)) .toList(), type: (json['type'] as String?)?.let(DataSourceType.fromString), @@ -3439,10 +3439,8 @@ class DataSourceConfig { return DataSourceConfig( name: json['name'] as String, s3Bucket: json['s3Bucket'] as String, - s3Keys: (json['s3Keys'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + s3Keys: + (json['s3Keys'] as List).nonNulls.map((e) => e as String).toList(), destination: json['destination'] as String?, type: (json['type'] as String?)?.let(DataSourceType.fromString), ); @@ -3661,7 +3659,7 @@ class DeploymentJob { createdAt: timeStampFromJson(json['createdAt']), deploymentApplicationConfigs: (json['deploymentApplicationConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentApplicationConfig.fromJson(e as Map)) .toList(), @@ -3866,7 +3864,7 @@ class DescribeDeploymentJobResponse { createdAt: timeStampFromJson(json['createdAt']), deploymentApplicationConfigs: (json['deploymentApplicationConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentApplicationConfig.fromJson(e as Map)) .toList(), @@ -3879,7 +3877,7 @@ class DescribeDeploymentJobResponse { failureReason: json['failureReason'] as String?, fleet: json['fleet'] as String?, robotDeploymentSummary: (json['robotDeploymentSummary'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RobotDeployment.fromJson(e as Map)) .toList(), status: (json['status'] as String?)?.let(DeploymentStatus.fromString), @@ -3937,7 +3935,7 @@ class DescribeFleetResponse { lastDeploymentTime: timeStampFromJson(json['lastDeploymentTime']), name: json['name'] as String?, robots: (json['robots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Robot.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -4008,7 +4006,7 @@ class DescribeRobotApplicationResponse { json['robotSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -4161,7 +4159,7 @@ class DescribeSimulationApplicationResponse { json['simulationSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), tags: (json['tags'] as Map?) @@ -4271,11 +4269,11 @@ class DescribeSimulationJobBatchResponse { clientRequestToken: json['clientRequestToken'] as String?, createdAt: timeStampFromJson(json['createdAt']), createdRequests: (json['createdRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationJobSummary.fromJson(e as Map)) .toList(), failedRequests: (json['failedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCreateSimulationJobRequest.fromJson( e as Map)) .toList(), @@ -4284,7 +4282,7 @@ class DescribeSimulationJobBatchResponse { failureReason: json['failureReason'] as String?, lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), pendingRequests: (json['pendingRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationJobRequest.fromJson(e as Map)) .toList(), status: @@ -4429,7 +4427,7 @@ class DescribeSimulationJobResponse { ? ComputeResponse.fromJson(json['compute'] as Map) : null, dataSources: (json['dataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), failureBehavior: @@ -4455,12 +4453,12 @@ class DescribeSimulationJobResponse { json['outputLocation'] as Map) : null, robotApplications: (json['robotApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RobotApplicationConfig.fromJson(e as Map)) .toList(), simulationApplications: (json['simulationApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationApplicationConfig.fromJson(e as Map)) .toList(), @@ -4565,10 +4563,8 @@ class DescribeWorldExportJobResponse { status: (json['status'] as String?)?.let(WorldExportJobStatus.fromString), tags: (json['tags'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), - worlds: (json['worlds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + worlds: + (json['worlds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -4878,7 +4874,7 @@ class FailureSummary { factory FailureSummary.fromJson(Map json) { return FailureSummary( failures: (json['failures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorldFailure.fromJson(e as Map)) .toList(), totalFailureCount: json['totalFailureCount'] as int?, @@ -4934,7 +4930,7 @@ class FinishedWorldsSummary { : null, finishedCount: json['finishedCount'] as int?, succeededWorlds: (json['succeededWorlds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5039,10 +5035,8 @@ class LaunchConfig { factory LaunchConfig.fromJson(Map json) { return LaunchConfig( - command: (json['command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['command'] as List?)?.nonNulls.map((e) => e as String).toList(), environmentVariables: (json['environmentVariables'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), @@ -5098,7 +5092,7 @@ class ListDeploymentJobsResponse { factory ListDeploymentJobsResponse.fromJson(Map json) { return ListDeploymentJobsResponse( deploymentJobs: (json['deploymentJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentJob.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5128,7 +5122,7 @@ class ListFleetsResponse { factory ListFleetsResponse.fromJson(Map json) { return ListFleetsResponse( fleetDetails: (json['fleetDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Fleet.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5157,7 +5151,7 @@ class ListRobotApplicationsResponse { return ListRobotApplicationsResponse( nextToken: json['nextToken'] as String?, robotApplicationSummaries: (json['robotApplicationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RobotApplicationSummary.fromJson(e as Map)) .toList(), @@ -5188,7 +5182,7 @@ class ListRobotsResponse { return ListRobotsResponse( nextToken: json['nextToken'] as String?, robots: (json['robots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Robot.fromJson(e as Map)) .toList(), ); @@ -5219,7 +5213,7 @@ class ListSimulationApplicationsResponse { nextToken: json['nextToken'] as String?, simulationApplicationSummaries: (json['simulationApplicationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationApplicationSummary.fromJson(e as Map)) .toList(), @@ -5249,7 +5243,7 @@ class ListSimulationJobBatchesResponse { nextToken: json['nextToken'] as String?, simulationJobBatchSummaries: (json['simulationJobBatchSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationJobBatchSummary.fromJson(e as Map)) .toList(), @@ -5277,7 +5271,7 @@ class ListSimulationJobsResponse { factory ListSimulationJobsResponse.fromJson(Map json) { return ListSimulationJobsResponse( simulationJobSummaries: (json['simulationJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => SimulationJobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5321,7 +5315,7 @@ class ListWorldExportJobsResponse { factory ListWorldExportJobsResponse.fromJson(Map json) { return ListWorldExportJobsResponse( worldExportJobSummaries: (json['worldExportJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => WorldExportJobSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -5350,7 +5344,7 @@ class ListWorldGenerationJobsResponse { factory ListWorldGenerationJobsResponse.fromJson(Map json) { return ListWorldGenerationJobsResponse( worldGenerationJobSummaries: (json['worldGenerationJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => WorldGenerationJobSummary.fromJson(e as Map)) .toList(), @@ -5380,7 +5374,7 @@ class ListWorldTemplatesResponse { return ListWorldTemplatesResponse( nextToken: json['nextToken'] as String?, templateSummaries: (json['templateSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TemplateSummary.fromJson(e as Map)) .toList(), ); @@ -5408,7 +5402,7 @@ class ListWorldsResponse { return ListWorldsResponse( nextToken: json['nextToken'] as String?, worldSummaries: (json['worldSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorldSummary.fromJson(e as Map)) .toList(), ); @@ -5510,7 +5504,7 @@ class PortForwardingConfig { factory PortForwardingConfig.fromJson(Map json) { return PortForwardingConfig( portMappings: (json['portMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortMapping.fromJson(e as Map)) .toList(), ); @@ -5795,11 +5789,11 @@ class RobotApplicationConfig { LaunchConfig.fromJson(json['launchConfig'] as Map), applicationVersion: json['applicationVersion'] as String?, tools: (json['tools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tool.fromJson(e as Map)) .toList(), uploadConfigurations: (json['uploadConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UploadConfiguration.fromJson(e as Map)) .toList(), useDefaultTools: json['useDefaultTools'] as bool?, @@ -6137,18 +6131,18 @@ class SimulationApplicationConfig { LaunchConfig.fromJson(json['launchConfig'] as Map), applicationVersion: json['applicationVersion'] as String?, tools: (json['tools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tool.fromJson(e as Map)) .toList(), uploadConfigurations: (json['uploadConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UploadConfiguration.fromJson(e as Map)) .toList(), useDefaultTools: json['useDefaultTools'] as bool?, useDefaultUploadConfigurations: json['useDefaultUploadConfigurations'] as bool?, worldConfigs: (json['worldConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorldConfig.fromJson(e as Map)) .toList(), ); @@ -6335,7 +6329,7 @@ class SimulationJob { ? ComputeResponse.fromJson(json['compute'] as Map) : null, dataSources: (json['dataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSource.fromJson(e as Map)) .toList(), failureBehavior: @@ -6361,12 +6355,12 @@ class SimulationJob { json['outputLocation'] as Map) : null, robotApplications: (json['robotApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RobotApplicationConfig.fromJson(e as Map)) .toList(), simulationApplications: (json['simulationApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationApplicationConfig.fromJson(e as Map)) .toList(), @@ -6616,7 +6610,7 @@ class SimulationJobRequest { ? Compute.fromJson(json['compute'] as Map) : null, dataSources: (json['dataSources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DataSourceConfig.fromJson(e as Map)) .toList(), failureBehavior: @@ -6631,12 +6625,12 @@ class SimulationJobRequest { json['outputLocation'] as Map) : null, robotApplications: (json['robotApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RobotApplicationConfig.fromJson(e as Map)) .toList(), simulationApplications: (json['simulationApplications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationApplicationConfig.fromJson(e as Map)) .toList(), @@ -6748,17 +6742,17 @@ class SimulationJobSummary { computeType: (json['computeType'] as String?)?.let(ComputeType.fromString), dataSourceNames: (json['dataSourceNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']), name: json['name'] as String?, robotApplicationNames: (json['robotApplicationNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), simulationApplicationNames: (json['simulationApplicationNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: (json['status'] as String?)?.let(SimulationJobStatus.fromString), @@ -6968,11 +6962,11 @@ class StartSimulationJobBatchResponse { clientRequestToken: json['clientRequestToken'] as String?, createdAt: timeStampFromJson(json['createdAt']), createdRequests: (json['createdRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationJobSummary.fromJson(e as Map)) .toList(), failedRequests: (json['failedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCreateSimulationJobRequest.fromJson( e as Map)) .toList(), @@ -6980,7 +6974,7 @@ class StartSimulationJobBatchResponse { ?.let(SimulationJobBatchErrorCode.fromString), failureReason: json['failureReason'] as String?, pendingRequests: (json['pendingRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SimulationJobRequest.fromJson(e as Map)) .toList(), status: @@ -7066,7 +7060,7 @@ class SyncDeploymentJobResponse { createdAt: timeStampFromJson(json['createdAt']), deploymentApplicationConfigs: (json['deploymentApplicationConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeploymentApplicationConfig.fromJson(e as Map)) .toList(), @@ -7270,7 +7264,7 @@ class UpdateRobotApplicationResponse { json['robotSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -7347,7 +7341,7 @@ class UpdateSimulationApplicationResponse { json['simulationSoftwareSuite'] as Map) : null, sources: (json['sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Source.fromJson(e as Map)) .toList(), version: json['version'] as String?, @@ -7486,13 +7480,11 @@ class VPCConfig { factory VPCConfig.fromJson(Map json) { return VPCConfig( - subnets: (json['subnets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['subnets'] as List).nonNulls.map((e) => e as String).toList(), assignPublicIp: json['assignPublicIp'] as bool?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7535,13 +7527,11 @@ class VPCConfigResponse { return VPCConfigResponse( assignPublicIp: json['assignPublicIp'] as bool?, securityGroups: (json['securityGroups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + subnets: + (json['subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), vpcId: json['vpcId'] as String?, ); } @@ -7695,10 +7685,8 @@ class WorldExportJobSummary { json['outputLocation'] as Map) : null, status: (json['status'] as String?)?.let(WorldExportJobStatus.fromString), - worlds: (json['worlds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + worlds: + (json['worlds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } diff --git a/generated/aws_robomaker_api/pubspec.yaml b/generated/aws_robomaker_api/pubspec.yaml index df60bbba3..cdbb73387 100644 --- a/generated/aws_robomaker_api/pubspec.yaml +++ b/generated/aws_robomaker_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_roboma protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_route53_api/pubspec.yaml b/generated/aws_route53_api/pubspec.yaml index 29c6b3ee5..b9bb5ebfa 100644 --- a/generated/aws_route53_api/pubspec.yaml +++ b/generated/aws_route53_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_route5 protocol: rest-xml environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_route53domains_api/lib/route53domains-2014-05-15.dart b/generated/aws_route53domains_api/lib/route53domains-2014-05-15.dart index 006a203cb..f08db30ce 100644 --- a/generated/aws_route53domains_api/lib/route53domains-2014-05-15.dart +++ b/generated/aws_route53domains_api/lib/route53domains-2014-05-15.dart @@ -2398,7 +2398,7 @@ class ContactDetail { (json['CountryCode'] as String?)?.let(CountryCode.fromString), email: json['Email'] as String?, extraParams: (json['ExtraParams'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExtraParam.fromJson(e as Map)) .toList(), fax: json['Fax'] as String?, @@ -3970,13 +3970,13 @@ class GetDomainDetailResponse { creationDate: timeStampFromJson(json['CreationDate']), dnsSec: json['DnsSec'] as String?, dnssecKeys: (json['DnssecKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DnssecKey.fromJson(e as Map)) .toList(), domainName: json['DomainName'] as String?, expirationDate: timeStampFromJson(json['ExpirationDate']), nameservers: (json['Nameservers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Nameserver.fromJson(e as Map)) .toList(), registrantContact: json['RegistrantContact'] != null @@ -3989,7 +3989,7 @@ class GetDomainDetailResponse { registryDomainId: json['RegistryDomainId'] as String?, reseller: json['Reseller'] as String?, statusList: (json['StatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), techContact: json['TechContact'] != null @@ -4015,7 +4015,7 @@ class GetDomainSuggestionsResponse { factory GetDomainSuggestionsResponse.fromJson(Map json) { return GetDomainSuggestionsResponse( suggestionsList: (json['SuggestionsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainSuggestion.fromJson(e as Map)) .toList(), ); @@ -4131,7 +4131,7 @@ class ListDomainsResponse { factory ListDomainsResponse.fromJson(Map json) { return ListDomainsResponse( domains: (json['Domains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainSummary.fromJson(e as Map)) .toList(), nextPageMarker: json['NextPageMarker'] as String?, @@ -4158,7 +4158,7 @@ class ListOperationsResponse { return ListOperationsResponse( nextPageMarker: json['NextPageMarker'] as String?, operations: (json['Operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OperationSummary.fromJson(e as Map)) .toList(), ); @@ -4201,7 +4201,7 @@ class ListPricesResponse { return ListPricesResponse( nextPageMarker: json['NextPageMarker'] as String?, prices: (json['Prices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainPrice.fromJson(e as Map)) .toList(), ); @@ -4220,7 +4220,7 @@ class ListTagsForDomainResponse { factory ListTagsForDomainResponse.fromJson(Map json) { return ListTagsForDomainResponse( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -4250,10 +4250,8 @@ class Nameserver { factory Nameserver.fromJson(Map json) { return Nameserver( name: json['Name'] as String, - glueIps: (json['GlueIps'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + glueIps: + (json['GlueIps'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4814,7 +4812,7 @@ class ViewBillingResponse { factory ViewBillingResponse.fromJson(Map json) { return ViewBillingResponse( billingRecords: (json['BillingRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BillingRecord.fromJson(e as Map)) .toList(), nextPageMarker: json['NextPageMarker'] as String?, diff --git a/generated/aws_route53domains_api/pubspec.yaml b/generated/aws_route53domains_api/pubspec.yaml index 519f4dc3b..10a3b5300 100644 --- a/generated/aws_route53domains_api/pubspec.yaml +++ b/generated/aws_route53domains_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_route5 protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_route53resolver_api/lib/route53resolver-2018-04-01.dart b/generated/aws_route53resolver_api/lib/route53resolver-2018-04-01.dart index fefedecda..6e99754e9 100644 --- a/generated/aws_route53resolver_api/lib/route53resolver-2018-04-01.dart +++ b/generated/aws_route53resolver_api/lib/route53resolver-2018-04-01.dart @@ -6242,7 +6242,7 @@ class ListFirewallConfigsResponse { factory ListFirewallConfigsResponse.fromJson(Map json) { return ListFirewallConfigsResponse( firewallConfigs: (json['FirewallConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallConfig.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6270,7 +6270,7 @@ class ListFirewallDomainListsResponse { factory ListFirewallDomainListsResponse.fromJson(Map json) { return ListFirewallDomainListsResponse( firewallDomainLists: (json['FirewallDomainLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallDomainListMetadata.fromJson(e as Map)) .toList(), @@ -6298,10 +6298,8 @@ class ListFirewallDomainsResponse { factory ListFirewallDomainsResponse.fromJson(Map json) { return ListFirewallDomainsResponse( - domains: (json['Domains'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + domains: + (json['Domains'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -6329,7 +6327,7 @@ class ListFirewallRuleGroupAssociationsResponse { return ListFirewallRuleGroupAssociationsResponse( firewallRuleGroupAssociations: (json['FirewallRuleGroupAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallRuleGroupAssociation.fromJson(e as Map)) .toList(), @@ -6358,7 +6356,7 @@ class ListFirewallRuleGroupsResponse { factory ListFirewallRuleGroupsResponse.fromJson(Map json) { return ListFirewallRuleGroupsResponse( firewallRuleGroups: (json['FirewallRuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallRuleGroupMetadata.fromJson(e as Map)) .toList(), @@ -6387,7 +6385,7 @@ class ListFirewallRulesResponse { factory ListFirewallRulesResponse.fromJson(Map json) { return ListFirewallRulesResponse( firewallRules: (json['FirewallRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallRule.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6415,7 +6413,7 @@ class ListOutpostResolversResponse { return ListOutpostResolversResponse( nextToken: json['NextToken'] as String?, outpostResolvers: (json['OutpostResolvers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutpostResolver.fromJson(e as Map)) .toList(), ); @@ -6448,7 +6446,7 @@ class ListResolverConfigsResponse { return ListResolverConfigsResponse( nextToken: json['NextToken'] as String?, resolverConfigs: (json['ResolverConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolverConfig.fromJson(e as Map)) .toList(), ); @@ -6485,7 +6483,7 @@ class ListResolverDnssecConfigsResponse { return ListResolverDnssecConfigsResponse( nextToken: json['NextToken'] as String?, resolverDnssecConfigs: (json['ResolverDnssecConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolverDnssecConfig.fromJson(e as Map)) .toList(), ); @@ -6518,7 +6516,7 @@ class ListResolverEndpointIpAddressesResponse { Map json) { return ListResolverEndpointIpAddressesResponse( ipAddresses: (json['IpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpAddressResponse.fromJson(e as Map)) .toList(), maxResults: json['MaxResults'] as int?, @@ -6552,7 +6550,7 @@ class ListResolverEndpointsResponse { maxResults: json['MaxResults'] as int?, nextToken: json['NextToken'] as String?, resolverEndpoints: (json['ResolverEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolverEndpoint.fromJson(e as Map)) .toList(), ); @@ -6599,7 +6597,7 @@ class ListResolverQueryLogConfigAssociationsResponse { nextToken: json['NextToken'] as String?, resolverQueryLogConfigAssociations: (json['ResolverQueryLogConfigAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolverQueryLogConfigAssociation.fromJson( e as Map)) .toList(), @@ -6647,7 +6645,7 @@ class ListResolverQueryLogConfigsResponse { return ListResolverQueryLogConfigsResponse( nextToken: json['NextToken'] as String?, resolverQueryLogConfigs: (json['ResolverQueryLogConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ResolverQueryLogConfig.fromJson(e as Map)) .toList(), @@ -6684,7 +6682,7 @@ class ListResolverRuleAssociationsResponse { maxResults: json['MaxResults'] as int?, nextToken: json['NextToken'] as String?, resolverRuleAssociations: (json['ResolverRuleAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolverRuleAssociation.fromJson(e as Map)) .toList(), @@ -6717,7 +6715,7 @@ class ListResolverRulesResponse { maxResults: json['MaxResults'] as int?, nextToken: json['NextToken'] as String?, resolverRules: (json['ResolverRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResolverRule.fromJson(e as Map)) .toList(), ); @@ -6744,7 +6742,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7269,13 +7267,13 @@ class ResolverEndpoint { outpostArn: json['OutpostArn'] as String?, preferredInstanceType: json['PreferredInstanceType'] as String?, protocols: (json['Protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Protocol.fromString((e as String))) .toList(), resolverEndpointType: (json['ResolverEndpointType'] as String?) ?.let(ResolverEndpointType.fromString), securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: @@ -7709,7 +7707,7 @@ class ResolverRule { status: (json['Status'] as String?)?.let(ResolverRuleStatus.fromString), statusMessage: json['StatusMessage'] as String?, targetIps: (json['TargetIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetAddress.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_route53resolver_api/pubspec.yaml b/generated/aws_route53resolver_api/pubspec.yaml index 88a34fb6a..fdaf18876 100644 --- a/generated/aws_route53resolver_api/pubspec.yaml +++ b/generated/aws_route53resolver_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_route5 protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_s3_api/pubspec.yaml b/generated/aws_s3_api/pubspec.yaml index 9aa1717ea..948f1f434 100644 --- a/generated/aws_s3_api/pubspec.yaml +++ b/generated/aws_s3_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_s3_api protocol: rest-xml environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_s3control_api/pubspec.yaml b/generated/aws_s3control_api/pubspec.yaml index c4fa22b54..c70034c47 100644 --- a/generated/aws_s3control_api/pubspec.yaml +++ b/generated/aws_s3control_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_s3cont protocol: rest-xml environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_sagemaker_a2i_runtime_api/lib/sagemaker-a2i-runtime-2019-11-07.dart b/generated/aws_sagemaker_a2i_runtime_api/lib/sagemaker-a2i-runtime-2019-11-07.dart index 00a281a10..701f3f26b 100644 --- a/generated/aws_sagemaker_a2i_runtime_api/lib/sagemaker-a2i-runtime-2019-11-07.dart +++ b/generated/aws_sagemaker_a2i_runtime_api/lib/sagemaker-a2i-runtime-2019-11-07.dart @@ -482,7 +482,7 @@ class ListHumanLoopsResponse { factory ListHumanLoopsResponse.fromJson(Map json) { return ListHumanLoopsResponse( humanLoopSummaries: (json['HumanLoopSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HumanLoopSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, diff --git a/generated/aws_sagemaker_a2i_runtime_api/pubspec.yaml b/generated/aws_sagemaker_a2i_runtime_api/pubspec.yaml index 91fc6b64f..c83491682 100644 --- a/generated/aws_sagemaker_a2i_runtime_api/pubspec.yaml +++ b/generated/aws_sagemaker_a2i_runtime_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_sagema protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_sagemaker_api/lib/sagemaker-2017-07-24.dart b/generated/aws_sagemaker_api/lib/sagemaker-2017-07-24.dart index 1a5176f46..278a8ffd9 100644 --- a/generated/aws_sagemaker_api/lib/sagemaker-2017-07-24.dart +++ b/generated/aws_sagemaker_api/lib/sagemaker-2017-07-24.dart @@ -18874,7 +18874,7 @@ class AddTagsOutput { factory AddTagsOutput.fromJson(Map json) { return AddTagsOutput( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -18926,28 +18926,28 @@ class AdditionalInferenceSpecificationDefinition { Map json) { return AdditionalInferenceSpecificationDefinition( containers: (json['Containers'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelPackageContainerDefinition.fromJson( e as Map)) .toList(), name: json['Name'] as String, description: json['Description'] as String?, supportedContentTypes: (json['SupportedContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedRealtimeInferenceInstanceTypes: (json[ 'SupportedRealtimeInferenceInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantInstanceType.fromString((e as String))) .toList(), supportedResponseMIMETypes: (json['SupportedResponseMIMETypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedTransformInstanceTypes: (json['SupportedTransformInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransformInstanceType.fromString((e as String))) .toList(), ); @@ -19239,17 +19239,17 @@ class AlgorithmSpecification { TrainingInputMode.fromString((json['TrainingInputMode'] as String)), algorithmName: json['AlgorithmName'] as String?, containerArguments: (json['ContainerArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEntrypoint: (json['ContainerEntrypoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), enableSageMakerMetricsTimeSeries: json['EnableSageMakerMetricsTimeSeries'] as bool?, metricDefinitions: (json['MetricDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDefinition.fromJson(e as Map)) .toList(), trainingImage: json['TrainingImage'] as String?, @@ -19320,11 +19320,11 @@ class AlgorithmStatusDetails { factory AlgorithmStatusDetails.fromJson(Map json) { return AlgorithmStatusDetails( imageScanStatuses: (json['ImageScanStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlgorithmStatusItem.fromJson(e as Map)) .toList(), validationStatuses: (json['ValidationStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlgorithmStatusItem.fromJson(e as Map)) .toList(), ); @@ -19463,7 +19463,7 @@ class AlgorithmValidationSpecification { factory AlgorithmValidationSpecification.fromJson(Map json) { return AlgorithmValidationSpecification( validationProfiles: (json['ValidationProfiles'] as List) - .whereNotNull() + .nonNulls .map((e) => AlgorithmValidationProfile.fromJson(e as Map)) .toList(), @@ -20812,11 +20812,11 @@ class AppSpecification { return AppSpecification( imageUri: json['ImageUri'] as String, containerArguments: (json['ContainerArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEntrypoint: (json['ContainerEntrypoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -20890,7 +20890,7 @@ class ArtifactSource { return ArtifactSource( sourceUri: json['SourceUri'] as String, sourceTypes: (json['SourceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ArtifactSourceType.fromJson(e as Map)) .toList(), ); @@ -21203,7 +21203,7 @@ class AsyncInferenceNotificationConfig { return AsyncInferenceNotificationConfig( errorTopic: json['ErrorTopic'] as String?, includeInferenceResponseIn: (json['IncludeInferenceResponseIn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AsyncNotificationTopicTypes.fromString((e as String))) .toList(), successTopic: json['SuccessTopic'] as String?, @@ -21534,7 +21534,7 @@ class AutoMLAlgorithmConfig { factory AutoMLAlgorithmConfig.fromJson(Map json) { return AutoMLAlgorithmConfig( autoMLAlgorithms: (json['AutoMLAlgorithms'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLAlgorithm.fromString((e as String))) .toList(), ); @@ -21611,7 +21611,7 @@ class AutoMLCandidate { candidateStatus: CandidateStatus.fromString((json['CandidateStatus'] as String)), candidateSteps: (json['CandidateSteps'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLCandidateStep.fromJson(e as Map)) .toList(), creationTime: @@ -21636,12 +21636,12 @@ class AutoMLCandidate { (k, e) => MapEntry( AutoMLProcessingUnit.fromString(k), (e as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLContainerDefinition.fromJson( e as Map)) .toList())), inferenceContainers: (json['InferenceContainers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoMLContainerDefinition.fromJson(e as Map)) .toList(), @@ -21732,7 +21732,7 @@ class AutoMLCandidateGenerationConfig { factory AutoMLCandidateGenerationConfig.fromJson(Map json) { return AutoMLCandidateGenerationConfig( algorithmsConfig: (json['AlgorithmsConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoMLAlgorithmConfig.fromJson(e as Map)) .toList(), featureSpecificationS3Uri: json['FeatureSpecificationS3Uri'] as String?, @@ -22507,7 +22507,7 @@ class AutoMLJobSummary { endTime: timeStampFromJson(json['EndTime']), failureReason: json['FailureReason'] as String?, partialFailureReasons: (json['PartialFailureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoMLPartialFailureReason.fromJson(e as Map)) .toList(), @@ -23043,7 +23043,7 @@ class AutoRollbackConfig { factory AutoRollbackConfig.fromJson(Map json) { return AutoRollbackConfig( alarms: (json['Alarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alarm.fromJson(e as Map)) .toList(), ); @@ -23635,7 +23635,7 @@ class CallbackStepMetadata { return CallbackStepMetadata( callbackToken: json['CallbackToken'] as String?, outputParameters: (json['OutputParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputParameter.fromJson(e as Map)) .toList(), sqsQueueUrl: json['SqsQueueUrl'] as String?, @@ -23757,7 +23757,7 @@ class CandidateGenerationConfig { factory CandidateGenerationConfig.fromJson(Map json) { return CandidateGenerationConfig( algorithmsConfig: (json['AlgorithmsConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoMLAlgorithmConfig.fromJson(e as Map)) .toList(), ); @@ -23791,7 +23791,7 @@ class CandidateProperties { json['CandidateArtifactLocations'] as Map) : null, candidateMetrics: (json['CandidateMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDatum.fromJson(e as Map)) .toList(), ); @@ -23893,7 +23893,7 @@ class CanvasAppSettings { : null, identityProviderOAuthSettings: (json['IdentityProviderOAuthSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityProviderOAuthSetting.fromJson(e as Map)) .toList(), @@ -24026,11 +24026,11 @@ class CaptureContentTypeHeader { factory CaptureContentTypeHeader.fromJson(Map json) { return CaptureContentTypeHeader( csvContentTypes: (json['CsvContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), jsonContentTypes: (json['JsonContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -24115,10 +24115,7 @@ class CategoricalParameter { factory CategoricalParameter.fromJson(Map json) { return CategoricalParameter( name: json['Name'] as String, - value: (json['Value'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + value: (json['Value'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -24148,10 +24145,8 @@ class CategoricalParameterRange { factory CategoricalParameterRange.fromJson(Map json) { return CategoricalParameterRange( name: json['Name'] as String, - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -24177,10 +24172,8 @@ class CategoricalParameterRangeSpecification { factory CategoricalParameterRangeSpecification.fromJson( Map json) { return CategoricalParameterRangeSpecification( - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -24343,17 +24336,17 @@ class ChannelSpecification { return ChannelSpecification( name: json['Name'] as String, supportedContentTypes: (json['SupportedContentTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), supportedInputModes: (json['SupportedInputModes'] as List) - .whereNotNull() + .nonNulls .map((e) => TrainingInputMode.fromString((e as String))) .toList(), description: json['Description'] as String?, isRequired: json['IsRequired'] as bool?, supportedCompressionTypes: (json['SupportedCompressionTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CompressionType.fromString((e as String))) .toList(), ); @@ -24662,17 +24655,17 @@ class ClarifyInferenceConfig { return ClarifyInferenceConfig( contentTemplate: json['ContentTemplate'] as String?, featureHeaders: (json['FeatureHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClarifyFeatureType.fromString((e as String))) .toList(), featuresAttribute: json['FeaturesAttribute'] as String?, labelAttribute: json['LabelAttribute'] as String?, labelHeaders: (json['LabelHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), labelIndex: json['LabelIndex'] as int?, @@ -25499,7 +25492,7 @@ class CodeEditorAppSettings { factory CodeEditorAppSettings.fromJson(Map json) { return CodeEditorAppSettings( customImages: (json['CustomImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomImage.fromJson(e as Map)) .toList(), defaultResourceSpec: json['DefaultResourceSpec'] != null @@ -25507,7 +25500,7 @@ class CodeEditorAppSettings { json['DefaultResourceSpec'] as Map) : null, lifecycleConfigArns: (json['LifecycleConfigArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -25966,11 +25959,11 @@ class ContainerConfig { factory ContainerConfig.fromJson(Map json) { return ContainerConfig( containerArguments: (json['ContainerArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEntrypoint: (json['ContainerEntrypoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEnvironmentVariables: @@ -27454,7 +27447,7 @@ class DataCaptureConfig { factory DataCaptureConfig.fromJson(Map json) { return DataCaptureConfig( captureOptions: (json['CaptureOptions'] as List) - .whereNotNull() + .nonNulls .map((e) => CaptureOption.fromJson(e as Map)) .toList(), destinationS3Uri: json['DestinationS3Uri'] as String, @@ -27701,11 +27694,11 @@ class DataQualityAppSpecification { return DataQualityAppSpecification( imageUri: json['ImageUri'] as String, containerArguments: (json['ContainerArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEntrypoint: (json['ContainerEntrypoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), environment: (json['Environment'] as Map?) @@ -27974,7 +27967,7 @@ class DebugHookConfig { return DebugHookConfig( s3OutputPath: json['S3OutputPath'] as String, collectionConfigurations: (json['CollectionConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CollectionConfiguration.fromJson(e as Map)) .toList(), @@ -28174,7 +28167,7 @@ class DefaultSpaceSettings { factory DefaultSpaceSettings.fromJson(Map json) { return DefaultSpaceSettings( customFileSystemConfigs: (json['CustomFileSystemConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CustomFileSystemConfig.fromJson(e as Map)) .toList(), @@ -28196,7 +28189,7 @@ class DefaultSpaceSettings { json['KernelGatewayAppSettings'] as Map) : null, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), spaceStorageSettings: json['SpaceStorageSettings'] != null @@ -28605,7 +28598,7 @@ class DeploymentRecommendation { (json['RecommendationStatus'] as String)), realTimeInferenceRecommendations: (json['RealTimeInferenceRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RealTimeInferenceRecommendation.fromJson( e as Map)) .toList(), @@ -29168,7 +29161,7 @@ class DescribeAutoMLJobResponse { creationTime: nonNullableTimeStampFromJson(json['CreationTime'] as Object), inputDataConfig: (json['InputDataConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLChannel.fromJson(e as Map)) .toList(), lastModifiedTime: @@ -29205,7 +29198,7 @@ class DescribeAutoMLJobResponse { json['ModelDeployResult'] as Map) : null, partialFailureReasons: (json['PartialFailureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoMLPartialFailureReason.fromJson(e as Map)) .toList(), @@ -29321,7 +29314,7 @@ class DescribeAutoMLJobV2Response { return DescribeAutoMLJobV2Response( autoMLJobArn: json['AutoMLJobArn'] as String, autoMLJobInputDataConfig: (json['AutoMLJobInputDataConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLJobChannel.fromJson(e as Map)) .toList(), autoMLJobName: json['AutoMLJobName'] as String, @@ -29370,7 +29363,7 @@ class DescribeAutoMLJobV2Response { json['ModelDeployResult'] as Map) : null, partialFailureReasons: (json['PartialFailureReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoMLPartialFailureReason.fromJson(e as Map)) .toList(), @@ -29438,7 +29431,7 @@ class DescribeClusterResponse { clusterStatus: ClusterStatus.fromString((json['ClusterStatus'] as String)), instanceGroups: (json['InstanceGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => ClusterInstanceGroupDetails.fromJson(e as Map)) .toList(), @@ -29898,7 +29891,7 @@ class DescribeDeviceResponse { latestHeartbeat: timeStampFromJson(json['LatestHeartbeat']), maxModels: json['MaxModels'] as int?, models: (json['Models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EdgeModel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -30054,7 +30047,7 @@ class DescribeDomainResponse { json['SingleSignOnManagedApplicationInstanceId'] as String?, status: (json['Status'] as String?)?.let(DomainStatus.fromString), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), url: json['Url'] as String?, @@ -30119,12 +30112,12 @@ class DescribeEdgeDeploymentPlanResponse { edgeDeploymentPlanArn: json['EdgeDeploymentPlanArn'] as String, edgeDeploymentPlanName: json['EdgeDeploymentPlanName'] as String, modelConfigs: (json['ModelConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => EdgeDeploymentModelConfig.fromJson(e as Map)) .toList(), stages: (json['Stages'] as List) - .whereNotNull() + .nonNulls .map((e) => DeploymentStageStatusSummary.fromJson(e as Map)) .toList(), @@ -30298,7 +30291,7 @@ class DescribeEndpointConfigOutput { endpointConfigArn: json['EndpointConfigArn'] as String, endpointConfigName: json['EndpointConfigName'] as String, productionVariants: (json['ProductionVariants'] as List) - .whereNotNull() + .nonNulls .map((e) => ProductionVariant.fromJson(e as Map)) .toList(), asyncInferenceConfig: json['AsyncInferenceConfig'] != null @@ -30317,7 +30310,7 @@ class DescribeEndpointConfigOutput { : null, kmsKeyId: json['KmsKeyId'] as String?, shadowProductionVariants: (json['ShadowProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariant.fromJson(e as Map)) .toList(), vpcConfig: json['VpcConfig'] != null @@ -30490,12 +30483,12 @@ class DescribeEndpointOutput { json['PendingDeploymentSummary'] as Map) : null, productionVariants: (json['ProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantSummary.fromJson(e as Map)) .toList(), shadowProductionVariants: (json['ShadowProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantSummary.fromJson(e as Map)) .toList(), @@ -30691,7 +30684,7 @@ class DescribeFeatureGroupResponse { nonNullableTimeStampFromJson(json['CreationTime'] as Object), eventTimeFeatureName: json['EventTimeFeatureName'] as String, featureDefinitions: (json['FeatureDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => FeatureDefinition.fromJson(e as Map)) .toList(), featureGroupArn: json['FeatureGroupArn'] as String, @@ -30781,7 +30774,7 @@ class DescribeFeatureMetadataResponse { nonNullableTimeStampFromJson(json['LastModifiedTime'] as Object), description: json['Description'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureParameter.fromJson(e as Map)) .toList(), ); @@ -30952,14 +30945,14 @@ class DescribeHubContentResponse { hubName: json['HubName'] as String, failureReason: json['FailureReason'] as String?, hubContentDependencies: (json['HubContentDependencies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HubContentDependency.fromJson(e as Map)) .toList(), hubContentDescription: json['HubContentDescription'] as String?, hubContentDisplayName: json['HubContentDisplayName'] as String?, hubContentMarkdown: json['HubContentMarkdown'] as String?, hubContentSearchKeywords: (json['HubContentSearchKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -31023,7 +31016,7 @@ class DescribeHubResponse { hubDescription: json['HubDescription'] as String?, hubDisplayName: json['HubDisplayName'] as String?, hubSearchKeywords: (json['HubSearchKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), s3StorageConfig: json['S3StorageConfig'] != null @@ -31215,7 +31208,7 @@ class DescribeHyperParameterTuningJobResponse { json['TrainingJobDefinition'] as Map) : null, trainingJobDefinitions: (json['TrainingJobDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HyperParameterTrainingJobDefinition.fromJson( e as Map)) .toList(), @@ -31627,7 +31620,7 @@ class DescribeInferenceExperimentResponse { endpointMetadata: EndpointMetadata.fromJson( json['EndpointMetadata'] as Map), modelVariants: (json['ModelVariants'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelVariantConfigSummary.fromJson(e as Map)) .toList(), @@ -31738,12 +31731,12 @@ class DescribeInferenceRecommendationsJobResponse { status: RecommendationJobStatus.fromString((json['Status'] as String)), completionTime: timeStampFromJson(json['CompletionTime']), endpointPerformances: (json['EndpointPerformances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointPerformance.fromJson(e as Map)) .toList(), failureReason: json['FailureReason'] as String?, inferenceRecommendations: (json['InferenceRecommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceRecommendation.fromJson(e as Map)) .toList(), @@ -31922,7 +31915,7 @@ class DescribeLabelingJobResponse { json['StoppingConditions'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -32393,7 +32386,7 @@ class DescribeModelOutput { modelArn: json['ModelArn'] as String, modelName: json['ModelName'] as String, containers: (json['Containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerDefinition.fromJson(e as Map)) .toList(), deploymentRecommendation: json['DeploymentRecommendation'] != null @@ -32614,7 +32607,7 @@ class DescribeModelPackageOutput { json['ModelPackageStatusDetails'] as Map), additionalInferenceSpecifications: (json['AdditionalInferenceSpecifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalInferenceSpecificationDefinition.fromJson( e as Map)) .toList(), @@ -32882,12 +32875,12 @@ class DescribeNotebookInstanceLifecycleConfigOutput { notebookInstanceLifecycleConfigName: json['NotebookInstanceLifecycleConfigName'] as String?, onCreate: (json['OnCreate'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookInstanceLifecycleHook.fromJson(e as Map)) .toList(), onStart: (json['OnStart'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookInstanceLifecycleHook.fromJson(e as Map)) .toList(), @@ -33034,11 +33027,11 @@ class DescribeNotebookInstanceOutput { factory DescribeNotebookInstanceOutput.fromJson(Map json) { return DescribeNotebookInstanceOutput( acceleratorTypes: (json['AcceleratorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookInstanceAcceleratorType.fromString((e as String))) .toList(), additionalCodeRepositories: (json['AdditionalCodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -33067,7 +33060,7 @@ class DescribeNotebookInstanceOutput { roleArn: json['RoleArn'] as String?, rootAccess: (json['RootAccess'] as String?)?.let(RootAccess.fromString), securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetId: json['SubnetId'] as String?, @@ -33389,7 +33382,7 @@ class DescribeProcessingJobResponse { : null, processingEndTime: timeStampFromJson(json['ProcessingEndTime']), processingInputs: (json['ProcessingInputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProcessingInput.fromJson(e as Map)) .toList(), processingOutputConfig: json['ProcessingOutputConfig'] != null @@ -34007,13 +34000,13 @@ class DescribeTrainingJobResponse { json['DebugHookConfig'] as Map) : null, debugRuleConfigurations: (json['DebugRuleConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DebugRuleConfiguration.fromJson(e as Map)) .toList(), debugRuleEvaluationStatuses: (json['DebugRuleEvaluationStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DebugRuleEvaluationStatus.fromJson(e as Map)) .toList(), @@ -34029,7 +34022,7 @@ class DescribeTrainingJobResponse { : null, failureReason: json['FailureReason'] as String?, finalMetricDataList: (json['FinalMetricDataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricData.fromJson(e as Map)) .toList(), hyperParameters: (json['HyperParameters'] as Map?) @@ -34039,7 +34032,7 @@ class DescribeTrainingJobResponse { json['InfraCheckConfig'] as Map) : null, inputDataConfig: (json['InputDataConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), labelingJobArn: json['LabelingJobArn'] as String?, @@ -34053,13 +34046,13 @@ class DescribeTrainingJobResponse { json['ProfilerConfig'] as Map) : null, profilerRuleConfigurations: (json['ProfilerRuleConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfilerRuleConfiguration.fromJson(e as Map)) .toList(), profilerRuleEvaluationStatuses: (json['ProfilerRuleEvaluationStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProfilerRuleEvaluationStatus.fromJson(e as Map)) .toList(), @@ -34075,7 +34068,7 @@ class DescribeTrainingJobResponse { : null, roleArn: json['RoleArn'] as String?, secondaryStatusTransitions: (json['SecondaryStatusTransitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecondaryStatusTransition.fromJson(e as Map)) .toList(), @@ -34361,7 +34354,7 @@ class DescribeTrialComponentResponse { json['MetadataProperties'] as Map) : null, metrics: (json['Metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrialComponentMetricSummary.fromJson(e as Map)) .toList(), @@ -34378,7 +34371,7 @@ class DescribeTrialComponentResponse { json['Source'] as Map) : null, sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrialComponentSource.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -34810,7 +34803,7 @@ class DeviceSelectionConfig { DeviceSubsetType.fromString((json['DeviceSubsetType'] as String)), deviceNameContains: json['DeviceNameContains'] as String?, deviceNames: (json['DeviceNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), percentage: json['Percentage'] as int?, @@ -34920,7 +34913,7 @@ class DeviceSummary { iotThingName: json['IotThingName'] as String?, latestHeartbeat: timeStampFromJson(json['LatestHeartbeat']), models: (json['Models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EdgeModelSummary.fromJson(e as Map)) .toList(), registrationTime: timeStampFromJson(json['RegistrationTime']), @@ -35038,7 +35031,7 @@ class DockerSettings { enableDockerAccess: (json['EnableDockerAccess'] as String?) ?.let(FeatureStatus.fromString), vpcOnlyTrustedAccounts: (json['VpcOnlyTrustedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -35145,7 +35138,7 @@ class DomainSettings { json['RStudioServerProDomainSettings'] as Map) : null, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -35481,7 +35474,7 @@ class DynamicScalingConfiguration { scaleInCooldown: json['ScaleInCooldown'] as int?, scaleOutCooldown: json['ScaleOutCooldown'] as int?, scalingPolicies: (json['ScalingPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScalingPolicy.fromJson(e as Map)) .toList(), ); @@ -36200,21 +36193,21 @@ class Endpoint { : null, failureReason: json['FailureReason'] as String?, monitoringSchedules: (json['MonitoringSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MonitoringSchedule.fromJson(e as Map)) .toList(), productionVariants: (json['ProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantSummary.fromJson(e as Map)) .toList(), shadowProductionVariants: (json['ShadowProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantSummary.fromJson(e as Map)) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -36722,7 +36715,7 @@ class EnvironmentParameterRanges { factory EnvironmentParameterRanges.fromJson(Map json) { return EnvironmentParameterRanges( categoricalParameterRanges: (json['CategoricalParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CategoricalParameter.fromJson(e as Map)) .toList(), ); @@ -36836,7 +36829,7 @@ class Experiment { ? ExperimentSource.fromJson(json['Source'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -37236,7 +37229,7 @@ class FeatureGroup { eventTimeFeatureName: json['EventTimeFeatureName'] as String?, failureReason: json['FailureReason'] as String?, featureDefinitions: (json['FeatureDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureDefinition.fromJson(e as Map)) .toList(), featureGroupArn: json['FeatureGroupArn'] as String?, @@ -37264,7 +37257,7 @@ class FeatureGroup { json['RecordIdentifierFeatureName'] as String?, roleArn: json['RoleArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -37417,7 +37410,7 @@ class FeatureMetadata { (json['FeatureType'] as String?)?.let(FeatureType.fromString), lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureParameter.fromJson(e as Map)) .toList(), ); @@ -38091,7 +38084,7 @@ class GetDeviceFleetReportResponse { deviceFleetArn: json['DeviceFleetArn'] as String, deviceFleetName: json['DeviceFleetName'] as String, agentVersions: (json['AgentVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AgentVersion.fromJson(e as Map)) .toList(), description: json['Description'] as String?, @@ -38099,7 +38092,7 @@ class GetDeviceFleetReportResponse { ? DeviceStats.fromJson(json['DeviceStats'] as Map) : null, modelStats: (json['ModelStats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EdgeModelStat.fromJson(e as Map)) .toList(), outputConfig: json['OutputConfig'] != null @@ -38236,7 +38229,7 @@ class GetSearchSuggestionsResponse { factory GetSearchSuggestionsResponse.fromJson(Map json) { return GetSearchSuggestionsResponse( propertyNameSuggestions: (json['PropertyNameSuggestions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => PropertyNameSuggestion.fromJson(e as Map)) .toList(), @@ -38421,7 +38414,7 @@ class HubContentInfo { hubContentDescription: json['HubContentDescription'] as String?, hubContentDisplayName: json['HubContentDisplayName'] as String?, hubContentSearchKeywords: (json['HubContentSearchKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -38526,7 +38519,7 @@ class HubInfo { hubDescription: json['HubDescription'] as String?, hubDisplayName: json['HubDisplayName'] as String?, hubSearchKeywords: (json['HubSearchKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -38732,7 +38725,7 @@ class HumanLoopConfig { taskAvailabilityLifetimeInSeconds: json['TaskAvailabilityLifetimeInSeconds'] as int?, taskKeywords: (json['TaskKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), taskTimeLimitInSeconds: json['TaskTimeLimitInSeconds'] as int?, @@ -39869,7 +39862,7 @@ class HumanTaskConfig { taskAvailabilityLifetimeInSeconds: json['TaskAvailabilityLifetimeInSeconds'] as int?, taskKeywords: (json['TaskKeywords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -39992,7 +39985,7 @@ class HyperParameterAlgorithmSpecification { TrainingInputMode.fromString((json['TrainingInputMode'] as String)), algorithmName: json['AlgorithmName'] as String?, metricDefinitions: (json['MetricDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDefinition.fromJson(e as Map)) .toList(), trainingImage: json['TrainingImage'] as String?, @@ -40265,7 +40258,7 @@ class HyperParameterTrainingJobDefinition { as Map) : null, inputDataConfig: (json['InputDataConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), resourceConfig: json['ResourceConfig'] != null @@ -40850,7 +40843,7 @@ class HyperParameterTuningJobSearchEntity { json['OverallBestTrainingJob'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trainingJobDefinition: json['TrainingJobDefinition'] != null @@ -40858,7 +40851,7 @@ class HyperParameterTuningJobSearchEntity { json['TrainingJobDefinition'] as Map) : null, trainingJobDefinitions: (json['TrainingJobDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HyperParameterTrainingJobDefinition.fromJson( e as Map)) .toList(), @@ -41114,7 +41107,7 @@ class HyperParameterTuningJobWarmStartConfig { return HyperParameterTuningJobWarmStartConfig( parentHyperParameterTuningJobs: (json['ParentHyperParameterTuningJobs'] as List) - .whereNotNull() + .nonNulls .map((e) => ParentHyperParameterTuningJob.fromJson(e as Map)) .toList(), @@ -41252,7 +41245,7 @@ class HyperParameterTuningResourceConfig { allocationStrategy: (json['AllocationStrategy'] as String?) ?.let(HyperParameterTuningAllocationStrategy.fromString), instanceConfigs: (json['InstanceConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HyperParameterTuningInstanceConfig.fromJson( e as Map)) .toList(), @@ -42628,26 +42621,26 @@ class InferenceSpecification { factory InferenceSpecification.fromJson(Map json) { return InferenceSpecification( containers: (json['Containers'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelPackageContainerDefinition.fromJson( e as Map)) .toList(), supportedContentTypes: (json['SupportedContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedRealtimeInferenceInstanceTypes: (json[ 'SupportedRealtimeInferenceInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantInstanceType.fromString((e as String))) .toList(), supportedResponseMIMETypes: (json['SupportedResponseMIMETypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedTransformInstanceTypes: (json['SupportedTransformInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TransformInstanceType.fromString((e as String))) .toList(), ); @@ -43486,11 +43479,11 @@ class JupyterLabAppSettings { factory JupyterLabAppSettings.fromJson(Map json) { return JupyterLabAppSettings( codeRepositories: (json['CodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeRepository.fromJson(e as Map)) .toList(), customImages: (json['CustomImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomImage.fromJson(e as Map)) .toList(), defaultResourceSpec: json['DefaultResourceSpec'] != null @@ -43498,7 +43491,7 @@ class JupyterLabAppSettings { json['DefaultResourceSpec'] as Map) : null, lifecycleConfigArns: (json['LifecycleConfigArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -43550,7 +43543,7 @@ class JupyterServerAppSettings { factory JupyterServerAppSettings.fromJson(Map json) { return JupyterServerAppSettings( codeRepositories: (json['CodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeRepository.fromJson(e as Map)) .toList(), defaultResourceSpec: json['DefaultResourceSpec'] != null @@ -43558,7 +43551,7 @@ class JupyterServerAppSettings { json['DefaultResourceSpec'] as Map) : null, lifecycleConfigArns: (json['LifecycleConfigArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -43636,7 +43629,7 @@ class KernelGatewayAppSettings { factory KernelGatewayAppSettings.fromJson(Map json) { return KernelGatewayAppSettings( customImages: (json['CustomImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomImage.fromJson(e as Map)) .toList(), defaultResourceSpec: json['DefaultResourceSpec'] != null @@ -43644,7 +43637,7 @@ class KernelGatewayAppSettings { json['DefaultResourceSpec'] as Map) : null, lifecycleConfigArns: (json['LifecycleConfigArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -43681,7 +43674,7 @@ class KernelGatewayImageConfig { factory KernelGatewayImageConfig.fromJson(Map json) { return KernelGatewayImageConfig( kernelSpecs: (json['KernelSpecs'] as List) - .whereNotNull() + .nonNulls .map((e) => KernelSpec.fromJson(e as Map)) .toList(), fileSystemConfig: json['FileSystemConfig'] != null @@ -43883,7 +43876,7 @@ class LabelingJobDataAttributes { factory LabelingJobDataAttributes.fromJson(Map json) { return LabelingJobDataAttributes( contentClassifiers: (json['ContentClassifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContentClassifier.fromString((e as String))) .toList(), ); @@ -44413,7 +44406,7 @@ class LambdaStepMetadata { return LambdaStepMetadata( arn: json['Arn'] as String?, outputParameters: (json['OutputParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OutputParameter.fromJson(e as Map)) .toList(), ); @@ -44525,7 +44518,7 @@ class ListActionsResponse { factory ListActionsResponse.fromJson(Map json) { return ListActionsResponse( actionSummaries: (json['ActionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActionSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44550,7 +44543,7 @@ class ListAlgorithmsOutput { factory ListAlgorithmsOutput.fromJson(Map json) { return ListAlgorithmsOutput( algorithmSummaryList: (json['AlgorithmSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => AlgorithmSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44575,7 +44568,7 @@ class ListAliasesResponse { nextToken: json['NextToken'] as String?, sageMakerImageVersionAliases: (json['SageMakerImageVersionAliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -44597,7 +44590,7 @@ class ListAppImageConfigsResponse { factory ListAppImageConfigsResponse.fromJson(Map json) { return ListAppImageConfigsResponse( appImageConfigs: (json['AppImageConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppImageConfigDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44621,7 +44614,7 @@ class ListAppsResponse { factory ListAppsResponse.fromJson(Map json) { return ListAppsResponse( apps: (json['Apps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44644,7 +44637,7 @@ class ListArtifactsResponse { factory ListArtifactsResponse.fromJson(Map json) { return ListArtifactsResponse( artifactSummaries: (json['ArtifactSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ArtifactSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44667,7 +44660,7 @@ class ListAssociationsResponse { factory ListAssociationsResponse.fromJson(Map json) { return ListAssociationsResponse( associationSummaries: (json['AssociationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociationSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44691,7 +44684,7 @@ class ListAutoMLJobsResponse { factory ListAutoMLJobsResponse.fromJson(Map json) { return ListAutoMLJobsResponse( autoMLJobSummaries: (json['AutoMLJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44716,7 +44709,7 @@ class ListCandidatesForAutoMLJobResponse { Map json) { return ListCandidatesForAutoMLJobResponse( candidates: (json['Candidates'] as List) - .whereNotNull() + .nonNulls .map((e) => AutoMLCandidate.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44740,7 +44733,7 @@ class ListClusterNodesResponse { factory ListClusterNodesResponse.fromJson(Map json) { return ListClusterNodesResponse( clusterNodeSummaries: (json['ClusterNodeSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ClusterNodeSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String, @@ -44765,7 +44758,7 @@ class ListClustersResponse { factory ListClustersResponse.fromJson(Map json) { return ListClustersResponse( clusterSummaries: (json['ClusterSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ClusterSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String, @@ -44811,7 +44804,7 @@ class ListCodeRepositoriesOutput { factory ListCodeRepositoriesOutput.fromJson(Map json) { return ListCodeRepositoriesOutput( codeRepositorySummaryList: (json['CodeRepositorySummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => CodeRepositorySummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44838,7 +44831,7 @@ class ListCompilationJobsResponse { factory ListCompilationJobsResponse.fromJson(Map json) { return ListCompilationJobsResponse( compilationJobSummaries: (json['CompilationJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => CompilationJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44877,7 +44870,7 @@ class ListContextsResponse { factory ListContextsResponse.fromJson(Map json) { return ListContextsResponse( contextSummaries: (json['ContextSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContextSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44904,7 +44897,7 @@ class ListDataQualityJobDefinitionsResponse { Map json) { return ListDataQualityJobDefinitionsResponse( jobDefinitionSummaries: (json['JobDefinitionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringJobDefinitionSummary.fromJson( e as Map)) .toList(), @@ -44929,7 +44922,7 @@ class ListDeviceFleetsResponse { factory ListDeviceFleetsResponse.fromJson(Map json) { return ListDeviceFleetsResponse( deviceFleetSummaries: (json['DeviceFleetSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => DeviceFleetSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44969,7 +44962,7 @@ class ListDevicesResponse { factory ListDevicesResponse.fromJson(Map json) { return ListDevicesResponse( deviceSummaries: (json['DeviceSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => DeviceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -44993,7 +44986,7 @@ class ListDomainsResponse { factory ListDomainsResponse.fromJson(Map json) { return ListDomainsResponse( domains: (json['Domains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45016,7 +45009,7 @@ class ListEdgeDeploymentPlansResponse { factory ListEdgeDeploymentPlansResponse.fromJson(Map json) { return ListEdgeDeploymentPlansResponse( edgeDeploymentPlanSummaries: (json['EdgeDeploymentPlanSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => EdgeDeploymentPlanSummary.fromJson(e as Map)) .toList(), @@ -45057,7 +45050,7 @@ class ListEdgePackagingJobsResponse { factory ListEdgePackagingJobsResponse.fromJson(Map json) { return ListEdgePackagingJobsResponse( edgePackagingJobSummaries: (json['EdgePackagingJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => EdgePackagingJobSummary.fromJson(e as Map)) .toList(), @@ -45100,7 +45093,7 @@ class ListEndpointConfigsOutput { factory ListEndpointConfigsOutput.fromJson(Map json) { return ListEndpointConfigsOutput( endpointConfigs: (json['EndpointConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => EndpointConfigSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45124,7 +45117,7 @@ class ListEndpointsOutput { factory ListEndpointsOutput.fromJson(Map json) { return ListEndpointsOutput( endpoints: (json['Endpoints'] as List) - .whereNotNull() + .nonNulls .map((e) => EndpointSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45147,7 +45140,7 @@ class ListExperimentsResponse { factory ListExperimentsResponse.fromJson(Map json) { return ListExperimentsResponse( experimentSummaries: (json['ExperimentSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExperimentSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45170,7 +45163,7 @@ class ListFeatureGroupsResponse { factory ListFeatureGroupsResponse.fromJson(Map json) { return ListFeatureGroupsResponse( featureGroupSummaries: (json['FeatureGroupSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => FeatureGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45193,7 +45186,7 @@ class ListFlowDefinitionsResponse { factory ListFlowDefinitionsResponse.fromJson(Map json) { return ListFlowDefinitionsResponse( flowDefinitionSummaries: (json['FlowDefinitionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => FlowDefinitionSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45217,7 +45210,7 @@ class ListHubContentVersionsResponse { factory ListHubContentVersionsResponse.fromJson(Map json) { return ListHubContentVersionsResponse( hubContentSummaries: (json['HubContentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HubContentInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45241,7 +45234,7 @@ class ListHubContentsResponse { factory ListHubContentsResponse.fromJson(Map json) { return ListHubContentsResponse( hubContentSummaries: (json['HubContentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HubContentInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45265,7 +45258,7 @@ class ListHubsResponse { factory ListHubsResponse.fromJson(Map json) { return ListHubsResponse( hubSummaries: (json['HubSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HubInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45288,7 +45281,7 @@ class ListHumanTaskUisResponse { factory ListHumanTaskUisResponse.fromJson(Map json) { return ListHumanTaskUisResponse( humanTaskUiSummaries: (json['HumanTaskUiSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HumanTaskUiSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45318,7 +45311,7 @@ class ListHyperParameterTuningJobsResponse { return ListHyperParameterTuningJobsResponse( hyperParameterTuningJobSummaries: (json['HyperParameterTuningJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HyperParameterTuningJobSummary.fromJson( e as Map)) .toList(), @@ -45342,7 +45335,7 @@ class ListImageVersionsResponse { factory ListImageVersionsResponse.fromJson(Map json) { return ListImageVersionsResponse( imageVersions: (json['ImageVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageVersion.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45365,7 +45358,7 @@ class ListImagesResponse { factory ListImagesResponse.fromJson(Map json) { return ListImagesResponse( images: (json['Images'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Image.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45390,7 +45383,7 @@ class ListInferenceComponentsOutput { factory ListInferenceComponentsOutput.fromJson(Map json) { return ListInferenceComponentsOutput( inferenceComponents: (json['InferenceComponents'] as List) - .whereNotNull() + .nonNulls .map((e) => InferenceComponentSummary.fromJson(e as Map)) .toList(), @@ -45414,7 +45407,7 @@ class ListInferenceExperimentsResponse { factory ListInferenceExperimentsResponse.fromJson(Map json) { return ListInferenceExperimentsResponse( inferenceExperiments: (json['InferenceExperiments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceExperimentSummary.fromJson(e as Map)) .toList(), @@ -45441,7 +45434,7 @@ class ListInferenceRecommendationsJobStepsResponse { return ListInferenceRecommendationsJobStepsResponse( nextToken: json['NextToken'] as String?, steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InferenceRecommendationsJobStep.fromJson( e as Map)) .toList(), @@ -45467,7 +45460,7 @@ class ListInferenceRecommendationsJobsResponse { return ListInferenceRecommendationsJobsResponse( inferenceRecommendationsJobs: (json['InferenceRecommendationsJobs'] as List) - .whereNotNull() + .nonNulls .map((e) => InferenceRecommendationsJob.fromJson(e as Map)) .toList(), @@ -45510,7 +45503,7 @@ class ListLabelingJobsForWorkteamResponse { Map json) { return ListLabelingJobsForWorkteamResponse( labelingJobSummaryList: (json['LabelingJobSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => LabelingJobForWorkteamSummary.fromJson(e as Map)) .toList(), @@ -45550,7 +45543,7 @@ class ListLabelingJobsResponse { factory ListLabelingJobsResponse.fromJson(Map json) { return ListLabelingJobsResponse( labelingJobSummaryList: (json['LabelingJobSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelingJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45574,7 +45567,7 @@ class ListLineageGroupsResponse { factory ListLineageGroupsResponse.fromJson(Map json) { return ListLineageGroupsResponse( lineageGroupSummaries: (json['LineageGroupSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineageGroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45599,7 +45592,7 @@ class ListModelBiasJobDefinitionsResponse { Map json) { return ListModelBiasJobDefinitionsResponse( jobDefinitionSummaries: (json['JobDefinitionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringJobDefinitionSummary.fromJson( e as Map)) .toList(), @@ -45624,7 +45617,7 @@ class ListModelCardExportJobsResponse { factory ListModelCardExportJobsResponse.fromJson(Map json) { return ListModelCardExportJobsResponse( modelCardExportJobSummaries: (json['ModelCardExportJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelCardExportJobSummary.fromJson(e as Map)) .toList(), @@ -45649,7 +45642,7 @@ class ListModelCardVersionsResponse { factory ListModelCardVersionsResponse.fromJson(Map json) { return ListModelCardVersionsResponse( modelCardVersionSummaryList: (json['ModelCardVersionSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelCardVersionSummary.fromJson(e as Map)) .toList(), @@ -45674,7 +45667,7 @@ class ListModelCardsResponse { factory ListModelCardsResponse.fromJson(Map json) { return ListModelCardsResponse( modelCardSummaries: (json['ModelCardSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelCardSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45700,7 +45693,7 @@ class ListModelExplainabilityJobDefinitionsResponse { Map json) { return ListModelExplainabilityJobDefinitionsResponse( jobDefinitionSummaries: (json['JobDefinitionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringJobDefinitionSummary.fromJson( e as Map)) .toList(), @@ -45724,7 +45717,7 @@ class ListModelMetadataResponse { factory ListModelMetadataResponse.fromJson(Map json) { return ListModelMetadataResponse( modelMetadataSummaries: (json['ModelMetadataSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelMetadataSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45749,7 +45742,7 @@ class ListModelPackageGroupsOutput { return ListModelPackageGroupsOutput( modelPackageGroupSummaryList: (json['ModelPackageGroupSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelPackageGroupSummary.fromJson(e as Map)) .toList(), @@ -45775,7 +45768,7 @@ class ListModelPackagesOutput { factory ListModelPackagesOutput.fromJson(Map json) { return ListModelPackagesOutput( modelPackageSummaryList: (json['ModelPackageSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelPackageSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45801,7 +45794,7 @@ class ListModelQualityJobDefinitionsResponse { Map json) { return ListModelQualityJobDefinitionsResponse( jobDefinitionSummaries: (json['JobDefinitionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringJobDefinitionSummary.fromJson( e as Map)) .toList(), @@ -45826,7 +45819,7 @@ class ListModelsOutput { factory ListModelsOutput.fromJson(Map json) { return ListModelsOutput( models: (json['Models'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -45851,7 +45844,7 @@ class ListMonitoringAlertHistoryResponse { Map json) { return ListMonitoringAlertHistoryResponse( monitoringAlertHistory: (json['MonitoringAlertHistory'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MonitoringAlertHistorySummary.fromJson(e as Map)) .toList(), @@ -45876,7 +45869,7 @@ class ListMonitoringAlertsResponse { factory ListMonitoringAlertsResponse.fromJson(Map json) { return ListMonitoringAlertsResponse( monitoringAlertSummaries: (json['MonitoringAlertSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MonitoringAlertSummary.fromJson(e as Map)) .toList(), @@ -45902,7 +45895,7 @@ class ListMonitoringExecutionsResponse { return ListMonitoringExecutionsResponse( monitoringExecutionSummaries: (json['MonitoringExecutionSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringExecutionSummary.fromJson(e as Map)) .toList(), @@ -45927,7 +45920,7 @@ class ListMonitoringSchedulesResponse { factory ListMonitoringSchedulesResponse.fromJson(Map json) { return ListMonitoringSchedulesResponse( monitoringScheduleSummaries: (json['MonitoringScheduleSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringScheduleSummary.fromJson(e as Map)) .toList(), @@ -45957,7 +45950,7 @@ class ListNotebookInstanceLifecycleConfigsOutput { nextToken: json['NextToken'] as String?, notebookInstanceLifecycleConfigs: (json['NotebookInstanceLifecycleConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookInstanceLifecycleConfigSummary.fromJson( e as Map)) .toList(), @@ -45984,7 +45977,7 @@ class ListNotebookInstancesOutput { return ListNotebookInstancesOutput( nextToken: json['NextToken'] as String?, notebookInstances: (json['NotebookInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotebookInstanceSummary.fromJson(e as Map)) .toList(), @@ -46015,7 +46008,7 @@ class ListPipelineExecutionStepsResponse { return ListPipelineExecutionStepsResponse( nextToken: json['NextToken'] as String?, pipelineExecutionSteps: (json['PipelineExecutionSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineExecutionStep.fromJson(e as Map)) .toList(), ); @@ -46043,7 +46036,7 @@ class ListPipelineExecutionsResponse { return ListPipelineExecutionsResponse( nextToken: json['NextToken'] as String?, pipelineExecutionSummaries: (json['PipelineExecutionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineExecutionSummary.fromJson(e as Map)) .toList(), @@ -46071,7 +46064,7 @@ class ListPipelineParametersForExecutionResponse { return ListPipelineParametersForExecutionResponse( nextToken: json['NextToken'] as String?, pipelineParameters: (json['PipelineParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), ); @@ -46100,7 +46093,7 @@ class ListPipelinesResponse { return ListPipelinesResponse( nextToken: json['NextToken'] as String?, pipelineSummaries: (json['PipelineSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PipelineSummary.fromJson(e as Map)) .toList(), ); @@ -46124,7 +46117,7 @@ class ListProcessingJobsResponse { factory ListProcessingJobsResponse.fromJson(Map json) { return ListProcessingJobsResponse( processingJobSummaries: (json['ProcessingJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => ProcessingJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46149,7 +46142,7 @@ class ListProjectsOutput { factory ListProjectsOutput.fromJson(Map json) { return ListProjectsOutput( projectSummaryList: (json['ProjectSummaryList'] as List) - .whereNotNull() + .nonNulls .map((e) => ProjectSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46173,7 +46166,7 @@ class ListResourceCatalogsResponse { return ListResourceCatalogsResponse( nextToken: json['NextToken'] as String?, resourceCatalogs: (json['ResourceCatalogs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceCatalog.fromJson(e as Map)) .toList(), ); @@ -46197,7 +46190,7 @@ class ListSpacesResponse { return ListSpacesResponse( nextToken: json['NextToken'] as String?, spaces: (json['Spaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SpaceDetails.fromJson(e as Map)) .toList(), ); @@ -46219,7 +46212,7 @@ class ListStageDevicesResponse { factory ListStageDevicesResponse.fromJson(Map json) { return ListStageDevicesResponse( deviceDeploymentSummaries: (json['DeviceDeploymentSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => DeviceDeploymentSummary.fromJson(e as Map)) .toList(), @@ -46246,7 +46239,7 @@ class ListStudioLifecycleConfigsResponse { return ListStudioLifecycleConfigsResponse( nextToken: json['NextToken'] as String?, studioLifecycleConfigs: (json['StudioLifecycleConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StudioLifecycleConfigDetails.fromJson(e as Map)) .toList(), @@ -46270,7 +46263,7 @@ class ListSubscribedWorkteamsResponse { factory ListSubscribedWorkteamsResponse.fromJson(Map json) { return ListSubscribedWorkteamsResponse( subscribedWorkteams: (json['SubscribedWorkteams'] as List) - .whereNotNull() + .nonNulls .map((e) => SubscribedWorkteam.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46295,7 +46288,7 @@ class ListTagsOutput { return ListTagsOutput( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -46324,7 +46317,7 @@ class ListTrainingJobsForHyperParameterTuningJobResponse { Map json) { return ListTrainingJobsForHyperParameterTuningJobResponse( trainingJobSummaries: (json['TrainingJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => HyperParameterTrainingJobSummary.fromJson( e as Map)) .toList(), @@ -46350,7 +46343,7 @@ class ListTrainingJobsResponse { factory ListTrainingJobsResponse.fromJson(Map json) { return ListTrainingJobsResponse( trainingJobSummaries: (json['TrainingJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => TrainingJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46374,7 +46367,7 @@ class ListTransformJobsResponse { factory ListTransformJobsResponse.fromJson(Map json) { return ListTransformJobsResponse( transformJobSummaries: (json['TransformJobSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => TransformJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46398,7 +46391,7 @@ class ListTrialComponentsResponse { return ListTrialComponentsResponse( nextToken: json['NextToken'] as String?, trialComponentSummaries: (json['TrialComponentSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrialComponentSummary.fromJson(e as Map)) .toList(), ); @@ -46421,7 +46414,7 @@ class ListTrialsResponse { return ListTrialsResponse( nextToken: json['NextToken'] as String?, trialSummaries: (json['TrialSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrialSummary.fromJson(e as Map)) .toList(), ); @@ -46445,7 +46438,7 @@ class ListUserProfilesResponse { return ListUserProfilesResponse( nextToken: json['NextToken'] as String?, userProfiles: (json['UserProfiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserProfileDetails.fromJson(e as Map)) .toList(), ); @@ -46467,7 +46460,7 @@ class ListWorkforcesResponse { factory ListWorkforcesResponse.fromJson(Map json) { return ListWorkforcesResponse( workforces: (json['Workforces'] as List) - .whereNotNull() + .nonNulls .map((e) => Workforce.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46506,7 +46499,7 @@ class ListWorkteamsResponse { factory ListWorkteamsResponse.fromJson(Map json) { return ListWorkteamsResponse( workteams: (json['Workteams'] as List) - .whereNotNull() + .nonNulls .map((e) => Workteam.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -46871,7 +46864,7 @@ class Model { factory Model.fromJson(Map json) { return Model( containers: (json['Containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContainerDefinition.fromJson(e as Map)) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -46892,7 +46885,7 @@ class Model { json['PrimaryContainer'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vpcConfig: json['VpcConfig'] != null @@ -47226,7 +47219,7 @@ class ModelCard { json['SecurityConfig'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -47663,7 +47656,7 @@ class ModelConfiguration { return ModelConfiguration( compilationJobName: json['CompilationJobName'] as String?, environmentParameters: (json['EnvironmentParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EnvironmentParameter.fromJson(e as Map)) .toList(), inferenceSpecificationName: json['InferenceSpecificationName'] as String?, @@ -47754,7 +47747,7 @@ class ModelDashboardModel { factory ModelDashboardModel.fromJson(Map json) { return ModelDashboardModel( endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ModelDashboardEndpoint.fromJson(e as Map)) .toList(), @@ -47770,7 +47763,7 @@ class ModelDashboardModel { json['ModelCard'] as Map) : null, monitoringSchedules: (json['MonitoringSchedules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelDashboardMonitoringSchedule.fromJson( e as Map)) .toList(), @@ -47853,7 +47846,7 @@ class ModelDashboardModelCard { json['SecurityConfig'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -47925,7 +47918,7 @@ class ModelDashboardMonitoringSchedule { json['LastMonitoringExecutionSummary'] as Map) : null, monitoringAlertSummaries: (json['MonitoringAlertSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MonitoringAlertSummary.fromJson(e as Map)) .toList(), @@ -48630,7 +48623,7 @@ class ModelPackage { return ModelPackage( additionalInferenceSpecifications: (json['AdditionalInferenceSpecifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdditionalInferenceSpecificationDefinition.fromJson( e as Map)) .toList(), @@ -48693,7 +48686,7 @@ class ModelPackage { : null, sourceUri: json['SourceUri'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), task: json['Task'] as String?, @@ -48907,7 +48900,7 @@ class ModelPackageGroup { modelPackageGroupStatus: (json['ModelPackageGroupStatus'] as String?) ?.let(ModelPackageGroupStatus.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -49121,12 +49114,12 @@ class ModelPackageStatusDetails { factory ModelPackageStatusDetails.fromJson(Map json) { return ModelPackageStatusDetails( validationStatuses: (json['ValidationStatuses'] as List) - .whereNotNull() + .nonNulls .map( (e) => ModelPackageStatusItem.fromJson(e as Map)) .toList(), imageScanStatuses: (json['ImageScanStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ModelPackageStatusItem.fromJson(e as Map)) .toList(), @@ -49301,7 +49294,7 @@ class ModelPackageValidationSpecification { Map json) { return ModelPackageValidationSpecification( validationProfiles: (json['ValidationProfiles'] as List) - .whereNotNull() + .nonNulls .map((e) => ModelPackageValidationProfile.fromJson(e as Map)) .toList(), @@ -49396,11 +49389,11 @@ class ModelQualityAppSpecification { return ModelQualityAppSpecification( imageUri: json['ImageUri'] as String, containerArguments: (json['ContainerArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEntrypoint: (json['ContainerEntrypoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), environment: (json['Environment'] as Map?) @@ -49902,11 +49895,11 @@ class MonitoringAppSpecification { return MonitoringAppSpecification( imageUri: json['ImageUri'] as String, containerArguments: (json['ContainerArguments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), containerEntrypoint: (json['ContainerEntrypoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), postAnalyticsProcessorSourceUri: @@ -50320,7 +50313,7 @@ class MonitoringJobDefinition { monitoringAppSpecification: MonitoringAppSpecification.fromJson( json['MonitoringAppSpecification'] as Map), monitoringInputs: (json['MonitoringInputs'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringInput.fromJson(e as Map)) .toList(), monitoringOutputConfig: MonitoringOutputConfig.fromJson( @@ -50529,7 +50522,7 @@ class MonitoringOutputConfig { factory MonitoringOutputConfig.fromJson(Map json) { return MonitoringOutputConfig( monitoringOutputs: (json['MonitoringOutputs'] as List) - .whereNotNull() + .nonNulls .map((e) => MonitoringOutput.fromJson(e as Map)) .toList(), kmsKeyId: json['KmsKeyId'] as String?, @@ -50732,7 +50725,7 @@ class MonitoringSchedule { monitoringType: (json['MonitoringType'] as String?)?.let(MonitoringType.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -50992,13 +50985,11 @@ class NeoVpcConfig { factory NeoVpcConfig.fromJson(Map json) { return NeoVpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -51357,7 +51348,7 @@ class NotebookInstanceSummary { notebookInstanceArn: json['NotebookInstanceArn'] as String, notebookInstanceName: json['NotebookInstanceName'] as String, additionalCodeRepositories: (json['AdditionalCodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: timeStampFromJson(json['CreationTime']), @@ -51694,10 +51685,8 @@ class OidcMemberDefinition { factory OidcMemberDefinition.fromJson(Map json) { return OidcMemberDefinition( - groups: (json['Groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['Groups'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -52529,21 +52518,21 @@ class ParameterRanges { factory ParameterRanges.fromJson(Map json) { return ParameterRanges( autoParameters: (json['AutoParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutoParameter.fromJson(e as Map)) .toList(), categoricalParameterRanges: (json['CategoricalParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CategoricalParameterRange.fromJson(e as Map)) .toList(), continuousParameterRanges: (json['ContinuousParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContinuousParameterRange.fromJson(e as Map)) .toList(), integerParameterRanges: (json['IntegerParameterRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegerParameterRange.fromJson(e as Map)) .toList(), ); @@ -52666,12 +52655,12 @@ class PendingDeploymentSummary { return PendingDeploymentSummary( endpointConfigName: json['EndpointConfigName'] as String, productionVariants: (json['ProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingProductionVariantSummary.fromJson( e as Map)) .toList(), shadowProductionVariants: (json['ShadowProductionVariants'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingProductionVariantSummary.fromJson( e as Map)) .toList(), @@ -52773,7 +52762,7 @@ class PendingProductionVariantSummary { : null, currentWeight: json['CurrentWeight'] as double?, deployedImages: (json['DeployedImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeployedImage.fromJson(e as Map)) .toList(), desiredInstanceCount: json['DesiredInstanceCount'] as int?, @@ -52793,7 +52782,7 @@ class PendingProductionVariantSummary { json['RoutingConfig'] as Map) : null, variantStatus: (json['VariantStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantStatus.fromJson(e as Map)) .toList(), @@ -52919,7 +52908,7 @@ class Pipeline { (json['PipelineStatus'] as String?)?.let(PipelineStatus.fromString), roleArn: json['RoleArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -53040,7 +53029,7 @@ class PipelineExecution { json['PipelineExperimentConfig'] as Map) : null, pipelineParameters: (json['PipelineParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), selectiveExecutionConfig: json['SelectiveExecutionConfig'] != null @@ -53828,7 +53817,7 @@ class ProcessingJob { : null, processingEndTime: timeStampFromJson(json['ProcessingEndTime']), processingInputs: (json['ProcessingInputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProcessingInput.fromJson(e as Map)) .toList(), processingJobArn: json['ProcessingJobArn'] as String?, @@ -53850,7 +53839,7 @@ class ProcessingJob { json['StoppingCondition'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trainingJobArn: json['TrainingJobArn'] as String?, @@ -54024,7 +54013,7 @@ class ProcessingOutputConfig { factory ProcessingOutputConfig.fromJson(Map json) { return ProcessingOutputConfig( outputs: (json['Outputs'] as List) - .whereNotNull() + .nonNulls .map((e) => ProcessingOutput.fromJson(e as Map)) .toList(), kmsKeyId: json['KmsKeyId'] as String?, @@ -55046,7 +55035,7 @@ class ProductionVariantSummary { : null, currentWeight: json['CurrentWeight'] as double?, deployedImages: (json['DeployedImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeployedImage.fromJson(e as Map)) .toList(), desiredInstanceCount: json['DesiredInstanceCount'] as int?, @@ -55064,7 +55053,7 @@ class ProductionVariantSummary { json['RoutingConfig'] as Map) : null, variantStatus: (json['VariantStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductionVariantStatus.fromJson(e as Map)) .toList(), @@ -55389,7 +55378,7 @@ class Project { as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -56078,12 +56067,12 @@ class QueryLineageResponse { factory QueryLineageResponse.fromJson(Map json) { return QueryLineageResponse( edges: (json['Edges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Edge.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, vertices: (json['Vertices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Vertex.fromJson(e as Map)) .toList(), ); @@ -56105,7 +56094,7 @@ class RSessionAppSettings { factory RSessionAppSettings.fromJson(Map json) { return RSessionAppSettings( customImages: (json['CustomImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomImage.fromJson(e as Map)) .toList(), defaultResourceSpec: json['DefaultResourceSpec'] != null @@ -56446,11 +56435,11 @@ class RecommendationJobContainerConfig { supportedEndpointType: (json['SupportedEndpointType'] as String?) ?.let(RecommendationJobSupportedEndpointType.fromString), supportedInstanceTypes: (json['SupportedInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), supportedResponseMIMETypes: (json['SupportedResponseMIMETypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), task: json['Task'] as String?, @@ -56631,12 +56620,12 @@ class RecommendationJobInputConfig { json['ContainerConfig'] as Map) : null, endpointConfigurations: (json['EndpointConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointInputConfiguration.fromJson(e as Map)) .toList(), endpoints: (json['Endpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EndpointInfo.fromJson(e as Map)) .toList(), jobDurationInSeconds: json['JobDurationInSeconds'] as int?, @@ -56762,7 +56751,7 @@ class RecommendationJobPayloadConfig { return RecommendationJobPayloadConfig( samplePayloadUrl: json['SamplePayloadUrl'] as String?, supportedContentTypes: (json['SupportedContentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -56862,7 +56851,7 @@ class RecommendationJobStoppingConditions { (json['FlatInvocations'] as String?)?.let(FlatInvocations.fromString), maxInvocations: json['MaxInvocations'] as int?, modelLatencyThresholds: (json['ModelLatencyThresholds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModelLatencyThreshold.fromJson(e as Map)) .toList(), ); @@ -56930,13 +56919,11 @@ class RecommendationJobVpcConfig { factory RecommendationJobVpcConfig.fromJson(Map json) { return RecommendationJobVpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -57246,7 +57233,7 @@ class RenderUiTemplateResponse { factory RenderUiTemplateResponse.fromJson(Map json) { return RenderUiTemplateResponse( errors: (json['Errors'] as List) - .whereNotNull() + .nonNulls .map((e) => RenderingError.fromJson(e as Map)) .toList(), renderedContent: json['RenderedContent'] as String, @@ -57566,7 +57553,7 @@ class ResourceConfig { volumeSizeInGB: json['VolumeSizeInGB'] as int, instanceCount: json['InstanceCount'] as int?, instanceGroups: (json['InstanceGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceGroup.fromJson(e as Map)) .toList(), instanceType: (json['InstanceType'] as String?) @@ -58072,11 +58059,11 @@ class S3DataSource { s3DataType: S3DataType.fromString((json['S3DataType'] as String)), s3Uri: json['S3Uri'] as String, attributeNames: (json['AttributeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), instanceGroupNames: (json['InstanceGroupNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), s3DataDistributionType: (json['S3DataDistributionType'] as String?) @@ -58780,7 +58767,7 @@ class SearchResponse { return SearchResponse( nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SearchRecord.fromJson(e as Map)) .toList(), ); @@ -59029,7 +59016,7 @@ class SelectiveExecutionConfig { factory SelectiveExecutionConfig.fromJson(Map json) { return SelectiveExecutionConfig( selectedSteps: (json['SelectedSteps'] as List) - .whereNotNull() + .nonNulls .map((e) => SelectedStep.fromJson(e as Map)) .toList(), sourcePipelineExecutionArn: json['SourcePipelineExecutionArn'] as String?, @@ -59182,7 +59169,7 @@ class ServiceCatalogProvisioningDetails { pathId: json['PathId'] as String?, provisioningArtifactId: json['ProvisioningArtifactId'] as String?, provisioningParameters: (json['ProvisioningParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningParameter.fromJson(e as Map)) .toList(), ); @@ -59277,7 +59264,7 @@ class ShadowModeConfig { factory ShadowModeConfig.fromJson(Map json) { return ShadowModeConfig( shadowModelVariants: (json['ShadowModelVariants'] as List) - .whereNotNull() + .nonNulls .map((e) => ShadowModelVariantConfig.fromJson(e as Map)) .toList(), @@ -59700,7 +59687,7 @@ class SourceAlgorithmSpecification { factory SourceAlgorithmSpecification.fromJson(Map json) { return SourceAlgorithmSpecification( sourceAlgorithms: (json['SourceAlgorithms'] as List) - .whereNotNull() + .nonNulls .map((e) => SourceAlgorithm.fromJson(e as Map)) .toList(), ); @@ -59738,10 +59725,7 @@ class SourceIpConfig { factory SourceIpConfig.fromJson(Map json) { return SourceIpConfig( - cidrs: (json['Cidrs'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + cidrs: (json['Cidrs'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -59859,7 +59843,7 @@ class SpaceJupyterLabAppSettings { factory SpaceJupyterLabAppSettings.fromJson(Map json) { return SpaceJupyterLabAppSettings( codeRepositories: (json['CodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CodeRepository.fromJson(e as Map)) .toList(), defaultResourceSpec: json['DefaultResourceSpec'] != null @@ -59919,7 +59903,7 @@ class SpaceSettings { json['CodeEditorAppSettings'] as Map) : null, customFileSystems: (json['CustomFileSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomFileSystem.fromJson(e as Map)) .toList(), jupyterLabAppSettings: json['JupyterLabAppSettings'] != null @@ -61379,7 +61363,7 @@ class TimeSeriesConfig { targetAttributeName: json['TargetAttributeName'] as String, timestampAttributeName: json['TimestampAttributeName'] as String, groupingAttributeNames: (json['GroupingAttributeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -61515,11 +61499,11 @@ class TimeSeriesForecastingJobConfig { : null, featureSpecificationS3Uri: json['FeatureSpecificationS3Uri'] as String?, forecastQuantiles: (json['ForecastQuantiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), holidayConfig: (json['HolidayConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HolidayConfigAttributes.fromJson(e as Map)) .toList(), @@ -61697,7 +61681,7 @@ class TrafficPattern { factory TrafficPattern.fromJson(Map json) { return TrafficPattern( phases: (json['Phases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Phase.fromJson(e as Map)) .toList(), stairs: json['Stairs'] != null @@ -62295,13 +62279,13 @@ class TrainingJob { json['DebugHookConfig'] as Map) : null, debugRuleConfigurations: (json['DebugRuleConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => DebugRuleConfiguration.fromJson(e as Map)) .toList(), debugRuleEvaluationStatuses: (json['DebugRuleEvaluationStatuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DebugRuleEvaluationStatus.fromJson(e as Map)) .toList(), @@ -62317,13 +62301,13 @@ class TrainingJob { : null, failureReason: json['FailureReason'] as String?, finalMetricDataList: (json['FinalMetricDataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricData.fromJson(e as Map)) .toList(), hyperParameters: (json['HyperParameters'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), inputDataConfig: (json['InputDataConfig'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), labelingJobArn: json['LabelingJobArn'] as String?, @@ -62352,7 +62336,7 @@ class TrainingJob { secondaryStatus: (json['SecondaryStatus'] as String?)?.let(SecondaryStatus.fromString), secondaryStatusTransitions: (json['SecondaryStatusTransitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecondaryStatusTransition.fromJson(e as Map)) .toList(), @@ -62361,7 +62345,7 @@ class TrainingJob { json['StoppingCondition'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), tensorBoardOutputConfig: json['TensorBoardOutputConfig'] != null @@ -62423,7 +62407,7 @@ class TrainingJobDefinition { factory TrainingJobDefinition.fromJson(Map json) { return TrainingJobDefinition( inputDataConfig: (json['InputDataConfig'] as List) - .whereNotNull() + .nonNulls .map((e) => Channel.fromJson(e as Map)) .toList(), outputDataConfig: OutputDataConfig.fromJson( @@ -62717,11 +62701,11 @@ class TrainingSpecification { return TrainingSpecification( supportedTrainingInstanceTypes: (json['SupportedTrainingInstanceTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => TrainingInstanceType.fromString((e as String))) .toList(), trainingChannels: (json['TrainingChannels'] as List) - .whereNotNull() + .nonNulls .map((e) => ChannelSpecification.fromJson(e as Map)) .toList(), trainingImage: json['TrainingImage'] as String, @@ -62730,17 +62714,17 @@ class TrainingSpecification { json['AdditionalS3DataSource'] as Map) : null, metricDefinitions: (json['MetricDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDefinition.fromJson(e as Map)) .toList(), supportedHyperParameters: (json['SupportedHyperParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HyperParameterSpecification.fromJson(e as Map)) .toList(), supportedTuningJobObjectiveMetrics: (json['SupportedTuningJobObjectiveMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HyperParameterTuningJobObjective.fromJson( e as Map)) .toList(), @@ -63160,7 +63144,7 @@ class TransformJob { : null, modelName: json['ModelName'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), transformEndTime: timeStampFromJson(json['TransformEndTime']), @@ -63687,12 +63671,12 @@ class Trial { ? TrialSource.fromJson(json['Source'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trialArn: json['TrialArn'] as String?, trialComponentSummaries: (json['TrialComponentSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrialComponentSimpleSummary.fromJson(e as Map)) .toList(), @@ -63812,7 +63796,7 @@ class TrialComponent { json['MetadataProperties'] as Map) : null, metrics: (json['Metrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrialComponentMetricSummary.fromJson(e as Map)) .toList(), @@ -63825,7 +63809,7 @@ class TrialComponent { TrialComponentParameterValue.fromJson( e as Map))), parents: (json['Parents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parent.fromJson(e as Map)) .toList(), runName: json['RunName'] as String?, @@ -63843,7 +63827,7 @@ class TrialComponent { json['Status'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trialComponentArn: json['TrialComponentArn'] as String?, @@ -65326,7 +65310,7 @@ class UserSettings { json['CodeEditorAppSettings'] as Map) : null, customFileSystemConfigs: (json['CustomFileSystemConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => CustomFileSystemConfig.fromJson(e as Map)) .toList(), @@ -65357,7 +65341,7 @@ class UserSettings { json['RStudioServerProAppSettings'] as Map) : null, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sharingSettings: json['SharingSettings'] != null @@ -65626,13 +65610,11 @@ class VpcConfig { factory VpcConfig.fromJson(Map json) { return VpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -65914,13 +65896,11 @@ class WorkforceVpcConfigResponse { factory WorkforceVpcConfigResponse.fromJson(Map json) { return WorkforceVpcConfigResponse( securityGroupIds: (json['SecurityGroupIds'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List).nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String, vpcEndpointId: json['VpcEndpointId'] as String?, ); @@ -66023,7 +66003,7 @@ class Workteam { return Workteam( description: json['Description'] as String, memberDefinitions: (json['MemberDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => MemberDefinition.fromJson(e as Map)) .toList(), workteamArn: json['WorkteamArn'] as String, @@ -66035,7 +66015,7 @@ class Workteam { json['NotificationConfiguration'] as Map) : null, productListingIds: (json['ProductListingIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subDomain: json['SubDomain'] as String?, diff --git a/generated/aws_sagemaker_api/pubspec.yaml b/generated/aws_sagemaker_api/pubspec.yaml index afbd554e1..014f6116b 100644 --- a/generated/aws_sagemaker_api/pubspec.yaml +++ b/generated/aws_sagemaker_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_sagema protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_sagemaker_runtime_api/pubspec.yaml b/generated/aws_sagemaker_runtime_api/pubspec.yaml index ee4e5fd95..fa8983581 100644 --- a/generated/aws_sagemaker_runtime_api/pubspec.yaml +++ b/generated/aws_sagemaker_runtime_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_sagema protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_savingsplans_api/lib/savingsplans-2019-06-28.dart b/generated/aws_savingsplans_api/lib/savingsplans-2019-06-28.dart index 969bcc517..77b5aa06d 100644 --- a/generated/aws_savingsplans_api/lib/savingsplans-2019-06-28.dart +++ b/generated/aws_savingsplans_api/lib/savingsplans-2019-06-28.dart @@ -576,7 +576,7 @@ class DescribeSavingsPlanRatesResponse { nextToken: json['nextToken'] as String?, savingsPlanId: json['savingsPlanId'] as String?, searchResults: (json['searchResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanRate.fromJson(e as Map)) .toList(), ); @@ -601,7 +601,7 @@ class DescribeSavingsPlansOfferingRatesResponse { return DescribeSavingsPlansOfferingRatesResponse( nextToken: json['nextToken'] as String?, searchResults: (json['searchResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanOfferingRate.fromJson(e as Map)) .toList(), @@ -627,7 +627,7 @@ class DescribeSavingsPlansOfferingsResponse { return DescribeSavingsPlansOfferingsResponse( nextToken: json['nextToken'] as String?, searchResults: (json['searchResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanOffering.fromJson(e as Map)) .toList(), ); @@ -651,7 +651,7 @@ class DescribeSavingsPlansResponse { return DescribeSavingsPlansResponse( nextToken: json['nextToken'] as String?, savingsPlans: (json['savingsPlans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlan.fromJson(e as Map)) .toList(), ); @@ -825,7 +825,7 @@ class SavingsPlan { paymentOption: (json['paymentOption'] as String?) ?.let(SavingsPlanPaymentOption.fromString), productTypes: (json['productTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanProductType.fromString((e as String))) .toList(), recurringPaymentAmount: json['recurringPaymentAmount'] as String?, @@ -929,11 +929,11 @@ class SavingsPlanOffering { ?.let(SavingsPlanPaymentOption.fromString), planType: (json['planType'] as String?)?.let(SavingsPlanType.fromString), productTypes: (json['productTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanProductType.fromString((e as String))) .toList(), properties: (json['properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanOfferingProperty.fromJson(e as Map)) .toList(), @@ -1062,7 +1062,7 @@ class SavingsPlanOfferingRate { productType: (json['productType'] as String?) ?.let(SavingsPlanProductType.fromString), properties: (json['properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanOfferingRateProperty.fromJson( e as Map)) .toList(), @@ -1201,7 +1201,7 @@ class SavingsPlanRate { productType: (json['productType'] as String?) ?.let(SavingsPlanProductType.fromString), properties: (json['properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SavingsPlanRateProperty.fromJson(e as Map)) .toList(), diff --git a/generated/aws_savingsplans_api/pubspec.yaml b/generated/aws_savingsplans_api/pubspec.yaml index a1d7e50aa..3eb2229b6 100644 --- a/generated/aws_savingsplans_api/pubspec.yaml +++ b/generated/aws_savingsplans_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_saving protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_schemas_api/lib/schemas-2019-12-02.dart b/generated/aws_schemas_api/lib/schemas-2019-12-02.dart index d79a65313..de3890c1f 100644 --- a/generated/aws_schemas_api/lib/schemas-2019-12-02.dart +++ b/generated/aws_schemas_api/lib/schemas-2019-12-02.dart @@ -1549,7 +1549,7 @@ class ListDiscoverersResponse { factory ListDiscoverersResponse.fromJson(Map json) { return ListDiscoverersResponse( discoverers: (json['Discoverers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DiscovererSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1575,7 +1575,7 @@ class ListRegistriesResponse { return ListRegistriesResponse( nextToken: json['NextToken'] as String?, registries: (json['Registries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegistrySummary.fromJson(e as Map)) .toList(), ); @@ -1600,7 +1600,7 @@ class ListSchemaVersionsResponse { return ListSchemaVersionsResponse( nextToken: json['NextToken'] as String?, schemaVersions: (json['SchemaVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaVersionSummary.fromJson(e as Map)) .toList(), ); @@ -1625,7 +1625,7 @@ class ListSchemasResponse { return ListSchemasResponse( nextToken: json['NextToken'] as String?, schemas: (json['Schemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SchemaSummary.fromJson(e as Map)) .toList(), ); @@ -1817,7 +1817,7 @@ class SearchSchemaSummary { schemaArn: json['SchemaArn'] as String?, schemaName: json['SchemaName'] as String?, schemaVersions: (json['SchemaVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SearchSchemaVersionSummary.fromJson(e as Map)) .toList(), @@ -1868,7 +1868,7 @@ class SearchSchemasResponse { return SearchSchemasResponse( nextToken: json['NextToken'] as String?, schemas: (json['Schemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SearchSchemaSummary.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_schemas_api/pubspec.yaml b/generated/aws_schemas_api/pubspec.yaml index 580aa4029..fcffc631c 100644 --- a/generated/aws_schemas_api/pubspec.yaml +++ b/generated/aws_schemas_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_schema protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_sdb_api/pubspec.yaml b/generated/aws_sdb_api/pubspec.yaml index 1c35fea84..88031882d 100644 --- a/generated/aws_sdb_api/pubspec.yaml +++ b/generated/aws_sdb_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_sdb_ap protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_secretsmanager_api/lib/secretsmanager-2017-10-17.dart b/generated/aws_secretsmanager_api/lib/secretsmanager-2017-10-17.dart index f8fe42732..ad96a6c83 100644 --- a/generated/aws_secretsmanager_api/lib/secretsmanager-2017-10-17.dart +++ b/generated/aws_secretsmanager_api/lib/secretsmanager-2017-10-17.dart @@ -2242,12 +2242,12 @@ class BatchGetSecretValueResponse { factory BatchGetSecretValueResponse.fromJson(Map json) { return BatchGetSecretValueResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => APIErrorType.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, secretValues: (json['SecretValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecretValueEntry.fromJson(e as Map)) .toList(), ); @@ -2325,7 +2325,7 @@ class CreateSecretResponse { arn: json['ARN'] as String?, name: json['Name'] as String?, replicationStatus: (json['ReplicationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationStatusType.fromJson(e as Map)) .toList(), versionId: json['VersionId'] as String?, @@ -2546,7 +2546,7 @@ class DescribeSecretResponse { owningService: json['OwningService'] as String?, primaryRegion: json['PrimaryRegion'] as String?, replicationStatus: (json['ReplicationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationStatusType.fromJson(e as Map)) .toList(), rotationEnabled: json['RotationEnabled'] as bool?, @@ -2556,12 +2556,12 @@ class DescribeSecretResponse { json['RotationRules'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), versionIdsToStages: (json['VersionIdsToStages'] as Map?) ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + k, (e as List).nonNulls.map((e) => e as String).toList())), ); } } @@ -2739,7 +2739,7 @@ class GetSecretValueResponse { secretString: json['SecretString'] as String?, versionId: json['VersionId'] as String?, versionStages: (json['VersionStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2776,7 +2776,7 @@ class ListSecretVersionIdsResponse { name: json['Name'] as String?, nextToken: json['NextToken'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecretVersionsListEntry.fromJson(e as Map)) .toList(), @@ -2804,7 +2804,7 @@ class ListSecretsResponse { return ListSecretsResponse( nextToken: json['NextToken'] as String?, secretList: (json['SecretList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecretListEntry.fromJson(e as Map)) .toList(), ); @@ -2859,7 +2859,7 @@ class PutSecretValueResponse { name: json['Name'] as String?, versionId: json['VersionId'] as String?, versionStages: (json['VersionStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2883,7 +2883,7 @@ class RemoveRegionsFromReplicationResponse { return RemoveRegionsFromReplicationResponse( arn: json['ARN'] as String?, replicationStatus: (json['ReplicationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationStatusType.fromJson(e as Map)) .toList(), ); @@ -2933,7 +2933,7 @@ class ReplicateSecretToRegionsResponse { return ReplicateSecretToRegionsResponse( arn: json['ARN'] as String?, replicationStatus: (json['ReplicationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationStatusType.fromJson(e as Map)) .toList(), ); @@ -3238,12 +3238,12 @@ class SecretListEntry { ? RotationRulesType.fromJson( json['RotationRules'] as Map) : null, - secretVersionsToStages: (json['SecretVersionsToStages'] - as Map?) - ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + secretVersionsToStages: + (json['SecretVersionsToStages'] as Map?)?.map( + (k, e) => MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3298,7 +3298,7 @@ class SecretValueEntry { secretString: json['SecretString'] as String?, versionId: json['VersionId'] as String?, versionStages: (json['VersionStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3336,13 +3336,13 @@ class SecretVersionsListEntry { return SecretVersionsListEntry( createdDate: timeStampFromJson(json['CreatedDate']), kmsKeyIds: (json['KmsKeyIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), lastAccessedDate: timeStampFromJson(json['LastAccessedDate']), versionId: json['VersionId'] as String?, versionStages: (json['VersionStages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3488,7 +3488,7 @@ class ValidateResourcePolicyResponse { return ValidateResourcePolicyResponse( policyValidationPassed: json['PolicyValidationPassed'] as bool?, validationErrors: (json['ValidationErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationErrorsEntry.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_secretsmanager_api/pubspec.yaml b/generated/aws_secretsmanager_api/pubspec.yaml index 53c066cf7..0bc542b8a 100644 --- a/generated/aws_secretsmanager_api/pubspec.yaml +++ b/generated/aws_secretsmanager_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_secret protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_securityhub_api/lib/securityhub-2018-10-26.dart b/generated/aws_securityhub_api/lib/securityhub-2018-10-26.dart index 8e32444aa..4a38c4788 100644 --- a/generated/aws_securityhub_api/lib/securityhub-2018-10-26.dart +++ b/generated/aws_securityhub_api/lib/securityhub-2018-10-26.dart @@ -4323,7 +4323,7 @@ class AutomationRulesConfig { factory AutomationRulesConfig.fromJson(Map json) { return AutomationRulesConfig( actions: (json['Actions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomationRulesAction.fromJson(e as Map)) .toList(), createdAt: timeStampFromJson(json['CreatedAt']), @@ -4390,16 +4390,14 @@ class AutomationRulesFindingFieldsUpdate { ? NoteUpdate.fromJson(json['Note'] as Map) : null, relatedFindings: (json['RelatedFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedFinding.fromJson(e as Map)) .toList(), severity: json['Severity'] != null ? SeverityUpdate.fromJson(json['Severity'] as Map) : null, - types: (json['Types'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + types: + (json['Types'] as List?)?.nonNulls.map((e) => e as String).toList(), userDefinedFields: (json['UserDefinedFields'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), verificationState: (json['VerificationState'] as String?) @@ -4849,157 +4847,157 @@ class AutomationRulesFindingFilters { factory AutomationRulesFindingFilters.fromJson(Map json) { return AutomationRulesFindingFilters( awsAccountId: (json['AwsAccountId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), awsAccountName: (json['AwsAccountName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), companyName: (json['CompanyName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceAssociatedStandardsId: (json['ComplianceAssociatedStandardsId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceSecurityControlId: (json['ComplianceSecurityControlId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceStatus: (json['ComplianceStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), confidence: (json['Confidence'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), createdAt: (json['CreatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), criticality: (json['Criticality'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), description: (json['Description'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), firstObservedAt: (json['FirstObservedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), generatorId: (json['GeneratorId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), id: (json['Id'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), lastObservedAt: (json['LastObservedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), noteText: (json['NoteText'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), noteUpdatedAt: (json['NoteUpdatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), noteUpdatedBy: (json['NoteUpdatedBy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), productArn: (json['ProductArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), productName: (json['ProductName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), recordState: (json['RecordState'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), relatedFindingsId: (json['RelatedFindingsId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), relatedFindingsProductArn: (json['RelatedFindingsProductArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceApplicationArn: (json['ResourceApplicationArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceApplicationName: (json['ResourceApplicationName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceDetailsOther: (json['ResourceDetailsOther'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), resourceId: (json['ResourceId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourcePartition: (json['ResourcePartition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceRegion: (json['ResourceRegion'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), resourceType: (json['ResourceType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), severityLabel: (json['SeverityLabel'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), sourceUrl: (json['SourceUrl'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), title: (json['Title'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), type: (json['Type'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), updatedAt: (json['UpdatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), userDefinedFields: (json['UserDefinedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), verificationState: (json['VerificationState'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), workflowStatus: (json['WorkflowStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), ); @@ -5370,16 +5368,16 @@ class AwsAmazonMqBrokerDetails { : null, publiclyAccessible: json['PubliclyAccessible'] as bool?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), storageType: json['StorageType'] as String?, subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsAmazonMqBrokerUsersDetails.fromJson(e as Map)) .toList(), @@ -5523,10 +5521,8 @@ class AwsAmazonMqBrokerLdapServerMetadataDetails { factory AwsAmazonMqBrokerLdapServerMetadataDetails.fromJson( Map json) { return AwsAmazonMqBrokerLdapServerMetadataDetails( - hosts: (json['Hosts'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + hosts: + (json['Hosts'] as List?)?.nonNulls.map((e) => e as String).toList(), roleBase: json['RoleBase'] as String?, roleName: json['RoleName'] as String?, roleSearchMatching: json['RoleSearchMatching'] as String?, @@ -5993,10 +5989,8 @@ class AwsApiGatewayEndpointConfiguration { factory AwsApiGatewayEndpointConfiguration.fromJson( Map json) { return AwsApiGatewayEndpointConfiguration( - types: (json['Types'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + types: + (json['Types'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -6226,7 +6220,7 @@ class AwsApiGatewayRestApiDetails { return AwsApiGatewayRestApiDetails( apiKeySource: json['ApiKeySource'] as String?, binaryMediaTypes: (json['BinaryMediaTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdDate: json['CreatedDate'] as String?, @@ -6429,7 +6423,7 @@ class AwsApiGatewayStageDetails { documentationVersion: json['DocumentationVersion'] as String?, lastUpdatedDate: json['LastUpdatedDate'] as String?, methodSettings: (json['MethodSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsApiGatewayMethodSettings.fromJson(e as Map)) .toList(), @@ -6998,7 +6992,7 @@ class AwsAppSyncGraphQlApiDetails { return AwsAppSyncGraphQlApiDetails( additionalAuthenticationProviders: (json['AdditionalAuthenticationProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsAppSyncGraphQlApiAdditionalAuthenticationProvidersDetails .fromJson(e as Map)) @@ -7513,7 +7507,7 @@ class AwsAutoScalingAutoScalingGroupDetails { Map json) { return AwsAutoScalingAutoScalingGroupDetails( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsAutoScalingAutoScalingGroupAvailabilityZonesListDetails .fromJson(e as Map)) .toList(), @@ -7527,7 +7521,7 @@ class AwsAutoScalingAutoScalingGroupDetails { .fromJson(json['LaunchTemplate'] as Map) : null, loadBalancerNames: (json['LoadBalancerNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), mixedInstancesPolicy: json['MixedInstancesPolicy'] != null @@ -7758,7 +7752,7 @@ class AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateDetails { json['LaunchTemplateSpecification'] as Map) : null, overrides: (json['Overrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateOverridesListDetails .fromJson(e as Map)) @@ -8141,7 +8135,7 @@ class AwsAutoScalingLaunchConfigurationDetails { return AwsAutoScalingLaunchConfigurationDetails( associatePublicIpAddress: json['AssociatePublicIpAddress'] as bool?, blockDeviceMappings: (json['BlockDeviceMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails .fromJson(e as Map)) @@ -8149,7 +8143,7 @@ class AwsAutoScalingLaunchConfigurationDetails { classicLinkVpcId: json['ClassicLinkVpcId'] as String?, classicLinkVpcSecurityGroups: (json['ClassicLinkVpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdTime: json['CreatedTime'] as String?, @@ -8171,7 +8165,7 @@ class AwsAutoScalingLaunchConfigurationDetails { placementTenancy: json['PlacementTenancy'] as String?, ramdiskId: json['RamdiskId'] as String?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), spotPrice: json['SpotPrice'] as String?, @@ -8370,13 +8364,13 @@ class AwsBackupBackupPlanBackupPlanDetails { Map json) { return AwsBackupBackupPlanBackupPlanDetails( advancedBackupSettings: (json['AdvancedBackupSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsBackupBackupPlanAdvancedBackupSettingsDetails.fromJson( e as Map)) .toList(), backupPlanName: json['BackupPlanName'] as String?, backupPlanRule: (json['BackupPlanRule'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsBackupBackupPlanRuleDetails.fromJson( e as Map)) .toList(), @@ -8587,7 +8581,7 @@ class AwsBackupBackupPlanRuleDetails { return AwsBackupBackupPlanRuleDetails( completionWindowMinutes: json['CompletionWindowMinutes'] as int?, copyActions: (json['CopyActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsBackupBackupPlanRuleCopyActionsDetails.fromJson( e as Map)) .toList(), @@ -8728,7 +8722,7 @@ class AwsBackupBackupVaultNotificationsDetails { Map json) { return AwsBackupBackupVaultNotificationsDetails( backupVaultEvents: (json['BackupVaultEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), snsTopicArn: json['SnsTopicArn'] as String?, @@ -9376,27 +9370,25 @@ class AwsCertificateManagerCertificateDetails { createdAt: json['CreatedAt'] as String?, domainName: json['DomainName'] as String?, domainValidationOptions: (json['DomainValidationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCertificateManagerCertificateDomainValidationOption.fromJson( e as Map)) .toList(), extendedKeyUsages: (json['ExtendedKeyUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCertificateManagerCertificateExtendedKeyUsage.fromJson( e as Map)) .toList(), failureReason: json['FailureReason'] as String?, importedAt: json['ImportedAt'] as String?, - inUseBy: (json['InUseBy'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + inUseBy: + (json['InUseBy'] as List?)?.nonNulls.map((e) => e as String).toList(), issuedAt: json['IssuedAt'] as String?, issuer: json['Issuer'] as String?, keyAlgorithm: json['KeyAlgorithm'] as String?, keyUsages: (json['KeyUsages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCertificateManagerCertificateKeyUsage.fromJson( e as Map)) .toList(), @@ -9416,7 +9408,7 @@ class AwsCertificateManagerCertificateDetails { status: json['Status'] as String?, subject: json['Subject'] as String?, subjectAlternativeNames: (json['SubjectAlternativeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: json['Type'] as String?, @@ -9530,7 +9522,7 @@ class AwsCertificateManagerCertificateDomainValidationOption { : null, validationDomain: json['ValidationDomain'] as String?, validationEmails: (json['ValidationEmails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), validationMethod: json['ValidationMethod'] as String?, @@ -9716,7 +9708,7 @@ class AwsCertificateManagerCertificateRenewalSummary { Map json) { return AwsCertificateManagerCertificateRenewalSummary( domainValidationOptions: (json['DomainValidationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCertificateManagerCertificateDomainValidationOption.fromJson( e as Map)) @@ -9856,7 +9848,7 @@ class AwsCloudFormationStackDetails { factory AwsCloudFormationStackDetails.fromJson(Map json) { return AwsCloudFormationStackDetails( capabilities: (json['Capabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), creationTime: json['CreationTime'] as String?, @@ -9869,11 +9861,11 @@ class AwsCloudFormationStackDetails { enableTerminationProtection: json['EnableTerminationProtection'] as bool?, lastUpdatedTime: json['LastUpdatedTime'] as String?, notificationArns: (json['NotificationArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCloudFormationStackOutputsDetails.fromJson( e as Map)) .toList(), @@ -10041,7 +10033,7 @@ class AwsCloudFrontDistributionCacheBehaviors { Map json) { return AwsCloudFrontDistributionCacheBehaviors( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCloudFrontDistributionCacheBehavior.fromJson( e as Map)) .toList(), @@ -10439,10 +10431,7 @@ class AwsCloudFrontDistributionOriginGroupFailoverStatusCodes { factory AwsCloudFrontDistributionOriginGroupFailoverStatusCodes.fromJson( Map json) { return AwsCloudFrontDistributionOriginGroupFailoverStatusCodes( - items: (json['Items'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + items: (json['Items'] as List?)?.nonNulls.map((e) => e as int).toList(), quantity: json['Quantity'] as int?, ); } @@ -10471,7 +10460,7 @@ class AwsCloudFrontDistributionOriginGroups { Map json) { return AwsCloudFrontDistributionOriginGroups( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCloudFrontDistributionOriginGroup.fromJson( e as Map)) .toList(), @@ -10596,10 +10585,8 @@ class AwsCloudFrontDistributionOriginSslProtocols { factory AwsCloudFrontDistributionOriginSslProtocols.fromJson( Map json) { return AwsCloudFrontDistributionOriginSslProtocols( - items: (json['Items'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + items: + (json['Items'] as List?)?.nonNulls.map((e) => e as String).toList(), quantity: json['Quantity'] as int?, ); } @@ -10627,7 +10614,7 @@ class AwsCloudFrontDistributionOrigins { factory AwsCloudFrontDistributionOrigins.fromJson(Map json) { return AwsCloudFrontDistributionOrigins( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCloudFrontDistributionOriginItem.fromJson( e as Map)) .toList(), @@ -10983,7 +10970,7 @@ class AwsCloudWatchAlarmDetails { return AwsCloudWatchAlarmDetails( actionsEnabled: json['ActionsEnabled'] as bool?, alarmActions: (json['AlarmActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), alarmArn: json['AlarmArn'] as String?, @@ -10994,7 +10981,7 @@ class AwsCloudWatchAlarmDetails { comparisonOperator: json['ComparisonOperator'] as String?, datapointsToAlarm: json['DatapointsToAlarm'] as int?, dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCloudWatchAlarmDimensionsDetails.fromJson( e as Map)) .toList(), @@ -11003,13 +10990,13 @@ class AwsCloudWatchAlarmDetails { evaluationPeriods: json['EvaluationPeriods'] as int?, extendedStatistic: json['ExtendedStatistic'] as String?, insufficientDataActions: (json['InsufficientDataActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), metricName: json['MetricName'] as String?, namespace: json['Namespace'] as String?, okActions: (json['OkActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), period: json['Period'] as int?, @@ -11247,7 +11234,7 @@ class AwsCodeBuildProjectDetails { factory AwsCodeBuildProjectDetails.fromJson(Map json) { return AwsCodeBuildProjectDetails( artifacts: (json['Artifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCodeBuildProjectArtifactsDetails.fromJson( e as Map)) .toList(), @@ -11262,7 +11249,7 @@ class AwsCodeBuildProjectDetails { : null, name: json['Name'] as String?, secondaryArtifacts: (json['SecondaryArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCodeBuildProjectArtifactsDetails.fromJson( e as Map)) .toList(), @@ -11376,7 +11363,7 @@ class AwsCodeBuildProjectEnvironment { return AwsCodeBuildProjectEnvironment( certificate: json['Certificate'] as String?, environmentVariables: (json['EnvironmentVariables'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails .fromJson(e as Map)) .toList(), @@ -11730,13 +11717,11 @@ class AwsCodeBuildProjectVpcConfig { factory AwsCodeBuildProjectVpcConfig.fromJson(Map json) { return AwsCodeBuildProjectVpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String?, ); } @@ -11788,19 +11773,19 @@ class AwsCorsConfiguration { return AwsCorsConfiguration( allowCredentials: json['AllowCredentials'] as bool?, allowHeaders: (json['AllowHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allowMethods: (json['AllowMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), allowOrigins: (json['AllowOrigins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), exposeHeaders: (json['ExposeHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxAge: json['MaxAge'] as int?, @@ -12036,7 +12021,7 @@ class AwsDmsReplicationInstanceDetails { json['ReplicationSubnetGroup'] as Map) : null, vpcSecurityGroups: (json['VpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDmsReplicationInstanceVpcSecurityGroupsDetails.fromJson( e as Map)) @@ -12490,7 +12475,7 @@ class AwsDynamoDbTableDetails { factory AwsDynamoDbTableDetails.fromJson(Map json) { return AwsDynamoDbTableDetails( attributeDefinitions: (json['AttributeDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableAttributeDefinition.fromJson( e as Map)) .toList(), @@ -12501,21 +12486,21 @@ class AwsDynamoDbTableDetails { creationDateTime: json['CreationDateTime'] as String?, deletionProtectionEnabled: json['DeletionProtectionEnabled'] as bool?, globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableGlobalSecondaryIndex.fromJson( e as Map)) .toList(), globalTableVersion: json['GlobalTableVersion'] as String?, itemCount: json['ItemCount'] as int?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableKeySchema.fromJson(e as Map)) .toList(), latestStreamArn: json['LatestStreamArn'] as String?, latestStreamLabel: json['LatestStreamLabel'] as String?, localSecondaryIndexes: (json['LocalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableLocalSecondaryIndex.fromJson( e as Map)) .toList(), @@ -12524,7 +12509,7 @@ class AwsDynamoDbTableDetails { json['ProvisionedThroughput'] as Map) : null, replicas: (json['Replicas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableReplica.fromJson(e as Map)) .toList(), @@ -12665,7 +12650,7 @@ class AwsDynamoDbTableGlobalSecondaryIndex { indexStatus: json['IndexStatus'] as String?, itemCount: json['ItemCount'] as int?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableKeySchema.fromJson(e as Map)) .toList(), @@ -12766,7 +12751,7 @@ class AwsDynamoDbTableLocalSecondaryIndex { indexArn: json['IndexArn'] as String?, indexName: json['IndexName'] as String?, keySchema: (json['KeySchema'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableKeySchema.fromJson(e as Map)) .toList(), @@ -12822,7 +12807,7 @@ class AwsDynamoDbTableProjection { factory AwsDynamoDbTableProjection.fromJson(Map json) { return AwsDynamoDbTableProjection( nonKeyAttributes: (json['NonKeyAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), projectionType: json['ProjectionType'] as String?, @@ -13031,7 +13016,7 @@ class AwsDynamoDbTableReplica { factory AwsDynamoDbTableReplica.fromJson(Map json) { return AwsDynamoDbTableReplica( globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsDynamoDbTableReplicaGlobalSecondaryIndex.fromJson( e as Map)) .toList(), @@ -13659,7 +13644,7 @@ class AwsEc2ClientVpnEndpointDetails { factory AwsEc2ClientVpnEndpointDetails.fromJson(Map json) { return AwsEc2ClientVpnEndpointDetails( authenticationOptions: (json['AuthenticationOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2ClientVpnEndpointAuthenticationOptionsDetails.fromJson( e as Map)) @@ -13680,11 +13665,11 @@ class AwsEc2ClientVpnEndpointDetails { : null, description: json['Description'] as String?, dnsServer: (json['DnsServer'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIdSet: (json['SecurityGroupIdSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), selfServicePortalUrl: json['SelfServicePortalUrl'] as String?, @@ -13930,11 +13915,11 @@ class AwsEc2InstanceDetails { iamInstanceProfileArn: json['IamInstanceProfileArn'] as String?, imageId: json['ImageId'] as String?, ipV4Addresses: (json['IpV4Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ipV6Addresses: (json['IpV6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), keyName: json['KeyName'] as String?, @@ -13948,7 +13933,7 @@ class AwsEc2InstanceDetails { json['Monitoring'] as Map) : null, networkInterfaces: (json['NetworkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2InstanceNetworkInterfacesDetails.fromJson( e as Map)) .toList(), @@ -14534,7 +14519,7 @@ class AwsEc2LaunchTemplateDataDetails { factory AwsEc2LaunchTemplateDataDetails.fromJson(Map json) { return AwsEc2LaunchTemplateDataDetails( blockDeviceMappingSet: (json['BlockDeviceMappingSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.fromJson( e as Map)) @@ -14557,13 +14542,13 @@ class AwsEc2LaunchTemplateDataDetails { disableApiTermination: json['DisableApiTermination'] as bool?, ebsOptimized: json['EbsOptimized'] as bool?, elasticGpuSpecificationSet: (json['ElasticGpuSpecificationSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails .fromJson(e as Map)) .toList(), elasticInferenceAcceleratorSet: (json['ElasticInferenceAcceleratorSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails .fromJson(e as Map)) @@ -14595,7 +14580,7 @@ class AwsEc2LaunchTemplateDataDetails { kernelId: json['KernelId'] as String?, keyName: json['KeyName'] as String?, licenseSet: (json['LicenseSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataLicenseSetDetails.fromJson( e as Map)) .toList(), @@ -14612,7 +14597,7 @@ class AwsEc2LaunchTemplateDataDetails { json['Monitoring'] as Map) : null, networkInterfaceSet: (json['NetworkInterfaceSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.fromJson( e as Map)) @@ -14627,11 +14612,11 @@ class AwsEc2LaunchTemplateDataDetails { : null, ramDiskId: json['RamDiskId'] as String?, securityGroupIdSet: (json['SecurityGroupIdSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupSet: (json['SecurityGroupSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userData: json['UserData'] as String?, @@ -15188,11 +15173,11 @@ class AwsEc2LaunchTemplateDataInstanceRequirementsDetails { .fromJson(json['AcceleratorCount'] as Map) : null, acceleratorManufacturers: (json['AcceleratorManufacturers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), acceleratorNames: (json['AcceleratorNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), acceleratorTotalMemoryMiB: json['AcceleratorTotalMemoryMiB'] != null @@ -15201,7 +15186,7 @@ class AwsEc2LaunchTemplateDataInstanceRequirementsDetails { json['AcceleratorTotalMemoryMiB'] as Map) : null, acceleratorTypes: (json['AcceleratorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), bareMetal: json['BareMetal'] as String?, @@ -15212,20 +15197,20 @@ class AwsEc2LaunchTemplateDataInstanceRequirementsDetails { : null, burstablePerformance: json['BurstablePerformance'] as String?, cpuManufacturers: (json['CpuManufacturers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), excludedInstanceTypes: (json['ExcludedInstanceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), instanceGenerations: (json['InstanceGenerations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), localStorage: json['LocalStorage'] as String?, localStorageTypes: (json['LocalStorageTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), memoryGiBPerVCpu: json['MemoryGiBPerVCpu'] != null @@ -15735,28 +15720,26 @@ class AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails { deleteOnTermination: json['DeleteOnTermination'] as bool?, description: json['Description'] as String?, deviceIndex: json['DeviceIndex'] as int?, - groups: (json['Groups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + groups: + (json['Groups'] as List?)?.nonNulls.map((e) => e as String).toList(), interfaceType: json['InterfaceType'] as String?, ipv4PrefixCount: json['Ipv4PrefixCount'] as int?, ipv4Prefixes: (json['Ipv4Prefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails .fromJson(e as Map)) .toList(), ipv6AddressCount: json['Ipv6AddressCount'] as int?, ipv6Addresses: (json['Ipv6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails .fromJson(e as Map)) .toList(), ipv6PrefixCount: json['Ipv6PrefixCount'] as int?, ipv6Prefixes: (json['Ipv6Prefixes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails .fromJson(e as Map)) @@ -15765,7 +15748,7 @@ class AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails { networkInterfaceId: json['NetworkInterfaceId'] as String?, privateIpAddress: json['PrivateIpAddress'] as String?, privateIpAddresses: (json['PrivateIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails .fromJson(e as Map)) @@ -16181,12 +16164,12 @@ class AwsEc2NetworkAclDetails { factory AwsEc2NetworkAclDetails.fromJson(Map json) { return AwsEc2NetworkAclDetails( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2NetworkAclAssociation.fromJson(e as Map)) .toList(), entries: (json['Entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2NetworkAclEntry.fromJson(e as Map)) .toList(), isDefault: json['IsDefault'] as bool?, @@ -16436,20 +16419,20 @@ class AwsEc2NetworkInterfaceDetails { json['Attachment'] as Map) : null, ipV6Addresses: (json['IpV6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2NetworkInterfaceIpV6AddressDetail.fromJson( e as Map)) .toList(), networkInterfaceId: json['NetworkInterfaceId'] as String?, privateIpAddresses: (json['PrivateIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2NetworkInterfacePrivateIpAddressDetail.fromJson( e as Map)) .toList(), publicDnsName: json['PublicDnsName'] as String?, publicIp: json['PublicIp'] as String?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2NetworkInterfaceSecurityGroup.fromJson( e as Map)) .toList(), @@ -16599,17 +16582,17 @@ class AwsEc2RouteTableDetails { factory AwsEc2RouteTableDetails.fromJson(Map json) { return AwsEc2RouteTableDetails( associationSet: (json['AssociationSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociationSetDetails.fromJson(e as Map)) .toList(), ownerId: json['OwnerId'] as String?, propagatingVgwSet: (json['PropagatingVgwSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PropagatingVgwSetDetails.fromJson(e as Map)) .toList(), routeSet: (json['RouteSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RouteSetDetails.fromJson(e as Map)) .toList(), routeTableId: json['RouteTableId'] as String?, @@ -16669,12 +16652,12 @@ class AwsEc2SecurityGroupDetails { groupId: json['GroupId'] as String?, groupName: json['GroupName'] as String?, ipPermissions: (json['IpPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2SecurityGroupIpPermission.fromJson( e as Map)) .toList(), ipPermissionsEgress: (json['IpPermissionsEgress'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2SecurityGroupIpPermission.fromJson( e as Map)) .toList(), @@ -16764,23 +16747,23 @@ class AwsEc2SecurityGroupIpPermission { fromPort: json['FromPort'] as int?, ipProtocol: json['IpProtocol'] as String?, ipRanges: (json['IpRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2SecurityGroupIpRange.fromJson(e as Map)) .toList(), ipv6Ranges: (json['Ipv6Ranges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2SecurityGroupIpv6Range.fromJson(e as Map)) .toList(), prefixListIds: (json['PrefixListIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2SecurityGroupPrefixListId.fromJson( e as Map)) .toList(), toPort: json['ToPort'] as int?, userIdGroupPairs: (json['UserIdGroupPairs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2SecurityGroupUserIdGroupPair.fromJson( e as Map)) .toList(), @@ -17017,7 +17000,7 @@ class AwsEc2SubnetDetails { defaultForAz: json['DefaultForAz'] as bool?, ipv6CidrBlockAssociationSet: (json['Ipv6CidrBlockAssociationSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ipv6CidrBlockAssociation.fromJson(e as Map)) .toList(), @@ -17141,7 +17124,7 @@ class AwsEc2TransitGatewayDetails { propagationDefaultRouteTableId: json['PropagationDefaultRouteTableId'] as String?, transitGatewayCidrBlocks: (json['TransitGatewayCidrBlocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpnEcmpSupport: json['VpnEcmpSupport'] as String?, @@ -17349,7 +17332,7 @@ class AwsEc2VolumeDetails { factory AwsEc2VolumeDetails.fromJson(Map json) { return AwsEc2VolumeDetails( attachments: (json['Attachments'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AwsEc2VolumeAttachment.fromJson(e as Map)) .toList(), @@ -17421,13 +17404,13 @@ class AwsEc2VpcDetails { factory AwsEc2VpcDetails.fromJson(Map json) { return AwsEc2VpcDetails( cidrBlockAssociationSet: (json['CidrBlockAssociationSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CidrBlockAssociation.fromJson(e as Map)) .toList(), dhcpOptionsId: json['DhcpOptionsId'] as String?, ipv6CidrBlockAssociationSet: (json['Ipv6CidrBlockAssociationSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ipv6CidrBlockAssociation.fromJson(e as Map)) .toList(), @@ -17523,20 +17506,20 @@ class AwsEc2VpcEndpointServiceDetails { return AwsEc2VpcEndpointServiceDetails( acceptanceRequired: json['AcceptanceRequired'] as bool?, availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), baseEndpointDnsNames: (json['BaseEndpointDnsNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), gatewayLoadBalancerArns: (json['GatewayLoadBalancerArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), managesVpcEndpoints: json['ManagesVpcEndpoints'] as bool?, networkLoadBalancerArns: (json['NetworkLoadBalancerArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), privateDnsName: json['PrivateDnsName'] as String?, @@ -17544,7 +17527,7 @@ class AwsEc2VpcEndpointServiceDetails { serviceName: json['ServiceName'] as String?, serviceState: json['ServiceState'] as String?, serviceType: (json['ServiceType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2VpcEndpointServiceServiceTypeDetails.fromJson( e as Map)) .toList(), @@ -17741,12 +17724,12 @@ class AwsEc2VpcPeeringConnectionVpcInfoDetails { return AwsEc2VpcPeeringConnectionVpcInfoDetails( cidrBlock: json['CidrBlock'] as String?, cidrBlockSet: (json['CidrBlockSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcInfoCidrBlockSetDetails.fromJson(e as Map)) .toList(), ipv6CidrBlockSet: (json['Ipv6CidrBlockSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VpcInfoIpv6CidrBlockSetDetails.fromJson( e as Map)) .toList(), @@ -17861,7 +17844,7 @@ class AwsEc2VpnConnectionDetails { json['Options'] as Map) : null, routes: (json['Routes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2VpnConnectionRoutesDetails.fromJson( e as Map)) .toList(), @@ -17869,7 +17852,7 @@ class AwsEc2VpnConnectionDetails { transitGatewayId: json['TransitGatewayId'] as String?, type: json['Type'] as String?, vgwTelemetry: (json['VgwTelemetry'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2VpnConnectionVgwTelemetryDetails.fromJson( e as Map)) .toList(), @@ -17925,7 +17908,7 @@ class AwsEc2VpnConnectionOptionsDetails { return AwsEc2VpnConnectionOptionsDetails( staticRoutesOnly: json['StaticRoutesOnly'] as bool?, tunnelOptions: (json['TunnelOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEc2VpnConnectionOptionsTunnelOptionsDetails.fromJson( e as Map)) .toList(), @@ -18029,33 +18012,33 @@ class AwsEc2VpnConnectionOptionsTunnelOptionsDetails { return AwsEc2VpnConnectionOptionsTunnelOptionsDetails( dpdTimeoutSeconds: json['DpdTimeoutSeconds'] as int?, ikeVersions: (json['IkeVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), outsideIpAddress: json['OutsideIpAddress'] as String?, phase1DhGroupNumbers: (json['Phase1DhGroupNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), phase1EncryptionAlgorithms: (json['Phase1EncryptionAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), phase1IntegrityAlgorithms: (json['Phase1IntegrityAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), phase1LifetimeSeconds: json['Phase1LifetimeSeconds'] as int?, phase2DhGroupNumbers: (json['Phase2DhGroupNumbers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), phase2EncryptionAlgorithms: (json['Phase2EncryptionAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), phase2IntegrityAlgorithms: (json['Phase2IntegrityAlgorithms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), phase2LifetimeSeconds: json['Phase2LifetimeSeconds'] as int?, @@ -18311,7 +18294,7 @@ class AwsEcrContainerImageDetails { imageDigest: json['ImageDigest'] as String?, imagePublishedAt: json['ImagePublishedAt'] as String?, imageTags: (json['ImageTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), registryId: json['RegistryId'] as String?, @@ -18726,13 +18709,13 @@ class AwsEcsClusterDetails { return AwsEcsClusterDetails( activeServicesCount: json['ActiveServicesCount'] as int?, capacityProviders: (json['CapacityProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clusterArn: json['ClusterArn'] as String?, clusterName: json['ClusterName'] as String?, clusterSettings: (json['ClusterSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsClusterClusterSettingsDetails.fromJson( e as Map)) .toList(), @@ -18742,7 +18725,7 @@ class AwsEcsClusterDetails { : null, defaultCapacityProviderStrategy: (json['DefaultCapacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsClusterDefaultCapacityProviderStrategyDetails.fromJson( e as Map)) @@ -18811,7 +18794,7 @@ class AwsEcsContainerDetails { return AwsEcsContainerDetails( image: json['Image'] as String?, mountPoints: (json['MountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsMountPoint.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -19151,7 +19134,7 @@ class AwsEcsServiceDetails { factory AwsEcsServiceDetails.fromJson(Map json) { return AwsEcsServiceDetails( capacityProviderStrategy: (json['CapacityProviderStrategy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsServiceCapacityProviderStrategyDetails.fromJson( e as Map)) .toList(), @@ -19171,7 +19154,7 @@ class AwsEcsServiceDetails { json['HealthCheckGracePeriodSeconds'] as int?, launchType: json['LaunchType'] as String?, loadBalancers: (json['LoadBalancers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsServiceLoadBalancersDetails.fromJson( e as Map)) .toList(), @@ -19181,12 +19164,12 @@ class AwsEcsServiceDetails { json['NetworkConfiguration'] as Map) : null, placementConstraints: (json['PlacementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsServicePlacementConstraintsDetails.fromJson( e as Map)) .toList(), placementStrategies: (json['PlacementStrategies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsServicePlacementStrategiesDetails.fromJson( e as Map)) .toList(), @@ -19197,7 +19180,7 @@ class AwsEcsServiceDetails { serviceArn: json['ServiceArn'] as String?, serviceName: json['ServiceName'] as String?, serviceRegistries: (json['ServiceRegistries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsServiceServiceRegistriesDetails.fromJson( e as Map)) .toList(), @@ -19351,13 +19334,11 @@ class AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails { return AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails( assignPublicIp: json['AssignPublicIp'] as String?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - subnets: (json['Subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + subnets: + (json['Subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -19823,50 +19804,48 @@ class AwsEcsTaskDefinitionContainerDefinitionsDetails { factory AwsEcsTaskDefinitionContainerDefinitionsDetails.fromJson( Map json) { return AwsEcsTaskDefinitionContainerDefinitionsDetails( - command: (json['Command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['Command'] as List?)?.nonNulls.map((e) => e as String).toList(), cpu: json['Cpu'] as int?, dependsOn: (json['DependsOn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsDependsOnDetails.fromJson( e as Map)) .toList(), disableNetworking: json['DisableNetworking'] as bool?, dnsSearchDomains: (json['DnsSearchDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dnsServers: (json['DnsServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dockerLabels: (json['DockerLabels'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), dockerSecurityOptions: (json['DockerSecurityOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), entryPoint: (json['EntryPoint'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), environment: (json['Environment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsEnvironmentDetails .fromJson(e as Map)) .toList(), environmentFiles: (json['EnvironmentFiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsEnvironmentFilesDetails .fromJson(e as Map)) .toList(), essential: json['Essential'] as bool?, extraHosts: (json['ExtraHosts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsExtraHostsDetails .fromJson(e as Map)) .toList(), @@ -19881,10 +19860,8 @@ class AwsEcsTaskDefinitionContainerDefinitionsDetails { hostname: json['Hostname'] as String?, image: json['Image'] as String?, interactive: json['Interactive'] as bool?, - links: (json['Links'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + links: + (json['Links'] as List?)?.nonNulls.map((e) => e as String).toList(), linuxParameters: json['LinuxParameters'] != null ? AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails .fromJson(json['LinuxParameters'] as Map) @@ -19896,13 +19873,13 @@ class AwsEcsTaskDefinitionContainerDefinitionsDetails { memory: json['Memory'] as int?, memoryReservation: json['MemoryReservation'] as int?, mountPoints: (json['MountPoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails .fromJson(e as Map)) .toList(), name: json['Name'] as String?, portMappings: (json['PortMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsPortMappingsDetails .fromJson(e as Map)) @@ -19915,13 +19892,13 @@ class AwsEcsTaskDefinitionContainerDefinitionsDetails { .fromJson(json['RepositoryCredentials'] as Map) : null, resourceRequirements: (json['ResourceRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails .fromJson(e as Map)) .toList(), secrets: (json['Secrets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsSecretsDetails.fromJson( e as Map)) @@ -19929,20 +19906,20 @@ class AwsEcsTaskDefinitionContainerDefinitionsDetails { startTimeout: json['StartTimeout'] as int?, stopTimeout: json['StopTimeout'] as int?, systemControls: (json['SystemControls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsSystemControlsDetails .fromJson(e as Map)) .toList(), ulimits: (json['Ulimits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsUlimitsDetails.fromJson( e as Map)) .toList(), user: json['User'] as String?, volumesFrom: (json['VolumesFrom'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails .fromJson(e as Map)) .toList(), @@ -20218,10 +20195,8 @@ class AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails { factory AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails.fromJson( Map json) { return AwsEcsTaskDefinitionContainerDefinitionsHealthCheckDetails( - command: (json['Command'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + command: + (json['Command'] as List?)?.nonNulls.map((e) => e as String).toList(), interval: json['Interval'] as int?, retries: json['Retries'] as int?, startPeriod: json['StartPeriod'] as int?, @@ -20298,14 +20273,8 @@ class AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails factory AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails.fromJson( Map json) { return AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails( - add: (json['Add'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - drop: (json['Drop'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + add: (json['Add'] as List?)?.nonNulls.map((e) => e as String).toList(), + drop: (json['Drop'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -20370,7 +20339,7 @@ class AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails { .fromJson(json['Capabilities'] as Map) : null, devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails .fromJson(e as Map)) @@ -20380,7 +20349,7 @@ class AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails { sharedMemorySize: json['SharedMemorySize'] as int?, swappiness: json['Swappiness'] as int?, tmpfs: (json['Tmpfs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails .fromJson(e as Map)) @@ -20433,7 +20402,7 @@ class AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails { containerPath: json['ContainerPath'] as String?, hostPath: json['HostPath'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -20489,7 +20458,7 @@ class AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails { return AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails( containerPath: json['ContainerPath'] as String?, mountOptions: (json['MountOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), size: json['Size'] as int?, @@ -20580,7 +20549,7 @@ class AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails { options: (json['Options'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), secretOptions: (json['SecretOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationSecretOptionsDetails .fromJson(e as Map)) @@ -21089,7 +21058,7 @@ class AwsEcsTaskDefinitionDetails { factory AwsEcsTaskDefinitionDetails.fromJson(Map json) { return AwsEcsTaskDefinitionDetails( containerDefinitions: (json['ContainerDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionContainerDefinitionsDetails.fromJson( e as Map)) .toList(), @@ -21097,7 +21066,7 @@ class AwsEcsTaskDefinitionDetails { executionRoleArn: json['ExecutionRoleArn'] as String?, family: json['Family'] as String?, inferenceAccelerators: (json['InferenceAccelerators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionInferenceAcceleratorsDetails.fromJson( e as Map)) .toList(), @@ -21106,7 +21075,7 @@ class AwsEcsTaskDefinitionDetails { networkMode: json['NetworkMode'] as String?, pidMode: json['PidMode'] as String?, placementConstraints: (json['PlacementConstraints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionPlacementConstraintsDetails.fromJson( e as Map)) .toList(), @@ -21115,13 +21084,13 @@ class AwsEcsTaskDefinitionDetails { json['ProxyConfiguration'] as Map) : null, requiresCompatibilities: (json['RequiresCompatibilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), status: json['Status'] as String?, taskRoleArn: json['TaskRoleArn'] as String?, volumes: (json['Volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionVolumesDetails.fromJson( e as Map)) .toList(), @@ -21256,7 +21225,7 @@ class AwsEcsTaskDefinitionProxyConfigurationDetails { containerName: json['ContainerName'] as String?, proxyConfigurationProperties: (json['ProxyConfigurationProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails .fromJson(e as Map)) @@ -21598,7 +21567,7 @@ class AwsEcsTaskDetails { return AwsEcsTaskDetails( clusterArn: json['ClusterArn'] as String?, containers: (json['Containers'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AwsEcsContainerDetails.fromJson(e as Map)) .toList(), @@ -21609,7 +21578,7 @@ class AwsEcsTaskDetails { taskDefinitionArn: json['TaskDefinitionArn'] as String?, version: json['Version'] as String?, volumes: (json['Volumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEcsTaskVolumeDetails.fromJson(e as Map)) .toList(), @@ -21797,7 +21766,7 @@ class AwsEfsAccessPointPosixUserDetails { return AwsEfsAccessPointPosixUserDetails( gid: json['Gid'] as String?, secondaryGids: (json['SecondaryGids'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), uid: json['Uid'] as String?, @@ -22039,10 +22008,8 @@ class AwsEksClusterLoggingClusterLoggingDetails { Map json) { return AwsEksClusterLoggingClusterLoggingDetails( enabled: json['Enabled'] as bool?, - types: (json['Types'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + types: + (json['Types'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -22068,7 +22035,7 @@ class AwsEksClusterLoggingDetails { factory AwsEksClusterLoggingDetails.fromJson(Map json) { return AwsEksClusterLoggingDetails( clusterLogging: (json['ClusterLogging'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEksClusterLoggingClusterLoggingDetails.fromJson( e as Map)) .toList(), @@ -22110,11 +22077,11 @@ class AwsEksClusterResourcesVpcConfigDetails { return AwsEksClusterResourcesVpcConfigDetails( endpointPublicAccess: json['EndpointPublicAccess'] as bool?, securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -22243,13 +22210,13 @@ class AwsElasticBeanstalkEnvironmentDetails { environmentArn: json['EnvironmentArn'] as String?, environmentId: json['EnvironmentId'] as String?, environmentLinks: (json['EnvironmentLinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElasticBeanstalkEnvironmentEnvironmentLink.fromJson( e as Map)) .toList(), environmentName: json['EnvironmentName'] as String?, optionSettings: (json['OptionSettings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElasticBeanstalkEnvironmentOptionSetting.fromJson( e as Map)) .toList(), @@ -22988,15 +22955,15 @@ class AwsElasticsearchDomainVPCOptions { factory AwsElasticsearchDomainVPCOptions.fromJson(Map json) { return AwsElasticsearchDomainVPCOptions( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vPCId: json['VPCId'] as String?, @@ -23214,7 +23181,7 @@ class AwsElbLoadBalancerAttributes { json['AccessLog'] as Map) : null, additionalAttributes: (json['AdditionalAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbLoadBalancerAdditionalAttribute.fromJson( e as Map)) .toList(), @@ -23270,7 +23237,7 @@ class AwsElbLoadBalancerBackendServerDescription { return AwsElbLoadBalancerBackendServerDescription( instancePort: json['InstancePort'] as int?, policyNames: (json['PolicyNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -23482,11 +23449,11 @@ class AwsElbLoadBalancerDetails { factory AwsElbLoadBalancerDetails.fromJson(Map json) { return AwsElbLoadBalancerDetails( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), backendServerDescriptions: (json['BackendServerDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbLoadBalancerBackendServerDescription.fromJson( e as Map)) .toList(), @@ -23499,12 +23466,12 @@ class AwsElbLoadBalancerDetails { json['HealthCheck'] as Map) : null, instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbLoadBalancerInstance.fromJson(e as Map)) .toList(), listenerDescriptions: (json['ListenerDescriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbLoadBalancerListenerDescription.fromJson( e as Map)) .toList(), @@ -23519,17 +23486,15 @@ class AwsElbLoadBalancerDetails { : null, scheme: json['Scheme'] as String?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceSecurityGroup: json['SourceSecurityGroup'] != null ? AwsElbLoadBalancerSourceSecurityGroup.fromJson( json['SourceSecurityGroup'] as Map) : null, - subnets: (json['Subnets'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + subnets: + (json['Subnets'] as List?)?.nonNulls.map((e) => e as String).toList(), vpcId: json['VpcId'] as String?, ); } @@ -23756,7 +23721,7 @@ class AwsElbLoadBalancerListenerDescription { json['Listener'] as Map) : null, policyNames: (json['PolicyNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -23795,17 +23760,17 @@ class AwsElbLoadBalancerPolicies { return AwsElbLoadBalancerPolicies( appCookieStickinessPolicies: (json['AppCookieStickinessPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbAppCookieStickinessPolicy.fromJson( e as Map)) .toList(), lbCookieStickinessPolicies: (json['LbCookieStickinessPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbLbCookieStickinessPolicy.fromJson( e as Map)) .toList(), otherPolicies: (json['OtherPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -23968,7 +23933,7 @@ class AwsElbv2LoadBalancerDetails { factory AwsElbv2LoadBalancerDetails.fromJson(Map json) { return AwsElbv2LoadBalancerDetails( availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailabilityZone.fromJson(e as Map)) .toList(), canonicalHostedZoneId: json['CanonicalHostedZoneId'] as String?, @@ -23976,13 +23941,13 @@ class AwsElbv2LoadBalancerDetails { dNSName: json['DNSName'] as String?, ipAddressType: json['IpAddressType'] as String?, loadBalancerAttributes: (json['LoadBalancerAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsElbv2LoadBalancerAttribute.fromJson(e as Map)) .toList(), scheme: json['Scheme'] as String?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), state: json['State'] != null @@ -24125,7 +24090,7 @@ class AwsEventsEndpointDetails { endpointId: json['EndpointId'] as String?, endpointUrl: json['EndpointUrl'] as String?, eventBuses: (json['EventBuses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsEventsEndpointEventBusesDetails.fromJson( e as Map)) .toList(), @@ -24762,7 +24727,7 @@ class AwsGuardDutyDetectorDetails { json['DataSources'] as Map) : null, features: (json['Features'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsGuardDutyDetectorFeaturesDetails.fromJson( e as Map)) .toList(), @@ -25188,7 +25153,7 @@ class AwsIamGroupDetails { factory AwsIamGroupDetails.fromJson(Map json) { return AwsIamGroupDetails( attachedManagedPolicies: (json['AttachedManagedPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamAttachedManagedPolicy.fromJson(e as Map)) .toList(), @@ -25196,7 +25161,7 @@ class AwsIamGroupDetails { groupId: json['GroupId'] as String?, groupName: json['GroupName'] as String?, groupPolicyList: (json['GroupPolicyList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamGroupPolicy.fromJson(e as Map)) .toList(), path: json['Path'] as String?, @@ -25310,7 +25275,7 @@ class AwsIamInstanceProfile { instanceProfileName: json['InstanceProfileName'] as String?, path: json['Path'] as String?, roles: (json['Roles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamInstanceProfileRole.fromJson(e as Map)) .toList(), @@ -25575,7 +25540,7 @@ class AwsIamPolicyDetails { policyId: json['PolicyId'] as String?, policyName: json['PolicyName'] as String?, policyVersionList: (json['PolicyVersionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamPolicyVersion.fromJson(e as Map)) .toList(), updateDate: json['UpdateDate'] as String?, @@ -25753,13 +25718,13 @@ class AwsIamRoleDetails { return AwsIamRoleDetails( assumeRolePolicyDocument: json['AssumeRolePolicyDocument'] as String?, attachedManagedPolicies: (json['AttachedManagedPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamAttachedManagedPolicy.fromJson(e as Map)) .toList(), createDate: json['CreateDate'] as String?, instanceProfileList: (json['InstanceProfileList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamInstanceProfile.fromJson(e as Map)) .toList(), maxSessionDuration: json['MaxSessionDuration'] as int?, @@ -25771,7 +25736,7 @@ class AwsIamRoleDetails { roleId: json['RoleId'] as String?, roleName: json['RoleName'] as String?, rolePolicyList: (json['RolePolicyList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamRolePolicy.fromJson(e as Map)) .toList(), ); @@ -25898,13 +25863,13 @@ class AwsIamUserDetails { factory AwsIamUserDetails.fromJson(Map json) { return AwsIamUserDetails( attachedManagedPolicies: (json['AttachedManagedPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamAttachedManagedPolicy.fromJson(e as Map)) .toList(), createDate: json['CreateDate'] as String?, groupList: (json['GroupList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), path: json['Path'] as String?, @@ -25915,7 +25880,7 @@ class AwsIamUserDetails { userId: json['UserId'] as String?, userName: json['UserName'] as String?, userPolicyList: (json['UserPolicyList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsIamUserPolicy.fromJson(e as Map)) .toList(), ); @@ -26380,7 +26345,7 @@ class AwsLambdaFunctionDetails { factory AwsLambdaFunctionDetails.fromJson(Map json) { return AwsLambdaFunctionDetails( architectures: (json['Architectures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), code: json['Code'] != null @@ -26400,7 +26365,7 @@ class AwsLambdaFunctionDetails { kmsKeyArn: json['KmsKeyArn'] as String?, lastModified: json['LastModified'] as String?, layers: (json['Layers'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AwsLambdaFunctionLayer.fromJson(e as Map)) .toList(), @@ -26607,11 +26572,11 @@ class AwsLambdaFunctionVpcConfig { factory AwsLambdaFunctionVpcConfig.fromJson(Map json) { return AwsLambdaFunctionVpcConfig( securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -26695,7 +26660,7 @@ class AwsLambdaLayerVersionDetails { factory AwsLambdaLayerVersionDetails.fromJson(Map json) { return AwsLambdaLayerVersionDetails( compatibleRuntimes: (json['CompatibleRuntimes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdDate: json['CreatedDate'] as String?, @@ -26900,7 +26865,7 @@ class AwsMskClusterClusterInfoClientAuthenticationTlsDetails { return AwsMskClusterClusterInfoClientAuthenticationTlsDetails( certificateAuthorityArnList: (json['CertificateAuthorityArnList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), enabled: json['Enabled'] as bool?, @@ -27207,7 +27172,7 @@ class AwsNetworkFirewallFirewallDetails { json['FirewallPolicyChangeProtection'] as bool?, subnetChangeProtection: json['SubnetChangeProtection'] as bool?, subnetMappings: (json['SubnetMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsNetworkFirewallFirewallSubnetMappingsDetails.fromJson( e as Map)) .toList(), @@ -28088,11 +28053,11 @@ class AwsOpenSearchServiceDomainVpcOptionsDetails { Map json) { return AwsOpenSearchServiceDomainVpcOptionsDetails( securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -28414,13 +28379,13 @@ class AwsRdsDbClusterDetails { activityStreamStatus: json['ActivityStreamStatus'] as String?, allocatedStorage: json['AllocatedStorage'] as int?, associatedRoles: (json['AssociatedRoles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbClusterAssociatedRole.fromJson(e as Map)) .toList(), autoMinorVersionUpgrade: json['AutoMinorVersionUpgrade'] as bool?, availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), backupRetentionPeriod: json['BackupRetentionPeriod'] as int?, @@ -28428,18 +28393,18 @@ class AwsRdsDbClusterDetails { copyTagsToSnapshot: json['CopyTagsToSnapshot'] as bool?, crossAccountClone: json['CrossAccountClone'] as bool?, customEndpoints: (json['CustomEndpoints'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), databaseName: json['DatabaseName'] as String?, dbClusterIdentifier: json['DbClusterIdentifier'] as String?, dbClusterMembers: (json['DbClusterMembers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbClusterMember.fromJson(e as Map)) .toList(), dbClusterOptionGroupMemberships: (json['DbClusterOptionGroupMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbClusterOptionGroupMembership.fromJson( e as Map)) .toList(), @@ -28448,13 +28413,13 @@ class AwsRdsDbClusterDetails { dbSubnetGroup: json['DbSubnetGroup'] as String?, deletionProtection: json['DeletionProtection'] as bool?, domainMemberships: (json['DomainMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbDomainMembership.fromJson(e as Map)) .toList(), enabledCloudWatchLogsExports: (json['EnabledCloudWatchLogsExports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), endpoint: json['Endpoint'] as String?, @@ -28472,14 +28437,14 @@ class AwsRdsDbClusterDetails { preferredBackupWindow: json['PreferredBackupWindow'] as String?, preferredMaintenanceWindow: json['PreferredMaintenanceWindow'] as String?, readReplicaIdentifiers: (json['ReadReplicaIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), readerEndpoint: json['ReaderEndpoint'] as String?, status: json['Status'] as String?, storageEncrypted: json['StorageEncrypted'] as bool?, vpcSecurityGroups: (json['VpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbInstanceVpcSecurityGroup.fromJson( e as Map)) .toList(), @@ -28690,7 +28655,7 @@ class AwsRdsDbClusterSnapshotDbClusterSnapshotAttribute { return AwsRdsDbClusterSnapshotDbClusterSnapshotAttribute( attributeName: json['AttributeName'] as String?, attributeValues: (json['AttributeValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -28852,14 +28817,14 @@ class AwsRdsDbClusterSnapshotDetails { return AwsRdsDbClusterSnapshotDetails( allocatedStorage: json['AllocatedStorage'] as int?, availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), clusterCreateTime: json['ClusterCreateTime'] as String?, dbClusterIdentifier: json['DbClusterIdentifier'] as String?, dbClusterSnapshotAttributes: (json['DbClusterSnapshotAttributes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbClusterSnapshotDbClusterSnapshotAttribute.fromJson( e as Map)) @@ -29395,7 +29360,7 @@ class AwsRdsDbInstanceDetails { return AwsRdsDbInstanceDetails( allocatedStorage: json['AllocatedStorage'] as int?, associatedRoles: (json['AssociatedRoles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbInstanceAssociatedRole.fromJson( e as Map)) .toList(), @@ -29412,12 +29377,12 @@ class AwsRdsDbInstanceDetails { dbInstancePort: json['DbInstancePort'] as int?, dbInstanceStatus: json['DbInstanceStatus'] as String?, dbParameterGroups: (json['DbParameterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AwsRdsDbParameterGroup.fromJson(e as Map)) .toList(), dbSecurityGroups: (json['DbSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), dbSubnetGroup: json['DbSubnetGroup'] != null @@ -29427,13 +29392,13 @@ class AwsRdsDbInstanceDetails { dbiResourceId: json['DbiResourceId'] as String?, deletionProtection: json['DeletionProtection'] as bool?, domainMemberships: (json['DomainMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbDomainMembership.fromJson(e as Map)) .toList(), enabledCloudWatchLogsExports: (json['EnabledCloudWatchLogsExports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), endpoint: json['Endpoint'] != null @@ -29461,7 +29426,7 @@ class AwsRdsDbInstanceDetails { monitoringRoleArn: json['MonitoringRoleArn'] as String?, multiAz: json['MultiAz'] as bool?, optionGroupMemberships: (json['OptionGroupMemberships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbOptionGroupMembership.fromJson(e as Map)) .toList(), @@ -29477,7 +29442,7 @@ class AwsRdsDbInstanceDetails { preferredBackupWindow: json['PreferredBackupWindow'] as String?, preferredMaintenanceWindow: json['PreferredMaintenanceWindow'] as String?, processorFeatures: (json['ProcessorFeatures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbProcessorFeature.fromJson(e as Map)) .toList(), @@ -29485,19 +29450,19 @@ class AwsRdsDbInstanceDetails { publiclyAccessible: json['PubliclyAccessible'] as bool?, readReplicaDBClusterIdentifiers: (json['ReadReplicaDBClusterIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), readReplicaDBInstanceIdentifiers: (json['ReadReplicaDBInstanceIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), readReplicaSourceDBInstanceIdentifier: json['ReadReplicaSourceDBInstanceIdentifier'] as String?, secondaryAvailabilityZone: json['SecondaryAvailabilityZone'] as String?, statusInfos: (json['StatusInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbStatusInfo.fromJson(e as Map)) .toList(), storageEncrypted: json['StorageEncrypted'] as bool?, @@ -29505,7 +29470,7 @@ class AwsRdsDbInstanceDetails { tdeCredentialArn: json['TdeCredentialArn'] as String?, timezone: json['Timezone'] as String?, vpcSecurityGroups: (json['VpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbInstanceVpcSecurityGroup.fromJson( e as Map)) .toList(), @@ -29874,7 +29839,7 @@ class AwsRdsDbPendingModifiedValues { : null, port: json['Port'] as int?, processorFeatures: (json['ProcessorFeatures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbProcessorFeature.fromJson(e as Map)) .toList(), @@ -29993,12 +29958,12 @@ class AwsRdsDbSecurityGroupDetails { dbSecurityGroupDescription: json['DbSecurityGroupDescription'] as String?, dbSecurityGroupName: json['DbSecurityGroupName'] as String?, ec2SecurityGroups: (json['Ec2SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbSecurityGroupEc2SecurityGroup.fromJson( e as Map)) .toList(), ipRanges: (json['IpRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbSecurityGroupIpRange.fromJson(e as Map)) .toList(), @@ -30308,7 +30273,7 @@ class AwsRdsDbSnapshotDetails { percentProgress: json['PercentProgress'] as int?, port: json['Port'] as int?, processorFeatures: (json['ProcessorFeatures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbProcessorFeature.fromJson(e as Map)) .toList(), @@ -30470,7 +30435,7 @@ class AwsRdsDbSubnetGroup { dbSubnetGroupName: json['DbSubnetGroupName'] as String?, subnetGroupStatus: json['SubnetGroupStatus'] as String?, subnets: (json['Subnets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRdsDbSubnetGroupSubnet.fromJson(e as Map)) .toList(), @@ -30647,13 +30612,13 @@ class AwsRdsEventSubscriptionDetails { customerAwsId: json['CustomerAwsId'] as String?, enabled: json['Enabled'] as bool?, eventCategoriesList: (json['EventCategoriesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), eventSubscriptionArn: json['EventSubscriptionArn'] as String?, snsTopicArn: json['SnsTopicArn'] as String?, sourceIdsList: (json['SourceIdsList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceType: json['SourceType'] as String?, @@ -30708,11 +30673,11 @@ class AwsRdsPendingCloudWatchLogsExports { Map json) { return AwsRdsPendingCloudWatchLogsExports( logTypesToDisable: (json['LogTypesToDisable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), logTypesToEnable: (json['LogTypesToEnable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -30788,7 +30753,7 @@ class AwsRedshiftClusterClusterParameterGroup { Map json) { return AwsRedshiftClusterClusterParameterGroup( clusterParameterStatusList: (json['ClusterParameterStatusList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterClusterParameterStatus.fromJson( e as Map)) .toList(), @@ -31394,19 +31359,19 @@ class AwsRedshiftClusterDetails { clusterCreateTime: json['ClusterCreateTime'] as String?, clusterIdentifier: json['ClusterIdentifier'] as String?, clusterNodes: (json['ClusterNodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterClusterNode.fromJson(e as Map)) .toList(), clusterParameterGroups: (json['ClusterParameterGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterClusterParameterGroup.fromJson( e as Map)) .toList(), clusterPublicKey: json['ClusterPublicKey'] as String?, clusterRevisionNumber: json['ClusterRevisionNumber'] as String?, clusterSecurityGroups: (json['ClusterSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterClusterSecurityGroup.fromJson( e as Map)) .toList(), @@ -31419,7 +31384,7 @@ class AwsRedshiftClusterDetails { clusterVersion: json['ClusterVersion'] as String?, dBName: json['DBName'] as String?, deferredMaintenanceWindows: (json['DeferredMaintenanceWindows'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterDeferredMaintenanceWindow.fromJson( e as Map)) .toList(), @@ -31444,7 +31409,7 @@ class AwsRedshiftClusterDetails { json['HsmStatus'] as Map) : null, iamRoles: (json['IamRoles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterIamRole.fromJson(e as Map)) .toList(), @@ -31462,7 +31427,7 @@ class AwsRedshiftClusterDetails { nodeType: json['NodeType'] as String?, numberOfNodes: json['NumberOfNodes'] as int?, pendingActions: (json['PendingActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), pendingModifiedValues: json['PendingModifiedValues'] != null @@ -31483,7 +31448,7 @@ class AwsRedshiftClusterDetails { snapshotScheduleState: json['SnapshotScheduleState'] as String?, vpcId: json['VpcId'] as String?, vpcSecurityGroups: (json['VpcSecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRedshiftClusterVpcSecurityGroup.fromJson( e as Map)) .toList(), @@ -32179,7 +32144,7 @@ class AwsRoute53HostedZoneDetails { json['HostedZone'] as Map) : null, nameServers: (json['NameServers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), queryLoggingConfig: json['QueryLoggingConfig'] != null @@ -32187,7 +32152,7 @@ class AwsRoute53HostedZoneDetails { json['QueryLoggingConfig'] as Map) : null, vpcs: (json['Vpcs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsRoute53HostedZoneVpcDetails.fromJson( e as Map)) .toList(), @@ -32483,7 +32448,7 @@ class AwsS3BucketBucketLifecycleConfigurationDetails { Map json) { return AwsS3BucketBucketLifecycleConfigurationDetails( rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketBucketLifecycleConfigurationRulesDetails.fromJson( e as Map)) @@ -32637,7 +32602,7 @@ class AwsS3BucketBucketLifecycleConfigurationRulesDetails { json['NoncurrentVersionExpirationInDays'] as int?, noncurrentVersionTransitions: (json['NoncurrentVersionTransitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketBucketLifecycleConfigurationRulesNoncurrentVersionTransitionsDetails .fromJson(e as Map)) @@ -32645,7 +32610,7 @@ class AwsS3BucketBucketLifecycleConfigurationRulesDetails { prefix: json['Prefix'] as String?, status: json['Status'] as String?, transitions: (json['Transitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketBucketLifecycleConfigurationRulesTransitionsDetails .fromJson(e as Map)) @@ -32744,7 +32709,7 @@ class AwsS3BucketBucketLifecycleConfigurationRulesFilterPredicateDetails { Map json) { return AwsS3BucketBucketLifecycleConfigurationRulesFilterPredicateDetails( operands: (json['Operands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketBucketLifecycleConfigurationRulesFilterPredicateOperandsDetails .fromJson(e as Map)) @@ -33263,7 +33228,7 @@ class AwsS3BucketNotificationConfiguration { Map json) { return AwsS3BucketNotificationConfiguration( configurations: (json['Configurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketNotificationConfigurationDetail.fromJson( e as Map)) .toList(), @@ -33318,10 +33283,8 @@ class AwsS3BucketNotificationConfigurationDetail { Map json) { return AwsS3BucketNotificationConfigurationDetail( destination: json['Destination'] as String?, - events: (json['Events'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + events: + (json['Events'] as List?)?.nonNulls.map((e) => e as String).toList(), filter: json['Filter'] != null ? AwsS3BucketNotificationConfigurationFilter.fromJson( json['Filter'] as Map) @@ -33385,7 +33348,7 @@ class AwsS3BucketNotificationConfigurationS3KeyFilter { Map json) { return AwsS3BucketNotificationConfigurationS3KeyFilter( filterRules: (json['FilterRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketNotificationConfigurationS3KeyFilterRule.fromJson( e as Map)) @@ -33605,7 +33568,7 @@ class AwsS3BucketServerSideEncryptionConfiguration { Map json) { return AwsS3BucketServerSideEncryptionConfiguration( rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketServerSideEncryptionRule.fromJson( e as Map)) .toList(), @@ -33685,7 +33648,7 @@ class AwsS3BucketWebsiteConfiguration { json['RedirectAllRequestsTo'] as Map) : null, routingRules: (json['RoutingRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsS3BucketWebsiteConfigurationRoutingRule.fromJson( e as Map)) .toList(), @@ -34085,11 +34048,11 @@ class AwsSageMakerNotebookInstanceDetails { Map json) { return AwsSageMakerNotebookInstanceDetails( acceleratorTypes: (json['AcceleratorTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), additionalCodeRepositories: (json['AdditionalCodeRepositories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultCodeRepository: json['DefaultCodeRepository'] as String?, @@ -34113,7 +34076,7 @@ class AwsSageMakerNotebookInstanceDetails { roleArn: json['RoleArn'] as String?, rootAccess: json['RootAccess'] as String?, securityGroups: (json['SecurityGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetId: json['SubnetId'] as String?, @@ -34755,7 +34718,7 @@ class AwsSecurityFinding { id: json['Id'] as String, productArn: json['ProductArn'] as String, resources: (json['Resources'] as List) - .whereNotNull() + .nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), schemaVersion: json['SchemaVersion'] as String, @@ -34782,14 +34745,14 @@ class AwsSecurityFinding { : null, lastObservedAt: json['LastObservedAt'] as String?, malware: (json['Malware'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Malware.fromJson(e as Map)) .toList(), network: json['Network'] != null ? Network.fromJson(json['Network'] as Map) : null, networkPath: (json['NetworkPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkPathComponent.fromJson(e as Map)) .toList(), note: json['Note'] != null @@ -34809,7 +34772,7 @@ class AwsSecurityFinding { (json['RecordState'] as String?)?.let(RecordState.fromString), region: json['Region'] as String?, relatedFindings: (json['RelatedFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedFinding.fromJson(e as Map)) .toList(), remediation: json['Remediation'] != null @@ -34821,23 +34784,21 @@ class AwsSecurityFinding { : null, sourceUrl: json['SourceUrl'] as String?, threatIntelIndicators: (json['ThreatIntelIndicators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ThreatIntelIndicator.fromJson(e as Map)) .toList(), threats: (json['Threats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Threat.fromJson(e as Map)) .toList(), - types: (json['Types'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + types: + (json['Types'] as List?)?.nonNulls.map((e) => e as String).toList(), userDefinedFields: (json['UserDefinedFields'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), verificationState: (json['VerificationState'] as String?) ?.let(VerificationState.fromString), vulnerabilities: (json['Vulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Vulnerability.fromJson(e as Map)) .toList(), workflow: json['Workflow'] != null @@ -35702,448 +35663,448 @@ class AwsSecurityFindingFilters { factory AwsSecurityFindingFilters.fromJson(Map json) { return AwsSecurityFindingFilters( awsAccountId: (json['AwsAccountId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), awsAccountName: (json['AwsAccountName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), companyName: (json['CompanyName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceAssociatedStandardsId: (json['ComplianceAssociatedStandardsId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceSecurityControlId: (json['ComplianceSecurityControlId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceSecurityControlParametersName: (json['ComplianceSecurityControlParametersName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceSecurityControlParametersValue: (json['ComplianceSecurityControlParametersValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), complianceStatus: (json['ComplianceStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), confidence: (json['Confidence'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), createdAt: (json['CreatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), criticality: (json['Criticality'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), description: (json['Description'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingProviderFieldsConfidence: (json['FindingProviderFieldsConfidence'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), findingProviderFieldsCriticality: (json['FindingProviderFieldsCriticality'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), findingProviderFieldsRelatedFindingsId: (json['FindingProviderFieldsRelatedFindingsId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingProviderFieldsRelatedFindingsProductArn: (json['FindingProviderFieldsRelatedFindingsProductArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingProviderFieldsSeverityLabel: (json['FindingProviderFieldsSeverityLabel'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingProviderFieldsSeverityOriginal: (json['FindingProviderFieldsSeverityOriginal'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), findingProviderFieldsTypes: (json['FindingProviderFieldsTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), firstObservedAt: (json['FirstObservedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), generatorId: (json['GeneratorId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), id: (json['Id'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), keyword: (json['Keyword'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => KeywordFilter.fromJson(e as Map)) .toList(), lastObservedAt: (json['LastObservedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), malwareName: (json['MalwareName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), malwarePath: (json['MalwarePath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), malwareState: (json['MalwareState'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), malwareType: (json['MalwareType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), networkDestinationDomain: (json['NetworkDestinationDomain'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), networkDestinationIpV4: (json['NetworkDestinationIpV4'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpFilter.fromJson(e as Map)) .toList(), networkDestinationIpV6: (json['NetworkDestinationIpV6'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpFilter.fromJson(e as Map)) .toList(), networkDestinationPort: (json['NetworkDestinationPort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), networkDirection: (json['NetworkDirection'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), networkProtocol: (json['NetworkProtocol'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), networkSourceDomain: (json['NetworkSourceDomain'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), networkSourceIpV4: (json['NetworkSourceIpV4'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpFilter.fromJson(e as Map)) .toList(), networkSourceIpV6: (json['NetworkSourceIpV6'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpFilter.fromJson(e as Map)) .toList(), networkSourceMac: (json['NetworkSourceMac'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), networkSourcePort: (json['NetworkSourcePort'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), noteText: (json['NoteText'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), noteUpdatedAt: (json['NoteUpdatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), noteUpdatedBy: (json['NoteUpdatedBy'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), processLaunchedAt: (json['ProcessLaunchedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), processName: (json['ProcessName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), processParentPid: (json['ProcessParentPid'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), processPath: (json['ProcessPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), processPid: (json['ProcessPid'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), processTerminatedAt: (json['ProcessTerminatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), productArn: (json['ProductArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), productFields: (json['ProductFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), productName: (json['ProductName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), recommendationText: (json['RecommendationText'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), recordState: (json['RecordState'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), region: (json['Region'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), relatedFindingsId: (json['RelatedFindingsId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), relatedFindingsProductArn: (json['RelatedFindingsProductArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceApplicationArn: (json['ResourceApplicationArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceApplicationName: (json['ResourceApplicationName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceIamInstanceProfileArn: (json['ResourceAwsEc2InstanceIamInstanceProfileArn'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceImageId: (json['ResourceAwsEc2InstanceImageId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceIpV4Addresses: (json['ResourceAwsEc2InstanceIpV4Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceIpV6Addresses: (json['ResourceAwsEc2InstanceIpV6Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceKeyName: (json['ResourceAwsEc2InstanceKeyName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceLaunchedAt: (json['ResourceAwsEc2InstanceLaunchedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceSubnetId: (json['ResourceAwsEc2InstanceSubnetId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceType: (json['ResourceAwsEc2InstanceType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsEc2InstanceVpcId: (json['ResourceAwsEc2InstanceVpcId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsIamAccessKeyCreatedAt: (json['ResourceAwsIamAccessKeyCreatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), resourceAwsIamAccessKeyPrincipalName: (json['ResourceAwsIamAccessKeyPrincipalName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsIamAccessKeyStatus: (json['ResourceAwsIamAccessKeyStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsIamAccessKeyUserName: (json['ResourceAwsIamAccessKeyUserName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsIamUserUserName: (json['ResourceAwsIamUserUserName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsS3BucketOwnerId: (json['ResourceAwsS3BucketOwnerId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceAwsS3BucketOwnerName: (json['ResourceAwsS3BucketOwnerName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceContainerImageId: (json['ResourceContainerImageId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceContainerImageName: (json['ResourceContainerImageName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceContainerLaunchedAt: (json['ResourceContainerLaunchedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), resourceContainerName: (json['ResourceContainerName'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceDetailsOther: (json['ResourceDetailsOther'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), resourceId: (json['ResourceId'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourcePartition: (json['ResourcePartition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceRegion: (json['ResourceRegion'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), resourceTags: (json['ResourceTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), resourceType: (json['ResourceType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), sample: (json['Sample'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BooleanFilter.fromJson(e as Map)) .toList(), severityLabel: (json['SeverityLabel'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), severityNormalized: (json['SeverityNormalized'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), severityProduct: (json['SeverityProduct'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NumberFilter.fromJson(e as Map)) .toList(), sourceUrl: (json['SourceUrl'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), threatIntelIndicatorCategory: (json['ThreatIntelIndicatorCategory'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), threatIntelIndicatorLastObservedAt: (json['ThreatIntelIndicatorLastObservedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), threatIntelIndicatorSource: (json['ThreatIntelIndicatorSource'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), threatIntelIndicatorSourceUrl: (json['ThreatIntelIndicatorSourceUrl'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), threatIntelIndicatorType: (json['ThreatIntelIndicatorType'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), threatIntelIndicatorValue: (json['ThreatIntelIndicatorValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), title: (json['Title'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), type: (json['Type'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), updatedAt: (json['UpdatedAt'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateFilter.fromJson(e as Map)) .toList(), userDefinedFields: (json['UserDefinedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MapFilter.fromJson(e as Map)) .toList(), verificationState: (json['VerificationState'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), vulnerabilitiesExploitAvailable: (json['VulnerabilitiesExploitAvailable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), vulnerabilitiesFixAvailable: (json['VulnerabilitiesFixAvailable'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), workflowState: (json['WorkflowState'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), workflowStatus: (json['WorkflowStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StringFilter.fromJson(e as Map)) .toList(), ); @@ -36547,7 +36508,7 @@ class AwsSnsTopicDetails { sqsFailureFeedbackRoleArn: json['SqsFailureFeedbackRoleArn'] as String?, sqsSuccessFeedbackRoleArn: json['SqsSuccessFeedbackRoleArn'] as String?, subscription: (json['Subscription'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsSnsTopicSubscription.fromJson(e as Map)) .toList(), @@ -37103,7 +37064,7 @@ class AwsStepFunctionStateMachineLoggingConfigurationDetails { Map json) { return AwsStepFunctionStateMachineLoggingConfigurationDetails( destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsStepFunctionStateMachineLoggingConfigurationDestinationsDetails .fromJson(e as Map)) @@ -37190,7 +37151,7 @@ class AwsWafRateBasedRuleDetails { factory AwsWafRateBasedRuleDetails.fromJson(Map json) { return AwsWafRateBasedRuleDetails( matchPredicates: (json['MatchPredicates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRateBasedRuleMatchPredicate.fromJson( e as Map)) .toList(), @@ -37328,7 +37289,7 @@ class AwsWafRegionalRateBasedRuleDetails { Map json) { return AwsWafRegionalRateBasedRuleDetails( matchPredicates: (json['MatchPredicates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRegionalRateBasedRuleMatchPredicate.fromJson( e as Map)) .toList(), @@ -37456,7 +37417,7 @@ class AwsWafRegionalRuleDetails { metricName: json['MetricName'] as String?, name: json['Name'] as String?, predicateList: (json['PredicateList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRegionalRulePredicateListDetails.fromJson( e as Map)) .toList(), @@ -37507,7 +37468,7 @@ class AwsWafRegionalRuleGroupDetails { name: json['Name'] as String?, ruleGroupId: json['RuleGroupId'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRegionalRuleGroupRulesDetails.fromJson( e as Map)) .toList(), @@ -37689,7 +37650,7 @@ class AwsWafRegionalWebAclDetails { metricName: json['MetricName'] as String?, name: json['Name'] as String?, rulesList: (json['RulesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRegionalWebAclRulesListDetails.fromJson( e as Map)) .toList(), @@ -37857,7 +37818,7 @@ class AwsWafRuleDetails { metricName: json['MetricName'] as String?, name: json['Name'] as String?, predicateList: (json['PredicateList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRulePredicateListDetails.fromJson( e as Map)) .toList(), @@ -37908,7 +37869,7 @@ class AwsWafRuleGroupDetails { name: json['Name'] as String?, ruleGroupId: json['RuleGroupId'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafRuleGroupRulesDetails.fromJson(e as Map)) .toList(), @@ -38080,7 +38041,7 @@ class AwsWafWebAclDetails { defaultAction: json['DefaultAction'] as String?, name: json['Name'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafWebAclRule.fromJson(e as Map)) .toList(), webAclId: json['WebAclId'] as String?, @@ -38163,7 +38124,7 @@ class AwsWafWebAclRule { ? WafAction.fromJson(json['Action'] as Map) : null, excludedRules: (json['ExcludedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WafExcludedRule.fromJson(e as Map)) .toList(), overrideAction: json['OverrideAction'] != null @@ -38299,7 +38260,7 @@ class AwsWafv2CustomRequestHandlingDetails { Map json) { return AwsWafv2CustomRequestHandlingDetails( insertHeaders: (json['InsertHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafv2CustomHttpHeader.fromJson(e as Map)) .toList(), @@ -38342,7 +38303,7 @@ class AwsWafv2CustomResponseDetails { customResponseBodyKey: json['CustomResponseBodyKey'] as String?, responseCode: json['ResponseCode'] as int?, responseHeaders: (json['ResponseHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafv2CustomHttpHeader.fromJson(e as Map)) .toList(), @@ -38415,7 +38376,7 @@ class AwsWafv2RuleGroupDetails { id: json['Id'] as String?, name: json['Name'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafv2RulesDetails.fromJson(e as Map)) .toList(), scope: json['Scope'] as String?, @@ -38843,7 +38804,7 @@ class AwsWafv2WebAclDetails { managedbyFirewallManager: json['ManagedbyFirewallManager'] as bool?, name: json['Name'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AwsWafv2RulesDetails.fromJson(e as Map)) .toList(), visibilityConfig: json['VisibilityConfig'] != null @@ -38941,11 +38902,11 @@ class BatchDeleteAutomationRulesResponse { Map json) { return BatchDeleteAutomationRulesResponse( processedAutomationRules: (json['ProcessedAutomationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), unprocessedAutomationRules: (json['UnprocessedAutomationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAutomationRule.fromJson(e as Map)) .toList(), @@ -38964,7 +38925,7 @@ class BatchDisableStandardsResponse { factory BatchDisableStandardsResponse.fromJson(Map json) { return BatchDisableStandardsResponse( standardsSubscriptions: (json['StandardsSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StandardsSubscription.fromJson(e as Map)) .toList(), ); @@ -38982,7 +38943,7 @@ class BatchEnableStandardsResponse { factory BatchEnableStandardsResponse.fromJson(Map json) { return BatchEnableStandardsResponse( standardsSubscriptions: (json['StandardsSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StandardsSubscription.fromJson(e as Map)) .toList(), ); @@ -39006,11 +38967,11 @@ class BatchGetAutomationRulesResponse { factory BatchGetAutomationRulesResponse.fromJson(Map json) { return BatchGetAutomationRulesResponse( rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomationRulesConfig.fromJson(e as Map)) .toList(), unprocessedAutomationRules: (json['UnprocessedAutomationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAutomationRule.fromJson(e as Map)) .toList(), @@ -39039,13 +39000,13 @@ class BatchGetConfigurationPolicyAssociationsResponse { return BatchGetConfigurationPolicyAssociationsResponse( configurationPolicyAssociations: (json['ConfigurationPolicyAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationPolicyAssociationSummary.fromJson( e as Map)) .toList(), unprocessedConfigurationPolicyAssociations: (json['UnprocessedConfigurationPolicyAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedConfigurationPolicyAssociation.fromJson( e as Map)) .toList(), @@ -39073,11 +39034,11 @@ class BatchGetSecurityControlsResponse { factory BatchGetSecurityControlsResponse.fromJson(Map json) { return BatchGetSecurityControlsResponse( securityControls: (json['SecurityControls'] as List) - .whereNotNull() + .nonNulls .map((e) => SecurityControl.fromJson(e as Map)) .toList(), unprocessedIds: (json['UnprocessedIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedSecurityControl.fromJson(e as Map)) .toList(), @@ -39106,12 +39067,12 @@ class BatchGetStandardsControlAssociationsResponse { return BatchGetStandardsControlAssociationsResponse( standardsControlAssociationDetails: (json['StandardsControlAssociationDetails'] as List) - .whereNotNull() + .nonNulls .map((e) => StandardsControlAssociationDetail.fromJson( e as Map)) .toList(), unprocessedAssociations: (json['UnprocessedAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedStandardsControlAssociation.fromJson( e as Map)) .toList(), @@ -39140,7 +39101,7 @@ class BatchImportFindingsResponse { failedCount: json['FailedCount'] as int, successCount: json['SuccessCount'] as int, failedFindings: (json['FailedFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportFindingsError.fromJson(e as Map)) .toList(), ); @@ -39165,11 +39126,11 @@ class BatchUpdateAutomationRulesResponse { Map json) { return BatchUpdateAutomationRulesResponse( processedAutomationRules: (json['ProcessedAutomationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), unprocessedAutomationRules: (json['UnprocessedAutomationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedAutomationRule.fromJson(e as Map)) .toList(), @@ -39192,12 +39153,12 @@ class BatchUpdateFindingsResponse { factory BatchUpdateFindingsResponse.fromJson(Map json) { return BatchUpdateFindingsResponse( processedFindings: (json['ProcessedFindings'] as List) - .whereNotNull() + .nonNulls .map((e) => AwsSecurityFindingIdentifier.fromJson(e as Map)) .toList(), unprocessedFindings: (json['UnprocessedFindings'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchUpdateFindingsUnprocessedFinding.fromJson( e as Map)) .toList(), @@ -39305,7 +39266,7 @@ class BatchUpdateStandardsControlAssociationsResponse { return BatchUpdateStandardsControlAssociationsResponse( unprocessedAssociationUpdates: (json['UnprocessedAssociationUpdates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedStandardsControlAssociationUpdate.fromJson( e as Map)) .toList(), @@ -39506,7 +39467,7 @@ class ClassificationResult { : null, mimeType: json['MimeType'] as String?, sensitiveData: (json['SensitiveData'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SensitiveDataResult.fromJson(e as Map)) .toList(), sizeClassified: json['SizeClassified'] as int?, @@ -39725,22 +39686,22 @@ class Compliance { factory Compliance.fromJson(Map json) { return Compliance( associatedStandards: (json['AssociatedStandards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociatedStandard.fromJson(e as Map)) .toList(), relatedRequirements: (json['RelatedRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityControlId: json['SecurityControlId'] as String?, securityControlParameters: (json['SecurityControlParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityControlParameter.fromJson(e as Map)) .toList(), status: (json['Status'] as String?)?.let(ComplianceStatus.fromString), statusReasons: (json['StatusReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StatusReason.fromJson(e as Map)) .toList(), ); @@ -40082,7 +40043,7 @@ class ContainerDetails { name: json['Name'] as String?, privileged: json['Privileged'] as bool?, volumeMounts: (json['VolumeMounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeMount.fromJson(e as Map)) .toList(), ); @@ -40283,10 +40244,8 @@ class CreateFindingAggregatorResponse { findingAggregationRegion: json['FindingAggregationRegion'] as String?, findingAggregatorArn: json['FindingAggregatorArn'] as String?, regionLinkingMode: json['RegionLinkingMode'] as String?, - regions: (json['Regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['Regions'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -40318,7 +40277,7 @@ class CreateMembersResponse { factory CreateMembersResponse.fromJson(Map json) { return CreateMembersResponse( unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), ); @@ -40388,7 +40347,7 @@ class CustomDataIdentifiersResult { factory CustomDataIdentifiersResult.fromJson(Map json) { return CustomDataIdentifiersResult( detections: (json['Detections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomDataIdentifiersDetections.fromJson( e as Map)) .toList(), @@ -40434,7 +40393,7 @@ class Cvss { factory Cvss.fromJson(Map json) { return Cvss( adjustments: (json['Adjustments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Adjustment.fromJson(e as Map)) .toList(), baseScore: json['BaseScore'] as double?, @@ -40645,7 +40604,7 @@ class DeclineInvitationsResponse { factory DeclineInvitationsResponse.fromJson(Map json) { return DeclineInvitationsResponse( unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), ); @@ -40711,7 +40670,7 @@ class DeleteInvitationsResponse { factory DeleteInvitationsResponse.fromJson(Map json) { return DeleteInvitationsResponse( unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), ); @@ -40730,7 +40689,7 @@ class DeleteMembersResponse { factory DeleteMembersResponse.fromJson(Map json) { return DeleteMembersResponse( unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), ); @@ -40754,7 +40713,7 @@ class DescribeActionTargetsResponse { factory DescribeActionTargetsResponse.fromJson(Map json) { return DescribeActionTargetsResponse( actionTargets: (json['ActionTargets'] as List) - .whereNotNull() + .nonNulls .map((e) => ActionTarget.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -40885,7 +40844,7 @@ class DescribeProductsResponse { factory DescribeProductsResponse.fromJson(Map json) { return DescribeProductsResponse( products: (json['Products'] as List) - .whereNotNull() + .nonNulls .map((e) => Product.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -40909,7 +40868,7 @@ class DescribeStandardsControlsResponse { Map json) { return DescribeStandardsControlsResponse( controls: (json['Controls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StandardsControl.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -40933,7 +40892,7 @@ class DescribeStandardsResponse { return DescribeStandardsResponse( nextToken: json['NextToken'] as String?, standards: (json['Standards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Standard.fromJson(e as Map)) .toList(), ); @@ -41109,7 +41068,7 @@ class EnumConfigurationOptions { factory EnumConfigurationOptions.fromJson(Map json) { return EnumConfigurationOptions( allowedValues: (json['AllowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultValue: json['DefaultValue'] as String?, @@ -41140,11 +41099,11 @@ class EnumListConfigurationOptions { factory EnumListConfigurationOptions.fromJson(Map json) { return EnumListConfigurationOptions( allowedValues: (json['AllowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultValue: (json['DefaultValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxItems: json['MaxItems'] as int?, @@ -41309,7 +41268,7 @@ class FindingHistoryRecord { : null, updateTime: timeStampFromJson(json['UpdateTime']), updates: (json['Updates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingHistoryUpdate.fromJson(e as Map)) .toList(), ); @@ -41437,17 +41396,15 @@ class FindingProviderFields { confidence: json['Confidence'] as int?, criticality: json['Criticality'] as int?, relatedFindings: (json['RelatedFindings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedFinding.fromJson(e as Map)) .toList(), severity: json['Severity'] != null ? FindingProviderSeverity.fromJson( json['Severity'] as Map) : null, - types: (json['Types'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + types: + (json['Types'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -41542,27 +41499,27 @@ class FirewallPolicyDetails { return FirewallPolicyDetails( statefulRuleGroupReferences: (json['StatefulRuleGroupReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallPolicyStatefulRuleGroupReferencesDetails.fromJson( e as Map)) .toList(), statelessCustomActions: (json['StatelessCustomActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallPolicyStatelessCustomActionsDetails.fromJson( e as Map)) .toList(), statelessDefaultActions: (json['StatelessDefaultActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statelessFragmentDefaultActions: (json['StatelessFragmentDefaultActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statelessRuleGroupReferences: (json['StatelessRuleGroupReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallPolicyStatelessRuleGroupReferencesDetails.fromJson( e as Map)) @@ -41707,10 +41664,8 @@ class GeneratorDetails { factory GeneratorDetails.fromJson(Map json) { return GeneratorDetails( description: json['Description'] as String?, - labels: (json['Labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['Labels'] as List?)?.nonNulls.map((e) => e as String).toList(), name: json['Name'] as String?, ); } @@ -41902,7 +41857,7 @@ class GetEnabledStandardsResponse { return GetEnabledStandardsResponse( nextToken: json['NextToken'] as String?, standardsSubscriptions: (json['StandardsSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StandardsSubscription.fromJson(e as Map)) .toList(), ); @@ -41935,10 +41890,8 @@ class GetFindingAggregatorResponse { findingAggregationRegion: json['FindingAggregationRegion'] as String?, findingAggregatorArn: json['FindingAggregatorArn'] as String?, regionLinkingMode: json['RegionLinkingMode'] as String?, - regions: (json['Regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['Regions'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -41963,7 +41916,7 @@ class GetFindingHistoryResponse { return GetFindingHistoryResponse( nextToken: json['NextToken'] as String?, records: (json['Records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingHistoryRecord.fromJson(e as Map)) .toList(), ); @@ -41985,7 +41938,7 @@ class GetFindingsResponse { factory GetFindingsResponse.fromJson(Map json) { return GetFindingsResponse( findings: (json['Findings'] as List) - .whereNotNull() + .nonNulls .map((e) => AwsSecurityFinding.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -42024,7 +41977,7 @@ class GetInsightsResponse { factory GetInsightsResponse.fromJson(Map json) { return GetInsightsResponse( insights: (json['Insights'] as List) - .whereNotNull() + .nonNulls .map((e) => Insight.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -42082,11 +42035,11 @@ class GetMembersResponse { factory GetMembersResponse.fromJson(Map json) { return GetMembersResponse( members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Member.fromJson(e as Map)) .toList(), unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), ); @@ -42257,7 +42210,7 @@ class InsightResults { groupByAttribute: json['GroupByAttribute'] as String, insightArn: json['InsightArn'] as String, resultValues: (json['ResultValues'] as List) - .whereNotNull() + .nonNulls .map((e) => InsightResultValue.fromJson(e as Map)) .toList(), ); @@ -42317,7 +42270,7 @@ class IntegerListConfigurationOptions { factory IntegerListConfigurationOptions.fromJson(Map json) { return IntegerListConfigurationOptions( defaultValue: (json['DefaultValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), max: json['Max'] as int?, @@ -42388,7 +42341,7 @@ class InviteMembersResponse { factory InviteMembersResponse.fromJson(Map json) { return InviteMembersResponse( unprocessedAccounts: (json['UnprocessedAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Result.fromJson(e as Map)) .toList(), ); @@ -42559,7 +42512,7 @@ class ListAutomationRulesResponse { factory ListAutomationRulesResponse.fromJson(Map json) { return ListAutomationRulesResponse( automationRulesMetadata: (json['AutomationRulesMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomationRulesMetadata.fromJson(e as Map)) .toList(), @@ -42590,7 +42543,7 @@ class ListConfigurationPoliciesResponse { return ListConfigurationPoliciesResponse( configurationPolicySummaries: (json['ConfigurationPolicySummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationPolicySummary.fromJson(e as Map)) .toList(), @@ -42624,7 +42577,7 @@ class ListConfigurationPolicyAssociationsResponse { return ListConfigurationPolicyAssociationsResponse( configurationPolicyAssociationSummaries: (json['ConfigurationPolicyAssociationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConfigurationPolicyAssociationSummary.fromJson( e as Map)) .toList(), @@ -42651,7 +42604,7 @@ class ListEnabledProductsForImportResponse { return ListEnabledProductsForImportResponse( nextToken: json['NextToken'] as String?, productSubscriptions: (json['ProductSubscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -42677,7 +42630,7 @@ class ListFindingAggregatorsResponse { factory ListFindingAggregatorsResponse.fromJson(Map json) { return ListFindingAggregatorsResponse( findingAggregators: (json['FindingAggregators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FindingAggregator.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -42700,7 +42653,7 @@ class ListInvitationsResponse { factory ListInvitationsResponse.fromJson(Map json) { return ListInvitationsResponse( invitations: (json['Invitations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Invitation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -42723,7 +42676,7 @@ class ListMembersResponse { factory ListMembersResponse.fromJson(Map json) { return ListMembersResponse( members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Member.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -42747,7 +42700,7 @@ class ListOrganizationAdminAccountsResponse { Map json) { return ListOrganizationAdminAccountsResponse( adminAccounts: (json['AdminAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdminAccount.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -42772,7 +42725,7 @@ class ListSecurityControlDefinitionsResponse { Map json) { return ListSecurityControlDefinitionsResponse( securityControlDefinitions: (json['SecurityControlDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => SecurityControlDefinition.fromJson(e as Map)) .toList(), @@ -42801,7 +42754,7 @@ class ListStandardsControlAssociationsResponse { return ListStandardsControlAssociationsResponse( standardsControlAssociationSummaries: (json['StandardsControlAssociationSummaries'] as List) - .whereNotNull() + .nonNulls .map((e) => StandardsControlAssociationSummary.fromJson( e as Map)) .toList(), @@ -43478,12 +43431,10 @@ class NetworkPathComponentDetails { factory NetworkPathComponentDetails.fromJson(Map json) { return NetworkPathComponentDetails( - address: (json['Address'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + address: + (json['Address'] as List?)?.nonNulls.map((e) => e as String).toList(), portRanges: (json['PortRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortRange.fromJson(e as Map)) .toList(), ); @@ -43685,23 +43636,23 @@ class Occurrences { factory Occurrences.fromJson(Map json) { return Occurrences( cells: (json['Cells'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cell.fromJson(e as Map)) .toList(), lineRanges: (json['LineRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Range.fromJson(e as Map)) .toList(), offsetRanges: (json['OffsetRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Range.fromJson(e as Map)) .toList(), pages: (json['Pages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Page.fromJson(e as Map)) .toList(), records: (json['Records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Record.fromJson(e as Map)) .toList(), ); @@ -43970,17 +43921,17 @@ class ParameterValue { doubleValue: json['Double'] as double?, enumValue: json['Enum'] as String?, enumList: (json['EnumList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), integer: json['Integer'] as int?, integerList: (json['IntegerList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), string: json['String'] as String?, stringList: (json['StringList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -44267,7 +44218,7 @@ class PortProbeAction { return PortProbeAction( blocked: json['Blocked'] as bool?, portProbeDetails: (json['PortProbeDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortProbeDetail.fromJson(e as Map)) .toList(), ); @@ -44578,13 +44529,13 @@ class Product { productArn: json['ProductArn'] as String, activationUrl: json['ActivationUrl'] as String?, categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), companyName: json['CompanyName'] as String?, description: json['Description'] as String?, integrationTypes: (json['IntegrationTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IntegrationType.fromString((e as String))) .toList(), marketplaceUrl: json['MarketplaceUrl'] as String?, @@ -46271,7 +46222,7 @@ class RuleGroupSource { : null, rulesString: json['RulesString'] as String?, statefulRules: (json['StatefulRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatefulRulesDetails.fromJson( e as Map)) .toList(), @@ -46360,13 +46311,11 @@ class RuleGroupSourceListDetails { return RuleGroupSourceListDetails( generatedRulesType: json['GeneratedRulesType'] as String?, targetTypes: (json['TargetTypes'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + targets: + (json['Targets'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -46409,7 +46358,7 @@ class RuleGroupSourceStatefulRulesDetails { json['Header'] as Map) : null, ruleOptions: (json['RuleOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatefulRulesOptionsDetails.fromJson( e as Map)) .toList(), @@ -46516,7 +46465,7 @@ class RuleGroupSourceStatefulRulesOptionsDetails { return RuleGroupSourceStatefulRulesOptionsDetails( keyword: json['Keyword'] as String?, settings: (json['Settings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -46552,10 +46501,8 @@ class RuleGroupSourceStatelessRuleDefinition { factory RuleGroupSourceStatelessRuleDefinition.fromJson( Map json) { return RuleGroupSourceStatelessRuleDefinition( - actions: (json['Actions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List?)?.nonNulls.map((e) => e as String).toList(), matchAttributes: json['MatchAttributes'] != null ? RuleGroupSourceStatelessRuleMatchAttributes.fromJson( json['MatchAttributes'] as Map) @@ -46610,35 +46557,33 @@ class RuleGroupSourceStatelessRuleMatchAttributes { Map json) { return RuleGroupSourceStatelessRuleMatchAttributes( destinationPorts: (json['DestinationPorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatelessRuleMatchAttributesDestinationPorts .fromJson(e as Map)) .toList(), destinations: (json['Destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatelessRuleMatchAttributesDestinations.fromJson( e as Map)) .toList(), - protocols: (json['Protocols'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + protocols: + (json['Protocols'] as List?)?.nonNulls.map((e) => e as int).toList(), sourcePorts: (json['SourcePorts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatelessRuleMatchAttributesSourcePorts.fromJson( e as Map)) .toList(), sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatelessRuleMatchAttributesSources.fromJson( e as Map)) .toList(), tcpFlags: (json['TcpFlags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatelessRuleMatchAttributesTcpFlags.fromJson( e as Map)) @@ -46793,14 +46738,10 @@ class RuleGroupSourceStatelessRuleMatchAttributesTcpFlags { factory RuleGroupSourceStatelessRuleMatchAttributesTcpFlags.fromJson( Map json) { return RuleGroupSourceStatelessRuleMatchAttributesTcpFlags( - flags: (json['Flags'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - masks: (json['Masks'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + flags: + (json['Flags'] as List?)?.nonNulls.map((e) => e as String).toList(), + masks: + (json['Masks'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -46831,12 +46772,12 @@ class RuleGroupSourceStatelessRulesAndCustomActionsDetails { Map json) { return RuleGroupSourceStatelessRulesAndCustomActionsDetails( customActions: (json['CustomActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceCustomActionsDetails.fromJson( e as Map)) .toList(), statelessRules: (json['StatelessRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSourceStatelessRulesDetails.fromJson( e as Map)) .toList(), @@ -46936,7 +46877,7 @@ class RuleGroupVariablesIpSetsDetails { factory RuleGroupVariablesIpSetsDetails.fromJson(Map json) { return RuleGroupVariablesIpSetsDetails( definition: (json['Definition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -46963,7 +46904,7 @@ class RuleGroupVariablesPortSetsDetails { Map json) { return RuleGroupVariablesPortSetsDetails( definition: (json['Definition'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -47184,7 +47125,7 @@ class SecurityControlDefinition { SeverityRating.fromString((json['SeverityRating'] as String)), title: json['Title'] as String, customizableProperties: (json['CustomizableProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityControlProperty.fromString((e as String))) .toList(), parameterDefinitions: @@ -47211,10 +47152,8 @@ class SecurityControlParameter { factory SecurityControlParameter.fromJson(Map json) { return SecurityControlParameter( name: json['Name'] as String?, - value: (json['Value'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + value: + (json['Value'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -47270,17 +47209,17 @@ class SecurityControlsConfiguration { return SecurityControlsConfiguration( disabledSecurityControlIdentifiers: (json['DisabledSecurityControlIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), enabledSecurityControlIdentifiers: (json['EnabledSecurityControlIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityControlCustomParameters: (json['SecurityControlCustomParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityControlCustomParameter.fromJson( e as Map)) .toList(), @@ -47337,7 +47276,7 @@ class SecurityHubPolicy { factory SecurityHubPolicy.fromJson(Map json) { return SecurityHubPolicy( enabledStandardIdentifiers: (json['EnabledStandardIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityControlsConfiguration: @@ -47427,7 +47366,7 @@ class SensitiveDataResult { return SensitiveDataResult( category: json['Category'] as String?, detections: (json['Detections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SensitiveDataDetections.fromJson(e as Map)) .toList(), @@ -47924,7 +47863,7 @@ class StandardsControl { description: json['Description'] as String?, disabledReason: json['DisabledReason'] as String?, relatedRequirements: (json['RelatedRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), remediationUrl: json['RemediationUrl'] as String?, @@ -48003,11 +47942,11 @@ class StandardsControlAssociationDetail { securityControlId: json['SecurityControlId'] as String, standardsArn: json['StandardsArn'] as String, relatedRequirements: (json['RelatedRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), standardsControlArns: (json['StandardsControlArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), standardsControlDescription: @@ -48115,7 +48054,7 @@ class StandardsControlAssociationSummary { securityControlId: json['SecurityControlId'] as String, standardsArn: json['StandardsArn'] as String, relatedRequirements: (json['RelatedRequirements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), standardsControlDescription: @@ -48431,7 +48370,7 @@ class StatelessCustomPublishMetricAction { Map json) { return StatelessCustomPublishMetricAction( dimensions: (json['Dimensions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StatelessCustomPublishMetricActionDimension.fromJson( e as Map)) .toList(), @@ -48727,7 +48666,7 @@ class StringListConfigurationOptions { factory StringListConfigurationOptions.fromJson(Map json) { return StringListConfigurationOptions( defaultValue: (json['DefaultValue'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), expressionDescription: json['ExpressionDescription'] as String?, @@ -48831,7 +48770,7 @@ class Threat { factory Threat.fromJson(Map json) { return Threat( filePaths: (json['FilePaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FilePaths.fromJson(e as Map)) .toList(), itemCount: json['ItemCount'] as int?, @@ -49353,10 +49292,8 @@ class UpdateFindingAggregatorResponse { findingAggregationRegion: json['FindingAggregationRegion'] as String?, findingAggregatorArn: json['FindingAggregatorArn'] as String?, regionLinkingMode: json['RegionLinkingMode'] as String?, - regions: (json['Regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['Regions'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -49644,12 +49581,12 @@ class Vulnerability { return Vulnerability( id: json['Id'] as String, codeVulnerabilities: (json['CodeVulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VulnerabilityCodeVulnerabilities.fromJson( e as Map)) .toList(), cvss: (json['Cvss'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Cvss.fromJson(e as Map)) .toList(), epssScore: json['EpssScore'] as double?, @@ -49659,18 +49596,18 @@ class Vulnerability { ?.let(VulnerabilityFixAvailable.fromString), lastKnownExploitAt: json['LastKnownExploitAt'] as String?, referenceUrls: (json['ReferenceUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), relatedVulnerabilities: (json['RelatedVulnerabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vendor: json['Vendor'] != null ? VulnerabilityVendor.fromJson(json['Vendor'] as Map) : null, vulnerablePackages: (json['VulnerablePackages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SoftwarePackage.fromJson(e as Map)) .toList(), ); @@ -49730,10 +49667,7 @@ class VulnerabilityCodeVulnerabilities { factory VulnerabilityCodeVulnerabilities.fromJson(Map json) { return VulnerabilityCodeVulnerabilities( - cwes: (json['Cwes'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + cwes: (json['Cwes'] as List?)?.nonNulls.map((e) => e as String).toList(), filePath: json['FilePath'] != null ? CodeVulnerabilitiesFilePath.fromJson( json['FilePath'] as Map) diff --git a/generated/aws_securityhub_api/pubspec.yaml b/generated/aws_securityhub_api/pubspec.yaml index 1a5c46930..13089629b 100644 --- a/generated/aws_securityhub_api/pubspec.yaml +++ b/generated/aws_securityhub_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_securi protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_serverlessrepo_api/lib/serverlessrepo-2017-09-08.dart b/generated/aws_serverlessrepo_api/lib/serverlessrepo-2017-09-08.dart index 57b9d84e7..26d234019 100644 --- a/generated/aws_serverlessrepo_api/lib/serverlessrepo-2017-09-08.dart +++ b/generated/aws_serverlessrepo_api/lib/serverlessrepo-2017-09-08.dart @@ -923,16 +923,14 @@ class ApplicationPolicyStatement { factory ApplicationPolicyStatement.fromJson(Map json) { return ApplicationPolicyStatement( - actions: (json['actions'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['actions'] as List).nonNulls.map((e) => e as String).toList(), principals: (json['principals'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), principalOrgIDs: (json['principalOrgIDs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), statementId: json['statementId'] as String?, @@ -1014,10 +1012,8 @@ class ApplicationSummary { name: json['name'] as String, creationTime: json['creationTime'] as String?, homePageUrl: json['homePageUrl'] as String?, - labels: (json['labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['labels'] as List?)?.nonNulls.map((e) => e as String).toList(), spdxLicenseId: json['spdxLicenseId'] as String?, ); } @@ -1129,10 +1125,8 @@ class CreateApplicationResponse { description: json['description'] as String?, homePageUrl: json['homePageUrl'] as String?, isVerifiedAuthor: json['isVerifiedAuthor'] as bool?, - labels: (json['labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['labels'] as List?)?.nonNulls.map((e) => e as String).toList(), licenseUrl: json['licenseUrl'] as String?, name: json['name'] as String?, readmeUrl: json['readmeUrl'] as String?, @@ -1253,11 +1247,11 @@ class CreateApplicationVersionResponse { applicationId: json['applicationId'] as String?, creationTime: json['creationTime'] as String?, parameterDefinitions: (json['parameterDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterDefinition.fromJson(e as Map)) .toList(), requiredCapabilities: (json['requiredCapabilities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Capability.fromString((e as String))) .toList(), resourcesSupported: json['resourcesSupported'] as bool?, @@ -1377,7 +1371,7 @@ class GetApplicationPolicyResponse { factory GetApplicationPolicyResponse.fromJson(Map json) { return GetApplicationPolicyResponse( statements: (json['statements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationPolicyStatement.fromJson(e as Map)) .toList(), @@ -1474,10 +1468,8 @@ class GetApplicationResponse { description: json['description'] as String?, homePageUrl: json['homePageUrl'] as String?, isVerifiedAuthor: json['isVerifiedAuthor'] as bool?, - labels: (json['labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['labels'] as List?)?.nonNulls.map((e) => e as String).toList(), licenseUrl: json['licenseUrl'] as String?, name: json['name'] as String?, readmeUrl: json['readmeUrl'] as String?, @@ -1564,7 +1556,7 @@ class ListApplicationDependenciesResponse { Map json) { return ListApplicationDependenciesResponse( dependencies: (json['dependencies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationDependencySummary.fromJson(e as Map)) .toList(), @@ -1589,7 +1581,7 @@ class ListApplicationVersionsResponse { return ListApplicationVersionsResponse( nextToken: json['nextToken'] as String?, versions: (json['versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VersionSummary.fromJson(e as Map)) .toList(), ); @@ -1611,7 +1603,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applications: (json['applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1741,12 +1733,12 @@ class ParameterDefinition { return ParameterDefinition( name: json['name'] as String, referencedByResources: (json['referencedByResources'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), allowedPattern: json['allowedPattern'] as String?, allowedValues: (json['allowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), constraintDescription: json['constraintDescription'] as String?, @@ -1798,7 +1790,7 @@ class PutApplicationPolicyResponse { factory PutApplicationPolicyResponse.fromJson(Map json) { return PutApplicationPolicyResponse( statements: (json['statements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationPolicyStatement.fromJson(e as Map)) .toList(), @@ -2006,10 +1998,8 @@ class UpdateApplicationResponse { description: json['description'] as String?, homePageUrl: json['homePageUrl'] as String?, isVerifiedAuthor: json['isVerifiedAuthor'] as bool?, - labels: (json['labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['labels'] as List?)?.nonNulls.map((e) => e as String).toList(), licenseUrl: json['licenseUrl'] as String?, name: json['name'] as String?, readmeUrl: json['readmeUrl'] as String?, @@ -2131,11 +2121,11 @@ class Version { applicationId: json['applicationId'] as String, creationTime: json['creationTime'] as String, parameterDefinitions: (json['parameterDefinitions'] as List) - .whereNotNull() + .nonNulls .map((e) => ParameterDefinition.fromJson(e as Map)) .toList(), requiredCapabilities: (json['requiredCapabilities'] as List) - .whereNotNull() + .nonNulls .map((e) => Capability.fromString((e as String))) .toList(), resourcesSupported: json['resourcesSupported'] as bool, diff --git a/generated/aws_serverlessrepo_api/pubspec.yaml b/generated/aws_serverlessrepo_api/pubspec.yaml index 0ab105b5f..083ae3a1d 100644 --- a/generated/aws_serverlessrepo_api/pubspec.yaml +++ b/generated/aws_serverlessrepo_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_server protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_service_quotas_api/lib/service-quotas-2019-06-24.dart b/generated/aws_service_quotas_api/lib/service-quotas-2019-06-24.dart index 0f664e9d3..a54bf0223 100644 --- a/generated/aws_service_quotas_api/lib/service-quotas-2019-06-24.dart +++ b/generated/aws_service_quotas_api/lib/service-quotas-2019-06-24.dart @@ -1273,7 +1273,7 @@ class ListAWSDefaultServiceQuotasResponse { return ListAWSDefaultServiceQuotasResponse( nextToken: json['NextToken'] as String?, quotas: (json['Quotas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceQuota.fromJson(e as Map)) .toList(), ); @@ -1301,7 +1301,7 @@ class ListRequestedServiceQuotaChangeHistoryByQuotaResponse { return ListRequestedServiceQuotaChangeHistoryByQuotaResponse( nextToken: json['NextToken'] as String?, requestedQuotas: (json['RequestedQuotas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RequestedServiceQuotaChange.fromJson(e as Map)) .toList(), @@ -1330,7 +1330,7 @@ class ListRequestedServiceQuotaChangeHistoryResponse { return ListRequestedServiceQuotaChangeHistoryResponse( nextToken: json['NextToken'] as String?, requestedQuotas: (json['RequestedQuotas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RequestedServiceQuotaChange.fromJson(e as Map)) .toList(), @@ -1361,7 +1361,7 @@ class ListServiceQuotaIncreaseRequestsInTemplateResponse { nextToken: json['NextToken'] as String?, serviceQuotaIncreaseRequestInTemplateList: (json['ServiceQuotaIncreaseRequestInTemplateList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceQuotaIncreaseRequestInTemplate.fromJson( e as Map)) .toList(), @@ -1389,7 +1389,7 @@ class ListServiceQuotasResponse { return ListServiceQuotasResponse( nextToken: json['NextToken'] as String?, quotas: (json['Quotas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceQuota.fromJson(e as Map)) .toList(), ); @@ -1416,7 +1416,7 @@ class ListServicesResponse { return ListServicesResponse( nextToken: json['NextToken'] as String?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceInfo.fromJson(e as Map)) .toList(), ); @@ -1434,7 +1434,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_service_quotas_api/pubspec.yaml b/generated/aws_service_quotas_api/pubspec.yaml index 62bdfbdde..95ebb504a 100644 --- a/generated/aws_service_quotas_api/pubspec.yaml +++ b/generated/aws_service_quotas_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_servic protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_servicecatalog_api/lib/servicecatalog-2015-12-10.dart b/generated/aws_servicecatalog_api/lib/servicecatalog-2015-12-10.dart index 1ba8de444..d5a9d2e94 100644 --- a/generated/aws_servicecatalog_api/lib/servicecatalog-2015-12-10.dart +++ b/generated/aws_servicecatalog_api/lib/servicecatalog-2015-12-10.dart @@ -6030,7 +6030,7 @@ class BatchAssociateServiceActionWithProvisioningArtifactOutput { return BatchAssociateServiceActionWithProvisioningArtifactOutput( failedServiceActionAssociations: (json['FailedServiceActionAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedServiceActionAssociation.fromJson( e as Map)) .toList(), @@ -6052,7 +6052,7 @@ class BatchDisassociateServiceActionFromProvisioningArtifactOutput { return BatchDisassociateServiceActionFromProvisioningArtifactOutput( failedServiceActionAssociations: (json['FailedServiceActionAssociations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedServiceActionAssociation.fromJson( e as Map)) .toList(), @@ -6343,7 +6343,7 @@ class CreatePortfolioOutput { json['PortfolioDetail'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6393,7 +6393,7 @@ class CreateProductOutput { json['ProvisioningArtifactDetail'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6665,7 +6665,7 @@ class DescribePortfolioOutput { factory DescribePortfolioOutput.fromJson(Map json) { return DescribePortfolioOutput( budgets: (json['Budgets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BudgetDetail.fromJson(e as Map)) .toList(), portfolioDetail: json['PortfolioDetail'] != null @@ -6673,11 +6673,11 @@ class DescribePortfolioOutput { json['PortfolioDetail'] as Map) : null, tagOptions: (json['TagOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagOptionDetail.fromJson(e as Map)) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6758,7 +6758,7 @@ class DescribePortfolioSharesOutput { return DescribePortfolioSharesOutput( nextPageToken: json['NextPageToken'] as String?, portfolioShareDetails: (json['PortfolioShareDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortfolioShareDetail.fromJson(e as Map)) .toList(), ); @@ -6793,7 +6793,7 @@ class DescribeProductAsAdminOutput { factory DescribeProductAsAdminOutput.fromJson(Map json) { return DescribeProductAsAdminOutput( budgets: (json['Budgets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BudgetDetail.fromJson(e as Map)) .toList(), productViewDetail: json['ProductViewDetail'] != null @@ -6802,16 +6802,16 @@ class DescribeProductAsAdminOutput { : null, provisioningArtifactSummaries: (json['ProvisioningArtifactSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactSummary.fromJson(e as Map)) .toList(), tagOptions: (json['TagOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagOptionDetail.fromJson(e as Map)) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6841,11 +6841,11 @@ class DescribeProductOutput { factory DescribeProductOutput.fromJson(Map json) { return DescribeProductOutput( budgets: (json['Budgets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BudgetDetail.fromJson(e as Map)) .toList(), launchPaths: (json['LaunchPaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchPath.fromJson(e as Map)) .toList(), productViewSummary: json['ProductViewSummary'] != null @@ -6853,7 +6853,7 @@ class DescribeProductOutput { json['ProductViewSummary'] as Map) : null, provisioningArtifacts: (json['ProvisioningArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifact.fromJson(e as Map)) .toList(), ); @@ -6879,7 +6879,7 @@ class DescribeProductViewOutput { json['ProductViewSummary'] as Map) : null, provisioningArtifacts: (json['ProvisioningArtifacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifact.fromJson(e as Map)) .toList(), ); @@ -6901,7 +6901,7 @@ class DescribeProvisionedProductOutput { factory DescribeProvisionedProductOutput.fromJson(Map json) { return DescribeProvisionedProductOutput( cloudWatchDashboards: (json['CloudWatchDashboards'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CloudWatchDashboard.fromJson(e as Map)) .toList(), provisionedProductDetail: json['ProvisionedProductDetail'] != null @@ -6940,7 +6940,7 @@ class DescribeProvisionedProductPlanOutput { json['ProvisionedProductPlanDetails'] as Map) : null, resourceChanges: (json['ResourceChanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceChange.fromJson(e as Map)) .toList(), ); @@ -6979,7 +6979,7 @@ class DescribeProvisioningArtifactOutput { : null, provisioningArtifactParameters: (json['ProvisioningArtifactParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactParameter.fromJson(e as Map)) .toList(), @@ -7029,24 +7029,24 @@ class DescribeProvisioningParametersOutput { Map json) { return DescribeProvisioningParametersOutput( constraintSummaries: (json['ConstraintSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConstraintSummary.fromJson(e as Map)) .toList(), provisioningArtifactOutputKeys: (json['ProvisioningArtifactOutputKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactOutput.fromJson(e as Map)) .toList(), provisioningArtifactOutputs: (json['ProvisioningArtifactOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactOutput.fromJson(e as Map)) .toList(), provisioningArtifactParameters: (json['ProvisioningArtifactParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactParameter.fromJson(e as Map)) .toList(), @@ -7057,11 +7057,11 @@ class DescribeProvisioningParametersOutput { as Map) : null, tagOptions: (json['TagOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagOptionSummary.fromJson(e as Map)) .toList(), usageInstructions: (json['UsageInstructions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UsageInstruction.fromJson(e as Map)) .toList(), ); @@ -7094,7 +7094,7 @@ class DescribeRecordOutput { ? RecordDetail.fromJson(json['RecordDetail'] as Map) : null, recordOutputs: (json['RecordOutputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecordOutput.fromJson(e as Map)) .toList(), ); @@ -7113,7 +7113,7 @@ class DescribeServiceActionExecutionParametersOutput { Map json) { return DescribeServiceActionExecutionParametersOutput( serviceActionParameters: (json['ServiceActionParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExecutionParameter.fromJson(e as Map)) .toList(), ); @@ -7324,7 +7324,7 @@ class ExecutionParameter { factory ExecutionParameter.fromJson(Map json) { return ExecutionParameter( defaultValues: (json['DefaultValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -7410,7 +7410,7 @@ class GetProvisionedProductOutputsOutput { return GetProvisionedProductOutputsOutput( nextPageToken: json['NextPageToken'] as String?, outputs: (json['Outputs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecordOutput.fromJson(e as Map)) .toList(), ); @@ -7554,13 +7554,13 @@ class LaunchPathSummary { factory LaunchPathSummary.fromJson(Map json) { return LaunchPathSummary( constraintSummaries: (json['ConstraintSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConstraintSummary.fromJson(e as Map)) .toList(), id: json['Id'] as String?, name: json['Name'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7585,7 +7585,7 @@ class ListAcceptedPortfolioSharesOutput { return ListAcceptedPortfolioSharesOutput( nextPageToken: json['NextPageToken'] as String?, portfolioDetails: (json['PortfolioDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortfolioDetail.fromJson(e as Map)) .toList(), ); @@ -7608,7 +7608,7 @@ class ListBudgetsForResourceOutput { factory ListBudgetsForResourceOutput.fromJson(Map json) { return ListBudgetsForResourceOutput( budgets: (json['Budgets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BudgetDetail.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -7633,7 +7633,7 @@ class ListConstraintsForPortfolioOutput { Map json) { return ListConstraintsForPortfolioOutput( constraintDetails: (json['ConstraintDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConstraintDetail.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -7657,7 +7657,7 @@ class ListLaunchPathsOutput { factory ListLaunchPathsOutput.fromJson(Map json) { return ListLaunchPathsOutput( launchPathSummaries: (json['LaunchPathSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LaunchPathSummary.fromJson(e as Map)) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -7683,7 +7683,7 @@ class ListOrganizationPortfolioAccessOutput { return ListOrganizationPortfolioAccessOutput( nextPageToken: json['NextPageToken'] as String?, organizationNodes: (json['OrganizationNodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationNode.fromJson(e as Map)) .toList(), ); @@ -7707,7 +7707,7 @@ class ListPortfolioAccessOutput { factory ListPortfolioAccessOutput.fromJson(Map json) { return ListPortfolioAccessOutput( accountIds: (json['AccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextPageToken: json['NextPageToken'] as String?, @@ -7732,7 +7732,7 @@ class ListPortfoliosForProductOutput { return ListPortfoliosForProductOutput( nextPageToken: json['NextPageToken'] as String?, portfolioDetails: (json['PortfolioDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortfolioDetail.fromJson(e as Map)) .toList(), ); @@ -7756,7 +7756,7 @@ class ListPortfoliosOutput { return ListPortfoliosOutput( nextPageToken: json['NextPageToken'] as String?, portfolioDetails: (json['PortfolioDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PortfolioDetail.fromJson(e as Map)) .toList(), ); @@ -7781,7 +7781,7 @@ class ListPrincipalsForPortfolioOutput { return ListPrincipalsForPortfolioOutput( nextPageToken: json['NextPageToken'] as String?, principals: (json['Principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Principal.fromJson(e as Map)) .toList(), ); @@ -7806,7 +7806,7 @@ class ListProvisionedProductPlansOutput { return ListProvisionedProductPlansOutput( nextPageToken: json['NextPageToken'] as String?, provisionedProductPlans: (json['ProvisionedProductPlans'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisionedProductPlanSummary.fromJson(e as Map)) .toList(), @@ -7833,7 +7833,7 @@ class ListProvisioningArtifactsForServiceActionOutput { return ListProvisioningArtifactsForServiceActionOutput( nextPageToken: json['NextPageToken'] as String?, provisioningArtifactViews: (json['ProvisioningArtifactViews'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactView.fromJson(e as Map)) .toList(), @@ -7859,7 +7859,7 @@ class ListProvisioningArtifactsOutput { nextPageToken: json['NextPageToken'] as String?, provisioningArtifactDetails: (json['ProvisioningArtifactDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisioningArtifactDetail.fromJson(e as Map)) .toList(), @@ -7884,7 +7884,7 @@ class ListRecordHistoryOutput { return ListRecordHistoryOutput( nextPageToken: json['NextPageToken'] as String?, recordDetails: (json['RecordDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecordDetail.fromJson(e as Map)) .toList(), ); @@ -7942,7 +7942,7 @@ class ListResourcesForTagOptionOutput { return ListResourcesForTagOptionOutput( pageToken: json['PageToken'] as String?, resourceDetails: (json['ResourceDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceDetail.fromJson(e as Map)) .toList(), ); @@ -7968,7 +7968,7 @@ class ListServiceActionsForProvisioningArtifactOutput { return ListServiceActionsForProvisioningArtifactOutput( nextPageToken: json['NextPageToken'] as String?, serviceActionSummaries: (json['ServiceActionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceActionSummary.fromJson(e as Map)) .toList(), ); @@ -7993,7 +7993,7 @@ class ListServiceActionsOutput { return ListServiceActionsOutput( nextPageToken: json['NextPageToken'] as String?, serviceActionSummaries: (json['ServiceActionSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceActionSummary.fromJson(e as Map)) .toList(), ); @@ -8018,7 +8018,7 @@ class ListStackInstancesForProvisionedProductOutput { return ListStackInstancesForProvisionedProductOutput( nextPageToken: json['NextPageToken'] as String?, stackInstances: (json['StackInstances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StackInstance.fromJson(e as Map)) .toList(), ); @@ -8071,7 +8071,7 @@ class ListTagOptionsOutput { return ListTagOptionsOutput( pageToken: json['PageToken'] as String?, tagOptionDetails: (json['TagOptionDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TagOptionDetail.fromJson(e as Map)) .toList(), ); @@ -8207,7 +8207,7 @@ class ParameterConstraints { return ParameterConstraints( allowedPattern: json['AllowedPattern'] as String?, allowedValues: (json['AllowedValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), constraintDescription: json['ConstraintDescription'] as String?, @@ -8794,7 +8794,7 @@ class ProvisionedProductAttribute { (json['Status'] as String?)?.let(ProvisionedProductStatus.fromString), statusMessage: json['StatusMessage'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: json['Type'] as String?, @@ -9029,7 +9029,7 @@ class ProvisionedProductPlanDetails { return ProvisionedProductPlanDetails( createdTime: timeStampFromJson(json['CreatedTime']), notificationArns: (json['NotificationArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), pathId: json['PathId'] as String?, @@ -9042,7 +9042,7 @@ class ProvisionedProductPlanDetails { provisionProductName: json['ProvisionProductName'] as String?, provisioningArtifactId: json['ProvisioningArtifactId'] as String?, provisioningParameters: (json['ProvisioningParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UpdateProvisioningParameter.fromJson(e as Map)) .toList(), @@ -9050,7 +9050,7 @@ class ProvisionedProductPlanDetails { ?.let(ProvisionedProductPlanStatus.fromString), statusMessage: json['StatusMessage'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), updatedTime: timeStampFromJson(json['UpdatedTime']), @@ -9399,11 +9399,11 @@ class ProvisioningArtifactPreferences { factory ProvisioningArtifactPreferences.fromJson(Map json) { return ProvisioningArtifactPreferences( stackSetAccounts: (json['StackSetAccounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stackSetRegions: (json['StackSetRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9865,12 +9865,12 @@ class RecordDetail { provisionedProductType: json['ProvisionedProductType'] as String?, provisioningArtifactId: json['ProvisioningArtifactId'] as String?, recordErrors: (json['RecordErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecordError.fromJson(e as Map)) .toList(), recordId: json['RecordId'] as String?, recordTags: (json['RecordTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RecordTag.fromJson(e as Map)) .toList(), recordType: json['RecordType'] as String?, @@ -10075,7 +10075,7 @@ class ResourceChange { return ResourceChange( action: (json['Action'] as String?)?.let(ChangeAction.fromString), details: (json['Details'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceChangeDetail.fromJson(e as Map)) .toList(), logicalResourceId: json['LogicalResourceId'] as String?, @@ -10084,7 +10084,7 @@ class ResourceChange { (json['Replacement'] as String?)?.let(Replacement.fromString), resourceType: json['ResourceType'] as String?, scope: (json['Scope'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceAttribute.fromString((e as String))) .toList(), ); @@ -10206,7 +10206,7 @@ class ScanProvisionedProductsOutput { return ScanProvisionedProductsOutput( nextPageToken: json['NextPageToken'] as String?, provisionedProducts: (json['ProvisionedProducts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisionedProductDetail.fromJson(e as Map)) .toList(), @@ -10231,7 +10231,7 @@ class SearchProductsAsAdminOutput { return SearchProductsAsAdminOutput( nextPageToken: json['NextPageToken'] as String?, productViewDetails: (json['ProductViewDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductViewDetail.fromJson(e as Map)) .toList(), ); @@ -10263,12 +10263,12 @@ class SearchProductsOutput { (k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ProductViewAggregationValue.fromJson( e as Map)) .toList())), productViewSummaries: (json['ProductViewSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProductViewSummary.fromJson(e as Map)) .toList(), ); @@ -10296,7 +10296,7 @@ class SearchProvisionedProductsOutput { return SearchProvisionedProductsOutput( nextPageToken: json['NextPageToken'] as String?, provisionedProducts: (json['ProvisionedProducts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ProvisionedProductAttribute.fromJson(e as Map)) .toList(), @@ -10461,11 +10461,11 @@ class ShareDetails { factory ShareDetails.fromJson(Map json) { return ShareDetails( shareErrors: (json['ShareErrors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ShareError.fromJson(e as Map)) .toList(), successfulShares: (json['SuccessfulShares'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -10492,7 +10492,7 @@ class ShareError { factory ShareError.fromJson(Map json) { return ShareError( accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), error: json['Error'] as String?, @@ -10839,10 +10839,8 @@ class TagOptionSummary { factory TagOptionSummary.fromJson(Map json) { return TagOptionSummary( key: json['Key'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -10936,7 +10934,7 @@ class UpdatePortfolioOutput { json['PortfolioDetail'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -10985,7 +10983,7 @@ class UpdateProductOutput { json['ProductViewDetail'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_servicecatalog_api/pubspec.yaml b/generated/aws_servicecatalog_api/pubspec.yaml index cc402e2bb..47e6c9874 100644 --- a/generated/aws_servicecatalog_api/pubspec.yaml +++ b/generated/aws_servicecatalog_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_servic protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_servicediscovery_api/lib/servicediscovery-2017-03-14.dart b/generated/aws_servicediscovery_api/lib/servicediscovery-2017-03-14.dart index 79021964f..b4c15a1b9 100644 --- a/generated/aws_servicediscovery_api/lib/servicediscovery-2017-03-14.dart +++ b/generated/aws_servicediscovery_api/lib/servicediscovery-2017-03-14.dart @@ -1822,7 +1822,7 @@ class DiscoverInstancesResponse { factory DiscoverInstancesResponse.fromJson(Map json) { return DiscoverInstancesResponse( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HttpInstanceSummary.fromJson(e as Map)) .toList(), instancesRevision: json['InstancesRevision'] as int?, @@ -1923,7 +1923,7 @@ class DnsConfig { factory DnsConfig.fromJson(Map json) { return DnsConfig( dnsRecords: (json['DnsRecords'] as List) - .whereNotNull() + .nonNulls .map((e) => DnsRecord.fromJson(e as Map)) .toList(), namespaceId: json['NamespaceId'] as String?, @@ -2857,7 +2857,7 @@ class ListInstancesResponse { factory ListInstancesResponse.fromJson(Map json) { return ListInstancesResponse( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2891,7 +2891,7 @@ class ListNamespacesResponse { factory ListNamespacesResponse.fromJson(Map json) { return ListNamespacesResponse( namespaces: (json['Namespaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NamespaceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2925,7 +2925,7 @@ class ListOperationsResponse { return ListOperationsResponse( nextToken: json['NextToken'] as String?, operations: (json['Operations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OperationSummary.fromJson(e as Map)) .toList(), ); @@ -2959,7 +2959,7 @@ class ListServicesResponse { return ListServicesResponse( nextToken: json['NextToken'] as String?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceSummary.fromJson(e as Map)) .toList(), ); @@ -2977,7 +2977,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_servicediscovery_api/pubspec.yaml b/generated/aws_servicediscovery_api/pubspec.yaml index 36777e864..7f032fdaf 100644 --- a/generated/aws_servicediscovery_api/pubspec.yaml +++ b/generated/aws_servicediscovery_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_servic protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_ses_api/pubspec.yaml b/generated/aws_ses_api/pubspec.yaml index 6e2c8f98c..c403b709a 100644 --- a/generated/aws_ses_api/pubspec.yaml +++ b/generated/aws_ses_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_ses_ap protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_sesv2_api/lib/sesv2-2019-09-27.dart b/generated/aws_sesv2_api/lib/sesv2-2019-09-27.dart index afebfd7f7..717e0d13b 100644 --- a/generated/aws_sesv2_api/lib/sesv2-2019-09-27.dart +++ b/generated/aws_sesv2_api/lib/sesv2-2019-09-27.dart @@ -3586,7 +3586,7 @@ class AccountDetails { return AccountDetails( additionalContactEmailAddresses: (json['AdditionalContactEmailAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), contactLanguage: @@ -3723,11 +3723,11 @@ class BatchGetMetricDataResponse { factory BatchGetMetricDataResponse.fromJson(Map json) { return BatchGetMetricDataResponse( errors: (json['Errors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDataError.fromJson(e as Map)) .toList(), results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MetricDataResult.fromJson(e as Map)) .toList(), ); @@ -4100,7 +4100,7 @@ class CloudWatchDestination { factory CloudWatchDestination.fromJson(Map json) { return CloudWatchDestination( dimensionConfigurations: (json['DimensionConfigurations'] as List) - .whereNotNull() + .nonNulls .map((e) => CloudWatchDimensionConfiguration.fromJson( e as Map)) .toList(), @@ -4238,11 +4238,11 @@ class Contact { emailAddress: json['EmailAddress'] as String?, lastUpdatedTimestamp: timeStampFromJson(json['LastUpdatedTimestamp']), topicDefaultPreferences: (json['TopicDefaultPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicPreference.fromJson(e as Map)) .toList(), topicPreferences: (json['TopicPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicPreference.fromJson(e as Map)) .toList(), unsubscribeAll: json['UnsubscribeAll'] as bool?, @@ -4613,7 +4613,7 @@ class DailyVolume { factory DailyVolume.fromJson(Map json) { return DailyVolume( domainIspPlacements: (json['DomainIspPlacements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainIspPlacement.fromJson(e as Map)) .toList(), startDate: timeStampFromJson(json['StartDate']), @@ -5265,10 +5265,8 @@ class DkimAttributes { ?.let(DkimSigningAttributesOrigin.fromString), signingEnabled: json['SigningEnabled'] as bool?, status: (json['Status'] as String?)?.let(DkimStatus.fromString), - tokens: (json['Tokens'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tokens: + (json['Tokens'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -5468,10 +5466,7 @@ class DomainDeliverabilityCampaign { return DomainDeliverabilityCampaign( campaignId: json['CampaignId'] as String?, deleteRate: json['DeleteRate'] as double?, - esps: (json['Esps'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + esps: (json['Esps'] as List?)?.nonNulls.map((e) => e as String).toList(), firstSeenDateTime: timeStampFromJson(json['FirstSeenDateTime']), fromAddress: json['FromAddress'] as String?, imageUrl: json['ImageUrl'] as String?, @@ -5481,7 +5476,7 @@ class DomainDeliverabilityCampaign { readDeleteRate: json['ReadDeleteRate'] as double?, readRate: json['ReadRate'] as double?, sendingIps: (json['SendingIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), spamCount: json['SpamCount'] as int?, @@ -5671,7 +5666,7 @@ class EmailInsights { return EmailInsights( destination: json['Destination'] as String?, events: (json['Events'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightsEvent.fromJson(e as Map)) .toList(), isp: json['Isp'] as String?, @@ -5880,7 +5875,7 @@ class EventDestination { factory EventDestination.fromJson(Map json) { return EventDestination( matchingEventTypes: (json['MatchingEventTypes'] as List) - .whereNotNull() + .nonNulls .map((e) => EventType.fromString((e as String))) .toList(), name: json['Name'] as String, @@ -6365,7 +6360,7 @@ class GetBlacklistReportsResponse { (k, e) => MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map( (e) => BlacklistEntry.fromJson(e as Map)) .toList())), @@ -6387,7 +6382,7 @@ class GetConfigurationSetEventDestinationsResponse { Map json) { return GetConfigurationSetEventDestinationsResponse( eventDestinations: (json['EventDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EventDestination.fromJson(e as Map)) .toList(), ); @@ -6458,7 +6453,7 @@ class GetConfigurationSetResponse { json['SuppressionOptions'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), trackingOptions: json['TrackingOptions'] != null @@ -6508,11 +6503,11 @@ class GetContactListResponse { description: json['Description'] as String?, lastUpdatedTimestamp: timeStampFromJson(json['LastUpdatedTimestamp']), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), topics: (json['Topics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Topic.fromJson(e as Map)) .toList(), ); @@ -6564,11 +6559,11 @@ class GetContactResponse { emailAddress: json['EmailAddress'] as String?, lastUpdatedTimestamp: timeStampFromJson(json['LastUpdatedTimestamp']), topicDefaultPreferences: (json['TopicDefaultPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicPreference.fromJson(e as Map)) .toList(), topicPreferences: (json['TopicPreferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TopicPreference.fromJson(e as Map)) .toList(), unsubscribeAll: json['UnsubscribeAll'] as bool?, @@ -6678,7 +6673,7 @@ class GetDedicatedIpsResponse { factory GetDedicatedIpsResponse.fromJson(Map json) { return GetDedicatedIpsResponse( dedicatedIps: (json['DedicatedIps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DedicatedIp.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6729,13 +6724,13 @@ class GetDeliverabilityDashboardOptionsResponse { accountStatus: (json['AccountStatus'] as String?) ?.let(DeliverabilityDashboardAccountStatus.fromString), activeSubscribedDomains: (json['ActiveSubscribedDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainDeliverabilityTrackingOption.fromJson( e as Map)) .toList(), pendingExpirationSubscribedDomains: (json['PendingExpirationSubscribedDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainDeliverabilityTrackingOption.fromJson( e as Map)) .toList(), @@ -6780,14 +6775,14 @@ class GetDeliverabilityTestReportResponse { deliverabilityTestReport: DeliverabilityTestReport.fromJson( json['DeliverabilityTestReport'] as Map), ispPlacements: (json['IspPlacements'] as List) - .whereNotNull() + .nonNulls .map((e) => IspPlacement.fromJson(e as Map)) .toList(), overallPlacement: PlacementStatistics.fromJson( json['OverallPlacement'] as Map), message: json['Message'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6836,7 +6831,7 @@ class GetDomainStatisticsReportResponse { Map json) { return GetDomainStatisticsReportResponse( dailyVolumes: (json['DailyVolumes'] as List) - .whereNotNull() + .nonNulls .map((e) => DailyVolume.fromJson(e as Map)) .toList(), overallVolume: @@ -6966,7 +6961,7 @@ class GetEmailIdentityResponse { policies: (json['Policies'] as Map?) ?.map((k, e) => MapEntry(k, e as String)), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), verificationInfo: json['VerificationInfo'] != null @@ -7168,12 +7163,12 @@ class GetMessageInsightsResponse { factory GetMessageInsightsResponse.fromJson(Map json) { return GetMessageInsightsResponse( emailTags: (json['EmailTags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MessageTag.fromJson(e as Map)) .toList(), fromEmailAddress: json['FromEmailAddress'] as String?, insights: (json['Insights'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EmailInsights.fromJson(e as Map)) .toList(), messageId: json['MessageId'] as String?, @@ -7500,7 +7495,7 @@ class InboxPlacementTrackingOption { return InboxPlacementTrackingOption( global: json['Global'] as bool?, trackedIsps: (json['TrackedIsps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7693,7 +7688,7 @@ class ListConfigurationSetsResponse { factory ListConfigurationSetsResponse.fromJson(Map json) { return ListConfigurationSetsResponse( configurationSets: (json['ConfigurationSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7719,7 +7714,7 @@ class ListContactListsResponse { factory ListContactListsResponse.fromJson(Map json) { return ListContactListsResponse( contactLists: (json['ContactLists'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ContactList.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7769,7 +7764,7 @@ class ListContactsResponse { factory ListContactsResponse.fromJson(Map json) { return ListContactsResponse( contacts: (json['Contacts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Contact.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7800,7 +7795,7 @@ class ListCustomVerificationEmailTemplatesResponse { return ListCustomVerificationEmailTemplatesResponse( customVerificationEmailTemplates: (json['CustomVerificationEmailTemplates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomVerificationEmailTemplateMetadata.fromJson( e as Map)) .toList(), @@ -7829,7 +7824,7 @@ class ListDedicatedIpPoolsResponse { factory ListDedicatedIpPoolsResponse.fromJson(Map json) { return ListDedicatedIpPoolsResponse( dedicatedIpPools: (json['DedicatedIpPools'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7859,7 +7854,7 @@ class ListDeliverabilityTestReportsResponse { Map json) { return ListDeliverabilityTestReportsResponse( deliverabilityTestReports: (json['DeliverabilityTestReports'] as List) - .whereNotNull() + .nonNulls .map((e) => DeliverabilityTestReport.fromJson(e as Map)) .toList(), @@ -7892,7 +7887,7 @@ class ListDomainDeliverabilityCampaignsResponse { return ListDomainDeliverabilityCampaignsResponse( domainDeliverabilityCampaigns: (json['DomainDeliverabilityCampaigns'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainDeliverabilityCampaign.fromJson(e as Map)) .toList(), @@ -7922,7 +7917,7 @@ class ListEmailIdentitiesResponse { factory ListEmailIdentitiesResponse.fromJson(Map json) { return ListEmailIdentitiesResponse( emailIdentities: (json['EmailIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7950,7 +7945,7 @@ class ListEmailTemplatesResponse { return ListEmailTemplatesResponse( nextToken: json['NextToken'] as String?, templatesMetadata: (json['TemplatesMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EmailTemplateMetadata.fromJson(e as Map)) .toList(), ); @@ -7977,7 +7972,7 @@ class ListExportJobsResponse { factory ListExportJobsResponse.fromJson(Map json) { return ListExportJobsResponse( exportJobs: (json['ExportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExportJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8005,7 +8000,7 @@ class ListImportJobsResponse { factory ListImportJobsResponse.fromJson(Map json) { return ListImportJobsResponse( importJobs: (json['ImportJobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImportJobSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8099,7 +8094,7 @@ class ListRecommendationsResponse { return ListRecommendationsResponse( nextToken: json['NextToken'] as String?, recommendations: (json['Recommendations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Recommendation.fromJson(e as Map)) .toList(), ); @@ -8129,7 +8124,7 @@ class ListSuppressedDestinationsResponse { nextToken: json['NextToken'] as String?, suppressedDestinationSummaries: (json['SuppressedDestinationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuppressedDestinationSummary.fromJson(e as Map)) .toList(), @@ -8150,7 +8145,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List) - .whereNotNull() + .nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -8456,29 +8451,24 @@ class MessageInsightsFilters { factory MessageInsightsFilters.fromJson(Map json) { return MessageInsightsFilters( destination: (json['Destination'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), fromEmailAddress: (json['FromEmailAddress'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - isp: (json['Isp'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + isp: (json['Isp'] as List?)?.nonNulls.map((e) => e as String).toList(), lastDeliveryEvent: (json['LastDeliveryEvent'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeliveryEventType.fromString((e as String))) .toList(), lastEngagementEvent: (json['LastEngagementEvent'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EngagementEventType.fromString((e as String))) .toList(), - subject: (json['Subject'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + subject: + (json['Subject'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -8718,13 +8708,10 @@ class MetricDataResult { return MetricDataResult( id: json['Id'] as String?, timestamps: (json['Timestamps'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + values: (json['Values'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } } @@ -8807,10 +8794,10 @@ class MetricsDataSource { return MetricsDataSource( dimensions: (json['Dimensions'] as Map).map((k, e) => MapEntry(MetricDimensionName.fromString(k), - (e as List).whereNotNull().map((e) => e as String).toList())), + (e as List).nonNulls.map((e) => e as String).toList())), endDate: nonNullableTimeStampFromJson(json['EndDate'] as Object), metrics: (json['Metrics'] as List) - .whereNotNull() + .nonNulls .map((e) => ExportMetric.fromJson(e as Map)) .toList(), namespace: MetricNamespace.fromString((json['Namespace'] as String)), @@ -8858,7 +8845,7 @@ class OverallVolume { factory OverallVolume.fromJson(Map json) { return OverallVolume( domainIspPlacements: (json['DomainIspPlacements'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainIspPlacement.fromJson(e as Map)) .toList(), readRatePercent: json['ReadRatePercent'] as double?, @@ -9190,7 +9177,7 @@ class PutEmailIdentityDkimSigningAttributesResponse { return PutEmailIdentityDkimSigningAttributesResponse( dkimStatus: (json['DkimStatus'] as String?)?.let(DkimStatus.fromString), dkimTokens: (json['DkimTokens'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9582,7 +9569,7 @@ class SendBulkEmailResponse { factory SendBulkEmailResponse.fromJson(Map json) { return SendBulkEmailResponse( bulkEmailEntryResults: (json['BulkEmailEntryResults'] as List) - .whereNotNull() + .nonNulls .map((e) => BulkEmailEntryResult.fromJson(e as Map)) .toList(), ); @@ -9850,7 +9837,7 @@ class SuppressionAttributes { factory SuppressionAttributes.fromJson(Map json) { return SuppressionAttributes( suppressedReasons: (json['SuppressedReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuppressionListReason.fromString((e as String))) .toList(), ); @@ -9976,7 +9963,7 @@ class SuppressionOptions { factory SuppressionOptions.fromJson(Map json) { return SuppressionOptions( suppressedReasons: (json['SuppressedReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SuppressionListReason.fromString((e as String))) .toList(), ); diff --git a/generated/aws_sesv2_api/pubspec.yaml b/generated/aws_sesv2_api/pubspec.yaml index 4f84c37b5..3c62bac9b 100644 --- a/generated/aws_sesv2_api/pubspec.yaml +++ b/generated/aws_sesv2_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_sesv2_ protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_sfn_api/lib/states-2016-11-23.dart b/generated/aws_sfn_api/lib/states-2016-11-23.dart index 2817a21cc..f5b34e8a6 100644 --- a/generated/aws_sfn_api/lib/states-2016-11-23.dart +++ b/generated/aws_sfn_api/lib/states-2016-11-23.dart @@ -3465,7 +3465,7 @@ class DescribeStateMachineAliasOutput { description: json['description'] as String?, name: json['name'] as String?, routingConfiguration: (json['routingConfiguration'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoutingConfigurationListItem.fromJson(e as Map)) .toList(), @@ -4034,7 +4034,7 @@ class GetExecutionHistoryOutput { factory GetExecutionHistoryOutput.fromJson(Map json) { return GetExecutionHistoryOutput( events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => HistoryEvent.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4795,7 +4795,7 @@ class ListActivitiesOutput { factory ListActivitiesOutput.fromJson(Map json) { return ListActivitiesOutput( activities: (json['activities'] as List) - .whereNotNull() + .nonNulls .map((e) => ActivityListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4823,7 +4823,7 @@ class ListExecutionsOutput { factory ListExecutionsOutput.fromJson(Map json) { return ListExecutionsOutput( executions: (json['executions'] as List) - .whereNotNull() + .nonNulls .map((e) => ExecutionListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4853,7 +4853,7 @@ class ListMapRunsOutput { factory ListMapRunsOutput.fromJson(Map json) { return ListMapRunsOutput( mapRuns: (json['mapRuns'] as List) - .whereNotNull() + .nonNulls .map((e) => MapRunListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4881,7 +4881,7 @@ class ListStateMachineAliasesOutput { factory ListStateMachineAliasesOutput.fromJson(Map json) { return ListStateMachineAliasesOutput( stateMachineAliases: (json['stateMachineAliases'] as List) - .whereNotNull() + .nonNulls .map((e) => StateMachineAliasListItem.fromJson(e as Map)) .toList(), @@ -4910,7 +4910,7 @@ class ListStateMachineVersionsOutput { factory ListStateMachineVersionsOutput.fromJson(Map json) { return ListStateMachineVersionsOutput( stateMachineVersions: (json['stateMachineVersions'] as List) - .whereNotNull() + .nonNulls .map((e) => StateMachineVersionListItem.fromJson(e as Map)) .toList(), @@ -4938,7 +4938,7 @@ class ListStateMachinesOutput { factory ListStateMachinesOutput.fromJson(Map json) { return ListStateMachinesOutput( stateMachines: (json['stateMachines'] as List) - .whereNotNull() + .nonNulls .map((e) => StateMachineListItem.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -4957,7 +4957,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5033,7 +5033,7 @@ class LoggingConfiguration { factory LoggingConfiguration.fromJson(Map json) { return LoggingConfiguration( destinations: (json['destinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LogDestination.fromJson(e as Map)) .toList(), includeExecutionData: json['includeExecutionData'] as bool?, @@ -6366,7 +6366,7 @@ class ValidateStateMachineDefinitionOutput { Map json) { return ValidateStateMachineDefinitionOutput( diagnostics: (json['diagnostics'] as List) - .whereNotNull() + .nonNulls .map((e) => ValidateStateMachineDefinitionDiagnostic.fromJson( e as Map)) .toList(), diff --git a/generated/aws_sfn_api/pubspec.yaml b/generated/aws_sfn_api/pubspec.yaml index 134fce0a4..bb0b638f5 100644 --- a/generated/aws_sfn_api/pubspec.yaml +++ b/generated/aws_sfn_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_sfn_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_shield_api/lib/shield-2016-06-02.dart b/generated/aws_shield_api/lib/shield-2016-06-02.dart index 7b09f3f74..8525e33c5 100644 --- a/generated/aws_shield_api/lib/shield-2016-06-02.dart +++ b/generated/aws_shield_api/lib/shield-2016-06-02.dart @@ -1752,23 +1752,23 @@ class AttackDetail { factory AttackDetail.fromJson(Map json) { return AttackDetail( attackCounters: (json['AttackCounters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SummarizedCounter.fromJson(e as Map)) .toList(), attackId: json['AttackId'] as String?, attackProperties: (json['AttackProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttackProperty.fromJson(e as Map)) .toList(), endTime: timeStampFromJson(json['EndTime']), mitigations: (json['Mitigations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Mitigation.fromJson(e as Map)) .toList(), resourceArn: json['ResourceArn'] as String?, startTime: timeStampFromJson(json['StartTime']), subResources: (json['SubResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubResourceSummary.fromJson(e as Map)) .toList(), ); @@ -1834,7 +1834,7 @@ class AttackProperty { attackPropertyIdentifier: (json['AttackPropertyIdentifier'] as String?) ?.let(AttackPropertyIdentifier.fromString), topContributors: (json['TopContributors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Contributor.fromJson(e as Map)) .toList(), total: json['Total'] as int?, @@ -1920,7 +1920,7 @@ class AttackSummary { return AttackSummary( attackId: json['AttackId'] as String?, attackVectors: (json['AttackVectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttackVectorDescription.fromJson(e as Map)) .toList(), @@ -2226,7 +2226,7 @@ class DescribeAttackStatisticsResponse { factory DescribeAttackStatisticsResponse.fromJson(Map json) { return DescribeAttackStatisticsResponse( dataItems: (json['DataItems'] as List) - .whereNotNull() + .nonNulls .map((e) => AttackStatisticsDataItem.fromJson(e as Map)) .toList(), @@ -2251,7 +2251,7 @@ class DescribeDRTAccessResponse { factory DescribeDRTAccessResponse.fromJson(Map json) { return DescribeDRTAccessResponse( logBucketList: (json['LogBucketList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), roleArn: json['RoleArn'] as String?, @@ -2273,7 +2273,7 @@ class DescribeEmergencyContactSettingsResponse { Map json) { return DescribeEmergencyContactSettingsResponse( emergencyContactList: (json['EmergencyContactList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EmergencyContact.fromJson(e as Map)) .toList(), ); @@ -2576,7 +2576,7 @@ class ListAttacksResponse { factory ListAttacksResponse.fromJson(Map json) { return ListAttacksResponse( attackSummaries: (json['AttackSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttackSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2611,7 +2611,7 @@ class ListProtectionGroupsResponse { factory ListProtectionGroupsResponse.fromJson(Map json) { return ListProtectionGroupsResponse( protectionGroups: (json['ProtectionGroups'] as List) - .whereNotNull() + .nonNulls .map((e) => ProtectionGroup.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2647,7 +2647,7 @@ class ListProtectionsResponse { return ListProtectionsResponse( nextToken: json['NextToken'] as String?, protections: (json['Protections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Protection.fromJson(e as Map)) .toList(), ); @@ -2683,7 +2683,7 @@ class ListResourcesInProtectionGroupResponse { Map json) { return ListResourcesInProtectionGroupResponse( resourceArns: (json['ResourceArns'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -2702,7 +2702,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2805,7 +2805,7 @@ class Protection { as Map) : null, healthCheckIds: (json['HealthCheckIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), id: json['Id'] as String?, @@ -2882,10 +2882,8 @@ class ProtectionGroup { return ProtectionGroup( aggregation: ProtectionGroupAggregation.fromString( (json['Aggregation'] as String)), - members: (json['Members'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + members: + (json['Members'] as List).nonNulls.map((e) => e as String).toList(), pattern: ProtectionGroupPattern.fromString((json['Pattern'] as String)), protectionGroupId: json['ProtectionGroupId'] as String, protectionGroupArn: json['ProtectionGroupArn'] as String?, @@ -2998,7 +2996,7 @@ class ProtectionLimits { factory ProtectionLimits.fromJson(Map json) { return ProtectionLimits( protectedResourceTypeLimits: (json['ProtectedResourceTypeLimits'] as List) - .whereNotNull() + .nonNulls .map((e) => Limit.fromJson(e as Map)) .toList(), ); @@ -3077,12 +3075,12 @@ class SubResourceSummary { factory SubResourceSummary.fromJson(Map json) { return SubResourceSummary( attackVectors: (json['AttackVectors'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SummarizedAttackVector.fromJson(e as Map)) .toList(), counters: (json['Counters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SummarizedCounter.fromJson(e as Map)) .toList(), id: json['Id'] as String?, @@ -3167,7 +3165,7 @@ class Subscription { autoRenew: (json['AutoRenew'] as String?)?.let(AutoRenew.fromString), endTime: timeStampFromJson(json['EndTime']), limits: (json['Limits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Limit.fromJson(e as Map)) .toList(), proactiveEngagementStatus: (json['ProactiveEngagementStatus'] as String?) @@ -3234,7 +3232,7 @@ class SummarizedAttackVector { return SummarizedAttackVector( vectorType: json['VectorType'] as String, vectorCounters: (json['VectorCounters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SummarizedCounter.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_shield_api/pubspec.yaml b/generated/aws_shield_api/pubspec.yaml index ca9a86835..bf7f88f55 100644 --- a/generated/aws_shield_api/pubspec.yaml +++ b/generated/aws_shield_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_shield protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_signer_api/lib/signer-2017-08-25.dart b/generated/aws_signer_api/lib/signer-2017-08-25.dart index d5899fe09..30333becd 100644 --- a/generated/aws_signer_api/lib/signer-2017-08-25.dart +++ b/generated/aws_signer_api/lib/signer-2017-08-25.dart @@ -1165,7 +1165,7 @@ class EncryptionAlgorithmOptions { factory EncryptionAlgorithmOptions.fromJson(Map json) { return EncryptionAlgorithmOptions( allowedValues: (json['allowedValues'] as List) - .whereNotNull() + .nonNulls .map((e) => EncryptionAlgorithm.fromString((e as String))) .toList(), defaultValue: @@ -1186,7 +1186,7 @@ class GetRevocationStatusResponse { factory GetRevocationStatusResponse.fromJson(Map json) { return GetRevocationStatusResponse( revokedEntities: (json['revokedEntities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1381,7 +1381,7 @@ class HashAlgorithmOptions { factory HashAlgorithmOptions.fromJson(Map json) { return HashAlgorithmOptions( allowedValues: (json['allowedValues'] as List) - .whereNotNull() + .nonNulls .map((e) => HashAlgorithm.fromString((e as String))) .toList(), defaultValue: HashAlgorithm.fromString((json['defaultValue'] as String)), @@ -1428,7 +1428,7 @@ class ListProfilePermissionsResponse { return ListProfilePermissionsResponse( nextToken: json['nextToken'] as String?, permissions: (json['permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromJson(e as Map)) .toList(), policySizeBytes: json['policySizeBytes'] as int?, @@ -1452,7 +1452,7 @@ class ListSigningJobsResponse { factory ListSigningJobsResponse.fromJson(Map json) { return ListSigningJobsResponse( jobs: (json['jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SigningJob.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1476,7 +1476,7 @@ class ListSigningPlatformsResponse { return ListSigningPlatformsResponse( nextToken: json['nextToken'] as String?, platforms: (json['platforms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SigningPlatform.fromJson(e as Map)) .toList(), ); @@ -1501,7 +1501,7 @@ class ListSigningProfilesResponse { return ListSigningProfilesResponse( nextToken: json['nextToken'] as String?, profiles: (json['profiles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SigningProfile.fromJson(e as Map)) .toList(), ); @@ -1834,7 +1834,7 @@ class SigningImageFormat { return SigningImageFormat( defaultFormat: ImageFormat.fromString((json['defaultFormat'] as String)), supportedFormats: (json['supportedFormats'] as List) - .whereNotNull() + .nonNulls .map((e) => ImageFormat.fromString((e as String))) .toList(), ); diff --git a/generated/aws_signer_api/pubspec.yaml b/generated/aws_signer_api/pubspec.yaml index a092708f1..5aba54171 100644 --- a/generated/aws_signer_api/pubspec.yaml +++ b/generated/aws_signer_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_signer protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_sms_api/lib/sms-2016-10-24.dart b/generated/aws_sms_api/lib/sms-2016-10-24.dart index 039986514..8651d25eb 100644 --- a/generated/aws_sms_api/lib/sms-2016-10-24.dart +++ b/generated/aws_sms_api/lib/sms-2016-10-24.dart @@ -1832,7 +1832,7 @@ class Connector { return Connector( associatedOn: timeStampFromJson(json['associatedOn']), capabilityList: (json['capabilityList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectorCapability.fromString((e as String))) .toList(), connectorId: json['connectorId'] as String?, @@ -1903,11 +1903,11 @@ class CreateAppResponse { ? AppSummary.fromJson(json['appSummary'] as Map) : null, serverGroups: (json['serverGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerGroup.fromJson(e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2052,7 +2052,7 @@ class GetAppLaunchConfigurationResponse { roleName: json['roleName'] as String?, serverGroupLaunchConfigurations: (json['serverGroupLaunchConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerGroupLaunchConfiguration.fromJson( e as Map)) .toList(), @@ -2075,7 +2075,7 @@ class GetAppReplicationConfigurationResponse { return GetAppReplicationConfigurationResponse( serverGroupReplicationConfigurations: (json['serverGroupReplicationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerGroupReplicationConfiguration.fromJson( e as Map)) .toList(), @@ -2105,11 +2105,11 @@ class GetAppResponse { ? AppSummary.fromJson(json['appSummary'] as Map) : null, serverGroups: (json['serverGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerGroup.fromJson(e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -2134,13 +2134,13 @@ class GetAppValidationConfigurationResponse { return GetAppValidationConfigurationResponse( appValidationConfigurations: (json['appValidationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppValidationConfiguration.fromJson(e as Map)) .toList(), serverGroupValidationConfigurations: (json['serverGroupValidationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerGroupValidationConfiguration.fromJson( e as Map)) .toList(), @@ -2159,7 +2159,7 @@ class GetAppValidationOutputResponse { factory GetAppValidationOutputResponse.fromJson(Map json) { return GetAppValidationOutputResponse( validationOutputList: (json['validationOutputList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ValidationOutput.fromJson(e as Map)) .toList(), ); @@ -2182,7 +2182,7 @@ class GetConnectorsResponse { factory GetConnectorsResponse.fromJson(Map json) { return GetConnectorsResponse( connectorList: (json['connectorList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Connector.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2207,7 +2207,7 @@ class GetReplicationJobsResponse { return GetReplicationJobsResponse( nextToken: json['nextToken'] as String?, replicationJobList: (json['replicationJobList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationJob.fromJson(e as Map)) .toList(), ); @@ -2239,7 +2239,7 @@ class GetReplicationRunsResponse { json['replicationJob'] as Map) : null, replicationRunList: (json['replicationRunList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationRun.fromJson(e as Map)) .toList(), ); @@ -2274,7 +2274,7 @@ class GetServersResponse { serverCatalogStatus: (json['serverCatalogStatus'] as String?) ?.let(ServerCatalogStatus.fromString), serverList: (json['serverList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Server.fromJson(e as Map)) .toList(), ); @@ -2361,7 +2361,7 @@ class ListAppsResponse { factory ListAppsResponse.fromJson(Map json) { return ListAppsResponse( apps: (json['apps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppSummary.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2559,7 +2559,7 @@ class ReplicationJob { numberOfRecentAmisToKeep: json['numberOfRecentAmisToKeep'] as int?, replicationJobId: json['replicationJobId'] as String?, replicationRunList: (json['replicationRunList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReplicationRun.fromJson(e as Map)) .toList(), roleName: json['roleName'] as String?, @@ -2957,7 +2957,7 @@ class ServerGroup { name: json['name'] as String?, serverGroupId: json['serverGroupId'] as String?, serverList: (json['serverList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Server.fromJson(e as Map)) .toList(), ); @@ -2998,7 +2998,7 @@ class ServerGroupLaunchConfiguration { launchOrder: json['launchOrder'] as int?, serverGroupId: json['serverGroupId'] as String?, serverLaunchConfigurations: (json['serverLaunchConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerLaunchConfiguration.fromJson(e as Map)) .toList(), @@ -3038,7 +3038,7 @@ class ServerGroupReplicationConfiguration { serverGroupId: json['serverGroupId'] as String?, serverReplicationConfigurations: (json['serverReplicationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerReplicationConfiguration.fromJson( e as Map)) .toList(), @@ -3076,7 +3076,7 @@ class ServerGroupValidationConfiguration { serverGroupId: json['serverGroupId'] as String?, serverValidationConfigurations: (json['serverValidationConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerValidationConfiguration.fromJson(e as Map)) .toList(), @@ -3552,11 +3552,11 @@ class UpdateAppResponse { ? AppSummary.fromJson(json['appSummary'] as Map) : null, serverGroups: (json['serverGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServerGroup.fromJson(e as Map)) .toList(), tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_sms_api/pubspec.yaml b/generated/aws_sms_api/pubspec.yaml index e61164093..af788d6be 100644 --- a/generated/aws_sms_api/pubspec.yaml +++ b/generated/aws_sms_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_sms_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_snowball_api/lib/snowball-2016-06-30.dart b/generated/aws_snowball_api/lib/snowball-2016-06-30.dart index 42aa5a3c4..00997b7ac 100644 --- a/generated/aws_snowball_api/lib/snowball-2016-06-30.dart +++ b/generated/aws_snowball_api/lib/snowball-2016-06-30.dart @@ -2103,7 +2103,7 @@ class CreateClusterResult { return CreateClusterResult( clusterId: json['ClusterId'] as String?, jobListEntries: (json['JobListEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobListEntry.fromJson(e as Map)) .toList(), ); @@ -2265,7 +2265,7 @@ class DescribeAddressesResult { factory DescribeAddressesResult.fromJson(Map json) { return DescribeAddressesResult( addresses: (json['Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Address.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2312,7 +2312,7 @@ class DescribeJobResult { ? JobMetadata.fromJson(json['JobMetadata'] as Map) : null, subJobMetadata: (json['SubJobMetadata'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobMetadata.fromJson(e as Map)) .toList(), ); @@ -2913,15 +2913,15 @@ class JobResource { factory JobResource.fromJson(Map json) { return JobResource( ec2AmiResources: (json['Ec2AmiResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Ec2AmiResource.fromJson(e as Map)) .toList(), lambdaResources: (json['LambdaResources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LambdaResource.fromJson(e as Map)) .toList(), s3Resources: (json['S3Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Resource.fromJson(e as Map)) .toList(), ); @@ -3033,7 +3033,7 @@ class LambdaResource { factory LambdaResource.fromJson(Map json) { return LambdaResource( eventTriggers: (json['EventTriggers'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => EventTriggerDefinition.fromJson(e as Map)) .toList(), @@ -3070,7 +3070,7 @@ class ListClusterJobsResult { factory ListClusterJobsResult.fromJson(Map json) { return ListClusterJobsResult( jobListEntries: (json['JobListEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobListEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3097,7 +3097,7 @@ class ListClustersResult { factory ListClustersResult.fromJson(Map json) { return ListClustersResult( clusterListEntries: (json['ClusterListEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ClusterListEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3122,7 +3122,7 @@ class ListCompatibleImagesResult { factory ListCompatibleImagesResult.fromJson(Map json) { return ListCompatibleImagesResult( compatibleImages: (json['CompatibleImages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CompatibleImage.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3150,7 +3150,7 @@ class ListJobsResult { factory ListJobsResult.fromJson(Map json) { return ListJobsResult( jobListEntries: (json['JobListEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobListEntry.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3175,7 +3175,7 @@ class ListLongTermPricingResult { factory ListLongTermPricingResult.fromJson(Map json) { return ListLongTermPricingResult( longTermPricingEntries: (json['LongTermPricingEntries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LongTermPricingListEntry.fromJson(e as Map)) .toList(), @@ -3202,7 +3202,7 @@ class ListPickupLocationsResult { factory ListPickupLocationsResult.fromJson(Map json) { return ListPickupLocationsResult( addresses: (json['Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Address.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3236,11 +3236,11 @@ class ListServiceVersionsResult { return ListServiceVersionsResult( serviceName: ServiceName.fromString((json['ServiceName'] as String)), serviceVersions: (json['ServiceVersions'] as List) - .whereNotNull() + .nonNulls .map((e) => ServiceVersion.fromJson(e as Map)) .toList(), dependentServices: (json['DependentServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DependentService.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -3300,10 +3300,8 @@ class LongTermPricingListEntry { return LongTermPricingListEntry( currentActiveJob: json['CurrentActiveJob'] as String?, isLongTermPricingAutoRenew: json['IsLongTermPricingAutoRenew'] as bool?, - jobIds: (json['JobIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + jobIds: + (json['JobIds'] as List?)?.nonNulls.map((e) => e as String).toList(), longTermPricingEndDate: timeStampFromJson(json['LongTermPricingEndDate']), longTermPricingId: json['LongTermPricingId'] as String?, longTermPricingStartDate: @@ -3412,7 +3410,7 @@ class Notification { return Notification( devicePickupSnsTopicARN: json['DevicePickupSnsTopicARN'] as String?, jobStatesToNotify: (json['JobStatesToNotify'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JobState.fromString((e as String))) .toList(), notifyAll: json['NotifyAll'] as bool?, @@ -3671,7 +3669,7 @@ class S3Resource { ? KeyRange.fromJson(json['KeyRange'] as Map) : null, targetOnDeviceServices: (json['TargetOnDeviceServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetOnDeviceService.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_snowball_api/pubspec.yaml b/generated/aws_snowball_api/pubspec.yaml index 68ed93234..0022d6cd5 100644 --- a/generated/aws_snowball_api/pubspec.yaml +++ b/generated/aws_snowball_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_snowba protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_sns_api/pubspec.yaml b/generated/aws_sns_api/pubspec.yaml index ce02155fd..0abd403e6 100644 --- a/generated/aws_sns_api/pubspec.yaml +++ b/generated/aws_sns_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_sns_ap protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_sqs_api/lib/sqs-2012-11-05.dart b/generated/aws_sqs_api/lib/sqs-2012-11-05.dart index 297b5ce60..a4425da27 100644 --- a/generated/aws_sqs_api/lib/sqs-2012-11-05.dart +++ b/generated/aws_sqs_api/lib/sqs-2012-11-05.dart @@ -2919,11 +2919,11 @@ class ChangeMessageVisibilityBatchResult { Map json) { return ChangeMessageVisibilityBatchResult( failed: (json['Failed'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchResultErrorEntry.fromJson(e as Map)) .toList(), successful: (json['Successful'] as List) - .whereNotNull() + .nonNulls .map((e) => ChangeMessageVisibilityBatchResultEntry.fromJson( e as Map)) .toList(), @@ -3014,11 +3014,11 @@ class DeleteMessageBatchResult { factory DeleteMessageBatchResult.fromJson(Map json) { return DeleteMessageBatchResult( failed: (json['Failed'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchResultErrorEntry.fromJson(e as Map)) .toList(), successful: (json['Successful'] as List) - .whereNotNull() + .nonNulls .map((e) => DeleteMessageBatchResultEntry.fromJson(e as Map)) .toList(), @@ -3096,10 +3096,8 @@ class ListDeadLetterSourceQueuesResult { factory ListDeadLetterSourceQueuesResult.fromJson(Map json) { return ListDeadLetterSourceQueuesResult( - queueUrls: (json['queueUrls'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + queueUrls: + (json['queueUrls'] as List).nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -3116,7 +3114,7 @@ class ListMessageMoveTasksResult { factory ListMessageMoveTasksResult.fromJson(Map json) { return ListMessageMoveTasksResult( results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ListMessageMoveTasksResultEntry.fromJson( e as Map)) .toList(), @@ -3231,7 +3229,7 @@ class ListQueuesResult { return ListQueuesResult( nextToken: json['NextToken'] as String?, queueUrls: (json['QueueUrls'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3373,12 +3371,12 @@ class MessageAttributeValue { return MessageAttributeValue( dataType: json['DataType'] as String, binaryListValues: (json['BinaryListValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => _s.decodeUint8List(e as String)) .toList(), binaryValue: _s.decodeNullableUint8List(json['BinaryValue'] as String?), stringListValues: (json['StringListValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), stringValue: json['StringValue'] as String?, @@ -3545,7 +3543,7 @@ class ReceiveMessageResult { factory ReceiveMessageResult.fromJson(Map json) { return ReceiveMessageResult( messages: (json['Messages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Message.fromJson(e as Map)) .toList(), ); @@ -3756,11 +3754,11 @@ class SendMessageBatchResult { factory SendMessageBatchResult.fromJson(Map json) { return SendMessageBatchResult( failed: (json['Failed'] as List) - .whereNotNull() + .nonNulls .map((e) => BatchResultErrorEntry.fromJson(e as Map)) .toList(), successful: (json['Successful'] as List) - .whereNotNull() + .nonNulls .map((e) => SendMessageBatchResultEntry.fromJson(e as Map)) .toList(), diff --git a/generated/aws_sqs_api/pubspec.yaml b/generated/aws_sqs_api/pubspec.yaml index c98281638..d3eed0d42 100644 --- a/generated/aws_sqs_api/pubspec.yaml +++ b/generated/aws_sqs_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_sqs_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_ssm_api/lib/ssm-2014-11-06.dart b/generated/aws_ssm_api/lib/ssm-2014-11-06.dart index c9c03d2db..3b783a65b 100644 --- a/generated/aws_ssm_api/lib/ssm-2014-11-06.dart +++ b/generated/aws_ssm_api/lib/ssm-2014-11-06.dart @@ -10449,7 +10449,7 @@ class Activation { registrationLimit: json['RegistrationLimit'] as int?, registrationsCount: json['RegistrationsCount'] as int?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -10508,7 +10508,7 @@ class AlarmConfiguration { factory AlarmConfiguration.fromJson(Map json) { return AlarmConfiguration( alarms: (json['Alarms'] as List) - .whereNotNull() + .nonNulls .map((e) => Alarm.fromJson(e as Map)) .toList(), ignorePollAlarmFailure: json['IgnorePollAlarmFailure'] as bool?, @@ -10657,12 +10657,12 @@ class Association { scheduleExpression: json['ScheduleExpression'] as String?, scheduleOffset: json['ScheduleOffset'] as int?, targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); @@ -10870,7 +10870,7 @@ class AssociationDescription { automationTargetParameterName: json['AutomationTargetParameterName'] as String?, calendarNames: (json['CalendarNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), complianceSeverity: (json['ComplianceSeverity'] as String?) @@ -10896,8 +10896,7 @@ class AssociationDescription { json['Overview'] as Map) : null, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), scheduleExpression: json['ScheduleExpression'] as String?, scheduleOffset: json['ScheduleOffset'] as int?, status: json['Status'] != null @@ -10906,20 +10905,20 @@ class AssociationDescription { syncCompliance: (json['SyncCompliance'] as String?) ?.let(AssociationSyncCompliance.fromString), targetLocations: (json['TargetLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetLocation.fromJson(e as Map)) .toList(), targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), ); @@ -10986,7 +10985,7 @@ class AssociationExecution { resourceCountByStatus: json['ResourceCountByStatus'] as String?, status: json['Status'] as String?, triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), ); @@ -11449,7 +11448,7 @@ class AssociationVersionInfo { associationName: json['AssociationName'] as String?, associationVersion: json['AssociationVersion'] as String?, calendarNames: (json['CalendarNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), complianceSeverity: (json['ComplianceSeverity'] as String?) @@ -11465,23 +11464,22 @@ class AssociationVersionInfo { json['OutputLocation'] as Map) : null, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), scheduleExpression: json['ScheduleExpression'] as String?, scheduleOffset: json['ScheduleOffset'] as int?, syncCompliance: (json['SyncCompliance'] as String?) ?.let(AssociationSyncCompliance.fromString), targetLocations: (json['TargetLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetLocation.fromJson(e as Map)) .toList(), targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); @@ -11822,11 +11820,9 @@ class AutomationExecution { mode: (json['Mode'] as String?)?.let(ExecutionMode.fromString), opsItemId: json['OpsItemId'] as String?, outputs: (json['Outputs'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), parentAutomationExecutionId: json['ParentAutomationExecutionId'] as String?, progressCounters: json['ProgressCounters'] != null @@ -11838,37 +11834,36 @@ class AutomationExecution { json['ResolvedTargets'] as Map) : null, runbooks: (json['Runbooks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Runbook.fromJson(e as Map)) .toList(), scheduledTime: timeStampFromJson(json['ScheduledTime']), stepExecutions: (json['StepExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StepExecution.fromJson(e as Map)) .toList(), stepExecutionsTruncated: json['StepExecutionsTruncated'] as bool?, target: json['Target'] as String?, targetLocations: (json['TargetLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetLocation.fromJson(e as Map)) .toList(), targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targetParameterName: json['TargetParameterName'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), variables: (json['Variables'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), ); } } @@ -12093,8 +12088,7 @@ class AutomationExecutionMetadata { mode: (json['Mode'] as String?)?.let(ExecutionMode.fromString), opsItemId: json['OpsItemId'] as String?, outputs: (json['Outputs'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), parentAutomationExecutionId: json['ParentAutomationExecutionId'] as String?, resolvedTargets: json['ResolvedTargets'] != null @@ -12102,23 +12096,23 @@ class AutomationExecutionMetadata { json['ResolvedTargets'] as Map) : null, runbooks: (json['Runbooks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Runbook.fromJson(e as Map)) .toList(), scheduledTime: timeStampFromJson(json['ScheduledTime']), target: json['Target'] as String?, targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targetParameterName: json['TargetParameterName'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), ); @@ -12563,7 +12557,7 @@ class Command { errorCount: json['ErrorCount'] as int?, expiresAfter: timeStampFromJson(json['ExpiresAfter']), instanceIds: (json['InstanceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), maxConcurrency: json['MaxConcurrency'] as String?, @@ -12576,20 +12570,19 @@ class Command { outputS3KeyPrefix: json['OutputS3KeyPrefix'] as String?, outputS3Region: json['OutputS3Region'] as String?, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), requestedDateTime: timeStampFromJson(json['RequestedDateTime']), serviceRole: json['ServiceRole'] as String?, status: (json['Status'] as String?)?.let(CommandStatus.fromString), statusDetails: json['StatusDetails'] as String?, targetCount: json['TargetCount'] as int?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), timeoutSeconds: json['TimeoutSeconds'] as int?, triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), ); @@ -12922,7 +12915,7 @@ class CommandInvocation { : null, commandId: json['CommandId'] as String?, commandPlugins: (json['CommandPlugins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CommandPlugin.fromJson(e as Map)) .toList(), comment: json['Comment'] as String?, @@ -13722,7 +13715,7 @@ class CreateAssociationBatchRequestEntry { automationTargetParameterName: json['AutomationTargetParameterName'] as String?, calendarNames: (json['CalendarNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), complianceSeverity: (json['ComplianceSeverity'] as String?) @@ -13737,23 +13730,22 @@ class CreateAssociationBatchRequestEntry { json['OutputLocation'] as Map) : null, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), scheduleExpression: json['ScheduleExpression'] as String?, scheduleOffset: json['ScheduleOffset'] as int?, syncCompliance: (json['SyncCompliance'] as String?) ?.let(AssociationSyncCompliance.fromString), targetLocations: (json['TargetLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetLocation.fromJson(e as Map)) .toList(), targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); @@ -13823,12 +13815,12 @@ class CreateAssociationBatchResult { factory CreateAssociationBatchResult.fromJson(Map json) { return CreateAssociationBatchResult( failed: (json['Failed'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCreateAssociation.fromJson(e as Map)) .toList(), successful: (json['Successful'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AssociationDescription.fromJson(e as Map)) .toList(), @@ -14060,11 +14052,11 @@ class DeleteParametersResult { factory DeleteParametersResult.fromJson(Map json) { return DeleteParametersResult( deletedParameters: (json['DeletedParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), invalidParameters: (json['InvalidParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -14228,7 +14220,7 @@ class DescribeActivationsResult { factory DescribeActivationsResult.fromJson(Map json) { return DescribeActivationsResult( activationList: (json['ActivationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Activation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14254,7 +14246,7 @@ class DescribeAssociationExecutionTargetsResult { return DescribeAssociationExecutionTargetsResult( associationExecutionTargets: (json['AssociationExecutionTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociationExecutionTarget.fromJson(e as Map)) .toList(), @@ -14280,7 +14272,7 @@ class DescribeAssociationExecutionsResult { Map json) { return DescribeAssociationExecutionsResult( associationExecutions: (json['AssociationExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AssociationExecution.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14325,7 +14317,7 @@ class DescribeAutomationExecutionsResult { return DescribeAutomationExecutionsResult( automationExecutionMetadataList: (json['AutomationExecutionMetadataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomationExecutionMetadata.fromJson(e as Map)) .toList(), @@ -14353,7 +14345,7 @@ class DescribeAutomationStepExecutionsResult { return DescribeAutomationStepExecutionsResult( nextToken: json['NextToken'] as String?, stepExecutions: (json['StepExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StepExecution.fromJson(e as Map)) .toList(), ); @@ -14377,7 +14369,7 @@ class DescribeAvailablePatchesResult { return DescribeAvailablePatchesResult( nextToken: json['NextToken'] as String?, patches: (json['Patches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Patch.fromJson(e as Map)) .toList(), ); @@ -14407,11 +14399,11 @@ class DescribeDocumentPermissionResponse { Map json) { return DescribeDocumentPermissionResponse( accountIds: (json['AccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), accountSharingInfoList: (json['AccountSharingInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountSharingInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14454,7 +14446,7 @@ class DescribeEffectiveInstanceAssociationsResult { Map json) { return DescribeEffectiveInstanceAssociationsResult( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceAssociation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14479,7 +14471,7 @@ class DescribeEffectivePatchesForPatchBaselineResult { Map json) { return DescribeEffectivePatchesForPatchBaselineResult( effectivePatches: (json['EffectivePatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EffectivePatch.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14505,7 +14497,7 @@ class DescribeInstanceAssociationsStatusResult { return DescribeInstanceAssociationsStatusResult( instanceAssociationStatusInfos: (json['InstanceAssociationStatusInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceAssociationStatusInfo.fromJson(e as Map)) .toList(), @@ -14531,7 +14523,7 @@ class DescribeInstanceInformationResult { Map json) { return DescribeInstanceInformationResult( instanceInformationList: (json['InstanceInformationList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceInformation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14556,7 +14548,7 @@ class DescribeInstancePatchStatesForPatchGroupResult { Map json) { return DescribeInstancePatchStatesForPatchGroupResult( instancePatchStates: (json['InstancePatchStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstancePatchState.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14581,7 +14573,7 @@ class DescribeInstancePatchStatesResult { Map json) { return DescribeInstancePatchStatesResult( instancePatchStates: (json['InstancePatchStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstancePatchState.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14630,7 +14622,7 @@ class DescribeInstancePatchesResult { return DescribeInstancePatchesResult( nextToken: json['NextToken'] as String?, patches: (json['Patches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PatchComplianceData.fromJson(e as Map)) .toList(), ); @@ -14653,7 +14645,7 @@ class DescribeInstancePropertiesResult { factory DescribeInstancePropertiesResult.fromJson(Map json) { return DescribeInstancePropertiesResult( instanceProperties: (json['InstanceProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceProperty.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -14677,7 +14669,7 @@ class DescribeInventoryDeletionsResult { factory DescribeInventoryDeletionsResult.fromJson(Map json) { return DescribeInventoryDeletionsResult( inventoryDeletions: (json['InventoryDeletions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InventoryDeletionStatusItem.fromJson(e as Map)) .toList(), @@ -14706,7 +14698,7 @@ class DescribeMaintenanceWindowExecutionTaskInvocationsResult { nextToken: json['NextToken'] as String?, windowExecutionTaskInvocationIdentities: (json['WindowExecutionTaskInvocationIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowExecutionTaskInvocationIdentity.fromJson( e as Map)) @@ -14735,7 +14727,7 @@ class DescribeMaintenanceWindowExecutionTasksResult { nextToken: json['NextToken'] as String?, windowExecutionTaskIdentities: (json['WindowExecutionTaskIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowExecutionTaskIdentity.fromJson( e as Map)) .toList(), @@ -14761,7 +14753,7 @@ class DescribeMaintenanceWindowExecutionsResult { return DescribeMaintenanceWindowExecutionsResult( nextToken: json['NextToken'] as String?, windowExecutions: (json['WindowExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowExecution.fromJson(e as Map)) .toList(), @@ -14788,7 +14780,7 @@ class DescribeMaintenanceWindowScheduleResult { return DescribeMaintenanceWindowScheduleResult( nextToken: json['NextToken'] as String?, scheduledWindowExecutions: (json['ScheduledWindowExecutions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ScheduledWindowExecution.fromJson(e as Map)) .toList(), @@ -14814,7 +14806,7 @@ class DescribeMaintenanceWindowTargetsResult { return DescribeMaintenanceWindowTargetsResult( nextToken: json['NextToken'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowTarget.fromJson(e as Map)) .toList(), @@ -14840,7 +14832,7 @@ class DescribeMaintenanceWindowTasksResult { return DescribeMaintenanceWindowTasksResult( nextToken: json['NextToken'] as String?, tasks: (json['Tasks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowTask.fromJson(e as Map)) .toList(), ); @@ -14866,7 +14858,7 @@ class DescribeMaintenanceWindowsForTargetResult { return DescribeMaintenanceWindowsForTargetResult( nextToken: json['NextToken'] as String?, windowIdentities: (json['WindowIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowIdentityForTarget.fromJson( e as Map)) .toList(), @@ -14891,7 +14883,7 @@ class DescribeMaintenanceWindowsResult { return DescribeMaintenanceWindowsResult( nextToken: json['NextToken'] as String?, windowIdentities: (json['WindowIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MaintenanceWindowIdentity.fromJson(e as Map)) .toList(), @@ -14916,7 +14908,7 @@ class DescribeOpsItemsResponse { return DescribeOpsItemsResponse( nextToken: json['NextToken'] as String?, opsItemSummaries: (json['OpsItemSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpsItemSummary.fromJson(e as Map)) .toList(), ); @@ -14939,7 +14931,7 @@ class DescribeParametersResult { return DescribeParametersResult( nextToken: json['NextToken'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterMetadata.fromJson(e as Map)) .toList(), ); @@ -14962,7 +14954,7 @@ class DescribePatchBaselinesResult { factory DescribePatchBaselinesResult.fromJson(Map json) { return DescribePatchBaselinesResult( baselineIdentities: (json['BaselineIdentities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PatchBaselineIdentity.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -15102,7 +15094,7 @@ class DescribePatchGroupsResult { factory DescribePatchGroupsResult.fromJson(Map json) { return DescribePatchGroupsResult( mappings: (json['Mappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PatchGroupPatchBaselineMapping.fromJson( e as Map)) .toList(), @@ -15128,7 +15120,7 @@ class DescribePatchPropertiesResult { return DescribePatchPropertiesResult( nextToken: json['NextToken'] as String?, properties: (json['Properties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -15153,7 +15145,7 @@ class DescribeSessionsResponse { return DescribeSessionsResponse( nextToken: json['NextToken'] as String?, sessions: (json['Sessions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Session.fromJson(e as Map)) .toList(), ); @@ -15347,16 +15339,16 @@ class DocumentDescription { return DocumentDescription( approvedVersion: json['ApprovedVersion'] as String?, attachmentsInformation: (json['AttachmentsInformation'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachmentInformation.fromJson(e as Map)) .toList(), author: json['Author'] as String?, category: (json['Category'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), categoryEnum: (json['CategoryEnum'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), createdDate: timeStampFromJson(json['CreatedDate']), @@ -15374,20 +15366,20 @@ class DocumentDescription { name: json['Name'] as String?, owner: json['Owner'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentParameter.fromJson(e as Map)) .toList(), pendingReviewVersion: json['PendingReviewVersion'] as String?, platformTypes: (json['PlatformTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformType.fromString((e as String))) .toList(), requires: (json['Requires'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentRequires.fromJson(e as Map)) .toList(), reviewInformation: (json['ReviewInformation'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReviewInformation.fromJson(e as Map)) .toList(), reviewStatus: @@ -15397,7 +15389,7 @@ class DocumentDescription { status: (json['Status'] as String?)?.let(DocumentStatus.fromString), statusInformation: json['StatusInformation'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), targetType: json['TargetType'] as String?, @@ -15566,18 +15558,18 @@ class DocumentIdentifier { name: json['Name'] as String?, owner: json['Owner'] as String?, platformTypes: (json['PlatformTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PlatformType.fromString((e as String))) .toList(), requires: (json['Requires'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentRequires.fromJson(e as Map)) .toList(), reviewStatus: (json['ReviewStatus'] as String?)?.let(ReviewStatus.fromString), schemaVersion: json['SchemaVersion'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), targetType: json['TargetType'] as String?, @@ -15725,7 +15717,7 @@ class DocumentMetadataResponseInfo { factory DocumentMetadataResponseInfo.fromJson(Map json) { return DocumentMetadataResponseInfo( reviewerResponse: (json['ReviewerResponse'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentReviewerResponseSource.fromJson( e as Map)) .toList(), @@ -15944,7 +15936,7 @@ class DocumentReviewerResponseSource { factory DocumentReviewerResponseSource.fromJson(Map json) { return DocumentReviewerResponseSource( comment: (json['Comment'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentReviewCommentSource.fromJson(e as Map)) .toList(), @@ -16216,8 +16208,7 @@ class FailureDetails { factory FailureDetails.fromJson(Map json) { return FailureDetails( details: (json['Details'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), failureStage: json['FailureStage'] as String?, failureType: json['FailureType'] as String?, ); @@ -16636,7 +16627,7 @@ class GetDocumentResult { factory GetDocumentResult.fromJson(Map json) { return GetDocumentResult( attachmentsContent: (json['AttachmentsContent'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachmentContent.fromJson(e as Map)) .toList(), content: json['Content'] as String?, @@ -16649,7 +16640,7 @@ class GetDocumentResult { documentVersion: json['DocumentVersion'] as String?, name: json['Name'] as String?, requires: (json['Requires'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentRequires.fromJson(e as Map)) .toList(), reviewStatus: @@ -16678,7 +16669,7 @@ class GetInventoryResult { factory GetInventoryResult.fromJson(Map json) { return GetInventoryResult( entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InventoryResultEntity.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -16703,7 +16694,7 @@ class GetInventorySchemaResult { return GetInventorySchemaResult( nextToken: json['NextToken'] as String?, schemas: (json['Schemas'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InventoryItemSchema.fromJson(e as Map)) .toList(), ); @@ -16746,10 +16737,8 @@ class GetMaintenanceWindowExecutionResult { status: (json['Status'] as String?) ?.let(MaintenanceWindowExecutionStatus.fromString), statusDetails: json['StatusDetails'] as String?, - taskIds: (json['TaskIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + taskIds: + (json['TaskIds'] as List?)?.nonNulls.map((e) => e as String).toList(), windowExecutionId: json['WindowExecutionId'] as String?, ); } @@ -16936,14 +16925,14 @@ class GetMaintenanceWindowExecutionTaskResult { taskArn: json['TaskArn'] as String?, taskExecutionId: json['TaskExecutionId'] as String?, taskParameters: (json['TaskParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( k, MaintenanceWindowTaskParameterValueExpression.fromJson( e as Map)))) .toList(), triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), type: @@ -17182,7 +17171,7 @@ class GetMaintenanceWindowTaskResult { priority: json['Priority'] as int?, serviceRoleArn: json['ServiceRoleArn'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), taskArn: json['TaskArn'] as String?, @@ -17263,7 +17252,7 @@ class GetOpsSummaryResult { factory GetOpsSummaryResult.fromJson(Map json) { return GetOpsSummaryResult( entities: (json['Entities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpsEntity.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -17288,7 +17277,7 @@ class GetParameterHistoryResult { return GetParameterHistoryResult( nextToken: json['NextToken'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterHistory.fromJson(e as Map)) .toList(), ); @@ -17329,7 +17318,7 @@ class GetParametersByPathResult { return GetParametersByPathResult( nextToken: json['NextToken'] as String?, parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), ); @@ -17352,11 +17341,11 @@ class GetParametersResult { factory GetParametersResult.fromJson(Map json) { return GetParametersResult( invalidParameters: (json['InvalidParameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), parameters: (json['Parameters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Parameter.fromJson(e as Map)) .toList(), ); @@ -17470,7 +17459,7 @@ class GetPatchBaselineResult { json['ApprovalRules'] as Map) : null, approvedPatches: (json['ApprovedPatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), approvedPatchesComplianceLevel: @@ -17490,17 +17479,17 @@ class GetPatchBaselineResult { operatingSystem: (json['OperatingSystem'] as String?)?.let(OperatingSystem.fromString), patchGroups: (json['PatchGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rejectedPatches: (json['RejectedPatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rejectedPatchesAction: (json['RejectedPatchesAction'] as String?) ?.let(PatchAction.fromString), sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PatchSource.fromJson(e as Map)) .toList(), ); @@ -17524,7 +17513,7 @@ class GetResourcePoliciesResponse { return GetResourcePoliciesResponse( nextToken: json['NextToken'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GetResourcePoliciesResponseEntry.fromJson( e as Map)) .toList(), @@ -18703,7 +18692,7 @@ class InventoryDeletionSummary { return InventoryDeletionSummary( remainingCount: json['RemainingCount'] as int?, summaryItems: (json['SummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InventoryDeletionSummaryItem.fromJson(e as Map)) .toList(), @@ -18919,7 +18908,7 @@ class InventoryItemSchema { factory InventoryItemSchema.fromJson(Map json) { return InventoryItemSchema( attributes: (json['Attributes'] as List) - .whereNotNull() + .nonNulls .map( (e) => InventoryItemAttribute.fromJson(e as Map)) .toList(), @@ -19005,7 +18994,7 @@ class InventoryResultItem { factory InventoryResultItem.fromJson(Map json) { return InventoryResultItem( content: (json['Content'] as List) - .whereNotNull() + .nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -19051,7 +19040,7 @@ class LabelParameterVersionResult { factory LabelParameterVersionResult.fromJson(Map json) { return LabelParameterVersionResult( invalidLabels: (json['InvalidLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), parameterVersion: json['ParameterVersion'] as int?, @@ -19092,7 +19081,7 @@ class ListAssociationVersionsResult { factory ListAssociationVersionsResult.fromJson(Map json) { return ListAssociationVersionsResult( associationVersions: (json['AssociationVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AssociationVersionInfo.fromJson(e as Map)) .toList(), @@ -19117,7 +19106,7 @@ class ListAssociationsResult { factory ListAssociationsResult.fromJson(Map json) { return ListAssociationsResult( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Association.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -19141,7 +19130,7 @@ class ListCommandInvocationsResult { factory ListCommandInvocationsResult.fromJson(Map json) { return ListCommandInvocationsResult( commandInvocations: (json['CommandInvocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CommandInvocation.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -19165,7 +19154,7 @@ class ListCommandsResult { factory ListCommandsResult.fromJson(Map json) { return ListCommandsResult( commands: (json['Commands'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Command.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -19189,7 +19178,7 @@ class ListComplianceItemsResult { factory ListComplianceItemsResult.fromJson(Map json) { return ListComplianceItemsResult( complianceItems: (json['ComplianceItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComplianceItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -19216,7 +19205,7 @@ class ListComplianceSummariesResult { factory ListComplianceSummariesResult.fromJson(Map json) { return ListComplianceSummariesResult( complianceSummaryItems: (json['ComplianceSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ComplianceSummaryItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -19282,7 +19271,7 @@ class ListDocumentVersionsResult { factory ListDocumentVersionsResult.fromJson(Map json) { return ListDocumentVersionsResult( documentVersions: (json['DocumentVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentVersionInfo.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -19306,7 +19295,7 @@ class ListDocumentsResult { factory ListDocumentsResult.fromJson(Map json) { return ListDocumentsResult( documentIdentifiers: (json['DocumentIdentifiers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentIdentifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -19347,7 +19336,7 @@ class ListInventoryEntriesResult { return ListInventoryEntriesResult( captureTime: json['CaptureTime'] as String?, entries: (json['Entries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -19376,7 +19365,7 @@ class ListOpsItemEventsResponse { return ListOpsItemEventsResponse( nextToken: json['NextToken'] as String?, summaries: (json['Summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpsItemEventSummary.fromJson(e as Map)) .toList(), ); @@ -19400,7 +19389,7 @@ class ListOpsItemRelatedItemsResponse { return ListOpsItemRelatedItemsResponse( nextToken: json['NextToken'] as String?, summaries: (json['Summaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpsItemRelatedItemSummary.fromJson(e as Map)) .toList(), @@ -19425,7 +19414,7 @@ class ListOpsMetadataResult { return ListOpsMetadataResult( nextToken: json['NextToken'] as String?, opsMetadataList: (json['OpsMetadataList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpsMetadata.fromJson(e as Map)) .toList(), ); @@ -19454,7 +19443,7 @@ class ListResourceComplianceSummariesResult { nextToken: json['NextToken'] as String?, resourceComplianceSummaryItems: (json['ResourceComplianceSummaryItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceComplianceSummaryItem.fromJson(e as Map)) .toList(), @@ -19479,7 +19468,7 @@ class ListResourceDataSyncResult { return ListResourceDataSyncResult( nextToken: json['NextToken'] as String?, resourceDataSyncItems: (json['ResourceDataSyncItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceDataSyncItem.fromJson(e as Map)) .toList(), ); @@ -19497,7 +19486,7 @@ class ListTagsForResourceResult { factory ListTagsForResourceResult.fromJson(Map json) { return ListTagsForResourceResult( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -19592,8 +19581,7 @@ class MaintenanceWindowAutomationParameters { return MaintenanceWindowAutomationParameters( documentVersion: json['DocumentVersion'] as String?, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), ); } @@ -19735,7 +19723,7 @@ class MaintenanceWindowExecutionTaskIdentity { taskType: (json['TaskType'] as String?) ?.let(MaintenanceWindowTaskType.fromString), triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), windowExecutionId: json['WindowExecutionId'] as String?, @@ -20160,8 +20148,7 @@ class MaintenanceWindowRunCommandParameters { outputS3BucketName: json['OutputS3BucketName'] as String?, outputS3KeyPrefix: json['OutputS3KeyPrefix'] as String?, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), serviceRoleArn: json['ServiceRoleArn'] as String?, timeoutSeconds: json['TimeoutSeconds'] as int?, ); @@ -20301,7 +20288,7 @@ class MaintenanceWindowTarget { resourceType: (json['ResourceType'] as String?) ?.let(MaintenanceWindowResourceType.fromString), targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), windowId: json['WindowId'] as String?, @@ -20445,7 +20432,7 @@ class MaintenanceWindowTask { priority: json['Priority'] as int?, serviceRoleArn: json['ServiceRoleArn'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), taskArn: json['TaskArn'] as String?, @@ -20547,10 +20534,8 @@ class MaintenanceWindowTaskParameterValueExpression { factory MaintenanceWindowTaskParameterValueExpression.fromJson( Map json) { return MaintenanceWindowTaskParameterValueExpression( - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -20674,7 +20659,7 @@ class NotificationConfig { return NotificationConfig( notificationArn: json['NotificationArn'] as String?, notificationEvents: (json['NotificationEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NotificationEvent.fromString((e as String))) .toList(), notificationType: (json['NotificationType'] as String?) @@ -20846,7 +20831,7 @@ class OpsEntityItem { return OpsEntityItem( captureTime: json['CaptureTime'] as String?, content: (json['Content'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), @@ -21091,7 +21076,7 @@ class OpsItem { lastModifiedBy: json['LastModifiedBy'] as String?, lastModifiedTime: timeStampFromJson(json['LastModifiedTime']), notifications: (json['Notifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OpsItemNotification.fromJson(e as Map)) .toList(), operationalData: (json['OperationalData'] as Map?)?.map( @@ -21104,7 +21089,7 @@ class OpsItem { plannedStartTime: timeStampFromJson(json['PlannedStartTime']), priority: json['Priority'] as int?, relatedOpsItems: (json['RelatedOpsItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedOpsItem.fromJson(e as Map)) .toList(), severity: json['Severity'] as String?, @@ -21929,15 +21914,13 @@ class ParameterHistory { dataType: json['DataType'] as String?, description: json['Description'] as String?, keyId: json['KeyId'] as String?, - labels: (json['Labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['Labels'] as List?)?.nonNulls.map((e) => e as String).toList(), lastModifiedDate: timeStampFromJson(json['LastModifiedDate']), lastModifiedUser: json['LastModifiedUser'] as String?, name: json['Name'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterInlinePolicy.fromJson(e as Map)) .toList(), tier: (json['Tier'] as String?)?.let(ParameterTier.fromString), @@ -22051,7 +22034,7 @@ class ParameterMetadata { lastModifiedUser: json['LastModifiedUser'] as String?, name: json['Name'] as String?, policies: (json['Policies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ParameterInlinePolicy.fromJson(e as Map)) .toList(), tier: (json['Tier'] as String?)?.let(ParameterTier.fromString), @@ -22350,18 +22333,16 @@ class Patch { factory Patch.fromJson(Map json) { return Patch( advisoryIds: (json['AdvisoryIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), arch: json['Arch'] as String?, bugzillaIds: (json['BugzillaIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - cVEIds: (json['CVEIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + cVEIds: + (json['CVEIds'] as List?)?.nonNulls.map((e) => e as String).toList(), classification: json['Classification'] as String?, contentUrl: json['ContentUrl'] as String?, description: json['Description'] as String?, @@ -22596,10 +22577,8 @@ class PatchFilter { factory PatchFilter.fromJson(Map json) { return PatchFilter( key: PatchFilterKey.fromString((json['Key'] as String)), - values: (json['Values'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -22625,7 +22604,7 @@ class PatchFilterGroup { factory PatchFilterGroup.fromJson(Map json) { return PatchFilterGroup( patchFilters: (json['PatchFilters'] as List) - .whereNotNull() + .nonNulls .map((e) => PatchFilter.fromJson(e as Map)) .toList(), ); @@ -22846,7 +22825,7 @@ class PatchRuleGroup { factory PatchRuleGroup.fromJson(Map json) { return PatchRuleGroup( patchRules: (json['PatchRules'] as List) - .whereNotNull() + .nonNulls .map((e) => PatchRule.fromJson(e as Map)) .toList(), ); @@ -22912,10 +22891,8 @@ class PatchSource { return PatchSource( configuration: json['Configuration'] as String, name: json['Name'] as String, - products: (json['Products'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + products: + (json['Products'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -23284,7 +23261,7 @@ class ResolvedTargets { factory ResolvedTargets.fromJson(Map json) { return ResolvedTargets( parameterValues: (json['ParameterValues'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), truncated: json['Truncated'] as bool?, @@ -23379,7 +23356,7 @@ class ResourceDataSyncAwsOrganizationsSource { return ResourceDataSyncAwsOrganizationsSource( organizationSourceType: json['OrganizationSourceType'] as String, organizationalUnits: (json['OrganizationalUnits'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceDataSyncOrganizationalUnit.fromJson( e as Map)) .toList(), @@ -23738,7 +23715,7 @@ class ResourceDataSyncSourceWithState { enableAllOpsDataSources: json['EnableAllOpsDataSources'] as bool?, includeFutureRegions: json['IncludeFutureRegions'] as bool?, sourceRegions: (json['SourceRegions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sourceType: json['SourceType'] as String?, @@ -23948,20 +23925,19 @@ class Runbook { maxConcurrency: json['MaxConcurrency'] as String?, maxErrors: json['MaxErrors'] as String?, parameters: (json['Parameters'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), targetLocations: (json['TargetLocations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TargetLocation.fromJson(e as Map)) .toList(), targetMaps: (json['TargetMaps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map).map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList()))) + k, (e as List).nonNulls.map((e) => e as String).toList()))) .toList(), targetParameterName: json['TargetParameterName'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), ); @@ -24688,12 +24664,11 @@ class StepExecution { nextStep: json['NextStep'] as String?, onFailure: json['OnFailure'] as String?, outputs: (json['Outputs'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), - overriddenParameters: (json['OverriddenParameters'] - as Map?) - ?.map((k, e) => MapEntry( - k, (e as List).whereNotNull().map((e) => e as String).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as String).toList())), + overriddenParameters: + (json['OverriddenParameters'] as Map?)?.map((k, e) => + MapEntry( + k, (e as List).nonNulls.map((e) => e as String).toList())), parentStepDetails: json['ParentStepDetails'] != null ? ParentStepDetails.fromJson( json['ParentStepDetails'] as Map) @@ -24709,16 +24684,16 @@ class StepExecution { json['TargetLocation'] as Map) : null, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), timeoutSeconds: json['TimeoutSeconds'] as int?, triggeredAlarms: (json['TriggeredAlarms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AlarmStateInformation.fromJson(e as Map)) .toList(), validNextSteps: (json['ValidNextSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -24937,10 +24912,8 @@ class Target { factory Target.fromJson(Map json) { return Target( key: json['Key'] as String?, - values: (json['Values'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + values: + (json['Values'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -24991,14 +24964,12 @@ class TargetLocation { factory TargetLocation.fromJson(Map json) { return TargetLocation( accounts: (json['Accounts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), executionRoleName: json['ExecutionRoleName'] as String?, - regions: (json['Regions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + regions: + (json['Regions'] as List?)?.nonNulls.map((e) => e as String).toList(), targetLocationAlarmConfiguration: json['TargetLocationAlarmConfiguration'] != null ? AlarmConfiguration.fromJson( @@ -25063,11 +25034,11 @@ class UnlabelParameterVersionResult { factory UnlabelParameterVersionResult.fromJson(Map json) { return UnlabelParameterVersionResult( invalidLabels: (json['InvalidLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), removedLabels: (json['RemovedLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -25273,7 +25244,7 @@ class UpdateMaintenanceWindowTargetResult { name: json['Name'] as String?, ownerInformation: json['OwnerInformation'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), windowId: json['WindowId'] as String?, @@ -25387,7 +25358,7 @@ class UpdateMaintenanceWindowTaskResult { priority: json['Priority'] as int?, serviceRoleArn: json['ServiceRoleArn'] as String?, targets: (json['Targets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Target.fromJson(e as Map)) .toList(), taskArn: json['TaskArn'] as String?, @@ -25512,7 +25483,7 @@ class UpdatePatchBaselineResult { json['ApprovalRules'] as Map) : null, approvedPatches: (json['ApprovedPatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), approvedPatchesComplianceLevel: @@ -25532,13 +25503,13 @@ class UpdatePatchBaselineResult { operatingSystem: (json['OperatingSystem'] as String?)?.let(OperatingSystem.fromString), rejectedPatches: (json['RejectedPatches'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), rejectedPatchesAction: (json['RejectedPatchesAction'] as String?) ?.let(PatchAction.fromString), sources: (json['Sources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PatchSource.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_ssm_api/pubspec.yaml b/generated/aws_ssm_api/pubspec.yaml index 96d6357e1..5ff0f71c3 100644 --- a/generated/aws_ssm_api/pubspec.yaml +++ b/generated/aws_ssm_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_ssm_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_sso_api/lib/sso-2019-06-10.dart b/generated/aws_sso_api/lib/sso-2019-06-10.dart index 82b085b32..95c972151 100644 --- a/generated/aws_sso_api/lib/sso-2019-06-10.dart +++ b/generated/aws_sso_api/lib/sso-2019-06-10.dart @@ -327,7 +327,7 @@ class ListAccountRolesResponse { return ListAccountRolesResponse( nextToken: json['nextToken'] as String?, roleList: (json['roleList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RoleInfo.fromJson(e as Map)) .toList(), ); @@ -350,7 +350,7 @@ class ListAccountsResponse { factory ListAccountsResponse.fromJson(Map json) { return ListAccountsResponse( accountList: (json['accountList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountInfo.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, diff --git a/generated/aws_sso_api/lib/sso-admin-2020-07-20.dart b/generated/aws_sso_api/lib/sso-admin-2020-07-20.dart index 4c24eab2e..336f0062f 100644 --- a/generated/aws_sso_api/lib/sso-admin-2020-07-20.dart +++ b/generated/aws_sso_api/lib/sso-admin-2020-07-20.dart @@ -3801,10 +3801,8 @@ class AccessControlAttributeValue { factory AccessControlAttributeValue.fromJson(Map json) { return AccessControlAttributeValue( - source: (json['Source'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + source: + (json['Source'] as List).nonNulls.map((e) => e as String).toList(), ); } @@ -4315,7 +4313,7 @@ class AuthorizationCodeGrant { factory AuthorizationCodeGrant.fromJson(Map json) { return AuthorizationCodeGrant( redirectUris: (json['RedirectUris'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -4347,7 +4345,7 @@ class AuthorizedTokenIssuer { factory AuthorizedTokenIssuer.fromJson(Map json) { return AuthorizedTokenIssuer( authorizedAudiences: (json['AuthorizedAudiences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), trustedTokenIssuerArn: json['TrustedTokenIssuerArn'] as String?, @@ -5007,7 +5005,7 @@ class GetApplicationAccessScopeResponse { return GetApplicationAccessScopeResponse( scope: json['Scope'] as String, authorizedTargets: (json['AuthorizedTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5244,7 +5242,7 @@ class InstanceAccessControlAttributeConfiguration { Map json) { return InstanceAccessControlAttributeConfiguration( accessControlAttributes: (json['AccessControlAttributes'] as List) - .whereNotNull() + .nonNulls .map( (e) => AccessControlAttribute.fromJson(e as Map)) .toList(), @@ -5367,7 +5365,7 @@ class JwtBearerGrant { factory JwtBearerGrant.fromJson(Map json) { return JwtBearerGrant( authorizedTokenIssuers: (json['AuthorizedTokenIssuers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthorizedTokenIssuer.fromJson(e as Map)) .toList(), ); @@ -5401,7 +5399,7 @@ class ListAccountAssignmentCreationStatusResponse { return ListAccountAssignmentCreationStatusResponse( accountAssignmentsCreationStatus: (json['AccountAssignmentsCreationStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAssignmentOperationStatusMetadata.fromJson( e as Map)) .toList(), @@ -5429,7 +5427,7 @@ class ListAccountAssignmentDeletionStatusResponse { return ListAccountAssignmentDeletionStatusResponse( accountAssignmentsDeletionStatus: (json['AccountAssignmentsDeletionStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAssignmentOperationStatusMetadata.fromJson( e as Map)) .toList(), @@ -5477,7 +5475,7 @@ class ListAccountAssignmentsForPrincipalResponse { Map json) { return ListAccountAssignmentsForPrincipalResponse( accountAssignments: (json['AccountAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAssignmentForPrincipal.fromJson(e as Map)) .toList(), @@ -5503,7 +5501,7 @@ class ListAccountAssignmentsResponse { factory ListAccountAssignmentsResponse.fromJson(Map json) { return ListAccountAssignmentsResponse( accountAssignments: (json['AccountAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountAssignment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5528,7 +5526,7 @@ class ListAccountsForProvisionedPermissionSetResponse { Map json) { return ListAccountsForProvisionedPermissionSetResponse( accountIds: (json['AccountIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -5558,7 +5556,7 @@ class ListApplicationAccessScopesResponse { Map json) { return ListApplicationAccessScopesResponse( scopes: (json['Scopes'] as List) - .whereNotNull() + .nonNulls .map((e) => ScopeDetails.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5604,7 +5602,7 @@ class ListApplicationAssignmentsForPrincipalResponse { Map json) { return ListApplicationAssignmentsForPrincipalResponse( applicationAssignments: (json['ApplicationAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationAssignmentForPrincipal.fromJson( e as Map)) .toList(), @@ -5634,7 +5632,7 @@ class ListApplicationAssignmentsResponse { Map json) { return ListApplicationAssignmentsResponse( applicationAssignments: (json['ApplicationAssignments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationAssignment.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5663,7 +5661,7 @@ class ListApplicationAuthenticationMethodsResponse { Map json) { return ListApplicationAuthenticationMethodsResponse( authenticationMethods: (json['AuthenticationMethods'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AuthenticationMethodItem.fromJson(e as Map)) .toList(), @@ -5692,7 +5690,7 @@ class ListApplicationGrantsResponse { factory ListApplicationGrantsResponse.fromJson(Map json) { return ListApplicationGrantsResponse( grants: (json['Grants'] as List) - .whereNotNull() + .nonNulls .map((e) => GrantItem.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5720,7 +5718,7 @@ class ListApplicationProvidersResponse { factory ListApplicationProvidersResponse.fromJson(Map json) { return ListApplicationProvidersResponse( applicationProviders: (json['ApplicationProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationProvider.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5774,7 +5772,7 @@ class ListApplicationsResponse { factory ListApplicationsResponse.fromJson(Map json) { return ListApplicationsResponse( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Application.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5801,7 +5799,7 @@ class ListCustomerManagedPolicyReferencesInPermissionSetResponse { return ListCustomerManagedPolicyReferencesInPermissionSetResponse( customerManagedPolicyReferences: (json['CustomerManagedPolicyReferences'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomerManagedPolicyReference.fromJson( e as Map)) .toList(), @@ -5826,7 +5824,7 @@ class ListInstancesResponse { factory ListInstancesResponse.fromJson(Map json) { return ListInstancesResponse( instances: (json['Instances'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceMetadata.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5851,7 +5849,7 @@ class ListManagedPoliciesInPermissionSetResponse { Map json) { return ListManagedPoliciesInPermissionSetResponse( attachedManagedPolicies: (json['AttachedManagedPolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachedManagedPolicy.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5879,7 +5877,7 @@ class ListPermissionSetProvisioningStatusResponse { nextToken: json['NextToken'] as String?, permissionSetsProvisioningStatus: (json['PermissionSetsProvisioningStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PermissionSetProvisioningStatusMetadata.fromJson( e as Map)) .toList(), @@ -5905,7 +5903,7 @@ class ListPermissionSetsProvisionedToAccountResponse { return ListPermissionSetsProvisionedToAccountResponse( nextToken: json['NextToken'] as String?, permissionSets: (json['PermissionSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5929,7 +5927,7 @@ class ListPermissionSetsResponse { return ListPermissionSetsResponse( nextToken: json['NextToken'] as String?, permissionSets: (json['PermissionSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5953,7 +5951,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5981,7 +5979,7 @@ class ListTrustedTokenIssuersResponse { return ListTrustedTokenIssuersResponse( nextToken: json['NextToken'] as String?, trustedTokenIssuers: (json['TrustedTokenIssuers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TrustedTokenIssuerMetadata.fromJson(e as Map)) .toList(), @@ -6475,7 +6473,7 @@ class ScopeDetails { return ScopeDetails( scope: json['Scope'] as String, authorizedTargets: (json['AuthorizedTargets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_sso_api/pubspec.yaml b/generated/aws_sso_api/pubspec.yaml index 52f3e87cf..7e926b4d5 100644 --- a/generated/aws_sso_api/pubspec.yaml +++ b/generated/aws_sso_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_sso_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_sso_oidc_api/lib/sso-oidc-2019-06-10.dart b/generated/aws_sso_oidc_api/lib/sso-oidc-2019-06-10.dart index f524dd4d4..8a5e5e601 100644 --- a/generated/aws_sso_oidc_api/lib/sso-oidc-2019-06-10.dart +++ b/generated/aws_sso_oidc_api/lib/sso-oidc-2019-06-10.dart @@ -560,10 +560,8 @@ class CreateTokenWithIAMResponse { idToken: json['idToken'] as String?, issuedTokenType: json['issuedTokenType'] as String?, refreshToken: json['refreshToken'] as String?, - scope: (json['scope'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + scope: + (json['scope'] as List?)?.nonNulls.map((e) => e as String).toList(), tokenType: json['tokenType'] as String?, ); } diff --git a/generated/aws_sso_oidc_api/pubspec.yaml b/generated/aws_sso_oidc_api/pubspec.yaml index 060269e1f..e95b34a70 100644 --- a/generated/aws_sso_oidc_api/pubspec.yaml +++ b/generated/aws_sso_oidc_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_sso_oi protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_storagegateway_api/lib/storagegateway-2013-06-30.dart b/generated/aws_storagegateway_api/lib/storagegateway-2013-06-30.dart index 4d8701191..0b28e87b6 100644 --- a/generated/aws_storagegateway_api/lib/storagegateway-2013-06-30.dart +++ b/generated/aws_storagegateway_api/lib/storagegateway-2013-06-30.dart @@ -5493,7 +5493,7 @@ class AutomaticTapeCreationPolicyInfo { factory AutomaticTapeCreationPolicyInfo.fromJson(Map json) { return AutomaticTapeCreationPolicyInfo( automaticTapeCreationRules: (json['AutomaticTapeCreationRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomaticTapeCreationRule.fromJson(e as Map)) .toList(), @@ -5648,10 +5648,8 @@ class BandwidthRateLimitInterval { factory BandwidthRateLimitInterval.fromJson(Map json) { return BandwidthRateLimitInterval( - daysOfWeek: (json['DaysOfWeek'] as List) - .whereNotNull() - .map((e) => e as int) - .toList(), + daysOfWeek: + (json['DaysOfWeek'] as List).nonNulls.map((e) => e as int).toList(), endHourOfDay: json['EndHourOfDay'] as int, endMinuteOfHour: json['EndMinuteOfHour'] as int, startHourOfDay: json['StartHourOfDay'] as int, @@ -6097,7 +6095,7 @@ class CreateTapesOutput { factory CreateTapesOutput.fromJson(Map json) { return CreateTapesOutput( tapeARNs: (json['TapeARNs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6340,7 +6338,7 @@ class DescribeBandwidthRateLimitScheduleOutput { return DescribeBandwidthRateLimitScheduleOutput( bandwidthRateLimitIntervals: (json['BandwidthRateLimitIntervals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BandwidthRateLimitInterval.fromJson(e as Map)) .toList(), @@ -6394,10 +6392,8 @@ class DescribeCacheOutput { cacheHitPercentage: json['CacheHitPercentage'] as double?, cacheMissPercentage: json['CacheMissPercentage'] as double?, cacheUsedPercentage: json['CacheUsedPercentage'] as double?, - diskIds: (json['DiskIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + diskIds: + (json['DiskIds'] as List?)?.nonNulls.map((e) => e as String).toList(), gatewayARN: json['GatewayARN'] as String?, ); } @@ -6416,7 +6412,7 @@ class DescribeCachediSCSIVolumesOutput { factory DescribeCachediSCSIVolumesOutput.fromJson(Map json) { return DescribeCachediSCSIVolumesOutput( cachediSCSIVolumes: (json['CachediSCSIVolumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CachediSCSIVolume.fromJson(e as Map)) .toList(), ); @@ -6458,7 +6454,7 @@ class DescribeChapCredentialsOutput { factory DescribeChapCredentialsOutput.fromJson(Map json) { return DescribeChapCredentialsOutput( chapCredentials: (json['ChapCredentials'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChapInfo.fromJson(e as Map)) .toList(), ); @@ -6479,7 +6475,7 @@ class DescribeFileSystemAssociationsOutput { return DescribeFileSystemAssociationsOutput( fileSystemAssociationInfoList: (json['FileSystemAssociationInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemAssociationInfo.fromJson(e as Map)) .toList(), @@ -6616,7 +6612,7 @@ class DescribeGatewayInformationOutput { gatewayId: json['GatewayId'] as String?, gatewayName: json['GatewayName'] as String?, gatewayNetworkInterfaces: (json['GatewayNetworkInterfaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NetworkInterface.fromJson(e as Map)) .toList(), gatewayState: json['GatewayState'] as String?, @@ -6630,11 +6626,11 @@ class DescribeGatewayInformationOutput { softwareUpdatesEndDate: json['SoftwareUpdatesEndDate'] as String?, softwareVersion: json['SoftwareVersion'] as String?, supportedGatewayCapacities: (json['SupportedGatewayCapacities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GatewayCapacity.fromString((e as String))) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vPCEndpoint: json['VPCEndpoint'] as String?, @@ -6721,7 +6717,7 @@ class DescribeNFSFileSharesOutput { factory DescribeNFSFileSharesOutput.fromJson(Map json) { return DescribeNFSFileSharesOutput( nFSFileShareInfoList: (json['NFSFileShareInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => NFSFileShareInfo.fromJson(e as Map)) .toList(), ); @@ -6740,7 +6736,7 @@ class DescribeSMBFileSharesOutput { factory DescribeSMBFileSharesOutput.fromJson(Map json) { return DescribeSMBFileSharesOutput( sMBFileShareInfoList: (json['SMBFileShareInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SMBFileShareInfo.fromJson(e as Map)) .toList(), ); @@ -6901,7 +6897,7 @@ class DescribeSnapshotScheduleOutput { recurrenceInHours: json['RecurrenceInHours'] as int?, startAt: json['StartAt'] as int?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), timezone: json['Timezone'] as String?, @@ -6988,7 +6984,7 @@ class DescribeStorediSCSIVolumesOutput { factory DescribeStorediSCSIVolumesOutput.fromJson(Map json) { return DescribeStorediSCSIVolumesOutput( storediSCSIVolumes: (json['StorediSCSIVolumes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StorediSCSIVolume.fromJson(e as Map)) .toList(), ); @@ -7020,7 +7016,7 @@ class DescribeTapeArchivesOutput { return DescribeTapeArchivesOutput( marker: json['Marker'] as String?, tapeArchives: (json['TapeArchives'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TapeArchive.fromJson(e as Map)) .toList(), ); @@ -7054,7 +7050,7 @@ class DescribeTapeRecoveryPointsOutput { gatewayARN: json['GatewayARN'] as String?, marker: json['Marker'] as String?, tapeRecoveryPointInfos: (json['TapeRecoveryPointInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TapeRecoveryPointInfo.fromJson(e as Map)) .toList(), ); @@ -7082,7 +7078,7 @@ class DescribeTapesOutput { return DescribeTapesOutput( marker: json['Marker'] as String?, tapes: (json['Tapes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tape.fromJson(e as Map)) .toList(), ); @@ -7112,10 +7108,8 @@ class DescribeUploadBufferOutput { factory DescribeUploadBufferOutput.fromJson(Map json) { return DescribeUploadBufferOutput( - diskIds: (json['DiskIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + diskIds: + (json['DiskIds'] as List?)?.nonNulls.map((e) => e as String).toList(), gatewayARN: json['GatewayARN'] as String?, uploadBufferAllocatedInBytes: json['UploadBufferAllocatedInBytes'] as int?, @@ -7149,7 +7143,7 @@ class DescribeVTLDevicesOutput { gatewayARN: json['GatewayARN'] as String?, marker: json['Marker'] as String?, vTLDevices: (json['VTLDevices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VTLDevice.fromJson(e as Map)) .toList(), ); @@ -7182,10 +7176,8 @@ class DescribeWorkingStorageOutput { factory DescribeWorkingStorageOutput.fromJson(Map json) { return DescribeWorkingStorageOutput( - diskIds: (json['DiskIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + diskIds: + (json['DiskIds'] as List?)?.nonNulls.map((e) => e as String).toList(), gatewayARN: json['GatewayARN'] as String?, workingStorageAllocatedInBytes: json['WorkingStorageAllocatedInBytes'] as int?, @@ -7316,7 +7308,7 @@ class Disk { diskAllocationResource: json['DiskAllocationResource'] as String?, diskAllocationType: json['DiskAllocationType'] as String?, diskAttributeList: (json['DiskAttributeList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), diskId: json['DiskId'] as String?, @@ -7346,7 +7338,7 @@ class EndpointNetworkConfiguration { factory EndpointNetworkConfiguration.fromJson(Map json) { return EndpointNetworkConfiguration( ipAddresses: (json['IpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7471,14 +7463,14 @@ class FileSystemAssociationInfo { json['FileSystemAssociationStatus'] as String?, fileSystemAssociationStatusDetails: (json['FileSystemAssociationStatusDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemAssociationStatusDetail.fromJson( e as Map)) .toList(), gatewayARN: json['GatewayARN'] as String?, locationARN: json['LocationARN'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7717,7 +7709,7 @@ class ListAutomaticTapeCreationPoliciesOutput { return ListAutomaticTapeCreationPoliciesOutput( automaticTapeCreationPolicyInfos: (json['AutomaticTapeCreationPolicyInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AutomaticTapeCreationPolicyInfo.fromJson( e as Map)) .toList(), @@ -7748,7 +7740,7 @@ class ListFileSharesOutput { factory ListFileSharesOutput.fromJson(Map json) { return ListFileSharesOutput( fileShareInfoList: (json['FileShareInfoList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileShareInfo.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -7781,7 +7773,7 @@ class ListFileSystemAssociationsOutput { return ListFileSystemAssociationsOutput( fileSystemAssociationSummaryList: (json['FileSystemAssociationSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FileSystemAssociationSummary.fromJson( e as Map)) .toList(), @@ -7808,7 +7800,7 @@ class ListGatewaysOutput { factory ListGatewaysOutput.fromJson(Map json) { return ListGatewaysOutput( gateways: (json['Gateways'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GatewayInfo.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -7835,7 +7827,7 @@ class ListLocalDisksOutput { factory ListLocalDisksOutput.fromJson(Map json) { return ListLocalDisksOutput( disks: (json['Disks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Disk.fromJson(e as Map)) .toList(), gatewayARN: json['GatewayARN'] as String?, @@ -7867,7 +7859,7 @@ class ListTagsForResourceOutput { marker: json['Marker'] as String?, resourceARN: json['ResourceARN'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7895,7 +7887,7 @@ class ListTapePoolsOutput { return ListTapePoolsOutput( marker: json['Marker'] as String?, poolInfos: (json['PoolInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PoolInfo.fromJson(e as Map)) .toList(), ); @@ -7929,7 +7921,7 @@ class ListTapesOutput { return ListTapesOutput( marker: json['Marker'] as String?, tapeInfos: (json['TapeInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TapeInfo.fromJson(e as Map)) .toList(), ); @@ -7949,7 +7941,7 @@ class ListVolumeInitiatorsOutput { factory ListVolumeInitiatorsOutput.fromJson(Map json) { return ListVolumeInitiatorsOutput( initiators: (json['Initiators'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7971,7 +7963,7 @@ class ListVolumeRecoveryPointsOutput { return ListVolumeRecoveryPointsOutput( gatewayARN: json['GatewayARN'] as String?, volumeRecoveryPointInfos: (json['VolumeRecoveryPointInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeRecoveryPointInfo.fromJson(e as Map)) .toList(), @@ -8013,7 +8005,7 @@ class ListVolumesOutput { gatewayARN: json['GatewayARN'] as String?, marker: json['Marker'] as String?, volumeInfos: (json['VolumeInfos'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VolumeInfo.fromJson(e as Map)) .toList(), ); @@ -8227,7 +8219,7 @@ class NFSFileShareInfo { json['CacheAttributes'] as Map) : null, clientList: (json['ClientList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), defaultStorageClass: json['DefaultStorageClass'] as String?, @@ -8252,7 +8244,7 @@ class NFSFileShareInfo { role: json['Role'] as String?, squash: json['Squash'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vPCEndpointDNSName: json['VPCEndpointDNSName'] as String?, @@ -8699,7 +8691,7 @@ class SMBFileShareInfo { return SMBFileShareInfo( accessBasedEnumeration: json['AccessBasedEnumeration'] as bool?, adminUserList: (json['AdminUserList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), auditDestinationARN: json['AuditDestinationARN'] as String?, @@ -8719,7 +8711,7 @@ class SMBFileShareInfo { gatewayARN: json['GatewayARN'] as String?, guessMIMETypeEnabled: json['GuessMIMETypeEnabled'] as bool?, invalidUserList: (json['InvalidUserList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), kMSEncrypted: json['KMSEncrypted'] as bool?, @@ -8734,12 +8726,12 @@ class SMBFileShareInfo { role: json['Role'] as String?, sMBACLEnabled: json['SMBACLEnabled'] as bool?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), vPCEndpointDNSName: json['VPCEndpointDNSName'] as String?, validUserList: (json['ValidUserList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8764,7 +8756,7 @@ class SMBLocalGroups { factory SMBLocalGroups.fromJson(Map json) { return SMBLocalGroups( gatewayAdmins: (json['GatewayAdmins'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/generated/aws_storagegateway_api/pubspec.yaml b/generated/aws_storagegateway_api/pubspec.yaml index 07daa6825..a4c60f782 100644 --- a/generated/aws_storagegateway_api/pubspec.yaml +++ b/generated/aws_storagegateway_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_storag protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_sts_api/pubspec.yaml b/generated/aws_sts_api/pubspec.yaml index 8db46f765..7f9a03297 100644 --- a/generated/aws_sts_api/pubspec.yaml +++ b/generated/aws_sts_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_sts_ap protocol: query environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_support_api/lib/support-2013-04-15.dart b/generated/aws_support_api/lib/support-2013-04-15.dart index db2baf874..fe3dd2d12 100644 --- a/generated/aws_support_api/lib/support-2013-04-15.dart +++ b/generated/aws_support_api/lib/support-2013-04-15.dart @@ -1581,7 +1581,7 @@ class CaseDetails { caseId: json['caseId'] as String?, categoryCode: json['categoryCode'] as String?, ccEmailAddresses: (json['ccEmailAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), displayId: json['displayId'] as String?, @@ -1660,7 +1660,7 @@ class Communication { factory Communication.fromJson(Map json) { return Communication( attachmentSet: (json['attachmentSet'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AttachmentDetails.fromJson(e as Map)) .toList(), body: json['body'] as String?, @@ -1714,11 +1714,11 @@ class CommunicationTypeOptions { factory CommunicationTypeOptions.fromJson(Map json) { return CommunicationTypeOptions( datesWithoutSupport: (json['datesWithoutSupport'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DateInterval.fromJson(e as Map)) .toList(), supportedHours: (json['supportedHours'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedHour.fromJson(e as Map)) .toList(), type: json['type'] as String?, @@ -1810,7 +1810,7 @@ class DescribeCasesResponse { factory DescribeCasesResponse.fromJson(Map json) { return DescribeCasesResponse( cases: (json['cases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CaseDetails.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1834,7 +1834,7 @@ class DescribeCommunicationsResponse { factory DescribeCommunicationsResponse.fromJson(Map json) { return DescribeCommunicationsResponse( communications: (json['communications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Communication.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -1871,7 +1871,7 @@ class DescribeCreateCaseOptionsResponse { Map json) { return DescribeCreateCaseOptionsResponse( communicationTypes: (json['communicationTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CommunicationTypeOptions.fromJson(e as Map)) .toList(), @@ -1893,7 +1893,7 @@ class DescribeServicesResponse { factory DescribeServicesResponse.fromJson(Map json) { return DescribeServicesResponse( services: (json['services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Service.fromJson(e as Map)) .toList(), ); @@ -1914,7 +1914,7 @@ class DescribeSeverityLevelsResponse { factory DescribeSeverityLevelsResponse.fromJson(Map json) { return DescribeSeverityLevelsResponse( severityLevels: (json['severityLevels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SeverityLevel.fromJson(e as Map)) .toList(), ); @@ -1933,7 +1933,7 @@ class DescribeSupportedLanguagesResponse { Map json) { return DescribeSupportedLanguagesResponse( supportedLanguages: (json['supportedLanguages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SupportedLanguage.fromJson(e as Map)) .toList(), ); @@ -1954,7 +1954,7 @@ class DescribeTrustedAdvisorCheckRefreshStatusesResponse { Map json) { return DescribeTrustedAdvisorCheckRefreshStatusesResponse( statuses: (json['statuses'] as List) - .whereNotNull() + .nonNulls .map((e) => TrustedAdvisorCheckRefreshStatus.fromJson( e as Map)) .toList(), @@ -1997,7 +1997,7 @@ class DescribeTrustedAdvisorCheckSummariesResponse { Map json) { return DescribeTrustedAdvisorCheckSummariesResponse( summaries: (json['summaries'] as List) - .whereNotNull() + .nonNulls .map((e) => TrustedAdvisorCheckSummary.fromJson(e as Map)) .toList(), @@ -2019,7 +2019,7 @@ class DescribeTrustedAdvisorChecksResponse { Map json) { return DescribeTrustedAdvisorChecksResponse( checks: (json['checks'] as List) - .whereNotNull() + .nonNulls .map((e) => TrustedAdvisorCheckDescription.fromJson( e as Map)) .toList(), @@ -2043,7 +2043,7 @@ class RecentCaseCommunications { factory RecentCaseCommunications.fromJson(Map json) { return RecentCaseCommunications( communications: (json['communications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Communication.fromJson(e as Map)) .toList(), nextToken: json['nextToken'] as String?, @@ -2118,7 +2118,7 @@ class Service { factory Service.fromJson(Map json) { return Service( categories: (json['categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Category.fromJson(e as Map)) .toList(), code: json['code'] as String?, @@ -2291,10 +2291,8 @@ class TrustedAdvisorCheckDescription { category: json['category'] as String, description: json['description'] as String, id: json['id'] as String, - metadata: (json['metadata'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + metadata: + (json['metadata'] as List).nonNulls.map((e) => e as String).toList(), name: json['name'] as String, ); } @@ -2385,7 +2383,7 @@ class TrustedAdvisorCheckResult { json['categorySpecificSummary'] as Map), checkId: json['checkId'] as String, flaggedResources: (json['flaggedResources'] as List) - .whereNotNull() + .nonNulls .map((e) => TrustedAdvisorResourceDetail.fromJson(e as Map)) .toList(), @@ -2500,10 +2498,8 @@ class TrustedAdvisorResourceDetail { factory TrustedAdvisorResourceDetail.fromJson(Map json) { return TrustedAdvisorResourceDetail( - metadata: (json['metadata'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + metadata: + (json['metadata'] as List).nonNulls.map((e) => e as String).toList(), resourceId: json['resourceId'] as String, status: json['status'] as String, isSuppressed: json['isSuppressed'] as bool?, diff --git a/generated/aws_support_api/pubspec.yaml b/generated/aws_support_api/pubspec.yaml index b928e1b9f..ad2db6d13 100644 --- a/generated/aws_support_api/pubspec.yaml +++ b/generated/aws_support_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_suppor protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_swf_api/lib/swf-2012-01-25.dart b/generated/aws_swf_api/lib/swf-2012-01-25.dart index 834e97d77..23c8df94f 100644 --- a/generated/aws_swf_api/lib/swf-2012-01-25.dart +++ b/generated/aws_swf_api/lib/swf-2012-01-25.dart @@ -4382,7 +4382,7 @@ class ActivityTypeInfos { factory ActivityTypeInfos.fromJson(Map json) { return ActivityTypeInfos( typeInfos: (json['typeInfos'] as List) - .whereNotNull() + .nonNulls .map((e) => ActivityTypeInfo.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -5666,7 +5666,7 @@ class DecisionTask { factory DecisionTask.fromJson(Map json) { return DecisionTask( events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => HistoryEvent.fromJson(e as Map)) .toList(), startedEventId: json['startedEventId'] as int, @@ -5980,7 +5980,7 @@ class DomainInfos { factory DomainInfos.fromJson(Map json) { return DomainInfos( domainInfos: (json['domainInfos'] as List) - .whereNotNull() + .nonNulls .map((e) => DomainInfo.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -6282,7 +6282,7 @@ class History { factory History.fromJson(Map json) { return History( events: (json['events'] as List) - .whereNotNull() + .nonNulls .map((e) => HistoryEvent.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -7402,7 +7402,7 @@ class ListTagsForResourceOutput { factory ListTagsForResourceOutput.fromJson(Map json) { return ListTagsForResourceOutput( tags: (json['tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceTag.fromJson(e as Map)) .toList(), ); @@ -8895,10 +8895,8 @@ class StartChildWorkflowExecutionInitiatedEventAttributes { json['executionStartToCloseTimeout'] as String?, input: json['input'] as String?, lambdaRole: json['lambdaRole'] as String?, - tagList: (json['tagList'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tagList: + (json['tagList'] as List?)?.nonNulls.map((e) => e as String).toList(), taskPriority: json['taskPriority'] as String?, taskStartToCloseTimeout: json['taskStartToCloseTimeout'] as String?, ); @@ -9525,10 +9523,8 @@ class WorkflowExecutionContinuedAsNewEventAttributes { json['executionStartToCloseTimeout'] as String?, input: json['input'] as String?, lambdaRole: json['lambdaRole'] as String?, - tagList: (json['tagList'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tagList: + (json['tagList'] as List?)?.nonNulls.map((e) => e as String).toList(), taskPriority: json['taskPriority'] as String?, taskStartToCloseTimeout: json['taskStartToCloseTimeout'] as String?, ); @@ -9742,10 +9738,8 @@ class WorkflowExecutionInfo { parent: json['parent'] != null ? WorkflowExecution.fromJson(json['parent'] as Map) : null, - tagList: (json['tagList'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tagList: + (json['tagList'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -9772,7 +9766,7 @@ class WorkflowExecutionInfos { factory WorkflowExecutionInfos.fromJson(Map json) { return WorkflowExecutionInfos( executionInfos: (json['executionInfos'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkflowExecutionInfo.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, @@ -9970,10 +9964,8 @@ class WorkflowExecutionStartedEventAttributes { ? WorkflowExecution.fromJson( json['parentWorkflowExecution'] as Map) : null, - tagList: (json['tagList'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + tagList: + (json['tagList'] as List?)?.nonNulls.map((e) => e as String).toList(), taskPriority: json['taskPriority'] as String?, taskStartToCloseTimeout: json['taskStartToCloseTimeout'] as String?, ); @@ -10379,7 +10371,7 @@ class WorkflowTypeInfos { factory WorkflowTypeInfos.fromJson(Map json) { return WorkflowTypeInfos( typeInfos: (json['typeInfos'] as List) - .whereNotNull() + .nonNulls .map((e) => WorkflowTypeInfo.fromJson(e as Map)) .toList(), nextPageToken: json['nextPageToken'] as String?, diff --git a/generated/aws_swf_api/pubspec.yaml b/generated/aws_swf_api/pubspec.yaml index 9b9eb8188..4c74cc5c4 100644 --- a/generated/aws_swf_api/pubspec.yaml +++ b/generated/aws_swf_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_swf_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_textract_api/lib/textract-2018-06-27.dart b/generated/aws_textract_api/lib/textract-2018-06-27.dart index a7c8a7e78..58e220b89 100644 --- a/generated/aws_textract_api/lib/textract-2018-06-27.dart +++ b/generated/aws_textract_api/lib/textract-2018-06-27.dart @@ -1836,7 +1836,7 @@ class AdapterOverview { adapterName: json['AdapterName'] as String?, creationTime: timeStampFromJson(json['CreationTime']), featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureType.fromString((e as String))) .toList(), ); @@ -1938,7 +1938,7 @@ class AdapterVersionOverview { adapterVersion: json['AdapterVersion'] as String?, creationTime: timeStampFromJson(json['CreationTime']), featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureType.fromString((e as String))) .toList(), status: (json['Status'] as String?)?.let(AdapterVersionStatus.fromString), @@ -2008,7 +2008,7 @@ class AnalyzeDocumentResponse { analyzeDocumentModelVersion: json['AnalyzeDocumentModelVersion'] as String?, blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), documentMetadata: json['DocumentMetadata'] != null @@ -2041,7 +2041,7 @@ class AnalyzeExpenseResponse { json['DocumentMetadata'] as Map) : null, expenseDocuments: (json['ExpenseDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpenseDocument.fromJson(e as Map)) .toList(), ); @@ -2101,7 +2101,7 @@ class AnalyzeIDResponse { json['DocumentMetadata'] as Map) : null, identityDocuments: (json['IdentityDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityDocument.fromJson(e as Map)) .toList(), ); @@ -2399,7 +2399,7 @@ class Block { columnSpan: json['ColumnSpan'] as int?, confidence: json['Confidence'] as double?, entityTypes: (json['EntityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => EntityType.fromString((e as String))) .toList(), geometry: json['Geometry'] != null @@ -2411,7 +2411,7 @@ class Block { ? Query.fromJson(json['Query'] as Map) : null, relationships: (json['Relationships'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Relationship.fromJson(e as Map)) .toList(), rowIndex: json['RowIndex'] as int?, @@ -2598,7 +2598,7 @@ class DetectDocumentTextResponse { factory DetectDocumentTextResponse.fromJson(Map json) { return DetectDocumentTextResponse( blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), detectDocumentTextModelVersion: @@ -2705,16 +2705,16 @@ class DocumentGroup { factory DocumentGroup.fromJson(Map json) { return DocumentGroup( detectedSignatures: (json['DetectedSignatures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DetectedSignature.fromJson(e as Map)) .toList(), splitDocuments: (json['SplitDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SplitDocument.fromJson(e as Map)) .toList(), type: json['Type'] as String?, undetectedSignatures: (json['UndetectedSignatures'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UndetectedSignature.fromJson(e as Map)) .toList(), ); @@ -2920,16 +2920,16 @@ class ExpenseDocument { factory ExpenseDocument.fromJson(Map json) { return ExpenseDocument( blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), expenseIndex: json['ExpenseIndex'] as int?, lineItemGroups: (json['LineItemGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineItemGroup.fromJson(e as Map)) .toList(), summaryFields: (json['SummaryFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpenseField.fromJson(e as Map)) .toList(), ); @@ -2975,7 +2975,7 @@ class ExpenseField { ? ExpenseCurrency.fromJson(json['Currency'] as Map) : null, groupProperties: (json['GroupProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpenseGroupProperty.fromJson(e as Map)) .toList(), labelDetection: json['LabelDetection'] != null @@ -3012,10 +3012,8 @@ class ExpenseGroupProperty { factory ExpenseGroupProperty.fromJson(Map json) { return ExpenseGroupProperty( id: json['Id'] as String?, - types: (json['Types'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + types: + (json['Types'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -3114,7 +3112,7 @@ class Geometry { ? BoundingBox.fromJson(json['BoundingBox'] as Map) : null, polygon: (json['Polygon'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Point.fromJson(e as Map)) .toList(), ); @@ -3163,7 +3161,7 @@ class GetAdapterResponse { creationTime: timeStampFromJson(json['CreationTime']), description: json['Description'] as String?, featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureType.fromString((e as String))) .toList(), tags: (json['Tags'] as Map?) @@ -3232,12 +3230,12 @@ class GetAdapterVersionResponse { json['DatasetConfig'] as Map) : null, evaluationMetrics: (json['EvaluationMetrics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdapterVersionEvaluationMetric.fromJson( e as Map)) .toList(), featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureType.fromString((e as String))) .toList(), kMSKeyId: json['KMSKeyId'] as String?, @@ -3294,7 +3292,7 @@ class GetDocumentAnalysisResponse { analyzeDocumentModelVersion: json['AnalyzeDocumentModelVersion'] as String?, blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), documentMetadata: json['DocumentMetadata'] != null @@ -3305,7 +3303,7 @@ class GetDocumentAnalysisResponse { nextToken: json['NextToken'] as String?, statusMessage: json['StatusMessage'] as String?, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -3353,7 +3351,7 @@ class GetDocumentTextDetectionResponse { factory GetDocumentTextDetectionResponse.fromJson(Map json) { return GetDocumentTextDetectionResponse( blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), detectDocumentTextModelVersion: @@ -3366,7 +3364,7 @@ class GetDocumentTextDetectionResponse { nextToken: json['NextToken'] as String?, statusMessage: json['StatusMessage'] as String?, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -3419,14 +3417,14 @@ class GetExpenseAnalysisResponse { json['DocumentMetadata'] as Map) : null, expenseDocuments: (json['ExpenseDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpenseDocument.fromJson(e as Map)) .toList(), jobStatus: (json['JobStatus'] as String?)?.let(JobStatus.fromString), nextToken: json['NextToken'] as String?, statusMessage: json['StatusMessage'] as String?, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -3477,12 +3475,12 @@ class GetLendingAnalysisResponse { jobStatus: (json['JobStatus'] as String?)?.let(JobStatus.fromString), nextToken: json['NextToken'] as String?, results: (json['Results'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LendingResult.fromJson(e as Map)) .toList(), statusMessage: json['StatusMessage'] as String?, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -3530,7 +3528,7 @@ class GetLendingAnalysisSummaryResponse { ? LendingSummary.fromJson(json['Summary'] as Map) : null, warnings: (json['Warnings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Warning.fromJson(e as Map)) .toList(), ); @@ -3565,7 +3563,7 @@ class HumanLoopActivationOutput { json['HumanLoopActivationConditionsEvaluationResults'] as String), humanLoopActivationReasons: (json['HumanLoopActivationReasons'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), humanLoopArn: json['HumanLoopArn'] as String?, @@ -3647,12 +3645,12 @@ class IdentityDocument { factory IdentityDocument.fromJson(Map json) { return IdentityDocument( blocks: (json['Blocks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Block.fromJson(e as Map)) .toList(), documentIndex: json['DocumentIndex'] as int?, identityDocumentFields: (json['IdentityDocumentFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IdentityDocumentField.fromJson(e as Map)) .toList(), ); @@ -3749,11 +3747,11 @@ class LendingDocument { factory LendingDocument.fromJson(Map json) { return LendingDocument( lendingFields: (json['LendingFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LendingField.fromJson(e as Map)) .toList(), signatureDetections: (json['SignatureDetections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SignatureDetection.fromJson(e as Map)) .toList(), ); @@ -3785,7 +3783,7 @@ class LendingField { : null, type: json['Type'] as String?, valueDetections: (json['ValueDetections'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LendingDetection.fromJson(e as Map)) .toList(), ); @@ -3814,7 +3812,7 @@ class LendingResult { factory LendingResult.fromJson(Map json) { return LendingResult( extractions: (json['Extractions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Extraction.fromJson(e as Map)) .toList(), page: json['Page'] as int?, @@ -3842,11 +3840,11 @@ class LendingSummary { factory LendingSummary.fromJson(Map json) { return LendingSummary( documentGroups: (json['DocumentGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentGroup.fromJson(e as Map)) .toList(), undetectedDocumentTypes: (json['UndetectedDocumentTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -3866,7 +3864,7 @@ class LineItemFields { factory LineItemFields.fromJson(Map json) { return LineItemFields( lineItemExpenseFields: (json['LineItemExpenseFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExpenseField.fromJson(e as Map)) .toList(), ); @@ -3892,7 +3890,7 @@ class LineItemGroup { return LineItemGroup( lineItemGroupIndex: json['LineItemGroupIndex'] as int?, lineItems: (json['LineItems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LineItemFields.fromJson(e as Map)) .toList(), ); @@ -3915,7 +3913,7 @@ class ListAdapterVersionsResponse { factory ListAdapterVersionsResponse.fromJson(Map json) { return ListAdapterVersionsResponse( adapterVersions: (json['AdapterVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AdapterVersionOverview.fromJson(e as Map)) .toList(), @@ -3940,7 +3938,7 @@ class ListAdaptersResponse { factory ListAdaptersResponse.fromJson(Map json) { return ListAdaptersResponse( adapters: (json['Adapters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AdapterOverview.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -4087,11 +4085,11 @@ class PageClassification { factory PageClassification.fromJson(Map json) { return PageClassification( pageNumber: (json['PageNumber'] as List) - .whereNotNull() + .nonNulls .map((e) => Prediction.fromJson(e as Map)) .toList(), pageType: (json['PageType'] as List) - .whereNotNull() + .nonNulls .map((e) => Prediction.fromJson(e as Map)) .toList(), ); @@ -4213,10 +4211,8 @@ class Query { return Query( text: json['Text'] as String, alias: json['Alias'] as String?, - pages: (json['Pages'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + pages: + (json['Pages'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } @@ -4286,10 +4282,7 @@ class Relationship { factory Relationship.fromJson(Map json) { return Relationship( - ids: (json['Ids'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + ids: (json['Ids'] as List?)?.nonNulls.map((e) => e as String).toList(), type: (json['Type'] as String?)?.let(RelationshipType.fromString), ); } @@ -4418,10 +4411,7 @@ class SplitDocument { factory SplitDocument.fromJson(Map json) { return SplitDocument( index: json['Index'] as int?, - pages: (json['Pages'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + pages: (json['Pages'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } } @@ -4581,7 +4571,7 @@ class UpdateAdapterResponse { creationTime: timeStampFromJson(json['CreationTime']), description: json['Description'] as String?, featureTypes: (json['FeatureTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FeatureType.fromString((e as String))) .toList(), ); @@ -4619,10 +4609,7 @@ class Warning { factory Warning.fromJson(Map json) { return Warning( errorCode: json['ErrorCode'] as String?, - pages: (json['Pages'] as List?) - ?.whereNotNull() - .map((e) => e as int) - .toList(), + pages: (json['Pages'] as List?)?.nonNulls.map((e) => e as int).toList(), ); } } diff --git a/generated/aws_textract_api/pubspec.yaml b/generated/aws_textract_api/pubspec.yaml index 1240e4720..98f54cc32 100644 --- a/generated/aws_textract_api/pubspec.yaml +++ b/generated/aws_textract_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_textra protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_transcribe_api/lib/transcribe-2017-10-26.dart b/generated/aws_transcribe_api/lib/transcribe-2017-10-26.dart index f32d3bfac..9be3cbac3 100644 --- a/generated/aws_transcribe_api/lib/transcribe-2017-10-26.dart +++ b/generated/aws_transcribe_api/lib/transcribe-2017-10-26.dart @@ -3705,7 +3705,7 @@ class CallAnalyticsJob { callAnalyticsJobStatus: (json['CallAnalyticsJobStatus'] as String?) ?.let(CallAnalyticsJobStatus.fromString), channelDefinitions: (json['ChannelDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ChannelDefinition.fromJson(e as Map)) .toList(), completionTime: timeStampFromJson(json['CompletionTime']), @@ -3750,7 +3750,7 @@ class CallAnalyticsJobDetails { factory CallAnalyticsJobDetails.fromJson(Map json) { return CallAnalyticsJobDetails( skipped: (json['Skipped'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CallAnalyticsSkippedFeature.fromJson(e as Map)) .toList(), @@ -3871,7 +3871,7 @@ class CallAnalyticsJobSettings { LanguageIdSettings.fromJson(e as Map))), languageModelName: json['LanguageModelName'] as String?, languageOptions: (json['LanguageOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LanguageCode.fromString((e as String))) .toList(), summarization: json['Summarization'] != null @@ -4112,7 +4112,7 @@ class CategoryProperties { inputType: (json['InputType'] as String?)?.let(InputType.fromString), lastUpdateTime: timeStampFromJson(json['LastUpdateTime']), rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), ); @@ -4198,7 +4198,7 @@ class ContentRedaction { redactionType: RedactionType.fromString((json['RedactionType'] as String)), piiEntityTypes: (json['PiiEntityTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PiiEntityType.fromString((e as String))) .toList(), ); @@ -5292,7 +5292,7 @@ class ListCallAnalyticsCategoriesResponse { Map json) { return ListCallAnalyticsCategoriesResponse( categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CategoryProperties.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5324,7 +5324,7 @@ class ListCallAnalyticsJobsResponse { factory ListCallAnalyticsJobsResponse.fromJson(Map json) { return ListCallAnalyticsJobsResponse( callAnalyticsJobSummaries: (json['CallAnalyticsJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CallAnalyticsJobSummary.fromJson(e as Map)) .toList(), @@ -5355,7 +5355,7 @@ class ListLanguageModelsResponse { factory ListLanguageModelsResponse.fromJson(Map json) { return ListLanguageModelsResponse( models: (json['Models'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LanguageModel.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5387,7 +5387,7 @@ class ListMedicalScribeJobsResponse { factory ListMedicalScribeJobsResponse.fromJson(Map json) { return ListMedicalScribeJobsResponse( medicalScribeJobSummaries: (json['MedicalScribeJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MedicalScribeJobSummary.fromJson(e as Map)) .toList(), @@ -5424,7 +5424,7 @@ class ListMedicalTranscriptionJobsResponse { return ListMedicalTranscriptionJobsResponse( medicalTranscriptionJobSummaries: (json['MedicalTranscriptionJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MedicalTranscriptionJobSummary.fromJson( e as Map)) .toList(), @@ -5463,7 +5463,7 @@ class ListMedicalVocabulariesResponse { nextToken: json['NextToken'] as String?, status: (json['Status'] as String?)?.let(VocabularyState.fromString), vocabularies: (json['Vocabularies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VocabularyInfo.fromJson(e as Map)) .toList(), ); @@ -5487,7 +5487,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( resourceArn: json['ResourceArn'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5521,7 +5521,7 @@ class ListTranscriptionJobsResponse { status: (json['Status'] as String?)?.let(TranscriptionJobStatus.fromString), transcriptionJobSummaries: (json['TranscriptionJobSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TranscriptionJobSummary.fromJson(e as Map)) .toList(), @@ -5557,7 +5557,7 @@ class ListVocabulariesResponse { nextToken: json['NextToken'] as String?, status: (json['Status'] as String?)?.let(VocabularyState.fromString), vocabularies: (json['Vocabularies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VocabularyInfo.fromJson(e as Map)) .toList(), ); @@ -5585,7 +5585,7 @@ class ListVocabularyFiltersResponse { return ListVocabularyFiltersResponse( nextToken: json['NextToken'] as String?, vocabularyFilters: (json['VocabularyFilters'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => VocabularyFilterInfo.fromJson(e as Map)) .toList(), ); @@ -5854,7 +5854,7 @@ class MedicalScribeJob { factory MedicalScribeJob.fromJson(Map json) { return MedicalScribeJob( channelDefinitions: (json['ChannelDefinitions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MedicalScribeChannelDefinition.fromJson( e as Map)) .toList(), @@ -5880,7 +5880,7 @@ class MedicalScribeJob { : null, startTime: timeStampFromJson(json['StartTime']), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6335,7 +6335,7 @@ class MedicalTranscriptionJob { specialty: (json['Specialty'] as String?)?.let(Specialty.fromString), startTime: timeStampFromJson(json['StartTime']), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), transcript: json['Transcript'] != null @@ -6982,7 +6982,7 @@ class SentimentFilter { factory SentimentFilter.fromJson(Map json) { return SentimentFilter( sentiments: (json['Sentiments'] as List) - .whereNotNull() + .nonNulls .map((e) => SentimentValue.fromString((e as String))) .toList(), absoluteTimeRange: json['AbsoluteTimeRange'] != null @@ -7356,12 +7356,12 @@ class SubtitlesOutput { factory SubtitlesOutput.fromJson(Map json) { return SubtitlesOutput( formats: (json['Formats'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubtitleFormat.fromString((e as String))) .toList(), outputStartIndex: json['OutputStartIndex'] as int?, subtitleFileUris: (json['SubtitleFileUris'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7484,7 +7484,7 @@ class ToxicityDetectionSettings { factory ToxicityDetectionSettings.fromJson(Map json) { return ToxicityDetectionSettings( toxicityCategories: (json['ToxicityCategories'] as List) - .whereNotNull() + .nonNulls .map((e) => ToxicityCategory.fromString((e as String))) .toList(), ); @@ -7618,10 +7618,8 @@ class TranscriptFilter { factory TranscriptFilter.fromJson(Map json) { return TranscriptFilter( - targets: (json['Targets'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + targets: + (json['Targets'] as List).nonNulls.map((e) => e as String).toList(), transcriptFilterType: TranscriptFilterType.fromString( (json['TranscriptFilterType'] as String)), absoluteTimeRange: json['AbsoluteTimeRange'] != null @@ -7894,14 +7892,14 @@ class TranscriptionJob { languageCode: (json['LanguageCode'] as String?)?.let(LanguageCode.fromString), languageCodes: (json['LanguageCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LanguageCodeItem.fromJson(e as Map)) .toList(), languageIdSettings: (json['LanguageIdSettings'] as Map?) ?.map((k, e) => MapEntry(LanguageCode.fromString(k), LanguageIdSettings.fromJson(e as Map))), languageOptions: (json['LanguageOptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LanguageCode.fromString((e as String))) .toList(), media: json['Media'] != null @@ -7922,11 +7920,11 @@ class TranscriptionJob { ? SubtitlesOutput.fromJson(json['Subtitles'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), toxicityDetection: (json['ToxicityDetection'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ToxicityDetectionSettings.fromJson(e as Map)) .toList(), @@ -8080,7 +8078,7 @@ class TranscriptionJobSummary { languageCode: (json['LanguageCode'] as String?)?.let(LanguageCode.fromString), languageCodes: (json['LanguageCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LanguageCodeItem.fromJson(e as Map)) .toList(), modelSettings: json['ModelSettings'] != null @@ -8091,7 +8089,7 @@ class TranscriptionJobSummary { ?.let(OutputLocationType.fromString), startTime: timeStampFromJson(json['StartTime']), toxicityDetection: (json['ToxicityDetection'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ToxicityDetectionSettings.fromJson(e as Map)) .toList(), diff --git a/generated/aws_transcribe_api/pubspec.yaml b/generated/aws_transcribe_api/pubspec.yaml index d214801ba..d3f5526a0 100644 --- a/generated/aws_transcribe_api/pubspec.yaml +++ b/generated/aws_transcribe_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_transc protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_transfer_api/lib/transfer-2018-11-05.dart b/generated/aws_transfer_api/lib/transfer-2018-11-05.dart index 098b3d47b..a217d0641 100644 --- a/generated/aws_transfer_api/lib/transfer-2018-11-05.dart +++ b/generated/aws_transfer_api/lib/transfer-2018-11-05.dart @@ -5299,7 +5299,7 @@ class DescribedAccess { externalId: json['ExternalId'] as String?, homeDirectory: json['HomeDirectory'] as String?, homeDirectoryMappings: (json['HomeDirectoryMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HomeDirectoryMapEntry.fromJson(e as Map)) .toList(), homeDirectoryType: (json['HomeDirectoryType'] as String?) @@ -5405,7 +5405,7 @@ class DescribedAgreement { serverId: json['ServerId'] as String?, status: (json['Status'] as String?)?.let(AgreementStatusType.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5507,7 +5507,7 @@ class DescribedCertificate { status: (json['Status'] as String?)?.let(CertificateStatusType.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(CertificateType.fromString), @@ -5609,7 +5609,7 @@ class DescribedConnector { securityPolicyName: json['SecurityPolicyName'] as String?, serviceManagedEgressIpAddresses: (json['ServiceManagedEgressIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sftpConfig: json['SftpConfig'] != null @@ -5617,7 +5617,7 @@ class DescribedConnector { json['SftpConfig'] as Map) : null, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), url: json['Url'] as String?, @@ -5755,7 +5755,7 @@ class DescribedHostKey { hostKeyFingerprint: json['HostKeyFingerprint'] as String?, hostKeyId: json['HostKeyId'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), type: json['Type'] as String?, @@ -5806,14 +5806,14 @@ class DescribedProfile { arn: json['Arn'] as String, as2Id: json['As2Id'] as String?, certificateIds: (json['CertificateIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), profileId: json['ProfileId'] as String?, profileType: (json['ProfileType'] as String?)?.let(ProfileType.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5888,27 +5888,23 @@ class DescribedSecurityPolicy { securityPolicyName: json['SecurityPolicyName'] as String, fips: json['Fips'] as bool?, protocols: (json['Protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SecurityPolicyProtocol.fromString((e as String))) .toList(), sshCiphers: (json['SshCiphers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), sshHostKeyAlgorithms: (json['SshHostKeyAlgorithms'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - sshKexs: (json['SshKexs'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - sshMacs: (json['SshMacs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + sshKexs: + (json['SshKexs'] as List?)?.nonNulls.map((e) => e as String).toList(), + sshMacs: + (json['SshMacs'] as List?)?.nonNulls.map((e) => e as String).toList(), tlsCiphers: (json['TlsCiphers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), type: @@ -6186,7 +6182,7 @@ class DescribedServer { arn: json['Arn'] as String, as2ServiceManagedEgressIpAddresses: (json['As2ServiceManagedEgressIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), certificate: json['Certificate'] as String?, @@ -6214,7 +6210,7 @@ class DescribedServer { json['ProtocolDetails'] as Map) : null, protocols: (json['Protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Protocol.fromString((e as String))) .toList(), s3StorageOptions: json['S3StorageOptions'] != null @@ -6225,11 +6221,11 @@ class DescribedServer { serverId: json['ServerId'] as String?, state: (json['State'] as String?)?.let(State.fromString), structuredLogDestinations: (json['StructuredLogDestinations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), userCount: json['UserCount'] as int?, @@ -6348,7 +6344,7 @@ class DescribedUser { arn: json['Arn'] as String, homeDirectory: json['HomeDirectory'] as String?, homeDirectoryMappings: (json['HomeDirectoryMappings'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HomeDirectoryMapEntry.fromJson(e as Map)) .toList(), homeDirectoryType: (json['HomeDirectoryType'] as String?) @@ -6359,11 +6355,11 @@ class DescribedUser { : null, role: json['Role'] as String?, sshPublicKeys: (json['SshPublicKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SshPublicKey.fromJson(e as Map)) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), userName: json['UserName'] as String?, @@ -6407,15 +6403,15 @@ class DescribedWorkflow { arn: json['Arn'] as String, description: json['Description'] as String?, onExceptionSteps: (json['OnExceptionSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowStep.fromJson(e as Map)) .toList(), steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowStep.fromJson(e as Map)) .toList(), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), workflowId: json['WorkflowId'] as String?, @@ -6635,15 +6631,15 @@ class EndpointDetails { factory EndpointDetails.fromJson(Map json) { return EndpointDetails( addressAllocationIds: (json['AddressAllocationIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcEndpointId: json['VpcEndpointId'] as String?, @@ -6785,11 +6781,11 @@ class ExecutionResults { factory ExecutionResults.fromJson(Map json) { return ExecutionResults( onExceptionSteps: (json['OnExceptionSteps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExecutionStepResult.fromJson(e as Map)) .toList(), steps: (json['Steps'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExecutionStepResult.fromJson(e as Map)) .toList(), ); @@ -7199,7 +7195,7 @@ class ListAccessesResponse { factory ListAccessesResponse.fromJson(Map json) { return ListAccessesResponse( accesses: (json['Accesses'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedAccess.fromJson(e as Map)) .toList(), serverId: json['ServerId'] as String, @@ -7224,7 +7220,7 @@ class ListAgreementsResponse { factory ListAgreementsResponse.fromJson(Map json) { return ListAgreementsResponse( agreements: (json['Agreements'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedAgreement.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7248,7 +7244,7 @@ class ListCertificatesResponse { factory ListCertificatesResponse.fromJson(Map json) { return ListCertificatesResponse( certificates: (json['Certificates'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedCertificate.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7272,7 +7268,7 @@ class ListConnectorsResponse { factory ListConnectorsResponse.fromJson(Map json) { return ListConnectorsResponse( connectors: (json['Connectors'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedConnector.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7302,7 +7298,7 @@ class ListExecutionsResponse { factory ListExecutionsResponse.fromJson(Map json) { return ListExecutionsResponse( executions: (json['Executions'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedExecution.fromJson(e as Map)) .toList(), workflowId: json['WorkflowId'] as String, @@ -7331,7 +7327,7 @@ class ListHostKeysResponse { factory ListHostKeysResponse.fromJson(Map json) { return ListHostKeysResponse( hostKeys: (json['HostKeys'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedHostKey.fromJson(e as Map)) .toList(), serverId: json['ServerId'] as String, @@ -7356,7 +7352,7 @@ class ListProfilesResponse { factory ListProfilesResponse.fromJson(Map json) { return ListProfilesResponse( profiles: (json['Profiles'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedProfile.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7382,7 +7378,7 @@ class ListSecurityPoliciesResponse { factory ListSecurityPoliciesResponse.fromJson(Map json) { return ListSecurityPoliciesResponse( securityPolicyNames: (json['SecurityPolicyNames'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -7408,7 +7404,7 @@ class ListServersResponse { factory ListServersResponse.fromJson(Map json) { return ListServersResponse( servers: (json['Servers'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedServer.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7441,7 +7437,7 @@ class ListTagsForResourceResponse { arn: json['Arn'] as String?, nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -7473,7 +7469,7 @@ class ListUsersResponse { return ListUsersResponse( serverId: json['ServerId'] as String, users: (json['Users'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedUser.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -7499,7 +7495,7 @@ class ListWorkflowsResponse { factory ListWorkflowsResponse.fromJson(Map json) { return ListWorkflowsResponse( workflows: (json['Workflows'] as List) - .whereNotNull() + .nonNulls .map((e) => ListedWorkflow.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -8182,7 +8178,7 @@ class PosixProfile { gid: json['Gid'] as int, uid: json['Uid'] as int, secondaryGids: (json['SecondaryGids'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as int) .toList(), ); @@ -8341,7 +8337,7 @@ class ProtocolDetails { factory ProtocolDetails.fromJson(Map json) { return ProtocolDetails( as2Transports: (json['As2Transports'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => As2Transport.fromString((e as String))) .toList(), passiveIp: json['PassiveIp'] as String?, @@ -8664,7 +8660,7 @@ class SftpConnectorConfig { factory SftpConnectorConfig.fromJson(Map json) { return SftpConnectorConfig( trustedHostKeys: (json['TrustedHostKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), userSecretId: json['UserSecretId'] as String?, @@ -8876,7 +8872,7 @@ class TagStepDetails { name: json['Name'] as String?, sourceFileLocation: json['SourceFileLocation'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => S3Tag.fromJson(e as Map)) .toList(), ); @@ -9231,11 +9227,11 @@ class WorkflowDetails { factory WorkflowDetails.fromJson(Map json) { return WorkflowDetails( onPartialUpload: (json['OnPartialUpload'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowDetail.fromJson(e as Map)) .toList(), onUpload: (json['OnUpload'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkflowDetail.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_transfer_api/pubspec.yaml b/generated/aws_transfer_api/pubspec.yaml index 800556c7b..1123738cc 100644 --- a/generated/aws_transfer_api/pubspec.yaml +++ b/generated/aws_transfer_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_transf protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_translate_api/lib/translate-2017-07-01.dart b/generated/aws_translate_api/lib/translate-2017-07-01.dart index 262769412..0e07a4b18 100644 --- a/generated/aws_translate_api/lib/translate-2017-07-01.dart +++ b/generated/aws_translate_api/lib/translate-2017-07-01.dart @@ -1125,7 +1125,7 @@ class AppliedTerminology { return AppliedTerminology( name: json['Name'] as String?, terms: (json['Terms'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Term.fromJson(e as Map)) .toList(), ); @@ -1649,7 +1649,7 @@ class ListLanguagesResponse { displayLanguageCode: (json['DisplayLanguageCode'] as String?) ?.let(DisplayLanguageCode.fromString), languages: (json['Languages'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Language.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1674,7 +1674,7 @@ class ListParallelDataResponse { return ListParallelDataResponse( nextToken: json['NextToken'] as String?, parallelDataPropertiesList: (json['ParallelDataPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ParallelDataProperties.fromJson(e as Map)) .toList(), @@ -1696,7 +1696,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -1721,7 +1721,7 @@ class ListTerminologiesResponse { return ListTerminologiesResponse( nextToken: json['NextToken'] as String?, terminologyPropertiesList: (json['TerminologyPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TerminologyProperties.fromJson(e as Map)) .toList(), ); @@ -1746,7 +1746,7 @@ class ListTextTranslationJobsResponse { nextToken: json['NextToken'] as String?, textTranslationJobPropertiesList: (json['TextTranslationJobPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TextTranslationJobProperties.fromJson( e as Map)) .toList(), @@ -1990,7 +1990,7 @@ class ParallelDataProperties { sourceLanguageCode: json['SourceLanguageCode'] as String?, status: (json['Status'] as String?)?.let(ParallelDataStatus.fromString), targetLanguageCodes: (json['TargetLanguageCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2353,7 +2353,7 @@ class TerminologyProperties { skippedTermCount: json['SkippedTermCount'] as int?, sourceLanguageCode: json['SourceLanguageCode'] as String?, targetLanguageCodes: (json['TargetLanguageCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), termCount: json['TermCount'] as int?, @@ -2499,7 +2499,7 @@ class TextTranslationJobProperties { json['OutputDataConfig'] as Map) : null, parallelDataNames: (json['ParallelDataNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), settings: json['Settings'] != null @@ -2509,11 +2509,11 @@ class TextTranslationJobProperties { sourceLanguageCode: json['SourceLanguageCode'] as String?, submittedTime: timeStampFromJson(json['SubmittedTime']), targetLanguageCodes: (json['TargetLanguageCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), terminologyNames: (json['TerminologyNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -2555,7 +2555,7 @@ class TranslateDocumentResponse { json['AppliedSettings'] as Map) : null, appliedTerminologies: (json['AppliedTerminologies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppliedTerminology.fromJson(e as Map)) .toList(), ); @@ -2597,7 +2597,7 @@ class TranslateTextResponse { json['AppliedSettings'] as Map) : null, appliedTerminologies: (json['AppliedTerminologies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AppliedTerminology.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_translate_api/pubspec.yaml b/generated/aws_translate_api/pubspec.yaml index c290290c9..d2798d5ec 100644 --- a/generated/aws_translate_api/pubspec.yaml +++ b/generated/aws_translate_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_transl protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_waf_api/lib/waf-2015-08-24.dart b/generated/aws_waf_api/lib/waf-2015-08-24.dart index 4ae675883..ccfda70b5 100644 --- a/generated/aws_waf_api/lib/waf-2015-08-24.dart +++ b/generated/aws_waf_api/lib/waf-2015-08-24.dart @@ -5952,7 +5952,7 @@ class ActivatedRule { ? WafAction.fromJson(json['Action'] as Map) : null, excludedRules: (json['ExcludedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExcludedRule.fromJson(e as Map)) .toList(), overrideAction: json['OverrideAction'] != null @@ -6035,7 +6035,7 @@ class ByteMatchSet { return ByteMatchSet( byteMatchSetId: json['ByteMatchSetId'] as String, byteMatchTuples: (json['ByteMatchTuples'] as List) - .whereNotNull() + .nonNulls .map((e) => ByteMatchTuple.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -7514,7 +7514,7 @@ class GeoMatchSet { factory GeoMatchSet.fromJson(Map json) { return GeoMatchSet( geoMatchConstraints: (json['GeoMatchConstraints'] as List) - .whereNotNull() + .nonNulls .map((e) => GeoMatchConstraint.fromJson(e as Map)) .toList(), geoMatchSetId: json['GeoMatchSetId'] as String, @@ -7765,7 +7765,7 @@ class GetRateBasedRuleManagedKeysResponse { Map json) { return GetRateBasedRuleManagedKeysResponse( managedKeys: (json['ManagedKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextMarker: json['NextMarker'] as String?, @@ -7909,7 +7909,7 @@ class GetSampledRequestsResponse { return GetSampledRequestsResponse( populationSize: json['PopulationSize'] as int?, sampledRequests: (json['SampledRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampledHTTPRequest.fromJson(e as Map)) .toList(), timeWindow: json['TimeWindow'] != null @@ -8173,7 +8173,7 @@ class HTTPRequest { country: json['Country'] as String?, hTTPVersion: json['HTTPVersion'] as String?, headers: (json['Headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HTTPHeader.fromJson(e as Map)) .toList(), method: json['Method'] as String?, @@ -8237,7 +8237,7 @@ class IPSet { factory IPSet.fromJson(Map json) { return IPSet( iPSetDescriptors: (json['IPSetDescriptors'] as List) - .whereNotNull() + .nonNulls .map((e) => IPSetDescriptor.fromJson(e as Map)) .toList(), iPSetId: json['IPSetId'] as String, @@ -8426,7 +8426,7 @@ class ListActivatedRulesInRuleGroupResponse { Map json) { return ListActivatedRulesInRuleGroupResponse( activatedRules: (json['ActivatedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActivatedRule.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8454,7 +8454,7 @@ class ListByteMatchSetsResponse { factory ListByteMatchSetsResponse.fromJson(Map json) { return ListByteMatchSetsResponse( byteMatchSets: (json['ByteMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ByteMatchSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8482,7 +8482,7 @@ class ListGeoMatchSetsResponse { factory ListGeoMatchSetsResponse.fromJson(Map json) { return ListGeoMatchSetsResponse( geoMatchSets: (json['GeoMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GeoMatchSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8507,7 +8507,7 @@ class ListIPSetsResponse { factory ListIPSetsResponse.fromJson(Map json) { return ListIPSetsResponse( iPSets: (json['IPSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IPSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8537,7 +8537,7 @@ class ListLoggingConfigurationsResponse { Map json) { return ListLoggingConfigurationsResponse( loggingConfigurations: (json['LoggingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoggingConfiguration.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8566,7 +8566,7 @@ class ListRateBasedRulesResponse { return ListRateBasedRulesResponse( nextMarker: json['NextMarker'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), ); @@ -8594,7 +8594,7 @@ class ListRegexMatchSetsResponse { return ListRegexMatchSetsResponse( nextMarker: json['NextMarker'] as String?, regexMatchSets: (json['RegexMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegexMatchSetSummary.fromJson(e as Map)) .toList(), ); @@ -8622,7 +8622,7 @@ class ListRegexPatternSetsResponse { return ListRegexPatternSetsResponse( nextMarker: json['NextMarker'] as String?, regexPatternSets: (json['RegexPatternSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RegexPatternSetSummary.fromJson(e as Map)) .toList(), @@ -8651,7 +8651,7 @@ class ListRuleGroupsResponse { return ListRuleGroupsResponse( nextMarker: json['NextMarker'] as String?, ruleGroups: (json['RuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSummary.fromJson(e as Map)) .toList(), ); @@ -8679,7 +8679,7 @@ class ListRulesResponse { return ListRulesResponse( nextMarker: json['NextMarker'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), ); @@ -8707,7 +8707,7 @@ class ListSizeConstraintSetsResponse { return ListSizeConstraintSetsResponse( nextMarker: json['NextMarker'] as String?, sizeConstraintSets: (json['SizeConstraintSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SizeConstraintSetSummary.fromJson(e as Map)) .toList(), @@ -8739,7 +8739,7 @@ class ListSqlInjectionMatchSetsResponse { return ListSqlInjectionMatchSetsResponse( nextMarker: json['NextMarker'] as String?, sqlInjectionMatchSets: (json['SqlInjectionMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SqlInjectionMatchSetSummary.fromJson(e as Map)) .toList(), @@ -8768,7 +8768,7 @@ class ListSubscribedRuleGroupsResponse { return ListSubscribedRuleGroupsResponse( nextMarker: json['NextMarker'] as String?, ruleGroups: (json['RuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubscribedRuleGroupSummary.fromJson(e as Map)) .toList(), @@ -8820,7 +8820,7 @@ class ListWebACLsResponse { return ListWebACLsResponse( nextMarker: json['NextMarker'] as String?, webACLs: (json['WebACLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WebACLSummary.fromJson(e as Map)) .toList(), ); @@ -8849,7 +8849,7 @@ class ListXssMatchSetsResponse { return ListXssMatchSetsResponse( nextMarker: json['NextMarker'] as String?, xssMatchSets: (json['XssMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => XssMatchSetSummary.fromJson(e as Map)) .toList(), ); @@ -8891,12 +8891,12 @@ class LoggingConfiguration { factory LoggingConfiguration.fromJson(Map json) { return LoggingConfiguration( logDestinationConfigs: (json['LogDestinationConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), resourceArn: json['ResourceArn'] as String, redactedFields: (json['RedactedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldToMatch.fromJson(e as Map)) .toList(), ); @@ -9153,7 +9153,7 @@ class RateBasedRule { factory RateBasedRule.fromJson(Map json) { return RateBasedRule( matchPredicates: (json['MatchPredicates'] as List) - .whereNotNull() + .nonNulls .map((e) => Predicate.fromJson(e as Map)) .toList(), rateKey: RateKey.fromString((json['RateKey'] as String)), @@ -9247,7 +9247,7 @@ class RegexMatchSet { name: json['Name'] as String?, regexMatchSetId: json['RegexMatchSetId'] as String?, regexMatchTuples: (json['RegexMatchTuples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegexMatchTuple.fromJson(e as Map)) .toList(), ); @@ -9557,7 +9557,7 @@ class RegexPatternSet { return RegexPatternSet( regexPatternSetId: json['RegexPatternSetId'] as String, regexPatternStrings: (json['RegexPatternStrings'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -9714,7 +9714,7 @@ class Rule { factory Rule.fromJson(Map json) { return Rule( predicates: (json['Predicates'] as List) - .whereNotNull() + .nonNulls .map((e) => Predicate.fromJson(e as Map)) .toList(), ruleId: json['RuleId'] as String, @@ -10264,7 +10264,7 @@ class SizeConstraintSet { return SizeConstraintSet( sizeConstraintSetId: json['SizeConstraintSetId'] as String, sizeConstraints: (json['SizeConstraints'] as List) - .whereNotNull() + .nonNulls .map((e) => SizeConstraint.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -10408,7 +10408,7 @@ class SqlInjectionMatchSet { return SqlInjectionMatchSet( sqlInjectionMatchSetId: json['SqlInjectionMatchSetId'] as String, sqlInjectionMatchTuples: (json['SqlInjectionMatchTuples'] as List) - .whereNotNull() + .nonNulls .map( (e) => SqlInjectionMatchTuple.fromJson(e as Map)) .toList(), @@ -10777,7 +10777,7 @@ class TagInfoForResource { return TagInfoForResource( resourceARN: json['ResourceARN'] as String?, tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11312,7 +11312,7 @@ class WebACL { defaultAction: WafAction.fromJson(json['DefaultAction'] as Map), rules: (json['Rules'] as List) - .whereNotNull() + .nonNulls .map((e) => ActivatedRule.fromJson(e as Map)) .toList(), webACLId: json['WebACLId'] as String, @@ -11451,7 +11451,7 @@ class XssMatchSet { return XssMatchSet( xssMatchSetId: json['XssMatchSetId'] as String, xssMatchTuples: (json['XssMatchTuples'] as List) - .whereNotNull() + .nonNulls .map((e) => XssMatchTuple.fromJson(e as Map)) .toList(), name: json['Name'] as String?, diff --git a/generated/aws_waf_api/pubspec.yaml b/generated/aws_waf_api/pubspec.yaml index c9dfb6ec9..ed3de76e9 100644 --- a/generated/aws_waf_api/pubspec.yaml +++ b/generated/aws_waf_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_waf_ap protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_waf_regional_api/lib/waf-regional-2016-11-28.dart b/generated/aws_waf_regional_api/lib/waf-regional-2016-11-28.dart index b0ab9b732..246ee8380 100644 --- a/generated/aws_waf_regional_api/lib/waf-regional-2016-11-28.dart +++ b/generated/aws_waf_regional_api/lib/waf-regional-2016-11-28.dart @@ -6186,7 +6186,7 @@ class ActivatedRule { ? WafAction.fromJson(json['Action'] as Map) : null, excludedRules: (json['ExcludedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExcludedRule.fromJson(e as Map)) .toList(), overrideAction: json['OverrideAction'] != null @@ -6277,7 +6277,7 @@ class ByteMatchSet { return ByteMatchSet( byteMatchSetId: json['ByteMatchSetId'] as String, byteMatchTuples: (json['ByteMatchTuples'] as List) - .whereNotNull() + .nonNulls .map((e) => ByteMatchTuple.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -7764,7 +7764,7 @@ class GeoMatchSet { factory GeoMatchSet.fromJson(Map json) { return GeoMatchSet( geoMatchConstraints: (json['GeoMatchConstraints'] as List) - .whereNotNull() + .nonNulls .map((e) => GeoMatchConstraint.fromJson(e as Map)) .toList(), geoMatchSetId: json['GeoMatchSetId'] as String, @@ -8015,7 +8015,7 @@ class GetRateBasedRuleManagedKeysResponse { Map json) { return GetRateBasedRuleManagedKeysResponse( managedKeys: (json['ManagedKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8159,7 +8159,7 @@ class GetSampledRequestsResponse { return GetSampledRequestsResponse( populationSize: json['PopulationSize'] as int?, sampledRequests: (json['SampledRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampledHTTPRequest.fromJson(e as Map)) .toList(), timeWindow: json['TimeWindow'] != null @@ -8443,7 +8443,7 @@ class HTTPRequest { country: json['Country'] as String?, hTTPVersion: json['HTTPVersion'] as String?, headers: (json['Headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HTTPHeader.fromJson(e as Map)) .toList(), method: json['Method'] as String?, @@ -8507,7 +8507,7 @@ class IPSet { factory IPSet.fromJson(Map json) { return IPSet( iPSetDescriptors: (json['IPSetDescriptors'] as List) - .whereNotNull() + .nonNulls .map((e) => IPSetDescriptor.fromJson(e as Map)) .toList(), iPSetId: json['IPSetId'] as String, @@ -8696,7 +8696,7 @@ class ListActivatedRulesInRuleGroupResponse { Map json) { return ListActivatedRulesInRuleGroupResponse( activatedRules: (json['ActivatedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ActivatedRule.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8724,7 +8724,7 @@ class ListByteMatchSetsResponse { factory ListByteMatchSetsResponse.fromJson(Map json) { return ListByteMatchSetsResponse( byteMatchSets: (json['ByteMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ByteMatchSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8752,7 +8752,7 @@ class ListGeoMatchSetsResponse { factory ListGeoMatchSetsResponse.fromJson(Map json) { return ListGeoMatchSetsResponse( geoMatchSets: (json['GeoMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GeoMatchSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8777,7 +8777,7 @@ class ListIPSetsResponse { factory ListIPSetsResponse.fromJson(Map json) { return ListIPSetsResponse( iPSets: (json['IPSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IPSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8807,7 +8807,7 @@ class ListLoggingConfigurationsResponse { Map json) { return ListLoggingConfigurationsResponse( loggingConfigurations: (json['LoggingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoggingConfiguration.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8836,7 +8836,7 @@ class ListRateBasedRulesResponse { return ListRateBasedRulesResponse( nextMarker: json['NextMarker'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), ); @@ -8864,7 +8864,7 @@ class ListRegexMatchSetsResponse { return ListRegexMatchSetsResponse( nextMarker: json['NextMarker'] as String?, regexMatchSets: (json['RegexMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegexMatchSetSummary.fromJson(e as Map)) .toList(), ); @@ -8892,7 +8892,7 @@ class ListRegexPatternSetsResponse { return ListRegexPatternSetsResponse( nextMarker: json['NextMarker'] as String?, regexPatternSets: (json['RegexPatternSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RegexPatternSetSummary.fromJson(e as Map)) .toList(), @@ -8913,7 +8913,7 @@ class ListResourcesForWebACLResponse { factory ListResourcesForWebACLResponse.fromJson(Map json) { return ListResourcesForWebACLResponse( resourceArns: (json['ResourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8941,7 +8941,7 @@ class ListRuleGroupsResponse { return ListRuleGroupsResponse( nextMarker: json['NextMarker'] as String?, ruleGroups: (json['RuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSummary.fromJson(e as Map)) .toList(), ); @@ -8969,7 +8969,7 @@ class ListRulesResponse { return ListRulesResponse( nextMarker: json['NextMarker'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), ); @@ -8997,7 +8997,7 @@ class ListSizeConstraintSetsResponse { return ListSizeConstraintSetsResponse( nextMarker: json['NextMarker'] as String?, sizeConstraintSets: (json['SizeConstraintSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SizeConstraintSetSummary.fromJson(e as Map)) .toList(), @@ -9029,7 +9029,7 @@ class ListSqlInjectionMatchSetsResponse { return ListSqlInjectionMatchSetsResponse( nextMarker: json['NextMarker'] as String?, sqlInjectionMatchSets: (json['SqlInjectionMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SqlInjectionMatchSetSummary.fromJson(e as Map)) .toList(), @@ -9058,7 +9058,7 @@ class ListSubscribedRuleGroupsResponse { return ListSubscribedRuleGroupsResponse( nextMarker: json['NextMarker'] as String?, ruleGroups: (json['RuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SubscribedRuleGroupSummary.fromJson(e as Map)) .toList(), @@ -9110,7 +9110,7 @@ class ListWebACLsResponse { return ListWebACLsResponse( nextMarker: json['NextMarker'] as String?, webACLs: (json['WebACLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WebACLSummary.fromJson(e as Map)) .toList(), ); @@ -9139,7 +9139,7 @@ class ListXssMatchSetsResponse { return ListXssMatchSetsResponse( nextMarker: json['NextMarker'] as String?, xssMatchSets: (json['XssMatchSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => XssMatchSetSummary.fromJson(e as Map)) .toList(), ); @@ -9181,12 +9181,12 @@ class LoggingConfiguration { factory LoggingConfiguration.fromJson(Map json) { return LoggingConfiguration( logDestinationConfigs: (json['LogDestinationConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), resourceArn: json['ResourceArn'] as String, redactedFields: (json['RedactedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldToMatch.fromJson(e as Map)) .toList(), ); @@ -9443,7 +9443,7 @@ class RateBasedRule { factory RateBasedRule.fromJson(Map json) { return RateBasedRule( matchPredicates: (json['MatchPredicates'] as List) - .whereNotNull() + .nonNulls .map((e) => Predicate.fromJson(e as Map)) .toList(), rateKey: RateKey.fromString((json['RateKey'] as String)), @@ -9537,7 +9537,7 @@ class RegexMatchSet { name: json['Name'] as String?, regexMatchSetId: json['RegexMatchSetId'] as String?, regexMatchTuples: (json['RegexMatchTuples'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RegexMatchTuple.fromJson(e as Map)) .toList(), ); @@ -9847,7 +9847,7 @@ class RegexPatternSet { return RegexPatternSet( regexPatternSetId: json['RegexPatternSetId'] as String, regexPatternStrings: (json['RegexPatternStrings'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, @@ -10019,7 +10019,7 @@ class Rule { factory Rule.fromJson(Map json) { return Rule( predicates: (json['Predicates'] as List) - .whereNotNull() + .nonNulls .map((e) => Predicate.fromJson(e as Map)) .toList(), ruleId: json['RuleId'] as String, @@ -10569,7 +10569,7 @@ class SizeConstraintSet { return SizeConstraintSet( sizeConstraintSetId: json['SizeConstraintSetId'] as String, sizeConstraints: (json['SizeConstraints'] as List) - .whereNotNull() + .nonNulls .map((e) => SizeConstraint.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -10713,7 +10713,7 @@ class SqlInjectionMatchSet { return SqlInjectionMatchSet( sqlInjectionMatchSetId: json['SqlInjectionMatchSetId'] as String, sqlInjectionMatchTuples: (json['SqlInjectionMatchTuples'] as List) - .whereNotNull() + .nonNulls .map( (e) => SqlInjectionMatchTuple.fromJson(e as Map)) .toList(), @@ -11082,7 +11082,7 @@ class TagInfoForResource { return TagInfoForResource( resourceARN: json['ResourceARN'] as String?, tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -11617,7 +11617,7 @@ class WebACL { defaultAction: WafAction.fromJson(json['DefaultAction'] as Map), rules: (json['Rules'] as List) - .whereNotNull() + .nonNulls .map((e) => ActivatedRule.fromJson(e as Map)) .toList(), webACLId: json['WebACLId'] as String, @@ -11756,7 +11756,7 @@ class XssMatchSet { return XssMatchSet( xssMatchSetId: json['XssMatchSetId'] as String, xssMatchTuples: (json['XssMatchTuples'] as List) - .whereNotNull() + .nonNulls .map((e) => XssMatchTuple.fromJson(e as Map)) .toList(), name: json['Name'] as String?, diff --git a/generated/aws_waf_regional_api/pubspec.yaml b/generated/aws_waf_regional_api/pubspec.yaml index d25c93bb1..85b50dbbf 100644 --- a/generated/aws_waf_regional_api/pubspec.yaml +++ b/generated/aws_waf_regional_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_waf_re protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_wafv2_api/lib/wafv2-2019-07-29.dart b/generated/aws_wafv2_api/lib/wafv2-2019-07-29.dart index df433e04f..79bde93bc 100644 --- a/generated/aws_wafv2_api/lib/wafv2-2019-07-29.dart +++ b/generated/aws_wafv2_api/lib/wafv2-2019-07-29.dart @@ -4497,7 +4497,7 @@ class APIKeySummary { aPIKey: json['APIKey'] as String?, creationTimestamp: timeStampFromJson(json['CreationTimestamp']), tokenDomains: (json['TokenDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), version: json['Version'] as int?, @@ -4913,7 +4913,7 @@ class AndStatement { factory AndStatement.fromJson(Map json) { return AndStatement( statements: (json['Statements'] as List) - .whereNotNull() + .nonNulls .map((e) => Statement.fromJson(e as Map)) .toList(), ); @@ -5265,7 +5265,7 @@ class ByteMatchStatement { (json['PositionalConstraint'] as String)), searchString: _s.decodeUint8List(json['SearchString']! as String), textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -5665,11 +5665,11 @@ class CookieMatchPattern { ? All.fromJson(json['All'] as Map) : null, excludedCookies: (json['ExcludedCookies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includedCookies: (json['IncludedCookies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6227,7 +6227,7 @@ class CustomRequestHandling { factory CustomRequestHandling.fromJson(Map json) { return CustomRequestHandling( insertHeaders: (json['InsertHeaders'] as List) - .whereNotNull() + .nonNulls .map((e) => CustomHTTPHeader.fromJson(e as Map)) .toList(), ); @@ -6286,7 +6286,7 @@ class CustomResponse { responseCode: json['ResponseCode'] as int, customResponseBodyKey: json['CustomResponseBodyKey'] as String?, responseHeaders: (json['ResponseHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CustomHTTPHeader.fromJson(e as Map)) .toList(), ); @@ -6476,7 +6476,7 @@ class DescribeAllManagedProductsResponse { Map json) { return DescribeAllManagedProductsResponse( managedProducts: (json['ManagedProducts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedProductDescriptor.fromJson(e as Map)) .toList(), @@ -6497,7 +6497,7 @@ class DescribeManagedProductsByVendorResponse { Map json) { return DescribeManagedProductsByVendorResponse( managedProducts: (json['ManagedProducts'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedProductDescriptor.fromJson(e as Map)) .toList(), @@ -6579,17 +6579,17 @@ class DescribeManagedRuleGroupResponse { factory DescribeManagedRuleGroupResponse.fromJson(Map json) { return DescribeManagedRuleGroupResponse( availableLabels: (json['AvailableLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelSummary.fromJson(e as Map)) .toList(), capacity: json['Capacity'] as int?, consumedLabels: (json['ConsumedLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelSummary.fromJson(e as Map)) .toList(), labelNamespace: json['LabelNamespace'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleSummary.fromJson(e as Map)) .toList(), snsTopicArn: json['SnsTopicArn'] as String?, @@ -7010,7 +7010,7 @@ class Filter { return Filter( behavior: FilterBehavior.fromString((json['Behavior'] as String)), conditions: (json['Conditions'] as List) - .whereNotNull() + .nonNulls .map((e) => Condition.fromJson(e as Map)) .toList(), requirement: @@ -7318,7 +7318,7 @@ class GeoMatchStatement { factory GeoMatchStatement.fromJson(Map json) { return GeoMatchStatement( countryCodes: (json['CountryCodes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => CountryCode.fromString((e as String))) .toList(), forwardedIPConfig: json['ForwardedIPConfig'] != null @@ -7355,7 +7355,7 @@ class GetDecryptedAPIKeyResponse { return GetDecryptedAPIKeyResponse( creationTimestamp: timeStampFromJson(json['CreationTimestamp']), tokenDomains: (json['TokenDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7591,7 +7591,7 @@ class GetSampledRequestsResponse { return GetSampledRequestsResponse( populationSize: json['PopulationSize'] as int?, sampledRequests: (json['SampledRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SampledHTTPRequest.fromJson(e as Map)) .toList(), timeWindow: json['TimeWindow'] != null @@ -7743,7 +7743,7 @@ class HTTPRequest { country: json['Country'] as String?, hTTPVersion: json['HTTPVersion'] as String?, headers: (json['Headers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HTTPHeader.fromJson(e as Map)) .toList(), method: json['Method'] as String?, @@ -7784,11 +7784,11 @@ class HeaderMatchPattern { ? All.fromJson(json['All'] as Map) : null, excludedHeaders: (json['ExcludedHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), includedHeaders: (json['IncludedHeaders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8050,10 +8050,8 @@ class IPSet { factory IPSet.fromJson(Map json) { return IPSet( arn: json['ARN'] as String, - addresses: (json['Addresses'] as List) - .whereNotNull() - .map((e) => e as String) - .toList(), + addresses: + (json['Addresses'] as List).nonNulls.map((e) => e as String).toList(), iPAddressVersion: IPAddressVersion.fromString((json['IPAddressVersion'] as String)), id: json['Id'] as String, @@ -8538,7 +8536,7 @@ class JsonMatchPattern { ? All.fromJson(json['All'] as Map) : null, includedPaths: (json['IncludedPaths'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8749,7 +8747,7 @@ class ListAPIKeysResponse { factory ListAPIKeysResponse.fromJson(Map json) { return ListAPIKeysResponse( aPIKeySummaries: (json['APIKeySummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => APIKeySummary.fromJson(e as Map)) .toList(), applicationIntegrationURL: json['ApplicationIntegrationURL'] as String?, @@ -8786,7 +8784,7 @@ class ListAvailableManagedRuleGroupVersionsResponse { currentDefaultVersion: json['CurrentDefaultVersion'] as String?, nextMarker: json['NextMarker'] as String?, versions: (json['Versions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedRuleGroupVersion.fromJson(e as Map)) .toList(), @@ -8815,7 +8813,7 @@ class ListAvailableManagedRuleGroupsResponse { Map json) { return ListAvailableManagedRuleGroupsResponse( managedRuleGroups: (json['ManagedRuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedRuleGroupSummary.fromJson(e as Map)) .toList(), @@ -8844,7 +8842,7 @@ class ListIPSetsResponse { factory ListIPSetsResponse.fromJson(Map json) { return ListIPSetsResponse( iPSets: (json['IPSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IPSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8873,7 +8871,7 @@ class ListLoggingConfigurationsResponse { Map json) { return ListLoggingConfigurationsResponse( loggingConfigurations: (json['LoggingConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LoggingConfiguration.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8901,7 +8899,7 @@ class ListManagedRuleSetsResponse { factory ListManagedRuleSetsResponse.fromJson(Map json) { return ListManagedRuleSetsResponse( managedRuleSets: (json['ManagedRuleSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ManagedRuleSetSummary.fromJson(e as Map)) .toList(), nextMarker: json['NextMarker'] as String?, @@ -8930,7 +8928,7 @@ class ListMobileSdkReleasesResponse { return ListMobileSdkReleasesResponse( nextMarker: json['NextMarker'] as String?, releaseSummaries: (json['ReleaseSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ReleaseSummary.fromJson(e as Map)) .toList(), ); @@ -8958,7 +8956,7 @@ class ListRegexPatternSetsResponse { return ListRegexPatternSetsResponse( nextMarker: json['NextMarker'] as String?, regexPatternSets: (json['RegexPatternSets'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => RegexPatternSetSummary.fromJson(e as Map)) .toList(), @@ -8977,7 +8975,7 @@ class ListResourcesForWebACLResponse { factory ListResourcesForWebACLResponse.fromJson(Map json) { return ListResourcesForWebACLResponse( resourceArns: (json['ResourceArns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -9005,7 +9003,7 @@ class ListRuleGroupsResponse { return ListRuleGroupsResponse( nextMarker: json['NextMarker'] as String?, ruleGroups: (json['RuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleGroupSummary.fromJson(e as Map)) .toList(), ); @@ -9061,7 +9059,7 @@ class ListWebACLsResponse { return ListWebACLsResponse( nextMarker: json['NextMarker'] as String?, webACLs: (json['WebACLs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WebACLSummary.fromJson(e as Map)) .toList(), ); @@ -9210,7 +9208,7 @@ class LoggingConfiguration { factory LoggingConfiguration.fromJson(Map json) { return LoggingConfiguration( logDestinationConfigs: (json['LogDestinationConfigs'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), resourceArn: json['ResourceArn'] as String, @@ -9222,7 +9220,7 @@ class LoggingConfiguration { : null, managedByFirewallManager: json['ManagedByFirewallManager'] as bool?, redactedFields: (json['RedactedFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FieldToMatch.fromJson(e as Map)) .toList(), ); @@ -9272,7 +9270,7 @@ class LoggingFilter { defaultBehavior: FilterBehavior.fromString((json['DefaultBehavior'] as String)), filters: (json['Filters'] as List) - .whereNotNull() + .nonNulls .map((e) => Filter.fromJson(e as Map)) .toList(), ); @@ -9626,16 +9624,16 @@ class ManagedRuleGroupStatement { name: json['Name'] as String, vendorName: json['VendorName'] as String, excludedRules: (json['ExcludedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExcludedRule.fromJson(e as Map)) .toList(), managedRuleGroupConfigs: (json['ManagedRuleGroupConfigs'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ManagedRuleGroupConfig.fromJson(e as Map)) .toList(), ruleActionOverrides: (json['RuleActionOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleActionOverride.fromJson(e as Map)) .toList(), scopeDownStatement: json['ScopeDownStatement'] != null @@ -10043,7 +10041,7 @@ class MobileSdkRelease { releaseNotes: json['ReleaseNotes'] as String?, releaseVersion: json['ReleaseVersion'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), timestamp: timeStampFromJson(json['Timestamp']), @@ -10111,7 +10109,7 @@ class OrStatement { factory OrStatement.fromJson(Map json) { return OrStatement( statements: (json['Statements'] as List) - .whereNotNull() + .nonNulls .map((e) => Statement.fromJson(e as Map)) .toList(), ); @@ -10655,7 +10653,7 @@ class RateBasedStatement { (json['AggregateKeyType'] as String)), limit: json['Limit'] as int, customKeys: (json['CustomKeys'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RateBasedStatementCustomKey.fromJson(e as Map)) .toList(), @@ -10886,7 +10884,7 @@ class RateBasedStatementManagedKeysIPSet { Map json) { return RateBasedStatementManagedKeysIPSet( addresses: (json['Addresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), iPAddressVersion: (json['IPAddressVersion'] as String?) @@ -10923,7 +10921,7 @@ class RateLimitCookie { return RateLimitCookie( name: json['Name'] as String, textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11017,7 +11015,7 @@ class RateLimitHeader { return RateLimitHeader( name: json['Name'] as String, textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11118,7 +11116,7 @@ class RateLimitQueryArgument { return RateLimitQueryArgument( name: json['Name'] as String, textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11157,7 +11155,7 @@ class RateLimitQueryString { factory RateLimitQueryString.fromJson(Map json) { return RateLimitQueryString( textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11194,7 +11192,7 @@ class RateLimitUriPath { factory RateLimitUriPath.fromJson(Map json) { return RateLimitUriPath( textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11263,7 +11261,7 @@ class RegexMatchStatement { FieldToMatch.fromJson(json['FieldToMatch'] as Map), regexString: json['RegexString'] as String, textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11319,7 +11317,7 @@ class RegexPatternSet { id: json['Id'] as String?, name: json['Name'] as String?, regularExpressionList: (json['RegularExpressionList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Regex.fromJson(e as Map)) .toList(), ); @@ -11369,7 +11367,7 @@ class RegexPatternSetReferenceStatement { fieldToMatch: FieldToMatch.fromJson(json['FieldToMatch'] as Map), textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -11777,7 +11775,7 @@ class RequestInspectionACFP { return RequestInspectionACFP( payloadType: PayloadType.fromString((json['PayloadType'] as String)), addressFields: (json['AddressFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AddressField.fromJson(e as Map)) .toList(), emailField: json['EmailField'] != null @@ -11788,7 +11786,7 @@ class RequestInspectionACFP { json['PasswordField'] as Map) : null, phoneNumberFields: (json['PhoneNumberFields'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PhoneNumberField.fromJson(e as Map)) .toList(), usernameField: json['UsernameField'] != null @@ -11971,11 +11969,11 @@ class ResponseInspectionBodyContains { factory ResponseInspectionBodyContains.fromJson(Map json) { return ResponseInspectionBodyContains( failureStrings: (json['FailureStrings'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), successStrings: (json['SuccessStrings'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -12034,12 +12032,12 @@ class ResponseInspectionHeader { factory ResponseInspectionHeader.fromJson(Map json) { return ResponseInspectionHeader( failureValues: (json['FailureValues'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String, successValues: (json['SuccessValues'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -12099,12 +12097,12 @@ class ResponseInspectionJson { factory ResponseInspectionJson.fromJson(Map json) { return ResponseInspectionJson( failureValues: (json['FailureValues'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), identifier: json['Identifier'] as String, successValues: (json['SuccessValues'] as List) - .whereNotNull() + .nonNulls .map((e) => e as String) .toList(), ); @@ -12154,14 +12152,10 @@ class ResponseInspectionStatusCode { factory ResponseInspectionStatusCode.fromJson(Map json) { return ResponseInspectionStatusCode( - failureCodes: (json['FailureCodes'] as List) - .whereNotNull() - .map((e) => e as int) - .toList(), - successCodes: (json['SuccessCodes'] as List) - .whereNotNull() - .map((e) => e as int) - .toList(), + failureCodes: + (json['FailureCodes'] as List).nonNulls.map((e) => e as int).toList(), + successCodes: + (json['SuccessCodes'] as List).nonNulls.map((e) => e as int).toList(), ); } @@ -12324,7 +12318,7 @@ class Rule { json['OverrideAction'] as Map) : null, ruleLabels: (json['RuleLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Label.fromJson(e as Map)) .toList(), ); @@ -12577,11 +12571,11 @@ class RuleGroup { visibilityConfig: VisibilityConfig.fromJson( json['VisibilityConfig'] as Map), availableLabels: (json['AvailableLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelSummary.fromJson(e as Map)) .toList(), consumedLabels: (json['ConsumedLabels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => LabelSummary.fromJson(e as Map)) .toList(), customResponseBodies: @@ -12591,7 +12585,7 @@ class RuleGroup { description: json['Description'] as String?, labelNamespace: json['LabelNamespace'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), ); @@ -12640,11 +12634,11 @@ class RuleGroupReferenceStatement { return RuleGroupReferenceStatement( arn: json['ARN'] as String, excludedRules: (json['ExcludedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ExcludedRule.fromJson(e as Map)) .toList(), ruleActionOverrides: (json['RuleActionOverrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RuleActionOverride.fromJson(e as Map)) .toList(), ); @@ -12829,12 +12823,12 @@ class SampledHTTPRequest { json['ChallengeResponse'] as Map) : null, labels: (json['Labels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Label.fromJson(e as Map)) .toList(), overriddenAction: json['OverriddenAction'] as String?, requestHeadersInserted: (json['RequestHeadersInserted'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HTTPHeader.fromJson(e as Map)) .toList(), responseCodeSent: json['ResponseCodeSent'] as int?, @@ -12989,7 +12983,7 @@ class SizeConstraintStatement { FieldToMatch.fromJson(json['FieldToMatch'] as Map), size: json['Size'] as int, textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); @@ -13072,7 +13066,7 @@ class SqliMatchStatement { fieldToMatch: FieldToMatch.fromJson(json['FieldToMatch'] as Map), textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), sensitivityLevel: (json['SensitivityLevel'] as String?) @@ -13583,7 +13577,7 @@ class TagInfoForResource { return TagInfoForResource( resourceARN: json['ResourceARN'] as String?, tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -14206,22 +14200,22 @@ class WebACL { managedByFirewallManager: json['ManagedByFirewallManager'] as bool?, postProcessFirewallManagerRuleGroups: (json['PostProcessFirewallManagerRuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallManagerRuleGroup.fromJson(e as Map)) .toList(), preProcessFirewallManagerRuleGroups: (json['PreProcessFirewallManagerRuleGroups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FirewallManagerRuleGroup.fromJson(e as Map)) .toList(), rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Rule.fromJson(e as Map)) .toList(), tokenDomains: (json['TokenDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -14307,7 +14301,7 @@ class XssMatchStatement { fieldToMatch: FieldToMatch.fromJson(json['FieldToMatch'] as Map), textTransformations: (json['TextTransformations'] as List) - .whereNotNull() + .nonNulls .map((e) => TextTransformation.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_wafv2_api/pubspec.yaml b/generated/aws_wafv2_api/pubspec.yaml index 07e65fdd6..3bee19cfd 100644 --- a/generated/aws_wafv2_api/pubspec.yaml +++ b/generated/aws_wafv2_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_wafv2_ protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_workdocs_api/lib/workdocs-2016-05-01.dart b/generated/aws_workdocs_api/lib/workdocs-2016-05-01.dart index f01e85d47..4c1802418 100644 --- a/generated/aws_workdocs_api/lib/workdocs-2016-05-01.dart +++ b/generated/aws_workdocs_api/lib/workdocs-2016-05-01.dart @@ -2601,7 +2601,7 @@ class AddResourcePermissionsResponse { factory AddResourcePermissionsResponse.fromJson(Map json) { return AddResourcePermissionsResponse( shareResults: (json['ShareResults'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ShareResult.fromJson(e as Map)) .toList(), ); @@ -2937,7 +2937,7 @@ class DescribeActivitiesResponse { return DescribeActivitiesResponse( marker: json['Marker'] as String?, userActivities: (json['UserActivities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Activity.fromJson(e as Map)) .toList(), ); @@ -2960,7 +2960,7 @@ class DescribeCommentsResponse { factory DescribeCommentsResponse.fromJson(Map json) { return DescribeCommentsResponse( comments: (json['Comments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Comment.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -2984,7 +2984,7 @@ class DescribeDocumentVersionsResponse { factory DescribeDocumentVersionsResponse.fromJson(Map json) { return DescribeDocumentVersionsResponse( documentVersions: (json['DocumentVersions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentVersionMetadata.fromJson(e as Map)) .toList(), @@ -3013,11 +3013,11 @@ class DescribeFolderContentsResponse { factory DescribeFolderContentsResponse.fromJson(Map json) { return DescribeFolderContentsResponse( documents: (json['Documents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentMetadata.fromJson(e as Map)) .toList(), folders: (json['Folders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FolderMetadata.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -3041,7 +3041,7 @@ class DescribeGroupsResponse { factory DescribeGroupsResponse.fromJson(Map json) { return DescribeGroupsResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupMetadata.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -3067,7 +3067,7 @@ class DescribeNotificationSubscriptionsResponse { return DescribeNotificationSubscriptionsResponse( marker: json['Marker'] as String?, subscriptions: (json['Subscriptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Subscription.fromJson(e as Map)) .toList(), ); @@ -3092,7 +3092,7 @@ class DescribeResourcePermissionsResponse { return DescribeResourcePermissionsResponse( marker: json['Marker'] as String?, principals: (json['Principals'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Principal.fromJson(e as Map)) .toList(), ); @@ -3114,7 +3114,7 @@ class DescribeRootFoldersResponse { factory DescribeRootFoldersResponse.fromJson(Map json) { return DescribeRootFoldersResponse( folders: (json['Folders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FolderMetadata.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -3144,7 +3144,7 @@ class DescribeUsersResponse { marker: json['Marker'] as String?, totalNumberOfUsers: json['TotalNumberOfUsers'] as int?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -3193,10 +3193,8 @@ class DocumentMetadata { createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), creatorId: json['CreatorId'] as String?, id: json['Id'] as String?, - labels: (json['Labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['Labels'] as List?)?.nonNulls.map((e) => e as String).toList(), latestVersionMetadata: json['LatestVersionMetadata'] != null ? DocumentVersionMetadata.fromJson( json['LatestVersionMetadata'] as Map) @@ -3496,10 +3494,8 @@ class FolderMetadata { createdTimestamp: timeStampFromJson(json['CreatedTimestamp']), creatorId: json['CreatorId'] as String?, id: json['Id'] as String?, - labels: (json['Labels'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + labels: + (json['Labels'] as List?)?.nonNulls.map((e) => e as String).toList(), latestVersionSize: json['LatestVersionSize'] as int?, modifiedTimestamp: timeStampFromJson(json['ModifiedTimestamp']), name: json['Name'] as String?, @@ -3653,11 +3649,11 @@ class GetResourcesResponse { factory GetResourcesResponse.fromJson(Map json) { return GetResourcesResponse( documents: (json['Documents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DocumentMetadata.fromJson(e as Map)) .toList(), folders: (json['Folders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FolderMetadata.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, @@ -3874,11 +3870,11 @@ class Participants { factory Participants.fromJson(Map json) { return Participants( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupMetadata.fromJson(e as Map)) .toList(), users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UserMetadata.fromJson(e as Map)) .toList(), ); @@ -3927,7 +3923,7 @@ class Principal { return Principal( id: json['Id'] as String?, roles: (json['Roles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PermissionInfo.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(PrincipalType.fromString), @@ -4045,7 +4041,7 @@ class ResourcePath { factory ResourcePath.fromJson(Map json) { return ResourcePath( components: (json['Components'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePathComponent.fromJson(e as Map)) .toList(), ); @@ -4310,7 +4306,7 @@ class SearchResourcesResponse { factory SearchResourcesResponse.fromJson(Map json) { return SearchResourcesResponse( items: (json['Items'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseItem.fromJson(e as Map)) .toList(), marker: json['Marker'] as String?, diff --git a/generated/aws_workdocs_api/pubspec.yaml b/generated/aws_workdocs_api/pubspec.yaml index c9efbb47c..260d8c8df 100644 --- a/generated/aws_workdocs_api/pubspec.yaml +++ b/generated/aws_workdocs_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_workdo protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_worklink_api/lib/worklink-2018-09-25.dart b/generated/aws_worklink_api/lib/worklink-2018-09-25.dart index d97734f15..43b01139c 100644 --- a/generated/aws_worklink_api/lib/worklink-2018-09-25.dart +++ b/generated/aws_worklink_api/lib/worklink-2018-09-25.dart @@ -1314,11 +1314,11 @@ class DescribeCompanyNetworkConfigurationResponse { Map json) { return DescribeCompanyNetworkConfigurationResponse( securityGroupIds: (json['SecurityGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), vpcId: json['VpcId'] as String?, @@ -1759,7 +1759,7 @@ class ListDevicesResponse { factory ListDevicesResponse.fromJson(Map json) { return ListDevicesResponse( devices: (json['Devices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DeviceSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1783,7 +1783,7 @@ class ListDomainsResponse { factory ListDomainsResponse.fromJson(Map json) { return ListDomainsResponse( domains: (json['Domains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DomainSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1807,7 +1807,7 @@ class ListFleetsResponse { factory ListFleetsResponse.fromJson(Map json) { return ListFleetsResponse( fleetSummaryList: (json['FleetSummaryList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FleetSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -1851,7 +1851,7 @@ class ListWebsiteAuthorizationProvidersResponse { nextToken: json['NextToken'] as String?, websiteAuthorizationProviders: (json['WebsiteAuthorizationProviders'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WebsiteAuthorizationProviderSummary.fromJson( e as Map)) .toList(), @@ -1878,7 +1878,7 @@ class ListWebsiteCertificateAuthoritiesResponse { nextToken: json['NextToken'] as String?, websiteCertificateAuthorities: (json['WebsiteCertificateAuthorities'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WebsiteCaSummary.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_worklink_api/pubspec.yaml b/generated/aws_worklink_api/pubspec.yaml index 89321e85f..415c79391 100644 --- a/generated/aws_worklink_api/pubspec.yaml +++ b/generated/aws_worklink_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_workli protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_workmail_api/lib/workmail-2017-10-01.dart b/generated/aws_workmail_api/lib/workmail-2017-10-01.dart index fcff04dad..9ea04fb24 100644 --- a/generated/aws_workmail_api/lib/workmail-2017-10-01.dart +++ b/generated/aws_workmail_api/lib/workmail-2017-10-01.dart @@ -4673,44 +4673,40 @@ class AccessControlRule { factory AccessControlRule.fromJson(Map json) { return AccessControlRule( - actions: (json['Actions'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + actions: + (json['Actions'] as List?)?.nonNulls.map((e) => e as String).toList(), dateCreated: timeStampFromJson(json['DateCreated']), dateModified: timeStampFromJson(json['DateModified']), description: json['Description'] as String?, effect: (json['Effect'] as String?)?.let(AccessControlRuleEffect.fromString), impersonationRoleIds: (json['ImpersonationRoleIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ipRanges: (json['IpRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), name: json['Name'] as String?, notActions: (json['NotActions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notImpersonationRoleIds: (json['NotImpersonationRoleIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notIpRanges: (json['NotIpRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notUserIds: (json['NotUserIds'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), - userIds: (json['UserIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), + userIds: + (json['UserIds'] as List?)?.nonNulls.map((e) => e as String).toList(), ); } } @@ -5841,7 +5837,7 @@ class GetAccessControlEffectResponse { effect: (json['Effect'] as String?)?.let(AccessControlRuleEffect.fromString), matchedRules: (json['MatchedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -5873,7 +5869,7 @@ class GetDefaultRetentionPolicyResponse { return GetDefaultRetentionPolicyResponse( description: json['Description'] as String?, folderConfigurations: (json['FolderConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FolderConfiguration.fromJson(e as Map)) .toList(), id: json['Id'] as String?, @@ -5904,7 +5900,7 @@ class GetImpersonationRoleEffectResponse { return GetImpersonationRoleEffectResponse( effect: (json['Effect'] as String?)?.let(AccessEffect.fromString), matchedRules: (json['MatchedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImpersonationMatchedRule.fromJson(e as Map)) .toList(), @@ -5953,7 +5949,7 @@ class GetImpersonationRoleResponse { impersonationRoleId: json['ImpersonationRoleId'] as String?, name: json['Name'] as String?, rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImpersonationRule.fromJson(e as Map)) .toList(), type: (json['Type'] as String?)?.let(ImpersonationRoleType.fromString), @@ -5999,7 +5995,7 @@ class GetMailDomainResponse { (json['OwnershipVerificationStatus'] as String?) ?.let(DnsRecordVerificationStatus.fromString), records: (json['Records'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => DnsRecord.fromJson(e as Map)) .toList(), ); @@ -6047,7 +6043,7 @@ class GetMobileDeviceAccessEffectResponse { effect: (json['Effect'] as String?) ?.let(MobileDeviceAccessRuleEffect.fromString), matchedRules: (json['MatchedRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MobileDeviceAccessMatchedRule.fromJson(e as Map)) .toList(), @@ -6268,11 +6264,11 @@ class ImpersonationRule { description: json['Description'] as String?, name: json['Name'] as String?, notTargetUsers: (json['NotTargetUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), targetUsers: (json['TargetUsers'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -6331,7 +6327,7 @@ class ListAccessControlRulesResponse { factory ListAccessControlRulesResponse.fromJson(Map json) { return ListAccessControlRulesResponse( rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccessControlRule.fromJson(e as Map)) .toList(), ); @@ -6353,10 +6349,8 @@ class ListAliasesResponse { factory ListAliasesResponse.fromJson(Map json) { return ListAliasesResponse( - aliases: (json['Aliases'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + aliases: + (json['Aliases'] as List?)?.nonNulls.map((e) => e as String).toList(), nextToken: json['NextToken'] as String?, ); } @@ -6380,7 +6374,7 @@ class ListAvailabilityConfigurationsResponse { Map json) { return ListAvailabilityConfigurationsResponse( availabilityConfigurations: (json['AvailabilityConfigurations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AvailabilityConfiguration.fromJson(e as Map)) .toList(), @@ -6405,7 +6399,7 @@ class ListGroupMembersResponse { factory ListGroupMembersResponse.fromJson(Map json) { return ListGroupMembersResponse( members: (json['Members'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Member.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6477,7 +6471,7 @@ class ListGroupsForEntityResponse { factory ListGroupsForEntityResponse.fromJson(Map json) { return ListGroupsForEntityResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupIdentifier.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6501,7 +6495,7 @@ class ListGroupsResponse { factory ListGroupsResponse.fromJson(Map json) { return ListGroupsResponse( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Group.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6526,7 +6520,7 @@ class ListImpersonationRolesResponse { return ListImpersonationRolesResponse( nextToken: json['NextToken'] as String?, roles: (json['Roles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImpersonationRole.fromJson(e as Map)) .toList(), ); @@ -6551,7 +6545,7 @@ class ListMailDomainsResponse { factory ListMailDomainsResponse.fromJson(Map json) { return ListMailDomainsResponse( mailDomains: (json['MailDomains'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MailDomainSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6574,7 +6568,7 @@ class ListMailboxExportJobsResponse { factory ListMailboxExportJobsResponse.fromJson(Map json) { return ListMailboxExportJobsResponse( jobs: (json['Jobs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MailboxExportJob.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6599,7 +6593,7 @@ class ListMailboxPermissionsResponse { return ListMailboxPermissionsResponse( nextToken: json['NextToken'] as String?, permissions: (json['Permissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Permission.fromJson(e as Map)) .toList(), ); @@ -6625,7 +6619,7 @@ class ListMobileDeviceAccessOverridesResponse { return ListMobileDeviceAccessOverridesResponse( nextToken: json['NextToken'] as String?, overrides: (json['Overrides'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => MobileDeviceAccessOverride.fromJson(e as Map)) .toList(), @@ -6646,7 +6640,7 @@ class ListMobileDeviceAccessRulesResponse { Map json) { return ListMobileDeviceAccessRulesResponse( rules: (json['Rules'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => MobileDeviceAccessRule.fromJson(e as Map)) .toList(), @@ -6672,7 +6666,7 @@ class ListOrganizationsResponse { return ListOrganizationsResponse( nextToken: json['NextToken'] as String?, organizationSummaries: (json['OrganizationSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OrganizationSummary.fromJson(e as Map)) .toList(), ); @@ -6696,7 +6690,7 @@ class ListResourceDelegatesResponse { factory ListResourceDelegatesResponse.fromJson(Map json) { return ListResourceDelegatesResponse( delegates: (json['Delegates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Delegate.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6752,7 +6746,7 @@ class ListResourcesResponse { return ListResourcesResponse( nextToken: json['NextToken'] as String?, resources: (json['Resources'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Resource.fromJson(e as Map)) .toList(), ); @@ -6770,7 +6764,7 @@ class ListTagsForResourceResponse { factory ListTagsForResourceResponse.fromJson(Map json) { return ListTagsForResourceResponse( tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -6830,7 +6824,7 @@ class ListUsersResponse { return ListUsersResponse( nextToken: json['NextToken'] as String?, users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => User.fromJson(e as Map)) .toList(), ); @@ -7123,19 +7117,19 @@ class MobileDeviceAccessRule { dateModified: timeStampFromJson(json['DateModified']), description: json['Description'] as String?, deviceModels: (json['DeviceModels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deviceOperatingSystems: (json['DeviceOperatingSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deviceTypes: (json['DeviceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), deviceUserAgents: (json['DeviceUserAgents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), effect: (json['Effect'] as String?) @@ -7143,19 +7137,19 @@ class MobileDeviceAccessRule { mobileDeviceAccessRuleId: json['MobileDeviceAccessRuleId'] as String?, name: json['Name'] as String?, notDeviceModels: (json['NotDeviceModels'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notDeviceOperatingSystems: (json['NotDeviceOperatingSystems'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notDeviceTypes: (json['NotDeviceTypes'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), notDeviceUserAgents: (json['NotDeviceUserAgents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -7244,7 +7238,7 @@ class Permission { granteeId: json['GranteeId'] as String, granteeType: MemberType.fromString((json['GranteeType'] as String)), permissionValues: (json['PermissionValues'] as List) - .whereNotNull() + .nonNulls .map((e) => PermissionType.fromString((e as String))) .toList(), ); diff --git a/generated/aws_workmail_api/pubspec.yaml b/generated/aws_workmail_api/pubspec.yaml index 82a9c325c..674340a65 100644 --- a/generated/aws_workmail_api/pubspec.yaml +++ b/generated/aws_workmail_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_workma protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_workmailmessageflow_api/pubspec.yaml b/generated/aws_workmailmessageflow_api/pubspec.yaml index e22c45e6a..411993581 100644 --- a/generated/aws_workmailmessageflow_api/pubspec.yaml +++ b/generated/aws_workmailmessageflow_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_workma protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_workspaces_api/lib/workspaces-2015-04-08.dart b/generated/aws_workspaces_api/lib/workspaces-2015-04-08.dart index 6965904f4..2bd229567 100644 --- a/generated/aws_workspaces_api/lib/workspaces-2015-04-08.dart +++ b/generated/aws_workspaces_api/lib/workspaces-2015-04-08.dart @@ -4244,7 +4244,7 @@ class ConnectionAlias { return ConnectionAlias( aliasId: json['AliasId'] as String?, associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionAliasAssociation.fromJson(e as Map)) .toList(), @@ -4453,12 +4453,12 @@ class CreateStandbyWorkspacesResult { factory CreateStandbyWorkspacesResult.fromJson(Map json) { return CreateStandbyWorkspacesResult( failedStandbyRequests: (json['FailedStandbyRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCreateStandbyWorkspacesRequest.fromJson( e as Map)) .toList(), pendingStandbyRequests: (json['PendingStandbyRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => PendingCreateStandbyWorkspacesRequest.fromJson( e as Map)) .toList(), @@ -4585,12 +4585,12 @@ class CreateWorkspacesResult { factory CreateWorkspacesResult.fromJson(Map json) { return CreateWorkspacesResult( failedRequests: (json['FailedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedCreateWorkspaceRequest.fromJson(e as Map)) .toList(), pendingRequests: (json['PendingRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Workspace.fromJson(e as Map)) .toList(), ); @@ -5055,7 +5055,7 @@ class DescribeAccountModificationsResult { Map json) { return DescribeAccountModificationsResult( accountModifications: (json['AccountModifications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountModification.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5115,7 +5115,7 @@ class DescribeApplicationAssociationsResult { Map json) { return DescribeApplicationAssociationsResult( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ApplicationResourceAssociation.fromJson( e as Map)) .toList(), @@ -5140,7 +5140,7 @@ class DescribeApplicationsResult { factory DescribeApplicationsResult.fromJson(Map json) { return DescribeApplicationsResult( applications: (json['Applications'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkSpaceApplication.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5159,7 +5159,7 @@ class DescribeBundleAssociationsResult { factory DescribeBundleAssociationsResult.fromJson(Map json) { return DescribeBundleAssociationsResult( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => BundleResourceAssociation.fromJson(e as Map)) .toList(), @@ -5236,7 +5236,7 @@ class DescribeClientPropertiesResult { factory DescribeClientPropertiesResult.fromJson(Map json) { return DescribeClientPropertiesResult( clientPropertiesList: (json['ClientPropertiesList'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => ClientPropertiesResult.fromJson(e as Map)) .toList(), @@ -5261,7 +5261,7 @@ class DescribeConnectClientAddInsResult { Map json) { return DescribeConnectClientAddInsResult( addIns: (json['AddIns'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectClientAddIn.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5291,7 +5291,7 @@ class DescribeConnectionAliasPermissionsResult { return DescribeConnectionAliasPermissionsResult( aliasId: json['AliasId'] as String?, connectionAliasPermissions: (json['ConnectionAliasPermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionAliasPermission.fromJson(e as Map)) .toList(), @@ -5316,7 +5316,7 @@ class DescribeConnectionAliasesResult { factory DescribeConnectionAliasesResult.fromJson(Map json) { return DescribeConnectionAliasesResult( connectionAliases: (json['ConnectionAliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ConnectionAlias.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5335,7 +5335,7 @@ class DescribeImageAssociationsResult { factory DescribeImageAssociationsResult.fromJson(Map json) { return DescribeImageAssociationsResult( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImageResourceAssociation.fromJson(e as Map)) .toList(), @@ -5360,7 +5360,7 @@ class DescribeIpGroupsResult { return DescribeIpGroupsResult( nextToken: json['NextToken'] as String?, result: (json['Result'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspacesIpGroup.fromJson(e as Map)) .toList(), ); @@ -5378,7 +5378,7 @@ class DescribeTagsResult { factory DescribeTagsResult.fromJson(Map json) { return DescribeTagsResult( tagList: (json['TagList'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -5397,7 +5397,7 @@ class DescribeWorkspaceAssociationsResult { Map json) { return DescribeWorkspaceAssociationsResult( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceResourceAssociation.fromJson(e as Map)) .toList(), @@ -5422,7 +5422,7 @@ class DescribeWorkspaceBundlesResult { factory DescribeWorkspaceBundlesResult.fromJson(Map json) { return DescribeWorkspaceBundlesResult( bundles: (json['Bundles'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceBundle.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5447,7 +5447,7 @@ class DescribeWorkspaceDirectoriesResult { Map json) { return DescribeWorkspaceDirectoriesResult( directories: (json['Directories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceDirectory.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5478,7 +5478,7 @@ class DescribeWorkspaceImagePermissionsResult { return DescribeWorkspaceImagePermissionsResult( imageId: json['ImageId'] as String?, imagePermissions: (json['ImagePermissions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ImagePermission.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5502,7 +5502,7 @@ class DescribeWorkspaceImagesResult { factory DescribeWorkspaceImagesResult.fromJson(Map json) { return DescribeWorkspaceImagesResult( images: (json['Images'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceImage.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -5527,11 +5527,11 @@ class DescribeWorkspaceSnapshotsResult { factory DescribeWorkspaceSnapshotsResult.fromJson(Map json) { return DescribeWorkspaceSnapshotsResult( rebuildSnapshots: (json['RebuildSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Snapshot.fromJson(e as Map)) .toList(), restoreSnapshots: (json['RestoreSnapshots'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Snapshot.fromJson(e as Map)) .toList(), ); @@ -5556,7 +5556,7 @@ class DescribeWorkspacesConnectionStatusResult { return DescribeWorkspacesConnectionStatusResult( nextToken: json['NextToken'] as String?, workspacesConnectionStatus: (json['WorkspacesConnectionStatus'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceConnectionStatus.fromJson(e as Map)) .toList(), @@ -5584,7 +5584,7 @@ class DescribeWorkspacesResult { return DescribeWorkspacesResult( nextToken: json['NextToken'] as String?, workspaces: (json['Workspaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Workspace.fromJson(e as Map)) .toList(), ); @@ -6175,7 +6175,7 @@ class ListAccountLinksResult { factory ListAccountLinksResult.fromJson(Map json) { return ListAccountLinksResult( accountLinks: (json['AccountLinks'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AccountLink.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -6200,7 +6200,7 @@ class ListAvailableManagementCidrRangesResult { Map json) { return ListAvailableManagementCidrRangesResult( managementCidrRanges: (json['ManagementCidrRanges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), nextToken: json['NextToken'] as String?, @@ -6509,7 +6509,7 @@ class RebootWorkspacesResult { factory RebootWorkspacesResult.fromJson(Map json) { return RebootWorkspacesResult( failedRequests: (json['FailedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedWorkspaceChangeRequest.fromJson(e as Map)) .toList(), @@ -6545,7 +6545,7 @@ class RebuildWorkspacesResult { factory RebuildWorkspacesResult.fromJson(Map json) { return RebuildWorkspacesResult( failedRequests: (json['FailedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedWorkspaceChangeRequest.fromJson(e as Map)) .toList(), @@ -6882,7 +6882,7 @@ class StandbyWorkspace { dataReplication: (json['DataReplication'] as String?)?.let(DataReplication.fromString), tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), volumeEncryptionKey: json['VolumeEncryptionKey'] as String?, @@ -6978,7 +6978,7 @@ class StartWorkspacesResult { factory StartWorkspacesResult.fromJson(Map json) { return StartWorkspacesResult( failedRequests: (json['FailedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedWorkspaceChangeRequest.fromJson(e as Map)) .toList(), @@ -7014,7 +7014,7 @@ class StopWorkspacesResult { factory StopWorkspacesResult.fromJson(Map json) { return StopWorkspacesResult( failedRequests: (json['FailedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedWorkspaceChangeRequest.fromJson(e as Map)) .toList(), @@ -7109,7 +7109,7 @@ class TerminateWorkspacesResult { factory TerminateWorkspacesResult.fromJson(Map json) { return TerminateWorkspacesResult( failedRequests: (json['FailedRequests'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FailedWorkspaceChangeRequest.fromJson(e as Map)) .toList(), @@ -7263,12 +7263,12 @@ class WorkSpaceApplication { state: (json['State'] as String?)?.let(WorkSpaceApplicationState.fromString), supportedComputeTypeNames: (json['SupportedComputeTypeNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Compute.fromString((e as String))) .toList(), supportedOperatingSystemNames: (json['SupportedOperatingSystemNames'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => OperatingSystemName.fromString((e as String))) .toList(), ); @@ -7287,7 +7287,7 @@ class WorkSpaceApplicationDeployment { factory WorkSpaceApplicationDeployment.fromJson(Map json) { return WorkSpaceApplicationDeployment( associations: (json['Associations'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => WorkspaceResourceAssociation.fromJson(e as Map)) .toList(), @@ -7510,18 +7510,18 @@ class Workspace { errorMessage: json['ErrorMessage'] as String?, ipAddress: json['IpAddress'] as String?, modificationStates: (json['ModificationStates'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ModificationState.fromJson(e as Map)) .toList(), relatedWorkspaces: (json['RelatedWorkspaces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RelatedWorkspaceProperties.fromJson(e as Map)) .toList(), rootVolumeEncryptionEnabled: json['RootVolumeEncryptionEnabled'] as bool?, standbyWorkspacesProperties: (json['StandbyWorkspacesProperties'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StandbyWorkspacesProperties.fromJson(e as Map)) .toList(), @@ -7962,7 +7962,7 @@ class WorkspaceDirectory { directoryType: (json['DirectoryType'] as String?) ?.let(WorkspaceDirectoryType.fromString), dnsIpAddresses: (json['DnsIpAddresses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), iamRoleId: json['IamRoleId'] as String?, @@ -7978,7 +7978,7 @@ class WorkspaceDirectory { state: (json['State'] as String?)?.let(WorkspaceDirectoryState.fromString), subnetIds: (json['SubnetIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), tenancy: (json['Tenancy'] as String?)?.let(Tenancy.fromString), @@ -7992,7 +7992,7 @@ class WorkspaceDirectory { : null, workspaceSecurityGroupId: json['WorkspaceSecurityGroupId'] as String?, ipGroupIds: (json['ipGroupIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -8098,7 +8098,7 @@ class WorkspaceImage { description: json['Description'] as String?, errorCode: json['ErrorCode'] as String?, errorDetails: (json['ErrorDetails'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorDetails.fromJson(e as Map)) .toList(), errorMessage: json['ErrorMessage'] as String?, @@ -8282,7 +8282,7 @@ class WorkspaceProperties { operatingSystemName: (json['OperatingSystemName'] as String?) ?.let(OperatingSystemName.fromString), protocols: (json['Protocols'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Protocol.fromString((e as String))) .toList(), rootVolumeSizeGib: json['RootVolumeSizeGib'] as int?, @@ -8374,7 +8374,7 @@ class WorkspaceRequest { userName: json['UserName'] as String, rootVolumeEncryptionEnabled: json['RootVolumeEncryptionEnabled'] as bool?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), userVolumeEncryptionEnabled: json['UserVolumeEncryptionEnabled'] as bool?, @@ -8522,7 +8522,7 @@ class WorkspacesIpGroup { groupId: json['groupId'] as String?, groupName: json['groupName'] as String?, userRules: (json['userRules'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => IpRuleItem.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_workspaces_api/pubspec.yaml b/generated/aws_workspaces_api/pubspec.yaml index 8979b26df..740d3505f 100644 --- a/generated/aws_workspaces_api/pubspec.yaml +++ b/generated/aws_workspaces_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_worksp protocol: json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generated/aws_xray_api/lib/xray-2016-04-12.dart b/generated/aws_xray_api/lib/xray-2016-04-12.dart index 7bdf2aea8..7b243aea8 100644 --- a/generated/aws_xray_api/lib/xray-2016-04-12.dart +++ b/generated/aws_xray_api/lib/xray-2016-04-12.dart @@ -1300,10 +1300,8 @@ class Alias { factory Alias.fromJson(Map json) { return Alias( name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), type: json['Type'] as String?, ); } @@ -1437,11 +1435,11 @@ class BatchGetTracesResult { return BatchGetTracesResult( nextToken: json['NextToken'] as String?, traces: (json['Traces'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Trace.fromJson(e as Map)) .toList(), unprocessedTraceIds: (json['UnprocessedTraceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); @@ -1566,18 +1564,18 @@ class Edge { factory Edge.fromJson(Map json) { return Edge( aliases: (json['Aliases'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Alias.fromJson(e as Map)) .toList(), edgeType: json['EdgeType'] as String?, endTime: timeStampFromJson(json['EndTime']), receivedEventAgeHistogram: (json['ReceivedEventAgeHistogram'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HistogramEntry.fromJson(e as Map)) .toList(), referenceId: json['ReferenceId'] as int?, responseTimeHistogram: (json['ResponseTimeHistogram'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HistogramEntry.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -1707,7 +1705,7 @@ class ErrorRootCause { return ErrorRootCause( clientImpacting: json['ClientImpacting'] as bool?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorRootCauseService.fromJson(e as Map)) .toList(), ); @@ -1735,7 +1733,7 @@ class ErrorRootCauseEntity { factory ErrorRootCauseEntity.fromJson(Map json) { return ErrorRootCauseEntity( exceptions: (json['Exceptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RootCauseException.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -1777,15 +1775,13 @@ class ErrorRootCauseService { return ErrorRootCauseService( accountId: json['AccountId'] as String?, entityPath: (json['EntityPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorRootCauseEntity.fromJson(e as Map)) .toList(), inferred: json['Inferred'] as bool?, name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), type: json['Type'] as String?, ); } @@ -1837,7 +1833,7 @@ class FaultRootCause { return FaultRootCause( clientImpacting: json['ClientImpacting'] as bool?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaultRootCauseService.fromJson(e as Map)) .toList(), ); @@ -1865,7 +1861,7 @@ class FaultRootCauseEntity { factory FaultRootCauseEntity.fromJson(Map json) { return FaultRootCauseEntity( exceptions: (json['Exceptions'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RootCauseException.fromJson(e as Map)) .toList(), name: json['Name'] as String?, @@ -1907,15 +1903,13 @@ class FaultRootCauseService { return FaultRootCauseService( accountId: json['AccountId'] as String?, entityPath: (json['EntityPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaultRootCauseEntity.fromJson(e as Map)) .toList(), inferred: json['Inferred'] as bool?, name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), type: json['Type'] as String?, ); } @@ -2018,7 +2012,7 @@ class GetGroupsResult { factory GetGroupsResult.fromJson(Map json) { return GetGroupsResult( groups: (json['Groups'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => GroupSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2043,7 +2037,7 @@ class GetInsightEventsResult { factory GetInsightEventsResult.fromJson(Map json) { return GetInsightEventsResult( insightEvents: (json['InsightEvents'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightEvent.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2091,7 +2085,7 @@ class GetInsightImpactGraphResult { serviceGraphEndTime: timeStampFromJson(json['ServiceGraphEndTime']), serviceGraphStartTime: timeStampFromJson(json['ServiceGraphStartTime']), services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightImpactGraphService.fromJson(e as Map)) .toList(), @@ -2135,7 +2129,7 @@ class GetInsightSummariesResult { factory GetInsightSummariesResult.fromJson(Map json) { return GetInsightSummariesResult( insightSummaries: (json['InsightSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightSummary.fromJson(e as Map)) .toList(), nextToken: json['NextToken'] as String?, @@ -2159,7 +2153,7 @@ class GetSamplingRulesResult { return GetSamplingRulesResult( nextToken: json['NextToken'] as String?, samplingRuleRecords: (json['SamplingRuleRecords'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SamplingRuleRecord.fromJson(e as Map)) .toList(), ); @@ -2184,7 +2178,7 @@ class GetSamplingStatisticSummariesResult { return GetSamplingStatisticSummariesResult( nextToken: json['NextToken'] as String?, samplingStatisticSummaries: (json['SamplingStatisticSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SamplingStatisticSummary.fromJson(e as Map)) .toList(), @@ -2218,12 +2212,12 @@ class GetSamplingTargetsResult { return GetSamplingTargetsResult( lastRuleModification: timeStampFromJson(json['LastRuleModification']), samplingTargetDocuments: (json['SamplingTargetDocuments'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => SamplingTargetDocument.fromJson(e as Map)) .toList(), unprocessedStatistics: (json['UnprocessedStatistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedStatistics.fromJson(e as Map)) .toList(), ); @@ -2263,7 +2257,7 @@ class GetServiceGraphResult { endTime: timeStampFromJson(json['EndTime']), nextToken: json['NextToken'] as String?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Service.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), @@ -2296,7 +2290,7 @@ class GetTimeSeriesServiceStatisticsResult { nextToken: json['NextToken'] as String?, timeSeriesServiceStatistics: (json['TimeSeriesServiceStatistics'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TimeSeriesServiceStatistics.fromJson(e as Map)) .toList(), @@ -2320,7 +2314,7 @@ class GetTraceGraphResult { return GetTraceGraphResult( nextToken: json['NextToken'] as String?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Service.fromJson(e as Map)) .toList(), ); @@ -2356,7 +2350,7 @@ class GetTraceSummariesResult { approximateTime: timeStampFromJson(json['ApproximateTime']), nextToken: json['NextToken'] as String?, traceSummaries: (json['TraceSummaries'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TraceSummary.fromJson(e as Map)) .toList(), tracesProcessedCount: json['TracesProcessedCount'] as int?, @@ -2573,7 +2567,7 @@ class Insight { factory Insight.fromJson(Map json) { return Insight( categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightCategory.fromString((e as String))) .toList(), clientRequestImpactStatistics: @@ -2599,7 +2593,7 @@ class Insight { state: (json['State'] as String?)?.let(InsightState.fromString), summary: json['Summary'] as String?, topAnomalousServices: (json['TopAnomalousServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalousService.fromJson(e as Map)) .toList(), ); @@ -2666,7 +2660,7 @@ class InsightEvent { : null, summary: json['Summary'] as String?, topAnomalousServices: (json['TopAnomalousServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalousService.fromJson(e as Map)) .toList(), ); @@ -2745,15 +2739,13 @@ class InsightImpactGraphService { return InsightImpactGraphService( accountId: json['AccountId'] as String?, edges: (json['Edges'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => InsightImpactGraphEdge.fromJson(e as Map)) .toList(), name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), referenceId: json['ReferenceId'] as int?, type: json['Type'] as String?, ); @@ -2836,7 +2828,7 @@ class InsightSummary { factory InsightSummary.fromJson(Map json) { return InsightSummary( categories: (json['Categories'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InsightCategory.fromString((e as String))) .toList(), clientRequestImpactStatistics: @@ -2863,7 +2855,7 @@ class InsightSummary { state: (json['State'] as String?)?.let(InsightState.fromString), summary: json['Summary'] as String?, topAnomalousServices: (json['TopAnomalousServices'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => AnomalousService.fromJson(e as Map)) .toList(), ); @@ -2936,7 +2928,7 @@ class ListResourcePoliciesResult { return ListResourcePoliciesResult( nextToken: json['NextToken'] as String?, resourcePolicies: (json['ResourcePolicies'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourcePolicy.fromJson(e as Map)) .toList(), ); @@ -2962,7 +2954,7 @@ class ListTagsForResourceResponse { return ListTagsForResourceResponse( nextToken: json['NextToken'] as String?, tags: (json['Tags'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Tag.fromJson(e as Map)) .toList(), ); @@ -3025,7 +3017,7 @@ class PutTraceSegmentsResult { factory PutTraceSegmentsResult.fromJson(Map json) { return PutTraceSegmentsResult( unprocessedTraceSegments: (json['UnprocessedTraceSegments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => UnprocessedTraceSegment.fromJson(e as Map)) .toList(), @@ -3127,7 +3119,7 @@ class ResponseTimeRootCause { return ResponseTimeRootCause( clientImpacting: json['ClientImpacting'] as bool?, services: (json['Services'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseTimeRootCauseService.fromJson(e as Map)) .toList(), @@ -3195,16 +3187,14 @@ class ResponseTimeRootCauseService { return ResponseTimeRootCauseService( accountId: json['AccountId'] as String?, entityPath: (json['EntityPath'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseTimeRootCauseEntity.fromJson(e as Map)) .toList(), inferred: json['Inferred'] as bool?, name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), type: json['Type'] as String?, ); } @@ -3750,22 +3740,20 @@ class Service { return Service( accountId: json['AccountId'] as String?, durationHistogram: (json['DurationHistogram'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HistogramEntry.fromJson(e as Map)) .toList(), edges: (json['Edges'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Edge.fromJson(e as Map)) .toList(), endTime: timeStampFromJson(json['EndTime']), name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), referenceId: json['ReferenceId'] as int?, responseTimeHistogram: (json['ResponseTimeHistogram'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HistogramEntry.fromJson(e as Map)) .toList(), root: json['Root'] as bool?, @@ -3805,10 +3793,8 @@ class ServiceId { return ServiceId( accountId: json['AccountId'] as String?, name: json['Name'] as String?, - names: (json['Names'] as List?) - ?.whereNotNull() - .map((e) => e as String) - .toList(), + names: + (json['Names'] as List?)?.nonNulls.map((e) => e as String).toList(), type: json['Type'] as String?, ); } @@ -4016,7 +4002,7 @@ class TimeSeriesServiceStatistics { json['EdgeSummaryStatistics'] as Map) : null, responseTimeHistogram: (json['ResponseTimeHistogram'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => HistogramEntry.fromJson(e as Map)) .toList(), serviceForecastStatistics: json['ServiceForecastStatistics'] != null @@ -4065,7 +4051,7 @@ class Trace { id: json['Id'] as String?, limitExceeded: json['LimitExceeded'] as bool?, segments: (json['Segments'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => Segment.fromJson(e as Map)) .toList(), ); @@ -4179,12 +4165,12 @@ class TraceSummary { MapEntry( k, (e as List) - .whereNotNull() + .nonNulls .map((e) => ValueWithServiceIds.fromJson(e as Map)) .toList())), availabilityZones: (json['AvailabilityZones'] as List?) - ?.whereNotNull() + ?.nonNulls .map( (e) => AvailabilityZoneDetail.fromJson(e as Map)) .toList(), @@ -4193,11 +4179,11 @@ class TraceSummary { ? ServiceId.fromJson(json['EntryPoint'] as Map) : null, errorRootCauses: (json['ErrorRootCauses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ErrorRootCause.fromJson(e as Map)) .toList(), faultRootCauses: (json['FaultRootCauses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => FaultRootCause.fromJson(e as Map)) .toList(), hasError: json['HasError'] as bool?, @@ -4208,28 +4194,28 @@ class TraceSummary { : null, id: json['Id'] as String?, instanceIds: (json['InstanceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => InstanceIdDetail.fromJson(e as Map)) .toList(), isPartial: json['IsPartial'] as bool?, matchedEventTime: timeStampFromJson(json['MatchedEventTime']), resourceARNs: (json['ResourceARNs'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResourceARNDetail.fromJson(e as Map)) .toList(), responseTime: json['ResponseTime'] as double?, responseTimeRootCauses: (json['ResponseTimeRootCauses'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ResponseTimeRootCause.fromJson(e as Map)) .toList(), revision: json['Revision'] as int?, serviceIds: (json['ServiceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceId.fromJson(e as Map)) .toList(), startTime: timeStampFromJson(json['StartTime']), users: (json['Users'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => TraceUser.fromJson(e as Map)) .toList(), ); @@ -4252,7 +4238,7 @@ class TraceUser { factory TraceUser.fromJson(Map json) { return TraceUser( serviceIds: (json['ServiceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceId.fromJson(e as Map)) .toList(), userName: json['UserName'] as String?, @@ -4379,7 +4365,7 @@ class ValueWithServiceIds { json['AnnotationValue'] as Map) : null, serviceIds: (json['ServiceIds'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => ServiceId.fromJson(e as Map)) .toList(), ); diff --git a/generated/aws_xray_api/pubspec.yaml b/generated/aws_xray_api/pubspec.yaml index 3677cf43e..1ec356d9c 100644 --- a/generated/aws_xray_api/pubspec.yaml +++ b/generated/aws_xray_api/pubspec.yaml @@ -7,7 +7,7 @@ homepage: https://github.com/agilord/aws_client/tree/master/generated/aws_xray_a protocol: rest-json environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' dependencies: shared_aws_api: ^2.0.0 diff --git a/generator/lib/builders/builder_utils.dart b/generator/lib/builders/builder_utils.dart index a2325ca0a..9e288db91 100644 --- a/generator/lib/builders/builder_utils.dart +++ b/generator/lib/builders/builder_utils.dart @@ -44,7 +44,7 @@ String extractJsonCode(Shape shape, String variable, var closureCode = extractJsonCode(shape.member!.shapeClass!, 'e', nullability: Nullability.none); closureCode = _createClosure('e', closureCode); - return '($variable as List$nullAware)$nullAware.whereNotNull().map($closureCode).toList()'; + return '($variable as List$nullAware)$nullAware.nonNulls.map($closureCode).toList()'; } else if (shape.type == 'structure') { final code = '${shape.className}.fromJson($variable as Map)'; diff --git a/generator/lib/builders/pubspec_builder.dart b/generator/lib/builders/pubspec_builder.dart index b0fdd996c..6718a6cbe 100644 --- a/generator/lib/builders/pubspec_builder.dart +++ b/generator/lib/builders/pubspec_builder.dart @@ -37,7 +37,7 @@ $publishTo protocol: ${api.metadata.protocol} environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '^3.0.0' $dependencies diff --git a/shared_aws_api/pubspec.yaml b/shared_aws_api/pubspec.yaml index 066cb6c3c..2f5f2cef7 100644 --- a/shared_aws_api/pubspec.yaml +++ b/shared_aws_api/pubspec.yaml @@ -5,7 +5,7 @@ version: 2.0.1 homepage: https://github.com/agilord/aws_client/tree/master/shared_aws_api environment: - sdk: '>=2.17.0 <4.0.0' + sdk: '^3.0.0' dependencies: crypto: ^3.0.1 diff --git a/shared_aws_api/test/generated/output/json/enum_output.dart b/shared_aws_api/test/generated/output/json/enum_output.dart index b4515efca..60469f47b 100644 --- a/shared_aws_api/test/generated/output/json/enum_output.dart +++ b/shared_aws_api/test/generated/output/json/enum_output.dart @@ -78,7 +78,7 @@ class OutputShape { return OutputShape( fooEnum: (json['FooEnum'] as String?)?.let(JSONEnumType.fromString), listEnums: (json['ListEnums'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => JSONEnumType.fromString((e as String))) .toList(), ); diff --git a/shared_aws_api/test/generated/output/json/lists.dart b/shared_aws_api/test/generated/output/json/lists.dart index e4089a459..be7fbfa02 100644 --- a/shared_aws_api/test/generated/output/json/lists.dart +++ b/shared_aws_api/test/generated/output/json/lists.dart @@ -95,16 +95,16 @@ class OutputShape { factory OutputShape.fromJson(Map json) { return OutputShape( listMember: (json['ListMember'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), listMemberMap: (json['ListMemberMap'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => (e as Map) .map((k, e) => MapEntry(k, e as String))) .toList(), listMemberStruct: (json['ListMemberStruct'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => StructType.fromJson(e as Map)) .toList(), ); diff --git a/shared_aws_api/test/generated/output/json/maps.dart b/shared_aws_api/test/generated/output/json/maps.dart index 8b4801ea4..82d4311f4 100644 --- a/shared_aws_api/test/generated/output/json/maps.dart +++ b/shared_aws_api/test/generated/output/json/maps.dart @@ -75,8 +75,7 @@ class OutputShape { factory OutputShape.fromJson(Map json) { return OutputShape( mapMember: (json['MapMember'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as int).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as int).toList())), ); } } diff --git a/shared_aws_api/test/generated/output/rest-json/complex_list_values.dart b/shared_aws_api/test/generated/output/rest-json/complex_list_values.dart index 97eecaeba..50c83bd2d 100644 --- a/shared_aws_api/test/generated/output/rest-json/complex_list_values.dart +++ b/shared_aws_api/test/generated/output/rest-json/complex_list_values.dart @@ -69,7 +69,7 @@ class OutputShape { factory OutputShape.fromJson(Map json) { return OutputShape( listMember: (json['ListMember'] as List?) - ?.whereNotNull() + ?.nonNulls .map(nonNullableTimeStampFromJson) .toList(), ); diff --git a/shared_aws_api/test/generated/output/rest-json/enum.dart b/shared_aws_api/test/generated/output/rest-json/enum.dart index 329fe35c3..41b20de93 100644 --- a/shared_aws_api/test/generated/output/rest-json/enum.dart +++ b/shared_aws_api/test/generated/output/rest-json/enum.dart @@ -59,7 +59,7 @@ class Enum { return OutputShape( fooEnum: ($json['FooEnum'] as String?)?.let(RESTJSONEnumType.fromString), listEnums: ($json['ListEnums'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => RESTJSONEnumType.fromString((e as String))) .toList(), headerEnum: _s diff --git a/shared_aws_api/test/generated/output/rest-json/lists.dart b/shared_aws_api/test/generated/output/rest-json/lists.dart index 4619889fd..8d85824ce 100644 --- a/shared_aws_api/test/generated/output/rest-json/lists.dart +++ b/shared_aws_api/test/generated/output/rest-json/lists.dart @@ -69,7 +69,7 @@ class OutputShape { factory OutputShape.fromJson(Map json) { return OutputShape( listMember: (json['ListMember'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => e as String) .toList(), ); diff --git a/shared_aws_api/test/generated/output/rest-json/lists_with_structure_member.dart b/shared_aws_api/test/generated/output/rest-json/lists_with_structure_member.dart index 890bdcf5b..f2b193a48 100644 --- a/shared_aws_api/test/generated/output/rest-json/lists_with_structure_member.dart +++ b/shared_aws_api/test/generated/output/rest-json/lists_with_structure_member.dart @@ -69,7 +69,7 @@ class OutputShape { factory OutputShape.fromJson(Map json) { return OutputShape( listMember: (json['ListMember'] as List?) - ?.whereNotNull() + ?.nonNulls .map((e) => SingleStruct.fromJson(e as Map)) .toList(), ); diff --git a/shared_aws_api/test/generated/output/rest-json/maps.dart b/shared_aws_api/test/generated/output/rest-json/maps.dart index 4ac4553de..991499cf8 100644 --- a/shared_aws_api/test/generated/output/rest-json/maps.dart +++ b/shared_aws_api/test/generated/output/rest-json/maps.dart @@ -69,8 +69,7 @@ class OutputShape { factory OutputShape.fromJson(Map json) { return OutputShape( mapMember: (json['MapMember'] as Map?)?.map((k, e) => - MapEntry( - k, (e as List).whereNotNull().map((e) => e as int).toList())), + MapEntry(k, (e as List).nonNulls.map((e) => e as int).toList())), ); } }