toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  "location": location?.toJson(),
  "location_type":
      locationType == null
          ? null
          : locationTypeValues.reverse![locationType!],
  "viewport": viewport?.toJson(),
  "bounds": bounds?.toJson(),
};