CreateManagedShortLinkResponse.fromJson constructor

CreateManagedShortLinkResponse.fromJson(
  1. Map json_
)

Implementation

CreateManagedShortLinkResponse.fromJson(core.Map json_)
    : this(
        managedShortLink: json_.containsKey('managedShortLink')
            ? ManagedShortLink.fromJson(json_['managedShortLink']
                as core.Map<core.String, core.dynamic>)
            : null,
        previewLink: json_.containsKey('previewLink')
            ? json_['previewLink'] 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,
      );