AccountAggregationSource.fromJson constructor

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

Implementation

factory AccountAggregationSource.fromJson(Map<String, dynamic> json) {
  return AccountAggregationSource(
    accountIds: (json['AccountIds'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    allAwsRegions: json['AllAwsRegions'] as bool?,
    awsRegions: (json['AwsRegions'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}