LiveChatBanSnippet.fromJson constructor

LiveChatBanSnippet.fromJson(
  1. Map json_
)

Implementation

LiveChatBanSnippet.fromJson(core.Map json_)
    : this(
        banDurationSeconds: json_.containsKey('banDurationSeconds')
            ? json_['banDurationSeconds'] as core.String
            : null,
        bannedUserDetails: json_.containsKey('bannedUserDetails')
            ? ChannelProfileDetails.fromJson(json_['bannedUserDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        liveChatId: json_.containsKey('liveChatId')
            ? json_['liveChatId'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );