LiveChatPollDetailsPollMetadata.fromJson constructor

LiveChatPollDetailsPollMetadata.fromJson(
  1. Map json_
)

Implementation

LiveChatPollDetailsPollMetadata.fromJson(core.Map json_)
    : this(
        options: json_.containsKey('options')
            ? (json_['options'] as core.List)
                .map((value) =>
                    LiveChatPollDetailsPollMetadataPollOption.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        questionText: json_.containsKey('questionText')
            ? json_['questionText'] as core.String
            : null,
      );