fromJson static method

IndexElementDefinitionType fromJson(
  1. int index
)

Implementation

static IndexElementDefinitionType fromJson(int index) {
  switch (index) {
    case 0:
      return IndexElementDefinitionType.column;
    case 1:
      return IndexElementDefinitionType.expression;
    default:
      throw ArgumentError(
        'Value "$index" cannot be converted to "IndexElementDefinitionType"',
      );
  }
}