ServiceWorkerRouterInfo.fromJson constructor
ServiceWorkerRouterInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ServiceWorkerRouterInfo.fromJson(Map<String, dynamic> json) {
return ServiceWorkerRouterInfo(
ruleIdMatched: json.containsKey('ruleIdMatched')
? json['ruleIdMatched'] as int
: null,
matchedSourceType: json.containsKey('matchedSourceType')
? ServiceWorkerRouterSource.fromJson(
json['matchedSourceType'] as String)
: null,
actualSourceType: json.containsKey('actualSourceType')
? ServiceWorkerRouterSource.fromJson(
json['actualSourceType'] as String)
: null,
);
}