fromMap static method
Implementation
static ChatMemberInfoEntity? fromMap(Object? o,
{Map<String, String>? newDocumentIds}) {
if (o == null) return null;
var map = o as Map<String, dynamic>;
return ChatMemberInfoEntity(
authorId: map['authorId'],
appId: map['appId'],
roomId: map['roomId'],
timestamp: map['timestamp'] == null
? null
: (map['timestamp'] as Timestamp).millisecondsSinceEpoch,
accessibleByGroup: map['accessibleByGroup'],
accessibleByMembers: map['accessibleByMembers'] == null
? null
: List.from(map['accessibleByMembers']),
readAccess:
map['readAccess'] == null ? null : List.from(map['readAccess']),
);
}