CreateShortDynamicLinkResponse.fromJson constructor

CreateShortDynamicLinkResponse.fromJson(
  1. Map _json
)

Implementation

CreateShortDynamicLinkResponse.fromJson(core.Map _json)
    : this(
        previewLink: _json.containsKey('previewLink')
            ? _json['previewLink'] as core.String
            : null,
        shortLink: _json.containsKey('shortLink')
            ? _json['shortLink'] as core.String
            : null,
        warning: _json.containsKey('warning')
            ? (_json['warning'] as core.List)
                .map((value) => DynamicLinkWarning.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );