Url.fromJson constructor

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

Implementation

factory Url.fromJson(Map<String, dynamic> json) => Url(
      url: json["url"],
      expandedUrl: json["expanded_url"],
      displayUrl: json["display_url"],
      indices: List<int>.from(json["indices"].map((x) => x)),
      unwound:
          json["unwound"] == null ? null : Unwound.fromJson(json["unwound"]),
    );