Skip to content

Commit ce5011f

Browse files
Update preferred_evidence.py
1 parent 59f069c commit ce5011f

File tree

1 file changed

+0
-64
lines changed

1 file changed

+0
-64
lines changed

cashfree_pg/models/preferred_evidence.py

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -13,67 +13,3 @@
1313
""" # noqa: E501
1414

1515

16-
from __future__ import annotations
17-
import pprint
18-
import re # noqa: F401
19-
import json
20-
21-
22-
23-
24-
from cashfree_pg.models.null<evidences_to_contest_dispute> import null<EvidencesToContestDispute>
25-
26-
class PreferredEvidence(null<EvidencesToContestDispute>):
27-
"""
28-
PreferredEvidence
29-
"""
30-
__properties = []
31-
32-
class Config:
33-
"""Pydantic configuration"""
34-
allow_population_by_field_name = True
35-
validate_assignment = True
36-
37-
def to_str(self) -> str:
38-
"""Returns the string representation of the model using alias"""
39-
return pprint.pformat(self.dict(by_alias=True))
40-
41-
def to_json(self) -> str:
42-
"""Returns the JSON representation of the model using alias"""
43-
return json.dumps(self.to_dict())
44-
45-
@classmethod
46-
def from_json(cls, json_str: str) -> PreferredEvidence:
47-
"""Create an instance of PreferredEvidence from a JSON string"""
48-
return cls.from_dict(json.loads(json_str))
49-
50-
@classmethod
51-
def from_json_for_one_of(cls, json_str: str) -> PreferredEvidence:
52-
"""Create an instance of PreferredEvidence from a JSON string"""
53-
temp_dict = json.loads(json_str)
54-
if "" in temp_dict.keys():
55-
return cls.from_dict(json.loads(json_str))
56-
return None
57-
58-
def to_dict(self):
59-
"""Returns the dictionary representation of the model using alias"""
60-
_dict = self.dict(by_alias=True,
61-
exclude={
62-
},
63-
exclude_none=True)
64-
return _dict
65-
66-
@classmethod
67-
def from_dict(cls, obj: dict) -> PreferredEvidence:
68-
"""Create an instance of PreferredEvidence from a dict"""
69-
if obj is None:
70-
return None
71-
72-
if not isinstance(obj, dict):
73-
return PreferredEvidence.parse_obj(obj)
74-
75-
_obj = PreferredEvidence.parse_obj({
76-
})
77-
return _obj
78-
79-

0 commit comments

Comments
 (0)