fromJson static method

IndexElementDefinitionType fromJson(
  1. int index
)

Implementation

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