File size: 245 Bytes
2ecc792
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from pydantic import BaseModel
from typing import List


class Base(BaseModel):
    @classmethod
    def get_instance(cls, **kwargs):
        return cls(**kwargs)


class GeneralResponse(Base):
    status:str
    message: List[str]
    data:dict