toMoney method
Converts this string into the corresponding Money
instance.
Implementation
Money toMoney() {
final List<String> strings = split(' ');
return Money(
amount: double.parse(strings[0]),
currency: strings[1].toCurrency(),
);
}