ManagedShortLink.fromJson constructor

ManagedShortLink.fromJson(
  1. Map _json
)

Implementation

ManagedShortLink.fromJson(core.Map _json)
    : this(
        creationTime: _json.containsKey('creationTime')
            ? _json['creationTime'] as core.String
            : null,
        flaggedAttribute: _json.containsKey('flaggedAttribute')
            ? (_json['flaggedAttribute'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        info: _json.containsKey('info')
            ? DynamicLinkInfo.fromJson(
                _json['info'] as core.Map<core.String, core.dynamic>)
            : null,
        link: _json.containsKey('link') ? _json['link'] as core.String : null,
        linkName: _json.containsKey('linkName')
            ? _json['linkName'] as core.String
            : null,
        visibility: _json.containsKey('visibility')
            ? _json['visibility'] as core.String
            : null,
      );