Converts the pair to a map for easier processing.
Map<String, dynamic> toMap() { return { 'first': first, 'second': second, }; }