Config.fromJson constructor
Implementation
factory Config.fromJson(Map<String, dynamic> json) {
Config config = Config(
credentials: json['keys'] as Map ?? {},
// clientId: json['clientId'] ?? "",
// clientSecret: json['clientSecret'] ?? "",
packageInfo: json['packageInfo'] ?? "",
isDebugMode: json['isDebugMode'] == "true",
appKey: json['appKey'],
);
if (json["credentials"] != null) {
config.credentials = json["credentials"];
}
return config;
}