enum SplitType { amount, item, unknown }

extension SplitTypeX on SplitType {
  String toStringType() => switch (this) {
    SplitType.amount => 'AMOUNT',
    SplitType.item => 'ITEM',
    SplitType.unknown => 'unknown',
  };

  bool get isAmount => this == SplitType.amount;
  bool get isItem => this == SplitType.item;
}
