toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result$data = <String, dynamic>{};
  if (_$data.containsKey('radius')) {
    final l$radius = radius;
    result$data['radius'] = l$radius;
  }
  if (_$data.containsKey('minPrice')) {
    final l$minPrice = minPrice;
    result$data['minPrice'] = l$minPrice;
  }
  if (_$data.containsKey('extraFees')) {
    final l$extraFees = extraFees;
    result$data['extraFees'] = l$extraFees;
  }
  if (_$data.containsKey('color')) {
    final l$color = color;
    result$data['color'] = l$color;
  }
  if (_$data.containsKey('category')) {
    final l$category = category;
    result$data['category'] = l$category == null
        ? null
        : toJson$Enum$ZoneTypesCategoryEnum(l$category);
  }
  if (_$data.containsKey('type')) {
    final l$type = type;
    result$data['type'] =
        l$type == null ? null : toJson$Enum$ZoneTypesEnum(l$type);
  }
  if (_$data.containsKey('paths')) {
    final l$paths = paths;
    result$data['paths'] = l$paths?.map((e) => e.toJson()).toList();
  }
  return result$data;
}