ConfigurationModel.fromJson constructor

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

Implementation

ConfigurationModel.fromJson(Map<String, dynamic> json) {
  urlApi = json != null && json['urlApi'] != null ? json['urlApi'] : null;
  botName = json != null && json['botName'] != null ? json['botName'] : null;
  avatarImage = json != null && json['avatarImage'] != null
      ? json['avatarImage']
      : null;
  wsUrl = json != null && json['wsUrl'] != null ? json['wsUrl'] : null;
}