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