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