fromJson<T extends Ret> static method

dynamic fromJson<T extends Ret>(
  1. Map<String, dynamic> json,
  2. T? fromJson(
    1. Map<String, dynamic>
    )?
)

from json map

Implementation

static fromJson<T extends Ret>(
    Map<String, dynamic> json, T? Function(Map<String, dynamic>)? fromJson) {
  return ApiResponse(
    statusCode: json["status_code"],
    msg: Msg.fromJson(json["msg"]),
    ret: fromJson?.call(json["ret"]),
  );
}