DescribeProvisioningParametersOutput.fromJson constructor

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

Implementation

factory DescribeProvisioningParametersOutput.fromJson(
    Map<String, dynamic> json) {
  return DescribeProvisioningParametersOutput(
    constraintSummaries: (json['ConstraintSummaries'] as List?)
        ?.whereNotNull()
        .map((e) => ConstraintSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    provisioningArtifactOutputs: (json['ProvisioningArtifactOutputs']
            as List?)
        ?.whereNotNull()
        .map((e) =>
            ProvisioningArtifactOutput.fromJson(e as Map<String, dynamic>))
        .toList(),
    provisioningArtifactParameters: (json['ProvisioningArtifactParameters']
            as List?)
        ?.whereNotNull()
        .map((e) =>
            ProvisioningArtifactParameter.fromJson(e as Map<String, dynamic>))
        .toList(),
    provisioningArtifactPreferences:
        json['ProvisioningArtifactPreferences'] != null
            ? ProvisioningArtifactPreferences.fromJson(
                json['ProvisioningArtifactPreferences']
                    as Map<String, dynamic>)
            : null,
    tagOptions: (json['TagOptions'] as List?)
        ?.whereNotNull()
        .map((e) => TagOptionSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    usageInstructions: (json['UsageInstructions'] as List?)
        ?.whereNotNull()
        .map((e) => UsageInstruction.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}