toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'data': {
'interval': data.interval,
'otpRequired': data.otpRequired,
'token': data.token,
'userType': data.userType,
},
'error': error,
'isSuccess': isSuccess,
'statusCode': statusCode,
'success': success,
'timestamp': timestamp,
};
}