toJson method

Map toJson()

Serialize instance to JSON Object

Implementation

Map toJson() {
  Map fromObject = {
    "code": code,
    "name": name,
  };

  return fromObject;
}