Adds db helper requsts for flights pertaining to drones/batteries, and config class with generated json serializer
This commit is contained in:
16
lib/config.dart
Normal file
16
lib/config.dart
Normal file
@ -0,0 +1,16 @@
|
||||
// This file holds a class to represent the configuration/settings of the app
|
||||
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
part 'generated/config.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class RTimeConfig {
|
||||
final String language;
|
||||
|
||||
RTimeConfig({required this.language});
|
||||
|
||||
factory RTimeConfig.fromJson(Map<String, dynamic> json) =>
|
||||
_$PersonFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$PersonToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user