toMap method

Map<String, dynamic> toMap()

Converts object to map.

Implementation

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