Arafatk/DataViz

View on GitHub
containers/serialization.go

Summary

Maintainability
A
0 mins
Test Coverage
package containers

// JSONSerializer provides JSON serialization
type JSONSerializer interface {
    // ToJSON outputs the JSON representation of containers's elements.
    ToJSON() ([]byte, error)
}

// JSONDeserializer provides JSON deserialization
type JSONDeserializer interface {
    // FromJSON populates containers's elements from the input JSON representation.
    FromJSON([]byte) error
}