12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- class LoginEntity {
- String? msg;
- int? code;
- Data? data;
- LoginEntity({this.msg, this.code, this.data});
- LoginEntity.fromJson(Map<String, dynamic> json) {
- msg = json['msg'];
- code = json['code'];
- data = json['data'] != null ? new Data.fromJson(json['data']) : null;
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['msg'] = this.msg;
- data['code'] = this.code;
- if (this.data != null) {
- data['data'] = this.data!.toJson();
- }
- return data;
- }
- }
- class Data {
- String? phoneNumber;
- String? identificationCard;
- String? id;
- String? token;
- Data({this.phoneNumber, this.identificationCard, this.id, this.token});
- Data.fromJson(Map<String, dynamic> json) {
- phoneNumber = json['phoneNumber'];
- identificationCard = json['identificationCard'];
- id = json['id'];
- token = json['token'];
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['phoneNumber'] = this.phoneNumber;
- data['identificationCard'] = this.identificationCard;
- data['id'] = this.id;
- data['token'] = this.token;
- return data;
- }
- }
|