Link.fromJson constructor

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

A link from decoded JSON objects.

Implementation

Link.fromJson(Map<String, Object?> json)
    // ignore: cast_nullable_to_non_nullable
    : href = json['href'] as String,
      rel = json['rel'] as String?,
      type = json['type'] as String?,
      hreflang = json['hreflang'] as String?,
      title = json['title'] as String?,
      length = json['length'] as int?;