class transport(ComplexModel): __namespace__ = '' DeclaredType = String(max_len=100).customize(max_occurs=1, min_occurs=0) DeclaredTypeCode = Integer.customize(max_occurs=1, min_occurs=0) Number = String.customize(max_occurs=1, min_occurs=0) @staticmethod def generate(): return { 'DeclaredType': 'hello', 'DeclaredTypeCode': 0, 'Number': 'hello', }
class Transport(ComplexModel): __namespace__ = '' DeclaredType = String(max_len=100).customize(max_occurs=1, min_occurs=0) DeclaredTypeCode = Integer.customize(max_occurs=1, min_occurs=0) Number = String.customize(max_occurs=1, min_occurs=0)