// MarshalMapValue implements the pyrrho/encoding/maps Marshaler interface. It
// will encode p into its interface{} representation for use in a
// map[string]interface{} by passing it through JSON.Unmarshal if valid, or the
// 'null' keyword otherwise.
MarshalMapValue implements the pyrrho/encoding/maps Marshaler interface. It
will encode p into its interface{} representation for use in a
map[string]interface{} by passing it through JSON.Unmarshal if valid, or the
'null' keyword otherwise.
// MarshalMapValue implements the pyrrho / encoding / maps Marshaler interface . It // will encode p into its interface {} representation for use in a // map [ string ] interface {} by passing it through JSON . Unmarshal if valid or the // ' null ' keyword otherwise .
func (p SFPolygon) MarshalMapValue() (interface{}, error) {
	if !p.Valid {
		return []byte("null"), nil
	}
	return p.Polygon.MarshalMapValue()
}
func ( p SFPolygon ) MarshalMapValue ( ) ( interface { } , error ) { if ! p . Valid { return [ ] byte ( " " ) , nil } return p . Polygon . MarshalMapValue ( ) }
MarshalMapValue implements the pyrrho/encoding/maps Marshaler interface.
MarshalMapValue implements the pyrrho / encoding / maps Marshaler interface .