BaseChannel.fromJson constructor

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

Implementation

factory BaseChannel.fromJson(Map<String, dynamic> json) => BaseChannel(
      id: json["id"],
      name: json["name"],
      code: json["code"],
      type: json["type"],
      logo: json["logo"],
      settingsSample: json["settings_sample"] == null
          ? null
          : SettingsSample.fromJson(json["settings_sample"]),
      authSample: json["auth_sample"] == null
          ? null
          : List<dynamic>.from(json["auth_sample"].map((x) => x)),
      description: json["description"],
    );