fromJson static method

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

Implementation

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

  return InputPollMediaVenue(
    venue: Venue.fromJson(json['venue'] as Map<String, dynamic>?)!,
  );
}