Skip to content

Instantly share code, notes, and snippets.

@stephaniefash
Last active July 10, 2020 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephaniefash/db367224739cb3b0102e71b569466b6c to your computer and use it in GitHub Desktop.
Save stephaniefash/db367224739cb3b0102e71b569466b6c to your computer and use it in GitHub Desktop.
class MessageModel {
String _body;
String _name;
String _email;
MessageModel.fromJson(Map<String, dynamic> json) {
_name = json['name'];
_email = json['email'];
_body = json['body'];
}
get body => _body;
get email => _email;
get name => _name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment