import 'dart:convert'; /// deviceId : "string" /// deviceType : "string" /// ip : "string" /// refreshtoken : "string" /// roles : "string" /// token : "string" /// tokenExpirydate : "2023-03-22T10:51:33.255Z" LoginResponse loginResponseFromJson(String str) => LoginResponse.fromJson(json.decode(str)); String loginResponseToJson(LoginResponse data) => json.encode(data.toJson()); class LoginResponse { LoginResponse({ this.deviceId, this.deviceType, this.ip, this.refreshtoken, this.roles, this.token, this.tokenExpirydate, this.userId, }); LoginResponse.fromJson(dynamic json) { deviceId = json['deviceId']; deviceType = json['deviceType']; ip = json['ip']; refreshtoken = json['refreshtoken']; roles = json['roles']; token = json['token']; tokenExpirydate = json['tokenExpirydate']; userId=json['userId']; } String? deviceId; String? deviceType; String? ip; String? refreshtoken; String? roles; String? token; int? tokenExpirydate; int? userId; Map toJson() { final map = {}; map['deviceId'] = deviceId; map['deviceType'] = deviceType; map['ip'] = ip; map['refreshtoken'] = refreshtoken; map['roles'] = roles; map['token'] = token; map['tokenExpirydate'] = tokenExpirydate; map['userId'] = userId; return map; } }