PreloadingAttemptSourcesUpdatedEvent.fromJson constructor

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

Implementation

factory PreloadingAttemptSourcesUpdatedEvent.fromJson(
    Map<String, dynamic> json) {
  return PreloadingAttemptSourcesUpdatedEvent(
    loaderId: network.LoaderId.fromJson(json['loaderId'] as String),
    preloadingAttemptSources: (json['preloadingAttemptSources'] as List)
        .map((e) =>
            PreloadingAttemptSource.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}