UrlBookmark.fromNative constructor

UrlBookmark.fromNative(
  1. Map<Object?, Object?> data
)

Construct a new UrlBookmark instance from the given data.

Implementation

factory UrlBookmark.fromNative(Map<Object?, Object?> data) {
  return UrlBookmark(
    title: data['title'] as String?,
    url: data['url'] as String? ?? '',
  );
}