/// user_id : 10 /// company_id : 281 /// kassa_id : 3 /// token : "nFH2bzcwAQ4UMpzT5TVVvZr7QaljNfpmG0aqUzgU6J9gXnaDPo4VvBa3CNUn" /// auth_at : "2021-04-30\n11:38:52" /// shard : 1 /// message : "Authorization confirm" /// operation : true class AuthResponse { int? userId; int? companyId; int? kassaId; String? token; String? authAt; int? shard; String? message; bool? operation; static AuthResponse? fromMap(Map map) { if (map == null) return null; AuthResponse authResponseBean = AuthResponse(); authResponseBean.userId = map['user_id']; authResponseBean.companyId = map['company_id']; authResponseBean.kassaId = map['kassa_id']; authResponseBean.token = map['token']; authResponseBean.authAt = map['auth_at']; authResponseBean.shard = map['shard']; authResponseBean.message = map['message']; authResponseBean.operation = map['operation']; return authResponseBean; } Map toJson() => { "user_id": userId, "company_id": companyId, "kassa_id": kassaId, "token": token, "auth_at": authAt, "shard": shard, "message": message, "operation": operation, }; }