DescribeProvisionedProductPlanOutput.fromJson constructor

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

Implementation

factory DescribeProvisionedProductPlanOutput.fromJson(
    Map<String, dynamic> json) {
  return DescribeProvisionedProductPlanOutput(
    nextPageToken: json['NextPageToken'] as String?,
    provisionedProductPlanDetails:
        json['ProvisionedProductPlanDetails'] != null
            ? ProvisionedProductPlanDetails.fromJson(
                json['ProvisionedProductPlanDetails'] as Map<String, dynamic>)
            : null,
    resourceChanges: (json['ResourceChanges'] as List?)
        ?.whereNotNull()
        .map((e) => ResourceChange.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}