fbmobile/lib/core/models/session.dart

21 lines
424 B
Dart
Raw Normal View History

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;
Session({required this.url, required this.apiKey});
2021-02-02 14:33:23 +00:00
Session.initial()
: url = '',
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);
}