factory MoneyAmount.fromJson(Map<String, dynamic> data) => MoneyAmount( currencyFromJson(data), data.requireDouble('value'), );