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