ConnectEmbeddedPaymentsConfig.fromJson constructor

ConnectEmbeddedPaymentsConfig.fromJson(
  1. Object? json
)

Implementation

factory ConnectEmbeddedPaymentsConfig.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return ConnectEmbeddedPaymentsConfig(
    enabled: (map['enabled'] as bool),
    features: ConnectEmbeddedPaymentsFeatures.fromJson(map['features']),
  );
}