core.Map<core.String, core.dynamic> toJson() => { if (domainName != null) 'domainName': domainName!, if (token != null) 'token': token!, };