BitlyParams.fromJson constructor

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

Implementation

BitlyParams.fromJson(Map<String, dynamic> json) {
  longUrl = json['long_url'];
  domain = json['domain'];
  groupId = json['group_guid'];
  title = json['title'];
  tags = json['tags']?.cast<String>();
  if (json['deeplinks'] != null) {
    deeplinks = <DeeplinkParams>[];
    json['deeplinks'].forEach((v) {
      deeplinks!.add(new DeeplinkParams.fromJson(v));
    });
  }
}