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