GetAssetResponse.fromJson constructor

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

Implementation

factory GetAssetResponse.fromJson(Map<String, dynamic> json) {
  return GetAssetResponse(
    arn: json['Arn'] as String?,
    assetDetails: json['AssetDetails'] != null
        ? AssetDetails.fromJson(json['AssetDetails'] as Map<String, dynamic>)
        : null,
    assetType: (json['AssetType'] as String?)?.toAssetType(),
    createdAt: timeStampFromJson(json['CreatedAt']),
    dataSetId: json['DataSetId'] as String?,
    id: json['Id'] as String?,
    name: json['Name'] as String?,
    revisionId: json['RevisionId'] as String?,
    sourceId: json['SourceId'] as String?,
    updatedAt: timeStampFromJson(json['UpdatedAt']),
  );
}