ConfigurationCustomerUpdate.fromJson constructor

ConfigurationCustomerUpdate.fromJson(
  1. Object? json
)

Implementation

factory ConfigurationCustomerUpdate.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return ConfigurationCustomerUpdate(
    allowedUpdates: map['allowed_updates'] == null
        ? null
        : (map['allowed_updates'] as List<Object?>)
            .map((el) => PortalCustomerUpdateAllowedUpdatesItem.fromJson(el))
            .toList(),
    enabled: (map['enabled'] as bool),
  );
}