fromJson static method

InputPollTypeRegular? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static InputPollTypeRegular? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return InputPollTypeRegular(
    allowAddingOptions: (json['allow_adding_options'] as bool?) ?? false,
  );
}