fromJson static method

ForeignKeyAction fromJson(
  1. int index
)

Implementation

static ForeignKeyAction fromJson(int index) {
  switch (index) {
    case 0:
      return setNull;
    case 1:
      return setDefault;
    case 2:
      return restrict;
    case 3:
      return noAction;
    case 4:
      return cascade;
    default:
      throw ArgumentError(
          'Value "$index" cannot be converted to "ForeignKeyAction"');
  }
}