16 lines
274 B
Dart
16 lines
274 B
Dart
|
class Auth {
|
||
|
String? token;
|
||
|
|
||
|
Auth({this.token});
|
||
|
|
||
|
Auth.fromJson(Map<String, dynamic> json) {
|
||
|
token = json['token'];
|
||
|
}
|
||
|
|
||
|
Map<String, dynamic> toJson() {
|
||
|
final Map<String, dynamic> data = <String, dynamic>{};
|
||
|
data['token'] = token;
|
||
|
return data;
|
||
|
}
|
||
|
}
|