ProvisionedProductDetail.fromJson constructor

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

Implementation

factory ProvisionedProductDetail.fromJson(Map<String, dynamic> json) {
  return ProvisionedProductDetail(
    arn: json['Arn'] as String?,
    createdTime: timeStampFromJson(json['CreatedTime']),
    id: json['Id'] as String?,
    idempotencyToken: json['IdempotencyToken'] as String?,
    lastProvisioningRecordId: json['LastProvisioningRecordId'] as String?,
    lastRecordId: json['LastRecordId'] as String?,
    lastSuccessfulProvisioningRecordId:
        json['LastSuccessfulProvisioningRecordId'] as String?,
    launchRoleArn: json['LaunchRoleArn'] as String?,
    name: json['Name'] as String?,
    productId: json['ProductId'] as String?,
    provisioningArtifactId: json['ProvisioningArtifactId'] as String?,
    status: (json['Status'] as String?)?.toProvisionedProductStatus(),
    statusMessage: json['StatusMessage'] as String?,
    type: json['Type'] as String?,
  );
}