fromJson static method

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

Implementation

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

  return InputPollMediaAnimation(
    animation: InputAnimation.fromJson(tdMapFromJson(json['animation'])),
  );
}