(self, custom_field=None)
| 185 | |
| 186 | class CustomField(object): |
| 187 | def __init__(self, custom_field=None): # type: (Optional[dict]) -> None |
| 188 | if custom_field is None: |
| 189 | custom_field = {} |
| 190 | |
| 191 | self.name = sanitize_str_field_value(custom_field.get('name')).strip() |
| 192 | self.type = sanitize_str_field_value(custom_field.get('type')).strip().lower() |
| 193 | self.value = sanitize_str_field_value(custom_field.get('value')).strip() |
| 194 | |
| 195 | @classmethod |
| 196 | def new_field(cls, name, value): |
nothing calls this directly
no test coverage detected