PortalCustomerUpdate.fromJson constructor

PortalCustomerUpdate.fromJson(
  1. Object? json
)

Implementation

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