toJson method
Implementation
Map<String, Object?> toJson() {
final access_token = this.access_token;
final user_id = this.user_id;
final device_id = this.device_id;
return {
if (access_token != null) 'access_token': access_token,
if (user_id != null) 'user_id': user_id,
if (device_id != null) 'device_id': device_id,
if (error != null) 'error': error,
if (errorcode != null) 'errorcode': errorcode,
};
}