Stop constructor

Stop({
  1. String? stopId,
  2. TranslatedString? stopCode,
  3. TranslatedString? stopName,
  4. TranslatedString? ttsStopName,
  5. TranslatedString? stopDesc,
  6. double? stopLat,
  7. double? stopLon,
  8. String? zoneId,
  9. TranslatedString? stopUrl,
  10. String? parentStation,
  11. String? stopTimezone,
  12. Stop_WheelchairBoarding? wheelchairBoarding,
  13. String? levelId,
  14. TranslatedString? platformCode,
})

Implementation

factory Stop({
  $core.String? stopId,
  TranslatedString? stopCode,
  TranslatedString? stopName,
  TranslatedString? ttsStopName,
  TranslatedString? stopDesc,
  $core.double? stopLat,
  $core.double? stopLon,
  $core.String? zoneId,
  TranslatedString? stopUrl,
  $core.String? parentStation,
  $core.String? stopTimezone,
  Stop_WheelchairBoarding? wheelchairBoarding,
  $core.String? levelId,
  TranslatedString? platformCode,
}) {
  final $result = create();
  if (stopId != null) {
    $result.stopId = stopId;
  }
  if (stopCode != null) {
    $result.stopCode = stopCode;
  }
  if (stopName != null) {
    $result.stopName = stopName;
  }
  if (ttsStopName != null) {
    $result.ttsStopName = ttsStopName;
  }
  if (stopDesc != null) {
    $result.stopDesc = stopDesc;
  }
  if (stopLat != null) {
    $result.stopLat = stopLat;
  }
  if (stopLon != null) {
    $result.stopLon = stopLon;
  }
  if (zoneId != null) {
    $result.zoneId = zoneId;
  }
  if (stopUrl != null) {
    $result.stopUrl = stopUrl;
  }
  if (parentStation != null) {
    $result.parentStation = parentStation;
  }
  if (stopTimezone != null) {
    $result.stopTimezone = stopTimezone;
  }
  if (wheelchairBoarding != null) {
    $result.wheelchairBoarding = wheelchairBoarding;
  }
  if (levelId != null) {
    $result.levelId = levelId;
  }
  if (platformCode != null) {
    $result.platformCode = platformCode;
  }
  return $result;
}