toJson method

Map<String, dynamic> toJson()

Converts this object to something serializable in JSON.

Implementation

Map<String, dynamic> toJson() => {
      'location': location.toJson(),
      'viewport': viewport.toJson(),
    };