-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add json macro support (experimental)
- Loading branch information
1 parent
7436178
commit 2e20525
Showing
4 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "pokedex (debug mode)", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "debug", | ||
"program": "lib/app/main.dart", | ||
"toolArgs": [ | ||
"--enable-experiment=macros" | ||
] | ||
}, | ||
{ | ||
"name": "pokedex (profile mode)", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "profile", | ||
"program": "lib/app/main.dart", | ||
"toolArgs": [ | ||
"--enable-experiment=macros" | ||
] | ||
}, | ||
{ | ||
"name": "pokedex (release mode)", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "release", | ||
"program": "lib/app/main.dart", | ||
"toolArgs": [ | ||
"--enable-experiment=macros" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
pokedex/lib/pokemon_list/data/model/pokemon_list_response.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import 'package:json/json.dart'; | ||
|
||
@JsonCodable() | ||
class PokemonListResponse { | ||
PokemonListResponse({ | ||
required this.name, | ||
required this.url, | ||
}); | ||
|
||
final String name; | ||
final String url; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters