ResultDto<T>.fromJsonT constructor

ResultDto<T>.fromJsonT(
  1. Map<String, dynamic> json
)

from元素对象

Implementation

factory ResultDto.fromJsonT(Map<String, dynamic> json) {
  return ResultDto<T>(
    json['code'] as int,
    json['data'] as T?,
    json['errorCode'] as String?,
    json['message'] as String?,
    json['record'] as int?,
  );
}