SetupIntentCancelOptions.fromJson constructor
      
      SetupIntentCancelOptions.fromJson(
    
    
- Object? json
 
Implementation
factory SetupIntentCancelOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SetupIntentCancelOptions(
    cancellationReason: map['cancellation_reason'] == null
        ? null
        : SetupIntentCancelOptionsCancellationReason.fromJson(
            map['cancellation_reason']),
    expand: map['expand'] == null
        ? null
        : (map['expand'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
  );
}