fromMap static method

FeedEntity? fromMap(
  1. Object? o, {
  2. Map<String, String>? newDocumentIds,
})

Implementation

static FeedEntity? fromMap(Object? o, {Map<String, String>? newDocumentIds}) {
  if (o == null) return null;
  var map = o as Map<String, dynamic>;

  return FeedEntity(
    appId: map['appId'],
    description: map['description'],
    thumbImage: map['thumbImage'],
    photoPost: map['photoPost'],
    videoPost: map['videoPost'],
    messagePost: map['messagePost'],
    audioPost: map['audioPost'],
    albumPost: map['albumPost'],
    articlePost: map['articlePost'],
  );
}