code: def serialize(cls, share_detail):
          
  
          return {
              cls._FIELD_PAYMENT: converter.serialize(
                  share_detail._payment_field_for_request),
              cls._FIELD_READ_ONLY: converter.serialize(
                  share_detail._read_only_field_for_request),
              cls._FIELD_DRAFT_PAYMENT: converter.serialize(
                  share_detail._draft_payment
              ),
          }
docs: :type share_detail: object_.ShareDetail
  
          :rtype: dict