Last active
July 15, 2022 10:45
-
-
Save md-weber/ef7ecde79594a80ce80783f8e8e8e73e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| part 'person_model.g.dart'; | |
| @JsonSerializable() | |
| class PersonModel { | |
| NameModel name; | |
| String phone; | |
| String email; | |
| PictureModel picture; | |
| PersonModel({this.name, this.phone, this.email, this.picture}); | |
| factory PersonModel.fromJson(Map<String, dynamic> json) => _$PersonModelFromJson(json); | |
| Map<String, dynamic> toJson() => _$PersonModelToJson(this); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment