import 'package:json_annotation/json_annotation.dart'; part 'stations_result.g.dart'; @JsonSerializable() class StationsResult { final String name; final List? stoppedAtBy; const StationsResult({required this.name, this.stoppedAtBy}); factory StationsResult.fromJson(Map json) => _$StationsResultFromJson(json); Map toJson() => _$StationsResultToJson(this); }