Access.fromMap constructor

Access.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Access.fromMap(Map<String, dynamic> map) {
  return Access(
      identifier: map["identifier"],
      data: map["data"],
      query: map["query"] == null ? null : Query.fromMap(map["query"]),
      type: AccessType.values[map["type"]],
      collection: map["collection"],

      /// May map contains "pipeline" key with null value
      /// This situation create empty pipeline
      pipeline: map["pipeline"]);
}