Skip to content

Commit

Permalink
Update preferred_evidence.py
Browse files Browse the repository at this point in the history
  • Loading branch information
suhas-cashfree authored Jan 1, 2025
1 parent 59f069c commit ce5011f
Showing 1 changed file with 0 additions and 64 deletions.
64 changes: 0 additions & 64 deletions cashfree_pg/models/preferred_evidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,67 +13,3 @@
""" # noqa: E501


from __future__ import annotations
import pprint
import re # noqa: F401
import json




from cashfree_pg.models.null<evidences_to_contest_dispute> import null<EvidencesToContestDispute>

class PreferredEvidence(null<EvidencesToContestDispute>):
"""
PreferredEvidence
"""
__properties = []

class Config:
"""Pydantic configuration"""
allow_population_by_field_name = True
validate_assignment = True

def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
return pprint.pformat(self.dict(by_alias=True))

def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
return json.dumps(self.to_dict())

@classmethod
def from_json(cls, json_str: str) -> PreferredEvidence:
"""Create an instance of PreferredEvidence from a JSON string"""
return cls.from_dict(json.loads(json_str))

@classmethod
def from_json_for_one_of(cls, json_str: str) -> PreferredEvidence:
"""Create an instance of PreferredEvidence from a JSON string"""
temp_dict = json.loads(json_str)
if "" in temp_dict.keys():
return cls.from_dict(json.loads(json_str))
return None

def to_dict(self):
"""Returns the dictionary representation of the model using alias"""
_dict = self.dict(by_alias=True,
exclude={
},
exclude_none=True)
return _dict

@classmethod
def from_dict(cls, obj: dict) -> PreferredEvidence:
"""Create an instance of PreferredEvidence from a dict"""
if obj is None:
return None

if not isinstance(obj, dict):
return PreferredEvidence.parse_obj(obj)

_obj = PreferredEvidence.parse_obj({
})
return _obj


0 comments on commit ce5011f

Please sign in to comment.