BlogPost.fromMap constructor
This is will help us to create object from Map
Implementation
factory BlogPost.fromMap(Map<String, dynamic> map) {
return BlogPost(
totalItems: map['totalItems']?.toInt() ?? 0,
selfLink: map['selfLink'] ?? '',
);
}