Map<String, dynamic> toMap() { return <String, dynamic>{ 'certificateId': certificateId, 'isManagedCertificate': isManagedCertificate, }; }