fromMap static method
Implementation
static TutorialEntryEntity? fromMap(Object? o,
{Map<String, String>? newDocumentIds}) {
if (o == null) return null;
var map = o as Map<String, dynamic>;
var imageIdNewDocmentId = map['imageId'];
if ((newDocumentIds != null) && (imageIdNewDocmentId != null)) {
var imageIdOldDocmentId = imageIdNewDocmentId;
imageIdNewDocmentId = newRandomKey();
newDocumentIds[imageIdOldDocmentId] = imageIdNewDocmentId;
}
return TutorialEntryEntity(
description: map['description'],
imageId: imageIdNewDocmentId,
code: map['code'],
);
}