fromJson static method

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

Implementation

static SelectedTicketType? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }
  return SelectedTicketType(
    price: (json['price'] as num).toDouble(),
    ticketType: json['ticketType'] as String,
  );
}