toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (otherRestrictions != null) 'otherRestrictions': otherRestrictions!,
      if (routeRestrictions != null) 'routeRestrictions': routeRestrictions!,
      if (routeRestrictionsDetails != null)
        'routeRestrictionsDetails': routeRestrictionsDetails!,
      if (timeRestrictions != null) 'timeRestrictions': timeRestrictions!,
    };