PaymentLinksResourceCustomFieldsText.fromJson constructor

PaymentLinksResourceCustomFieldsText.fromJson(
  1. Object? json
)

Implementation

factory PaymentLinksResourceCustomFieldsText.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentLinksResourceCustomFieldsText(
    maximumLength: map['maximum_length'] == null
        ? null
        : (map['maximum_length'] as num).toInt(),
    minimumLength: map['minimum_length'] == null
        ? null
        : (map['minimum_length'] as num).toInt(),
  );
}