ServiceWorkerRouterInfo.fromJson constructor

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

Implementation

factory ServiceWorkerRouterInfo.fromJson(Map<String, dynamic> json) {
  return ServiceWorkerRouterInfo(
    ruleIdMatched: json['ruleIdMatched'] as int,
    matchedSourceType: ServiceWorkerRouterSource.fromJson(
        json['matchedSourceType'] as String),
  );
}