toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (preferredLocation != null) 'preferredLocation': preferredLocation!,
      if (secondaryLocation != null) 'secondaryLocation': secondaryLocation!,
    };