Creates a json representation of the ValueType
json
Map<String, dynamic> toJson() => { 'name': type.backendName, ...additionalProperties ?? {}, };