SocialFeed.fromJson constructor

SocialFeed.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SocialFeed.fromJson(Map<String, dynamic> json) {
  return SocialFeed(
    name: json['name'] ?? '',
    photoURL: json['photoURL'] ?? '',
    description: json['description'] ?? '',
    likes: json['likes'] ?? 0,
    address: json['address'] ?? '',
    email: json['email'] ?? '',
    phone: json['phone'] ?? '',
    latitude: json['latitude'] ?? 0,
    longitude: json['longitude'] ?? 0,
  );
}