toEntity method

  1. @override
ChatMemberInfoEntity toEntity({
  1. String? appId,
})
override

Implementation

@override
ChatMemberInfoEntity toEntity({String? appId}) {
  return ChatMemberInfoEntity(
    authorId: authorId,
    appId: appId,
    roomId: (roomId != null) ? roomId : null,
    timestamp: (timestamp == null) ? null : timestamp!.millisecondsSinceEpoch,
    accessibleByGroup:
        (accessibleByGroup != null) ? accessibleByGroup!.index : null,
    accessibleByMembers:
        (accessibleByMembers != null) ? accessibleByMembers : null,
    readAccess: (readAccess != null) ? readAccess : null,
  );
}