BlogPost.fromJson constructor
BlogPost.fromJson(
- String source
This is will help us to create object from json input
Implementation
factory BlogPost.fromJson(String source) =>
BlogPost.fromMap(json.decode(source));