GetDataSetResponse.fromJson constructor
GetDataSetResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetDataSetResponse.fromJson(Map<String, dynamic> json) {
return GetDataSetResponse(
arn: json['Arn'] as String?,
assetType: (json['AssetType'] as String?)?.toAssetType(),
createdAt: timeStampFromJson(json['CreatedAt']),
description: json['Description'] as String?,
id: json['Id'] as String?,
name: json['Name'] as String?,
origin: (json['Origin'] as String?)?.toOrigin(),
originDetails: json['OriginDetails'] != null
? OriginDetails.fromJson(
json['OriginDetails'] as Map<String, dynamic>)
: null,
sourceId: json['SourceId'] as String?,
tags: (json['Tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
updatedAt: timeStampFromJson(json['UpdatedAt']),
);
}