Added missing field to the toMap() method.