Converts this record back to a map.
Map<String, dynamic> toMap() => Map<String, dynamic>.from(attributes);