factory Activation.fromJson(Map<String, Object?> json) => Activation(mode: ActivationMode.fromJson(json['mode']));