ServiceWorkerRegistration.fromJson constructor

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

Implementation

factory ServiceWorkerRegistration.fromJson(Map<String, dynamic> json) {
  return ServiceWorkerRegistration(
    registrationId: RegistrationID.fromJson(json['registrationId'] as String),
    scopeURL: json['scopeURL'] as String,
    isDeleted: json['isDeleted'] as bool? ?? false,
  );
}