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