fromJson static method

UpdateType? fromJson(
  1. String json
)

Implementation

static UpdateType? fromJson(String json) {
  switch (json) {
    case 'PUT':
      return put;
    case 'PATCH':
      return patch;
    case 'DELETE':
      return delete;
    default:
      return null;
  }
}