BlogPage.fromMap constructor

BlogPage.fromMap(
  1. Map<String, dynamic> map
)

This is will help us to create object from Map

Implementation

factory BlogPage.fromMap(Map<String, dynamic> map) {
  return BlogPage(
    totalItems: map['totalItems']?.toInt() ?? 0,
    selfLink: map['selfLink'] ?? '',
  );
}