text: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  import simplejson as json
  
  from alipay.aop.api.constant.ParamConstants import *
  
  
  class AlipayBossFncPriceTaskCreateModel(object):
  
      def __init__(self):
          self._app_name = None
          self._apply_detail = None
          self._context = None
          self._create_user = None
          self._gmt_create = None
          self._memo = None
          self._out_biz_no = None
          self._source = None
          self._sub_type = None
          self._tnt_inst_id = None
          self._type = None
  
      @property
      def app_name(self):
          return self._app_name
  
      @app_name.setter
      def app_name(self, value):
          self._app_name = value
      @property
      def apply_detail(self):
          return self._apply_detail
  
      @apply_detail.setter
      def apply_detail(self, value):
          self._apply_detail = value
      @property
      def context(self):
          return self._context
  
      @context.setter
      def context(self, value):
          self._context = value
      @property
      def create_user(self):
          return self._create_user
  
      @create_user.setter
      def create_user(self, value):
          self._create_user = value
      @property
      def gmt_create(self):
          return self._gmt_create
  
      @gmt_create.setter
      def gmt_create(self, value):
          self._gmt_create = value
      @property
      def memo(self):
          return self._memo
  
      @memo.setter
      def memo(self, value):
          self._memo = value
      @property
      def out_biz_no(self):
          return self._out_biz_no
  
      @out_biz_no.setter
      def out_biz_no(self, value):
          self._out_biz_no = value
      @property
      def source(self):
          return self._source
  
      @source.setter
      def source(self, value):
          self._source = value
      @property
      def sub_type(self):
          return self._sub_type
  
      @sub_type.setter
      def sub_type(self, value):
          self._sub_type = value
      @property
      def tnt_inst_id(self):
          return self._tnt_inst_id
  
      @tnt_inst_id.setter
      def tnt_inst_id(self, value):
          self._tnt_inst_id = value
      @property
      def type(self):
          return self._type
  
      @type.setter
      def type(self, value):
          self._type = value
  
  
      def to_alipay_dict(self):
          params = dict()
          if self.app_name:
              if hasattr(self.app_name, 'to_alipay_dict'):
                  params['app_name'] = self.app_name.to_alipay_dict()
              else:
                  params['app_name'] = self.app_name
          if self.apply_detail:
              if hasattr(self.apply_detail, 'to_alipay_dict'):
                  params['apply_detail'] = self.apply_detail.to_alipay_dict()
              else:
                  params['apply_detail'] = self.apply_detail
          if self.context:
              if hasattr(self.context, 'to_alipay_dict'):
                  params['context'] = self.context.to_alipay_dict()
              else:
                  params['context'] = self.context
          if self.create_user:
              if hasattr(self.create_user, 'to_alipay_dict'):
                  params['create_user'] = self.create_user.to_alipay_dict()
              else:
                  params['create_user'] = self.create_user
          if self.gmt_create:
              if hasattr(self.gmt_create, 'to_alipay_dict'):
                  params['gmt_create'] = self.gmt_create.to_alipay_dict()
              else:
                  params['gmt_create'] = self.gmt_create
          if self.memo:
              if hasattr(self.memo, 'to_alipay_dict'):
                  params['memo'] = self.memo.to_alipay_dict()
              else:
                  params['memo'] = self.memo
          if self.out_biz_no:
              if hasattr(self.out_biz_no, 'to_alipay_dict'):
                  params['out_biz_no'] = self.out_biz_no.to_alipay_dict()
              else:
                  params['out_biz_no'] = self.out_biz_no
          if self.source:
              if hasattr(self.source, 'to_alipay_dict'):
                  params['source'] = self.source.to_alipay_dict()
              else:
                  params['source'] = self.source
          if self.sub_type:
              if hasattr(self.sub_type, 'to_alipay_dict'):
                  params['sub_type'] = self.sub_type.to_alipay_dict()
              else:
                  params['sub_type'] = self.sub_type
          if self.tnt_inst_id:
              if hasattr(self.tnt_inst_id, 'to_alipay_dict'):
                  params['tnt_inst_id'] = self.tnt_inst_id.to_alipay_dict()
              else:
                  params['tnt_inst_id'] = self.tnt_inst_id
          if self.type:
              if hasattr(self.type, 'to_alipay_dict'):
                  params['type'] = self.type.to_alipay_dict()
              else:
                  params['type'] = self.type
          return params
  
      @staticmethod
      def from_alipay_dict(d):
          if not d:
              return None
          o = AlipayBossFncPriceTaskCreateModel()
          if 'app_name' in d:
              o.app_name = d['app_name']
          if 'apply_detail' in d:
              o.apply_detail = d['apply_detail']
          if 'context' in d:
              o.context = d['context']
          if 'create_user' in d:
              o.create_user = d['create_user']
          if 'gmt_create' in d:
              o.gmt_create = d['gmt_create']
          if 'memo' in d:
              o.memo = d['memo']
          if 'out_biz_no' in d:
              o.out_biz_no = d['out_biz_no']
          if 'source' in d:
              o.source = d['source']
          if 'sub_type' in d:
              o.sub_type = d['sub_type']
          if 'tnt_inst_id' in d:
              o.tnt_inst_id = d['tnt_inst_id']
          if 'type' in d:
              o.type = d['type']
          return o
  
  
  