package com.huigou.topsun.customer.domain.vo;

import com.alibaba.fastjson.JSON;
import com.huigou.topsun.customer.domain.MonthlySettlementMethod;
import lombok.Data;

import java.io.Serializable;

/**
 * title:
 * author:ZHT
 * date:2023/12/20
 * description:
 */
@Data
public class MonthlySettlementMethodVo implements Serializable {
    private String methodId;
    private String method;
    private String status;
    private String sequence;


    public static MonthlySettlementMethod getMonthlySettlementMethod(MonthlySettlementMethodVo monthlySettlementMethodVo) {
        return JSON.parseObject(JSON.toJSONString(monthlySettlementMethodVo), MonthlySettlementMethod.class);
    }

    public static MonthlySettlementMethodVo getMonthlySettlementMethodVo(MonthlySettlementMethod monthlySettlementMethod) {
        return JSON.parseObject(JSON.toJSONString(monthlySettlementMethod), MonthlySettlementMethodVo.class);
    }
}
