fromMap static method

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

Implementation

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

  return FollowRequestEntity(
    appId: map['appId'],
    followerId: map['followerId'],
    followedId: map['followedId'],
    status: map['status'],
  );
}