toJson method

Map toJson()

Serialize instance to JSON Object

Implementation

Map toJson() {
  Map fromObject = {
    "global": global,
    "subscription": subscription,
  };

  return fromObject;
}