Skip to content

Instantly share code, notes, and snippets.

@md-weber
Last active July 15, 2022 10:45
Show Gist options
  • Select an option

  • Save md-weber/ef7ecde79594a80ce80783f8e8e8e73e to your computer and use it in GitHub Desktop.

Select an option

Save md-weber/ef7ecde79594a80ce80783f8e8e8e73e to your computer and use it in GitHub Desktop.
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