2021-02-02 14:33:23 +00:00
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
|
|
|
part 'session.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable()
|
|
|
|
class Session {
|
|
|
|
final String url;
|
|
|
|
final String apiKey;
|
|
|
|
|
2021-11-29 23:44:22 +00:00
|
|
|
Session({required this.url, required this.apiKey});
|
2021-02-02 14:33:23 +00:00
|
|
|
|
|
|
|
Session.initial()
|
|
|
|
: url = '',
|
2021-04-05 20:06:54 +00:00
|
|
|
apiKey = '';
|
2021-02-02 14:33:23 +00:00
|
|
|
|
2023-01-16 00:44:34 +00:00
|
|
|
factory Session.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$SessionFromJson(json);
|
2021-02-02 14:33:23 +00:00
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => _$SessionToJson(this);
|
|
|
|
}
|