ProvisioningArtifactPreferences.fromJson constructor

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

Implementation

factory ProvisioningArtifactPreferences.fromJson(Map<String, dynamic> json) {
  return ProvisioningArtifactPreferences(
    stackSetAccounts: (json['StackSetAccounts'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    stackSetRegions: (json['StackSetRegions'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}