toJson method

Object toJson()

Implementation

Object toJson () {
  return {
    'id': id,
    'name': name,
  };
}