TranslationSubscribedData.fromMap constructor
TranslationSubscribedData.fromMap( - Map<String, dynamic> map
)
Implementation
factory TranslationSubscribedData.fromMap(Map<String, dynamic> map) {
return TranslationSubscribedData(
speakerId: map['speakerId'] as String? ?? '',
speakerName: map['speakerName'] as String?,
language: map['language'] as String? ?? '',
channelCreated: map['channelCreated'] as bool? ?? false,
producerId: map['producerId'] as String?,
originalProducerId: map['originalProducerId'] as String?,
);
}