import 'current_user_response.dart'; class SocialDataUser { String? deviceId; String? deviceType; int? id; String? ip; String? timestmp; String? token; String? tokendevice; CurrentUser? user; SocialDataUser({ this.deviceId, this.deviceType, this.id, this.ip, this.timestmp, this.token, this.tokendevice, this.user,}); SocialDataUser.fromJson(dynamic json) { deviceId = json['deviceId']; deviceType = json['deviceType']; id = json['id']; ip = json['ip']; // timestmp = json['timestmp']; token = json['token']; tokendevice = json['tokendevice']; user = json['user'] != null ? CurrentUser.fromJson(json['user']) : null; } Map toJson() { final map = {}; map['deviceId'] = deviceId; map['deviceType'] = deviceType; map['id'] = id; map['ip'] = ip; // map['timestmp'] = timestmp; map['token'] = token; map['tokendevice'] = tokendevice; if (user != null) { map['user'] = user?.toJson(); } return map; } }