DataSetEntry.fromJson constructor

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

Implementation

factory DataSetEntry.fromJson(Map<String, dynamic> json) {
  return DataSetEntry(
    arn: json['Arn'] as String,
    assetType: (json['AssetType'] as String).toAssetType(),
    createdAt: nonNullableTimeStampFromJson(json['CreatedAt'] as Object),
    description: json['Description'] as String,
    id: json['Id'] as String,
    name: json['Name'] as String,
    origin: (json['Origin'] as String).toOrigin(),
    updatedAt: nonNullableTimeStampFromJson(json['UpdatedAt'] as Object),
    originDetails: json['OriginDetails'] != null
        ? OriginDetails.fromJson(
            json['OriginDetails'] as Map<String, dynamic>)
        : null,
    sourceId: json['SourceId'] as String?,
  );
}