toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  if (description != null) {
    data['description'] = description;
  }
  if (id != null) {
    data['id'] = id;
  }
  if (place_id != null) {
    data['place_id'] = place_id;
  }

  return data;
}