toJson method

Map<String, dynamic> toJson(
  1. Object? toJsonT(
    1. T value
    )
)

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),
  };
}