TargetLocation.fromJson constructor

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

Implementation

factory TargetLocation.fromJson(Map<String, dynamic> json) {
  return TargetLocation(
    accounts: (json['Accounts'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    executionRoleName: json['ExecutionRoleName'] as String?,
    regions: (json['Regions'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    targetLocationMaxConcurrency:
        json['TargetLocationMaxConcurrency'] as String?,
    targetLocationMaxErrors: json['TargetLocationMaxErrors'] as String?,
  );
}