Entry constructor

Entry({
  1. Uri? fullUrl,
  2. Resource? resource,
  3. Search? search,
})

Creates a new Entry instance.

Implementation

Entry({
  Uri? fullUrl,
  Resource? resource,
  Search? search,
}) : this.fromJson(
        JsonObject({
          if (fullUrl != null)
            fullUrlField.name: JsonString(fullUrl.toString()),
          if (resource != null) resourceField.name: resource.json,
          if (search != null) searchField.name: search.json,
        }),
      );