Map<String, dynamic> toJson() { final resourceType = this.resourceType; final uri = this.uri; return { if (resourceType != null) 'ResourceType': resourceType.toValue(), if (uri != null) 'Uri': uri, }; }