castToImageitemvalue method

Imageitemvalue? castToImageitemvalue()

Implementation

Imageitemvalue? castToImageitemvalue() {
  if (this.anyOf.isType(Imageitemvalue)) {
    return this.anyOf.values[this.anyOf.types.indexOf(Imageitemvalue)]
        as Imageitemvalue;
  }
  final b = ImageitemvalueBuilder();
  b.value =
      this.anyOf.values[this.anyOf.types.indexOf(JsonObject)] as JsonObject;
  return b.build();
}