OptionEnum<T> static method

BcsType<Map<String, dynamic>, dynamic> OptionEnum<T>(
  1. BcsType<T, dynamic> type
)

Implementation

static BcsType<Map<String, dynamic>, dynamic> OptionEnum<T>(BcsType<T, dynamic> type) {
  return Bcs.enumeration('Option', {
    'None': null,
    'Some': type,
  });
}