EntertainmentConfigurationStreamProxy.fromJson constructor

EntertainmentConfigurationStreamProxy.fromJson(
  1. Map<String, dynamic> dataMap
)

Creates a EntertainmentConfigurationStreamProxy object from the JSON response to a GET request.

Implementation

factory EntertainmentConfigurationStreamProxy.fromJson(
    Map<String, dynamic> dataMap) {
  return EntertainmentConfigurationStreamProxy(
      mode: dataMap[ApiFields.mode] ?? "",
      node: Relative.fromJson(
          Map<String, dynamic>.from(dataMap[ApiFields.node] ?? {})));
}