#NEWLINE# def to_representation( self , value ) : #NEWLINE# #INDENT# if ( isinstance ( value , dict ) or ( value is None ) ) : #NEWLINE# #INDENT# return value #NEWLINE# #UNINDENT# return GeoJsonDict ( ( ( 'type' , value . geom_type ) , ( 'coordinates' , value . coords ) ) )