+4
@@ -8,10 +8,14 @@ package containers
|
||||
type JSONSerializer interface {
|
||||
// ToJSON outputs the JSON representation of containers's elements.
|
||||
ToJSON() ([]byte, error)
|
||||
// MarshalJSON @implements json.Marshaler
|
||||
MarshalJSON() ([]byte, error)
|
||||
}
|
||||
|
||||
// JSONDeserializer provides JSON deserialization
|
||||
type JSONDeserializer interface {
|
||||
// FromJSON populates containers's elements from the input JSON representation.
|
||||
FromJSON([]byte) error
|
||||
// UnmarshalJSON @implements json.Unmarshaler
|
||||
UnmarshalJSON([]byte) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user