PaymentLinksResourceCustomFieldsDropdown.fromJson constructor

PaymentLinksResourceCustomFieldsDropdown.fromJson(
  1. Object? json
)

Implementation

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