AbiParameterType.fromName constructor

AbiParameterType.fromName(String name)

Implementation

factory AbiParameterType.fromName(String name) {
  switch (name) {
    case 'ByteArray':
      return byteArray;
    case 'Boolean':
      return boolean;
    case 'Integer':
      return integer;
    case 'Interface':
      return interface;
    case 'Array':
      return array;
    case 'Struct':
      return struct;
    case 'Map':
      return map;
    default:
      return null;
  }
}