BitlyModel.fromJson constructor

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

Implementation

BitlyModel.fromJson(Map<String, dynamic> json) {
  link = json['link'];
  id = json['id'];
  longUrl = json['long_url'];
  title = json['title'];
  archived = json['archived'];
  createdAt = json['created_at'];
  createdBy = json['created_by'];
  clientId = json['client_id'];
  customBitlinks = json['custom_bitlinks']?.cast<String>();
  tags = json['tags']?.cast<String>();
  launchpadIds = json['launchpad_ids']?.cast<String>();
  if (json['deeplinks'] != null) {
    deeplinks = <Deeplinks>[];
    json['deeplinks'].forEach((v) {
      deeplinks!.add(new Deeplinks.fromJson(v));
    });
  }
}