LiveChatMessageAuthorDetails.fromJson constructor

LiveChatMessageAuthorDetails.fromJson(
  1. Map json_
)

Implementation

LiveChatMessageAuthorDetails.fromJson(core.Map json_)
    : this(
        channelId: json_.containsKey('channelId')
            ? json_['channelId'] as core.String
            : null,
        channelUrl: json_.containsKey('channelUrl')
            ? json_['channelUrl'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        isChatModerator: json_.containsKey('isChatModerator')
            ? json_['isChatModerator'] as core.bool
            : null,
        isChatOwner: json_.containsKey('isChatOwner')
            ? json_['isChatOwner'] as core.bool
            : null,
        isChatSponsor: json_.containsKey('isChatSponsor')
            ? json_['isChatSponsor'] as core.bool
            : null,
        isVerified: json_.containsKey('isVerified')
            ? json_['isVerified'] as core.bool
            : null,
        profileImageUrl: json_.containsKey('profileImageUrl')
            ? json_['profileImageUrl'] as core.String
            : null,
      );