Config.fromJson constructor

Config.fromJson(
  1. Map<String, String> json
)

Implementation

factory Config.fromJson(Map<String, String> json) {
  Config config = Config(
      operatorId: json['operatorId'] ?? "",
      clientId: json['clientId'] ?? "",
      clientSecret: json['clientSecret'] ?? "",
      server: json['server'] ?? "",
      static: json['static'] ?? "");
  if (json["category"] != null) {
    config.category = json["category"];
  }
  return config;
}