(src interface{})
| 2378 | ) |
| 2379 | |
| 2380 | func (e *NotificationMethod) Scan(src interface{}) error { |
| 2381 | switch s := src.(type) { |
| 2382 | case []byte: |
| 2383 | *e = NotificationMethod(s) |
| 2384 | case string: |
| 2385 | *e = NotificationMethod(s) |
| 2386 | default: |
| 2387 | return fmt.Errorf("unsupported scan type for NotificationMethod: %T", src) |
| 2388 | } |
| 2389 | return nil |
| 2390 | } |
| 2391 | |
| 2392 | type NullNotificationMethod struct { |
| 2393 | NotificationMethod NotificationMethod `json:"notification_method"` |
no test coverage detected