toMap method
Converts the DataSource object to a map.
Implementation
Map<String, dynamic> toMap() {
return {'uri': uri, 'type': type.name};
}
Converts the DataSource object to a map.
Map<String, dynamic> toMap() {
return {'uri': uri, 'type': type.name};
}