core.Map<core.String, core.dynamic> toJson() => { if (restoredAccount != null) 'restoredAccount': restoredAccount!, };