Last active
July 10, 2020 12:06
-
-
Save stephaniefash/db367224739cb3b0102e71b569466b6c to your computer and use it in GitHub Desktop.
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
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