SteamApi.fromJson constructor

SteamApi.fromJson(
  1. Map<String, dynamic> json
)

Creates a SteamApi from json

Implementation

SteamApi.fromJson(Map<String, dynamic> json) {
  callbackStructs = json["callback_structs"]
      .map<SteamStruct>((x) => SteamStruct.fromJson(x))
      .toList();

  consts =
      json["consts"].map<SteamConst>((x) => SteamConst.fromJson(x)).toList();

  enums = json["enums"].map<SteamEnum>((x) => SteamEnum.fromJson(x)).toList();

  interfaces = json["interfaces"]
      .map<SteamInterface>((x) => SteamInterface.fromJson(x))
      .toList();

  structs = json["structs"]
      .map<SteamStruct>((x) => SteamStruct.fromJson(x))
      .toList();

  typedefs = json["typedefs"]
      .map<SteamTypedef>((x) => SteamTypedef.fromJson(x))
      .toList();
}