createFrom static method

PropertyFormat createFrom(
  1. int id
)

Implementation

static PropertyFormat createFrom(int id) {
  switch (id) {
    case 1:
      return PropertyFormat.integer;
    case 2:
      return PropertyFormat.float;
    case 3:
      return PropertyFormat.string;
    case 4:
      return PropertyFormat.map;
  }
  throw InvalidValueException('Unknown format: $id');
}