ProvisionedProductPlanDetails.fromJson constructor

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

Implementation

factory ProvisionedProductPlanDetails.fromJson(Map<String, dynamic> json) {
  return ProvisionedProductPlanDetails(
    createdTime: timeStampFromJson(json['CreatedTime']),
    notificationArns: (json['NotificationArns'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    pathId: json['PathId'] as String?,
    planId: json['PlanId'] as String?,
    planName: json['PlanName'] as String?,
    planType: (json['PlanType'] as String?)?.toProvisionedProductPlanType(),
    productId: json['ProductId'] as String?,
    provisionProductId: json['ProvisionProductId'] as String?,
    provisionProductName: json['ProvisionProductName'] as String?,
    provisioningArtifactId: json['ProvisioningArtifactId'] as String?,
    provisioningParameters: (json['ProvisioningParameters'] as List?)
        ?.whereNotNull()
        .map((e) =>
            UpdateProvisioningParameter.fromJson(e as Map<String, dynamic>))
        .toList(),
    status: (json['Status'] as String?)?.toProvisionedProductPlanStatus(),
    statusMessage: json['StatusMessage'] as String?,
    tags: (json['Tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
    updatedTime: timeStampFromJson(json['UpdatedTime']),
  );
}