Converts this object to something serializable in JSON.
Map<String, dynamic> toJson() => { 'location': location.toJson(), 'viewport': viewport.toJson(), };