Link.fromJson constructor

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

Implementation

factory Link.fromJson(Map<String, dynamic> json) {
  return Link(
    href: json['href'] ?? '',
    text: json['text'] ?? '',
  );
}