fbmobile/lib/core/models/session.dart

20 lines
400 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({this.url, this.apiKey});
2021-02-02 14:33:23 +00:00
Session.initial()
: url = '',
apiKey = '';
2021-02-02 14:33:23 +00:00
factory Session.fromJson(Map<String, dynamic> json) => _$SessionFromJson(json);
Map<String, dynamic> toJson() => _$SessionToJson(this);
}