create static method

CaptchaResult create({
  1. String? special_type,
  2. String? type,
  3. Emoji? emoji_answer,
  4. List<Object>? random_words,
  5. List<Object>? words,
})
override

return original data json

Implementation

static CaptchaResult create({
  String? special_type,
  String? type,
  Emoji? emoji_answer,
  List<Object>? random_words,
  List<Object>? words,
}) {
  CaptchaResult captchaResult = CaptchaResult({
    "@type": special_type,
    "type": type,
    "emoji_answer": (emoji_answer != null) ? emoji_answer.toJson() : null,
    "random_words": random_words,
    "words": words,
  });

  return captchaResult;
}