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