toJson method
Converts this asset to a JSON representation.
Returns a Map containing the serialized form of this asset.
Implementation
@override
Map<String, dynamic> toJson() {
return <String, dynamic>{
'id': id,
'shortUri': shortUri.toString(),
'uri': uri.toString(),
};
}