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,
      );