package com.uiui.zyappstore.bean;

import androidx.annotation.NonNull;

import com.google.gson.Gson;
import com.google.gson.JsonParser;

import java.io.Serializable;


public class BaseResponse<T> implements Serializable {

    private static final long serialVersionUID = 5468533687801294972L;

    public int code;
    public String msg;
    public T data;

    @NonNull
    @Override
    public String toString() {
        return JsonParser.parseString(new Gson().toJson(this)).getAsJsonObject().toString();
    }
}