fromJson static method

ForeignKeyMatchType fromJson(
  1. int index
)

Implementation

static ForeignKeyMatchType fromJson(int index) {
  switch (index) {
    case 0:
      return full;
    case 1:
      return partial;
    case 2:
      return simple;
    default:
      throw ArgumentError(
          'Value "$index" cannot be converted to "ForeignKeyMatchType"');
  }
}