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