castToItemvalue method
Implementation
Itemvalue castToItemvalue() {
if (this.anyOf.isType(Itemvalue)) {
return this.anyOf.values[this.anyOf.types.indexOf(Itemvalue)]
as Itemvalue;
}
final b = $ItemvalueBuilder();
b.value =
this.anyOf.values[this.anyOf.types.indexOf(JsonObject)] as JsonObject;
return b.build();
}