fbmobile/lib/core/models/session.dart
2023-01-16 01:44:51 +01:00

20 lines
424 B
Dart

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});
Session.initial()
: url = '',
apiKey = '';
factory Session.fromJson(Map<String, dynamic> json) =>
_$SessionFromJson(json);
Map<String, dynamic> toJson() => _$SessionToJson(this);
}