type property Null safety

InputType? type
@JsonKey(ignore: true)

Returns either the type1 value or the type2 value

Implementation

@JsonKey(ignore: true)

/// Returns either the [type1] value or the [type2] value
InputType? get type => type1 ?? type2;