toJson method

Map<String, dynamic> toJson()

Returns the data fields of PolyGeofence in JSON format.

Implementation

Map<String, dynamic> toJson() =>
    {'latitude': latitude, 'longitude': longitude};