toJson method
Implementation
@override
Json toJson() {
final json = <String, dynamic>{};
if (token != null) json['token'] = token;
if (login != null) json['login'] = login!.toJson();
if (user != null) json['user'] = user!.toJson();
json['logs'] = logs.map((e) => e.toJson()).toList();
return json;
}