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