ProvisionedProductAttribute.fromJson constructor

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

Implementation

factory ProvisionedProductAttribute.fromJson(Map<String, dynamic> json) {
  return ProvisionedProductAttribute(
    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?,
    name: json['Name'] as String?,
    physicalId: json['PhysicalId'] as String?,
    productId: json['ProductId'] as String?,
    productName: json['ProductName'] as String?,
    provisioningArtifactId: json['ProvisioningArtifactId'] as String?,
    provisioningArtifactName: json['ProvisioningArtifactName'] as String?,
    status: (json['Status'] as String?)?.toProvisionedProductStatus(),
    statusMessage: json['StatusMessage'] as String?,
    tags: (json['Tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
    type: json['Type'] as String?,
    userArn: json['UserArn'] as String?,
    userArnSession: json['UserArnSession'] as String?,
  );
}