BlogLocale.fromMap constructor

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

This is will help us to create object from Map

Implementation

factory BlogLocale.fromMap(Map<String, dynamic> map) {
  return BlogLocale(
    language: map['language'] ?? '',
    country: map['country'] ?? '',
    variant: map['variant'] ?? '',
  );
}