Returns either the type1 value or the type2 value
@JsonKey(ignore: true) /// Returns either the [type1] value or the [type2] value InputType? get type => type1 ?? type2;