OrganizationConformancePack.fromJson constructor

OrganizationConformancePack.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory OrganizationConformancePack.fromJson(Map<String, dynamic> json) {
  return OrganizationConformancePack(
    lastUpdateTime:
        nonNullableTimeStampFromJson(json['LastUpdateTime'] as Object),
    organizationConformancePackArn:
        json['OrganizationConformancePackArn'] as String,
    organizationConformancePackName:
        json['OrganizationConformancePackName'] as String,
    conformancePackInputParameters: (json['ConformancePackInputParameters']
            as List?)
        ?.whereNotNull()
        .map((e) =>
            ConformancePackInputParameter.fromJson(e as Map<String, dynamic>))
        .toList(),
    deliveryS3Bucket: json['DeliveryS3Bucket'] as String?,
    deliveryS3KeyPrefix: json['DeliveryS3KeyPrefix'] as String?,
    excludedAccounts: (json['ExcludedAccounts'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}