ResponseAuth.fromJson constructor
ResponseAuth.fromJson(
- dynamic json
Implementation
ResponseAuth.fromJson(dynamic json) {
// _status = json['status'] != null ? Status.fromJson(json['status']) : null;
_user = json['data']['response'] != null
? User.fromJson(json['data']['response'])
: json['data'] != null
? User.fromJson(json['data'])
: null;
_security = json['data'] != null ? SecurityStep.fromJson(json['data']) : null;
_taskId = json['data'] != null ? TaskId.fromJson(json['data']) : null;
_error = json['data']['error'] != null ? Error.fromJson(json['data']['error']) : null;
}