StreamingConfiguration.fromJson constructor
StreamingConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory StreamingConfiguration.fromJson(Map<String, dynamic> json) {
return StreamingConfiguration(
dataRetentionInHours: json['DataRetentionInHours'] as int,
disabled: json['Disabled'] as bool?,
streamingNotificationTargets: (json['StreamingNotificationTargets']
as List?)
?.whereNotNull()
.map((e) =>
StreamingNotificationTarget.fromJson(e as Map<String, dynamic>))
.toList(),
);
}