toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = {};

  data['id'] = id;
  if (description != null) {
    data['description'] = description;
  }
  if (service != null) {
    data['service'] = service;
  }
  data['location_index'] = locationIndex;

  return data;
}