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