fromMap static method

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

Implementation

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

  var collectionsFromMap = map['collections'];
  if (collectionsFromMap != null) {
    collectionsFromMap = map['collections'];
  }
  return BackendRequestEntity(
    description: map['description'],
    appId: map['appId'],
    authorId: map['authorId'],
    name: map['name'],
    sendTo: map['sendTo'],
    collections: collectionsFromMap,
    processed: map['processed'],
    requestType: map['requestType'],
  );
}