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