TeletextDestinationSettings.fromJson constructor

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

Implementation

factory TeletextDestinationSettings.fromJson(Map<String, dynamic> json) {
  return TeletextDestinationSettings(
    pageNumber: json['pageNumber'] as String?,
    pageTypes: (json['pageTypes'] as List?)
        ?.whereNotNull()
        .map((e) => (e as String).toTeletextPageType())
        .toList(),
  );
}