SessionDropdown.fromJson constructor

SessionDropdown.fromJson(
  1. Object? json
)

Implementation

factory SessionDropdown.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SessionDropdown(
      options: (map['options'] as List<Object?>)
          .map((el) =>
              PaymentPagesCheckoutSessionCustomFieldsOption.fromJson(el))
          .toList());
}