#NEWLINE# @ classmethod #NEWLINE# def _decodeEmbedded( cls , field , val ) : #NEWLINE# #INDENT# if ( val is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# embeddedType = cls . getEmbeddedType ( field . name ) #NEWLINE# if isinstance ( field . type , avro . schema . ArraySchema ) : #NEWLINE# #INDENT# return list ( ( embeddedType . fromJsonDict ( elem ) for elem in val ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return embeddedType . fromJsonDict ( val )