AssetEntry.fromJson constructor

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

Implementation

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