PreloadingAttemptSource.fromJson constructor

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

Implementation

factory PreloadingAttemptSource.fromJson(Map<String, dynamic> json) {
  return PreloadingAttemptSource(
    key: PreloadingAttemptKey.fromJson(json['key'] as Map<String, dynamic>),
    ruleSetIds: (json['ruleSetIds'] as List)
        .map((e) => RuleSetId.fromJson(e as String))
        .toList(),
    nodeIds: (json['nodeIds'] as List)
        .map((e) => dom.BackendNodeId.fromJson(e as int))
        .toList(),
  );
}