def from_json(data, partial=False): schema = GroupSchema() result = schema.load(data, partial=partial) return result
def to_json(self, exclude=None): schema = GroupSchema() result = schema.dump(self) return result