toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'place': place,
      'placeId': placeId,
      if (text != null) 'text': text!.toJson(),
      if (structuredFormat != null) 'structuredFormat': structuredFormat!.toJson(),
      if (types != null) 'types': types,
    };