CourierUserPreferencesTopic.fromJson constructor

CourierUserPreferencesTopic.fromJson(
  1. dynamic data
)

Implementation

factory CourierUserPreferencesTopic.fromJson(dynamic data) {
  return CourierUserPreferencesTopic(
    defaultStatus: CourierUserPreferencesStatus.fromJson(data['defaultStatus']),
    hasCustomRouting: data['hasCustomRouting'],
    customRouting: (data['customRouting'] as List).map((e) => CourierUserPreferencesChannel.fromJson(e)).toList(),
    status: CourierUserPreferencesStatus.fromJson(data['status']),
    topicId: data['topicId'],
    topicName: data['topicName'],
    sectionName: data['sectionName'],
    sectionId: data['sectionId'],
  );
}