You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
445 B
17 lines
445 B
import 'package:freezed_annotation/freezed_annotation.dart'; |
|
|
|
part 'station_status.g.dart'; |
|
part 'station_status.freezed.dart'; |
|
|
|
@freezed |
|
class StationStatus with _$StationStatus { |
|
const factory StationStatus({ |
|
required int delay, |
|
required bool real, |
|
required bool cancelled, |
|
required String? platform, |
|
}) = _StationStatus; |
|
|
|
factory StationStatus.fromJson(Map<String, dynamic> json) => _$StationStatusFromJson(json); |
|
} |
|
|
|
|