toJson method
Implementation
Map<String, dynamic> toJson(Object? Function(T value) toJsonT) {
return <String, dynamic>{
"code": code,
"msg": msg,
"error": error,
"data": data == null ? null : toJsonT(data as T),
"status": msg,
"result": data == null ? null : toJsonT(data as T),
};
}