LinkMetadata.fromJson constructor

LinkMetadata.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LinkMetadata.fromJson(Map<String, dynamic> json) {
  return LinkMetadata(
    href: json['href'] as String?,
    text: json['text'] as String?,
    title: json['title'] as String?,
    rel: _optionalString(json['rel']),
  );
}