fromJson static method

ForeignKeyMatchType fromJson(
  1. int index
)

Implementation

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