EntertainmentConfigurationChannelMember.fromJson constructor

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

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

Implementation

factory EntertainmentConfigurationChannelMember.fromJson(
    Map<String, dynamic> dataMap) {
  return EntertainmentConfigurationChannelMember(
    service: Relative.fromJson(
        Map<String, dynamic>.from(dataMap[ApiFields.service] ?? {})),
    index: dataMap[ApiFields.index] ?? 0,
  );
}