toMap method

Map<String, dynamic> toMap()

Converts the DataSource object to a map.

Implementation

Map<String, dynamic> toMap() {
  return {'uri': uri, 'type': type.name};
}