rename container folders
This commit is contained in:
parent
d5349d981c
commit
5b052a1fa9
654 changed files with 0 additions and 0 deletions
|
|
@ -1,23 +0,0 @@
|
|||
class Currency {
|
||||
final String code;
|
||||
final String name;
|
||||
|
||||
const Currency({
|
||||
required this.code,
|
||||
required this.name,
|
||||
});
|
||||
|
||||
factory Currency.fromJson(Map<String, dynamic> json) {
|
||||
return switch (json) {
|
||||
{
|
||||
"code": String code,
|
||||
'name': String name,
|
||||
} =>
|
||||
Currency(
|
||||
code: code,
|
||||
name: name,
|
||||
),
|
||||
_ => throw const FormatException('Failed to load Currency object.'),
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue