Unofficial Dart implementation of Deutsche Bahn’s construction site API
https://pub.dev/packages/db_construction_site
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.
15 lines
373 B
15 lines
373 B
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
import 'connection_type.dart';
|
|
|
|
part 'connection_type_converter.g.dart';
|
|
|
|
@JsonSerializable(createFactory: false)
|
|
class ConnectionTypeConverter {
|
|
final ConnectionType type;
|
|
|
|
const ConnectionTypeConverter(this.type);
|
|
|
|
@JsonKey(ignore: true)
|
|
String get value => _$ConnectionTypeConverterToJson(this)['type'];
|
|
}
|
|
|