astronote/lib/models/sign_in_api.dart
2020-07-31 17:30:32 +02:00

28 lines
667 B
Dart

import 'package:astronote_app/models/datas.dart';
class Api {
String status;
String api;
String id;
Datas datas;
Api ({this.status, this.api, this.id, this.datas});
Api.fromJson(Map<String, dynamic> json) {
status = json['status'];
api = json['api'];
id = json['id'];
datas = json['datas'] != null ? new Datas.fromJson(json['datas']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
data['api'] = this.api;
data['id'] = this.id;
if (this.datas != null) {
data['datas'] = this.datas.toJson();
}
return data;
}
}