Map<String, dynamic> toMap() { return <String, dynamic>{ 'detectorId': detectorId, 'masterAccountId': masterAccountId, 'region': ?region, }; }