factory M4eAmount.fromJson(Map<String, dynamic> json) { return M4eAmount( value: json['value'], currency: M4eCurrencyType.parse(json['unit']), ); }