toJson method

Map<String, String> toJson()

Implementation

Map<String, String> toJson() {
  return {'id': id, 'name': name};
}