Map<String, dynamic> toMap() { return <String, dynamic>{ 'localhostProfile': ?localhostProfile, 'type': type, }; }